/*
 * VarshaKrishi - content-elevation.css
 * COHESION LAYER for the content library (crops, regions, glossary, tools, blog).
 * These pages load the legacy stack (vk-design-system + nav/hero/about/footer/
 * polish/sections). Their content classes (crop-header, data-card, snippet-block,
 * cta-banner, term-card, state-card, article-*) were largely unstyled, so pages
 * read as plain documents. This file is injected LAST on every content page and
 * restyles that vocabulary in the FarmMinerals light language already used by the
 * marketing pages: cream canvas, white rounded cards, deep-green display type,
 * amber dot accents, pill buttons, tactile hover lifts.
 *
 * Palette is taken from vk-design-system.css tokens:
 *   --ink #F4EDE6 cream · --ink-2 #FFF card · --ink-4 #E4DACB border
 *   --fog #46523F body · --white #22301F headings · --canopy #2D5438 green
 *   --harvest #9A6508 amber · --harvest-light #C8830A
 */

:root {
  --ce-cream:   #F4EDE6;
  --ce-card:    #FFFFFF;
  --ce-elev:    #FAF6F0;
  --ce-border:  #E4DACB;
  --ce-green:   #2D5438;
  --ce-green-d: #1F3D2A;
  --ce-amber:   #C8830A;
  --ce-amber-d: #9A6508;
  --ce-ink:     #22301F;
  --ce-body:    #46523F;
  --ce-muted:   #5D6954;
  --ce-band:    linear-gradient(180deg, #24422E 0%, #1B3423 100%);
  --ce-shadow-sm: 0 1px 2px rgba(64,60,45,0.06), 0 1px 6px rgba(64,60,45,0.05);
  --ce-shadow-md: 0 2px 8px rgba(64,60,45,0.08), 0 8px 24px rgba(64,60,45,0.08);
  --ce-shadow-lg: 0 4px 12px rgba(64,60,45,0.08), 0 20px 48px rgba(64,60,45,0.12);
  --ce-radius:   14px;
  --ce-radius-lg: 20px;
  --ce-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kill the film-grain overlay on light content pages (looks muddy on cream) */
body::before { display: none !important; }

/* Reveal fallback: sections.css sets .fade-up{opacity:0} expecting a JS class
   toggle (.fade-up.visible), but no script toggles it on these pages, so the
   content stayed permanently invisible. Guarantee it renders with a gentle
   one-time CSS entrance. This file loads after sections.css so it wins. */
.fade-up {
  opacity: 1;
  transform: none;
  animation: ce-fade-up 0.7s var(--ce-ease) both;
}
@keyframes ce-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}

body {
  background: var(--ce-cream);
  color: var(--ce-body);
}

/* ── Shared container rhythm ─────────────────────────────────────── */
.crop-content .container,
.crop-header .container,
.content-section .container,
.glossary-container,
.article-layout {
  max-width: 1080px;
}

/* ═══════════════════════════════════════════════════════════════
 * 1. CONTENT PAGE HERO (crop-header, article-header, generic header)
 * ═══════════════════════════════════════════════════════════════ */

.crop-header,
.region-header,
.tool-header,
.header {
  padding-top: clamp(7rem, 6rem + 6vw, 10rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
  border-bottom: 1px solid var(--ce-border);
}

.crop-header {
  background:
    linear-gradient(180deg, rgba(250,246,240,0.94) 0%, rgba(244,237,230,0.88) 100%),
    url('/images/crop-guide-hero.webp') center/cover no-repeat;
}

.region-header,
.header {
  background:
    linear-gradient(180deg, rgba(250,246,240,0.94) 0%, rgba(244,237,230,0.88) 100%),
    url('/images/region-hero-template.webp') center/cover no-repeat;
}

.tool-header,
.hub-header {
  background:
    radial-gradient(ellipse 60% 70% at 88% 0%, rgba(124,145,76,0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--ce-elev) 0%, var(--ce-cream) 100%);
}

.pillar-header {
  padding-top: clamp(7rem, 6rem + 6vw, 10rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
  background:
    linear-gradient(180deg, rgba(250,246,240,0.93) 0%, rgba(244,237,230,0.87) 100%),
    url('/images/smart-farming-hero.webp') center/cover no-repeat;
  border-bottom: 1px solid var(--ce-border);
  text-align: center;
}

/* Region/glossary-style hero centers its content */
.header { text-align: center; }
.header .container { max-width: 820px; }
.header h1 { margin-inline: auto; }
.header p { margin-inline: auto; }

.crop-header h1,
.region-header h1,
.tool-header h1,
.header h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ce-ink);
  max-width: 22ch;
}

.page-subtitle {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem) !important;
  line-height: 1.6 !important;
  color: var(--ce-muted) !important;
  max-width: 60ch !important;
  margin-top: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
 * 2. ANSWER-FIRST SNIPPET BLOCK
 * ═══════════════════════════════════════════════════════════════ */

.snippet-block {
  background: var(--ce-card);
  border: 1px solid var(--ce-border);
  border-left: 4px solid var(--ce-amber);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ce-ink);
}

.snippet-block strong { color: var(--ce-green); }
.snippet-block em { color: var(--ce-amber-d); font-style: normal; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
 * 3. ARTICLE / PROSE BODY
 * ═══════════════════════════════════════════════════════════════ */

/* Region/tool body sections have no inner container - constrain + center */
.content-section,
.seo-content {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2rem);
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--ce-body);
}
.content-section h2,
.seo-content h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ce-ink);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.content-section p, .seo-content p { margin-bottom: 1.2rem; }
.content-section ul { margin: 1.2rem 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.content-section li { color: var(--ce-body); }
.content-section strong, .seo-content strong { color: var(--ce-green); }

.article-body,
.content-section .prose,
.crop-content .article-body {
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--ce-body);
  max-width: 72ch;
}

.article-body h2,
.crop-content h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ce-ink);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.article-body h3,
.crop-content h3 { color: var(--ce-ink); font-weight: 600; }

.article-body p,
.crop-content p { margin-bottom: 1.2rem; }

.article-body a,
.crop-content a:not(.btn) {
  color: var(--ce-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-fast, .15s);
}
.article-body a:hover,
.crop-content a:not(.btn):hover { color: var(--ce-amber-d); }

/* ═══════════════════════════════════════════════════════════════
 * 4. DATA GRID + DATA CARDS (crop metrics)
 * ═══════════════════════════════════════════════════════════════ */

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.data-card {
  background: var(--ce-card);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow-sm);
  padding: 1.5rem;
  transition: transform var(--ce-ease) .4s, box-shadow var(--ce-ease) .4s;
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ce-shadow-md);
}

.data-card h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ce-amber-d);
  margin-bottom: 0.5rem;
}

.data-card .value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ce-green);
}

.data-card p { color: var(--ce-muted); }

/* ═══════════════════════════════════════════════════════════════
 * 5. CTA BANNERS (cta-banner, article-cta-card, article-enterprise-cta)
 * ═══════════════════════════════════════════════════════════════ */

.cta-banner,
.article-cta-card,
.article-enterprise-cta {
  background: var(--ce-band);
  border: none;
  border-radius: var(--ce-radius-lg);
  box-shadow: var(--ce-shadow-md);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  margin: clamp(3rem, 6vw, 4.5rem) 0;
  color: #E3E9DC;
}

.cta-banner h2,
.article-cta-card h2,
.cta-banner h3,
.article-cta-card__text,
.article-enterprise-cta h2 {
  color: #F4EDE6 !important;
  font-family: var(--font-body) !important;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cta-banner p,
.article-cta-card p { color: #C9D6C2; }

.cta-banner .btn,
.article-cta-card .btn,
.article-enterprise-cta .btn,
.cta-banner .btn-primary {
  background: #F4EDE6;
  color: #22301F;
  border: 1px solid #F4EDE6;
}
.cta-banner .btn-primary:hover,
.article-cta-card .btn:hover { background: #FFFFFF; color: #1F3D2A; }

/* ═══════════════════════════════════════════════════════════════
 * 6. GLOSSARY (term-card, definition, context, pillar-link)
 * ═══════════════════════════════════════════════════════════════ */

.term-card,
.state-card,
.stat-card,
.result-item,
.blog-card {
  background: var(--ce-card);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform var(--ce-ease) .4s, box-shadow var(--ce-ease) .4s, border-color .3s;
}

.term-card:hover,
.state-card:hover,
.stat-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ce-shadow-lg);
  border-color: rgba(45,84,56,0.4);
}

.term-card h2,
.term-card h3 { color: var(--ce-ink); font-weight: 600; }
.definition { color: var(--ce-ink); font-size: 1.1rem; line-height: 1.6; }
.context { color: var(--ce-muted); }

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6em 1.2em;
  border: 1px solid rgba(45,84,56,0.35);
  border-radius: 62.5em;
  color: var(--ce-green);
  font-weight: 500;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.pillar-link:hover { background: var(--ce-green); color: #F4EDE6; }

/* ═══════════════════════════════════════════════════════════════
 * 7. STAT BLOCKS
 * ═══════════════════════════════════════════════════════════════ */

.stat-value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ce-green);
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ce-amber-d);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
 * 8. BLOG CARDS (index + related)
 * ═══════════════════════════════════════════════════════════════ */

.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card__image-container { aspect-ratio: 16/10; overflow: hidden; background: var(--ce-elev); }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ce-ease); }
.blog-card:hover .blog-card__img { transform: scale(1.05); }
.blog-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.blog-card__title { color: var(--ce-ink); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.blog-card__desc { color: var(--ce-muted); font-size: 0.95rem; }
.blog-card__meta { color: var(--ce-muted); font-size: 0.8rem; }

.blog-category-tag,
.blog-card__category {
  display: inline-block;
  width: fit-content;
  padding: 0.3em 0.9em;
  border-radius: 62.5em;
  background: rgba(45,84,56,0.08);
  border: 1px solid rgba(45,84,56,0.2);
  color: var(--ce-green);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
 * 9. TILT CARDS (generic content cards used across pages)
 * ═══════════════════════════════════════════════════════════════ */

.tilt-card {
  background: var(--ce-card);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow-sm);
}
.snippet-block.tilt-card { border-left: 4px solid var(--ce-amber); }
.cta-banner.tilt-card { background: var(--ce-band); border: none; }

/* ═══════════════════════════════════════════════════════════════
 * 10. BUTTONS - pill geometry, green/amber fills (FM signature)
 * ═══════════════════════════════════════════════════════════════ */

.btn {
  border-radius: 62.5em !important;
  font-family: var(--font-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600;
  padding: 0.85em 1.7em;
}

.btn-primary {
  background: var(--ce-green) !important;
  color: #F4EDE6 !important;
  box-shadow: var(--ce-shadow-sm) !important;
}
.btn-primary:hover {
  background: var(--ce-green-d) !important;
  box-shadow: var(--ce-shadow-md) !important;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent !important;
  color: var(--ce-green) !important;
  box-shadow: inset 0 0 0 1px rgba(45,84,56,0.4) !important;
}
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ce-green) !important; }

/* ═══════════════════════════════════════════════════════════════
 * 11. EYEBROWS / LABELS - amber dot signature
 * ═══════════════════════════════════════════════════════════════ */

.eyebrow,
.headline-label {
  font-family: var(--font-body) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ce-amber-d) !important;
}
.eyebrow::before {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  background: var(--ce-amber) !important;
}

/* ═══════════════════════════════════════════════════════════════
 * 12. FORMS (tools calculators)
 * ═══════════════════════════════════════════════════════════════ */

.form-control,
.input-group input,
.input-group select {
  background: var(--ce-elev);
  border: 1px solid var(--ce-border);
  border-radius: 10px;
  color: var(--ce-ink);
  padding: 0.7em 0.9em;
}
.form-control:focus {
  border-color: var(--ce-green);
  box-shadow: 0 0 0 3px rgba(45,84,56,0.15);
  outline: none;
}
.input-group-prefix { color: var(--ce-muted); }

/* ═══════════════════════════════════════════════════════════════
 * 13. DATA TABLES
 * ═══════════════════════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ce-card);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  overflow: hidden;
}
.data-table th {
  background: var(--ce-elev);
  color: var(--ce-ink);
  text-align: left;
  padding: 0.8em 1em;
  font-weight: 600;
  border-bottom: 1px solid var(--ce-border);
}
.data-table td {
  padding: 0.8em 1em;
  border-bottom: 1px solid var(--ce-border);
  color: var(--ce-body);
}
.data-table tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════
 * 14. GLOSSARY PAGE - clear the fixed nav, fix invisible headings
 * ═══════════════════════════════════════════════════════════════ */

.glossary-container {
  max-width: 820px;
  margin-inline: auto;
  padding-top: clamp(7rem, 6rem + 6vw, 10rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.glossary-container > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ce-amber-d) !important;
  font-weight: 600;
}

.glossary-container h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ce-ink);
  margin: 0.75rem 0 1.25rem;
}

/* inline color:white on these subheadings renders invisible on cream */
.glossary-container h2,
.glossary-container h3 {
  color: var(--ce-ink) !important;
  font-family: var(--font-body) !important;
  font-weight: 600;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
 * 15. LEGACY INLINE FOOTER - grid layout + compaction
 * (content pages inline their own .footer-main; it had no grid and
 *  up to 10rem padding, so columns stacked into a very tall band)
 * ═══════════════════════════════════════════════════════════════ */

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 3rem) !important;
  row-gap: clamp(1.5rem, 3vw, 2rem) !important;
}

.site-footer .footer-brand__reg {
  border-color: rgba(244,237,230,0.18) !important;
  color: #A9BCA4 !important;
}

.site-footer .footer-brand__tagline {
  font-style: normal;
  font-family: var(--font-body);
  color: #D9E2D2 !important;
  font-size: 1.05rem;
}

@media (max-width: 860px) {
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer .footer-main { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
 * 16. HUB INDEX HEADERS (crops/tools listing pages)
 * ═══════════════════════════════════════════════════════════════ */

.hub-header {
  padding-top: clamp(7rem, 6rem + 6vw, 10rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
  background:
    radial-gradient(ellipse 60% 70% at 88% 0%, rgba(124,145,76,0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--ce-elev) 0%, var(--ce-cream) 100%);
  border-bottom: 1px solid var(--ce-border);
  text-align: center;
}

.hub-header h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--ce-ink);
  margin-bottom: 1rem;
}

.hub-header .page-subtitle {
  color: var(--ce-muted) !important;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
 * 17. INJECTED FM FOOTER (main.js) - beats legacy footer.css dark rules
 * ═══════════════════════════════════════════════════════════════ */

#site-footer,
.site-footer {
  background: var(--ce-cream) !important;
  color: var(--ce-body);
  margin-top: 0 !important;
  border-top: none !important;
}

.footer-cta {
  background: linear-gradient(135deg, #4A5C33 0%, #24422E 100%);
  overflow: hidden;
}

.footer-cta__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.footer-cta__statement {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #F4EDE6 !important;
}

.footer-cta__sub {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #D9E2D2 !important;
  max-width: 48ch;
}

.footer-cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.footer-cta__btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 62.5em;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-cta__btn--solid {
  background: #F4EDE6;
  color: #22301F !important;
  border: 1px solid #F4EDE6;
}

.footer-cta__btn--solid:hover { background: #FFFFFF; color: #1F3D2A !important; }

.footer-cta__btn--ghost {
  background: transparent;
  color: #F4EDE6 !important;
  border: 1px solid rgba(244, 237, 230, 0.55);
}

.footer-cta__btn--ghost:hover {
  border-color: #F4EDE6;
  background: rgba(244,237,230,0.12);
  color: #FFFFFF !important;
}

.footer-cta__media img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 0.9em;
  box-shadow: 0 24px 60px rgba(13, 30, 15, 0.45);
}

.footer-fm {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) 1.5rem;
}

.footer-fm__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 1.2fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.footer-fm__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A9478 !important;
  margin-bottom: 1rem;
}

.footer-fm__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-fm__links a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #22301F !important;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-fm__links a:hover { color: #2D5438 !important; }

.footer-fm .footer-badge {
  background: #FFFFFF;
  padding: 0.5rem;
  border-radius: 0.63em;
  display: inline-block;
  border: 1px solid #E4DACB;
}

.footer-fm .footer-badge__img { height: 44px; width: auto; display: block; }

.footer-fm__contact { text-align: right; }

.footer-fm__contact-note {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8A9478 !important;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-fm__email {
  display: block;
  font-size: clamp(1.05rem, 0.8rem + 1.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #22301F !important;
  text-decoration: none;
}

.footer-fm__email:hover { color: #2D5438 !important; }

.footer-fm__phone {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #46523F !important;
  text-decoration: none;
}

.footer-fm__phone:hover { color: #2D5438 !important; }

.footer-fm__social {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.footer-fm__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5em 1em;
  border: 1px solid #E4DACB;
  border-radius: 62.5em;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2D5438 !important;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-fm__social-link:hover {
  background: #2D5438;
  border-color: #2D5438;
  color: #F4EDE6 !important;
}

.footer-fm__mark {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
}

.footer-fm__mark img { height: 64px; width: auto; opacity: 0.95; }

.footer-fm__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #E4DACB;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: #8A9478 !important;
}

.footer-fm__legal a { color: #46523F !important; text-decoration: none; }
.footer-fm__legal a:hover { color: #2D5438 !important; }

@media (max-width: 900px) {
  .footer-cta__inner { grid-template-columns: 1fr; }
  .footer-cta__media { display: none; }
  .footer-fm__grid { grid-template-columns: 1fr 1fr; }
  .footer-fm__contact { text-align: left; grid-column: 1 / -1; }
  .footer-fm__social { justify-content: flex-start; }
}
