/* ================================================
   Fazenda Memória — Sistema de Design v2
   Paleta refinada: terra, ocre, dourado, creme, marrom
   Tipografia: Fraunces (display) + Inter (body)
   Foco: contraste WCAG AA, ritmo editorial, motion sutil
================================================ */

:root {
  /* Cores — terra mineira (refinada) */
  --cream: #f5efe4;
  --cream-soft: #faf6ec;
  --cream-warm: #efe6d4;
  --paper: #e9ddc5;
  --kraft: #c9a878;
  --kraft-soft: #d9bf95;
  --gold: #9b7331;
  --gold-deep: #6e4e1c;          /* contrast pass on cream */
  --gold-dark: #543a13;
  --terra: #8a4b2a;
  --bark: #4a2f1c;                /* slightly darker for better contrast */
  --bark-deep: #2c1c10;
  --ink: #2a1d10;                 /* deeper for richer contrast */
  --ink-soft: #4a3621;            /* used for body on dark */
  --ink-mute: #6b5640;            /* secondary body text on cream */
  --ink-faint: #8a7864;           /* labels, captions, decorative only */
  --line: #d0bc97;
  --line-soft: #e3d3b1;
  --line-faint: #ece2cb;

  /* On-dark text (solid colors instead of opacities) */
  --on-dark: #f5efe4;             /* primary on dark */
  --on-dark-soft: #d8cdb9;        /* body on dark — 6.5+ ratio */
  --on-dark-mute: #b6a991;        /* captions/labels on dark */
  --on-dark-faint: #8a7e69;       /* decorative on dark */

  /* Tipografia */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-ornament: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Escala */
  --text-xs: clamp(0.74rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.86rem, 0.82rem + 0.15vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
  --text-lg: clamp(1.12rem, 1.05rem + 0.4vw, 1.28rem);
  --text-xl: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  --text-2xl: clamp(1.95rem, 1.5rem + 2vw, 2.85rem);
  --text-3xl: clamp(2.4rem, 1.8rem + 3vw, 3.8rem);
  --text-hero: clamp(2.8rem, 1.9rem + 5vw, 5.6rem);
  --text-mega: clamp(4rem, 3rem + 6vw, 8rem);

  /* Espaçamento */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Container */
  --max-w: 1280px;
  --max-w-wide: 1440px;
  --max-prose: 62ch;

  /* Outros */
  --radius: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(42, 29, 16, 0.06);
  --shadow-md: 0 18px 40px rgba(42, 29, 16, 0.12);
  --shadow-lg: 0 32px 80px rgba(42, 29, 16, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern";
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--gold-deep); color: var(--cream); }

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
h1 { font-size: var(--text-hero); font-weight: 350; }
h2 { font-size: var(--text-3xl); line-height: 1.08; font-weight: 380; }
h3 { font-size: var(--text-xl); line-height: 1.2; }

em.serif-it {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--gold-deep);
}

/* Eyebrow refinada */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow .roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  opacity: 0.85;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container--wide { max-width: var(--max-w-wide); }

/* ================================================
   PROGRESS BAR (scroll progress)
================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--kraft) 100%);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ================================================
   HEADER
================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 239, 228, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(245, 239, 228, 0.96);
  border-bottom-color: var(--line-faint);
  box-shadow: 0 4px 24px rgba(42, 29, 16, 0.06);
}
.header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: var(--space-8);
  transition: height 0.3s var(--ease);
}
.header.scrolled .header-inner { height: 80px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand img {
  height: 60px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.header.scrolled .brand img { height: 50px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.4vw, 2.4rem);
}
.nav a {
  font-size: var(--text-base);
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--bark);
  transform: translateY(-1px);
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: var(--line-faint); }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

@media (max-width: 1180px) {
  .nav {
    position: fixed;
    inset: 96px 0 0 0;
    height: calc(100vh - 96px);
    height: calc(100svh - 96px);
    flex-direction: column;
    background: var(--cream);
    padding: var(--space-12) var(--space-8);
    gap: var(--space-5);
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    font-weight: 380;
    color: var(--ink);
  }
  .nav-cta {
    margin-top: var(--space-4);
  }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ================================================
   HERO
================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-32) 0 var(--space-20);
  color: var(--cream);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out);
}
.hero.loaded .hero-bg img { transform: scale(1); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 29, 16, 0.28) 0%,
    rgba(42, 29, 16, 0.08) 30%,
    rgba(42, 29, 16, 0.35) 70%,
    rgba(42, 29, 16, 0.72) 100%
  );
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 920px; }
.hero .eyebrow { color: var(--kraft); }
.hero h1 {
  color: var(--on-dark);
  margin-top: var(--space-6);
  font-weight: 330;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.3);
}
.hero h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--kraft);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  max-width: 56ch;
  color: var(--on-dark-soft);
  font-weight: 380;
  line-height: 1.6;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.25);
}
.hero-actions {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-meta {
  position: absolute;
  bottom: var(--space-10);
  right: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 2;
  text-align: right;
  color: var(--on-dark-mute);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 500;
}
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--kraft);
  font-weight: 400;
  margin-bottom: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--on-dark);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0.85;
  font-weight: 500;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--on-dark));
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--kraft));
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 768px) {
  .hero-meta { display: none; }
  .hero-scroll { display: none; }
}

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

.btn-primary {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  background: var(--kraft);
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(155, 115, 49, 0.4);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover {
  background: var(--bark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(245, 239, 228, 0.45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(245, 239, 228, 0.12);
  border-color: var(--on-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--ink-soft);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}
.btn-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.btn-link:hover {
  gap: 16px;
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}
.btn-link:hover svg { transform: translateX(3px); }

/* ================================================
   SECTIONS — base
================================================ */
section {
  padding: clamp(var(--space-20), 10vw, var(--space-32)) 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-16);
}
.section-head h2 { margin-top: var(--space-6); }
.section-head p {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--ink-mute);
  max-width: 56ch;
  line-height: 1.6;
}

/* SVG divider — small ornament */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-8);
  width: 100%;
  max-width: 240px;
  color: var(--gold);
  opacity: 0.7;
}
.divider svg {
  width: 100%;
  height: 16px;
}

/* ================================================
   INTRO — Tudo nasce aqui
================================================ */
.intro {
  background: var(--cream);
  text-align: center;
  padding: clamp(var(--space-20), 11vw, var(--space-32)) 0;
  position: relative;
}
.intro::before {
  content: "01";
  position: absolute;
  top: var(--space-12);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  opacity: 0.6;
}
.intro h2 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem);
  font-weight: 330;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-style: italic;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto;
  line-height: 1.08;
}
.intro p {
  margin-top: var(--space-8);
  font-size: var(--text-lg);
  color: var(--ink-mute);
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ================================================
   SECTION COUNTER — editorial chapter number
================================================ */
.chapter-num {
  font-family: var(--font-ornament);
  font-size: clamp(6rem, 4rem + 8vw, 11rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.85;
  color: var(--gold-deep);
  opacity: 0.15;
  position: absolute;
  top: var(--space-12);
  right: clamp(1rem, 4vw, 4rem);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
}

/* ================================================
   ORIGEM
================================================ */
.origem {
  background: var(--cream-soft);
  border-top: 1px solid var(--line-faint);
}
.origem > .container { position: relative; }
.origem-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(var(--space-10), 7vw, var(--space-20));
  align-items: center;
  position: relative;
  z-index: 1;
}
.origem-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.origem-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.origem-media:hover img { transform: scale(1.03); }
.origem-media .badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  color: var(--cream);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: rgba(42, 29, 16, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.origem-text h2 em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.origem-text > p {
  margin-top: var(--space-6);
  color: var(--ink-mute);
  font-size: var(--text-base);
  line-height: 1.78;
}

.origem-meta {
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.origem-meta-item .num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--gold-deep);
  line-height: 1;
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  display: block;
}
.origem-meta-item .lbl {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.origem-text .btn-link { margin-top: var(--space-10); }

@media (max-width: 880px) {
  .origem-grid { grid-template-columns: 1fr; }
  .origem-meta { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}

/* ================================================
   CUIDAR
================================================ */
.cuidar {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.cuidar > .container { position: relative; }
.cuidar h2, .cuidar h3, .cuidar h4 { color: var(--on-dark); }
.cuidar .eyebrow { color: var(--kraft); }
.cuidar .section-head p { color: var(--on-dark-soft); }
.cuidar h2 em {
  font-style: italic;
  color: var(--kraft);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.cuidar .chapter-num { color: var(--kraft); opacity: 0.12; }

.cuidar-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
  margin-bottom: var(--space-20);
  position: relative;
  z-index: 1;
}
.cuidar-feature .media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.cuidar-feature img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}
.cuidar-feature:hover img { transform: scale(1.04); }
.cuidar-feature h3 {
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
  font-weight: 380;
}
.cuidar-feature h3 em {
  font-style: italic;
  color: var(--kraft);
}
.cuidar-feature p { color: var(--on-dark-soft); line-height: 1.78; font-size: var(--text-lg); }
.cuidar-feature p + p { margin-top: var(--space-4); }
@media (max-width: 880px) {
  .cuidar-feature { grid-template-columns: 1fr; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(245, 239, 228, 0.12);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.pillar {
  background: var(--ink);
  padding: var(--space-8) var(--space-6);
  transition: background 0.4s var(--ease);
  position: relative;
}
.pillar:hover { background: var(--bark-deep); }
.pillar-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--kraft);
  letter-spacing: 0.22em;
  font-weight: 500;
  font-style: italic;
}
.pillar h3 {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
}
.pillar p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--on-dark-mute);
  line-height: 1.65;
}

.cuidar-cta {
  margin-top: var(--space-20);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ================================================
   PULL QUOTE — between sections
================================================ */
.pull-quote {
  background: var(--cream);
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0;
  text-align: center;
}
.pull-quote-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.pull-quote-inner::before {
  content: "“";
  font-family: var(--font-ornament);
  font-size: clamp(8rem, 6rem + 5vw, 12rem);
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  font-style: italic;
  font-weight: 350;
  line-height: 1.35;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  position: relative;
  z-index: 1;
}
.pull-quote cite {
  display: block;
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-style: normal;
  font-weight: 500;
}

/* ================================================
   A MESA MINEIRA
================================================ */
.mesa {
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.mesa-hero {
  position: relative;
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) var(--space-20);
  height: clamp(420px, 65vh, 640px);
  overflow: hidden;
  border-radius: var(--radius);
}
.mesa-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.mesa-hero:hover img { transform: scale(1.03); }
.mesa-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 18, 8, 0.8) 0%,
    rgba(28, 18, 8, 0.4) 28%,
    rgba(28, 18, 8, 0.05) 60%,
    rgba(28, 18, 8, 0.02) 100%
  );
}
.mesa-quote {
  position: absolute;
  bottom: clamp(var(--space-8), 8vh, var(--space-16));
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 90%);
  text-align: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  font-style: italic;
  line-height: 1.3;
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  margin: 0;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.mesa-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
.mesa-grid h2 em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.mesa-grid p {
  margin-top: var(--space-6);
  color: var(--ink-mute);
  line-height: 1.78;
}
.mesa-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.mesa-list li {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease);
}
.mesa-list li:hover { padding-left: var(--space-3); }
.mesa-list .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  min-width: 32px;
  font-weight: 400;
}
.mesa-list h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.mesa-list p {
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--ink-mute);
  line-height: 1.65;
}

@media (max-width: 880px) {
  .mesa-grid { grid-template-columns: 1fr; }
}

/* ================================================
   DA NOSSA FAZENDA — produtos
================================================ */
.fazenda {
  background: var(--cream);
  border-top: 1px solid var(--line-faint);
  position: relative;
}
.fazenda h2 em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.fazenda-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.product-card {
  background: var(--cream-soft);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 29, 16, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.product-card:hover .product-card-img::after { opacity: 1; }
.product-card-body {
  padding: var(--space-6) var(--space-6) var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .tag {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin: 0 0 var(--space-3) 0;
  letter-spacing: -0.01em;
}
.product-card p {
  font-size: var(--text-sm);
  color: var(--ink-mute);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.product-card .more {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.product-card .more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .more {
  gap: 14px;
  color: var(--gold-deep);
}
.product-card:hover .more svg { transform: translateX(4px); }

.card-feature  { grid-column: span 7; }
.card-half-a   { grid-column: span 5; }
.card-third    { grid-column: span 4; }

@media (max-width: 980px) {
  .card-feature, .card-half-a { grid-column: span 12; }
  .card-third { grid-column: span 6; }
}
@media (max-width: 600px) {
  .card-third { grid-column: span 12; }
}

/* ================================================
   COMPROMISSO
================================================ */
.compromisso {
  background: var(--cream-soft);
  position: relative;
}
.compromisso-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
.compromisso-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.compromisso-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.compromisso-media:hover img { transform: scale(1.03); }
.compromisso h2 em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.compromisso-text > p {
  margin-top: var(--space-6);
  color: var(--ink-mute);
  line-height: 1.78;
  max-width: 56ch;
  font-size: var(--text-base);
}
.commit-list {
  list-style: none;
  padding: 0;
  margin: var(--space-10) 0 0 0;
}
.commit-list li {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  transition: transform 0.4s var(--ease);
}
.commit-list li:first-child { border-top: 1px solid var(--line); }
.commit-list li:hover { transform: translateX(4px); }
.commit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.commit-list li:hover .commit-icon {
  background: var(--gold-deep);
  color: var(--cream-soft);
}
.commit-icon svg { width: 20px; height: 20px; }
.commit-list h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.commit-list p {
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--ink-mute);
  line-height: 1.6;
}
@media (max-width: 980px) {
  .compromisso-grid { grid-template-columns: 1fr; }
  .compromisso-media { position: relative; top: 0; }
}

/* ================================================
   PARA EMPRESAS
================================================ */
.empresas {
  background: var(--bark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.empresas > .container { position: relative; }
.empresas h2, .empresas h3, .empresas h4 { color: var(--on-dark); }
.empresas .eyebrow { color: var(--kraft); }
.empresas h2 em {
  font-style: italic;
  color: var(--kraft);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.empresas .chapter-num { color: var(--kraft); opacity: 0.1; }
.empresas-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: center;
}
.empresas-text p {
  margin-top: var(--space-6);
  color: var(--on-dark-soft);
  line-height: 1.78;
  font-size: var(--text-lg);
  max-width: 52ch;
}
.empresas-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.empresas-media img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 1.6s var(--ease);
}
.empresas-media:hover img { transform: scale(1.04); }

.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(245, 239, 228, 0.15);
  border: 1px solid rgba(245, 239, 228, 0.15);
  margin-top: var(--space-10);
  border-radius: var(--radius);
  overflow: hidden;
}
.audience {
  background: var(--bark);
  padding: var(--space-6) var(--space-5);
  transition: background 0.4s var(--ease);
}
.audience:hover { background: var(--bark-deep); }
.audience h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 450;
  font-style: normal;
  font-variation-settings: "opsz" 14, "SOFT" 0, "WONK" 0;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-3) 0;
  color: var(--on-dark);
  line-height: 1.2;
}
.audience p {
  font-size: var(--text-sm);
  color: var(--on-dark-soft);
  margin: 0;
  line-height: 1.6;
  max-width: none;
}
.audience p {
  margin-top: 0;
  font-size: var(--text-sm);
}
@media (max-width: 880px) {
  .empresas-grid { grid-template-columns: 1fr; }
}

/* ================================================
   MEMÓRIAS — final
================================================ */
.memorias {
  background: var(--cream);
  text-align: center;
  padding: clamp(var(--space-24), 12vw, var(--space-40)) 0;
  position: relative;
}
.memorias-img {
  width: min(960px, 100%);
  margin: 0 auto var(--space-16);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.memorias-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.8s var(--ease);
}
.memorias-img:hover img { transform: scale(1.04); }
.memorias h2 {
  max-width: 18ch;
  margin: var(--space-6) auto 0;
  font-weight: 330;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  line-height: 1.05;
}
.memorias h2 em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.memorias p {
  margin: var(--space-8) auto 0;
  max-width: 58ch;
  color: var(--ink-mute);
  font-size: var(--text-lg);
  line-height: 1.7;
}
.memorias .btn { margin-top: var(--space-12); }

/* ================================================
   FOOTER
================================================ */
.footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding: var(--space-20) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(245, 239, 228, 0.1);
}
.footer-brand img {
  height: 110px;
  width: auto;
  opacity: 0.95;
  display: block;
  margin-bottom: var(--space-2);
}
.footer-brand p {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  max-width: 34ch;
  line-height: 1.7;
  color: var(--on-dark-mute);
}
.footer h5 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--kraft);
  margin: 0 0 var(--space-6) 0;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--on-dark-soft);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
  display: inline-block;
}
.footer-col a:hover {
  color: var(--kraft);
  padding-left: 4px;
}
/* Faixa de selos e certificações */
.footer-selos {
  margin-top: var(--space-10);
  padding: var(--space-8) 0 var(--space-2);
  border-top: 1px solid rgba(232, 216, 178, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}
.footer-selos-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.footer-selos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.footer-selo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--on-dark-soft);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.92;
}
.footer-selo-badge {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.4s var(--ease);
}
.footer-selo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.footer-selo-cap {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-mute);
  max-width: 160px;
  line-height: 1.35;
  white-space: nowrap;
}
.footer-selo:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.footer-selo:hover .footer-selo-badge { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36); }
.footer-selo:hover .footer-selo-cap { color: var(--kraft); }
@media (max-width: 640px) {
  .footer-selos-row { gap: var(--space-8); }
  .footer-selo-badge { width: 76px; height: 76px; padding: 8px; }
  .footer-selo-cap { font-size: 0.68rem; }
}

.footer-bottom {
  margin-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--on-dark-mute);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom a {
  color: var(--on-dark-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.footer-bottom a:hover {
  color: var(--kraft);
  border-bottom-color: var(--kraft);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ================================================
   ANIMATIONS — scroll reveal with stagger
================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .hero-bg img { transform: none !important; }
}

/* utility */
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }

/* ================================================
   SOCIAL — Instagram no menu e no rodapé
================================================ */
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-social:hover {
  color: var(--ink);
  background: var(--line-faint);
  transform: translateY(-1px);
}
.nav-social::after { display: none !important; }
.nav-social svg {
  width: 20px;
  height: 20px;
  display: block;
}
.nav-social-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  /* No menu mobile expandido, mostra "Instagram" com ícone alinhado ao texto */
  .nav-social {
    width: auto;
    height: auto;
    padding: 8px 0;
    border-radius: 0;
    gap: 12px;
    color: var(--ink);
  }
  .nav-social:hover {
    background: transparent;
  }
  .nav-social-label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    overflow: visible;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 380;
  }
  .nav-social svg {
    width: 22px;
    height: 22px;
  }
}

.footer-col a.footer-social,
.footer-social {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
}
.footer-social svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-social:hover svg {
  opacity: 1;
  transform: translateY(-1px);
}
