/* ==========================================================================
   TALU studios — Landing Page
   Design System: "Earthy & Organic Wellness"
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cores — base */
  --c-sand:        #F4ECE3;   /* Background principal */
  --c-sand-deep:   #EBE2D7;   /* Superfície de contraste / divisões */
  --c-surface:     #FFFFFF;   /* Cards */

  /* Cores — marca */
  --c-terra:       #C57C6C;   /* CTA primário / destaque */
  --c-terra-hover: #B36D5E;
  --c-terra-soft:  rgba(197, 124, 108, 0.10);
  --c-terra-text:  #C57C6C;   /* Terracota quando usado como TEXTO */
  --c-sage:        #708778;   /* Acento secundário */
  --c-sage-soft:   rgba(112, 135, 120, 0.12);

  /* Cores — texto */
  --c-ink:         #2C3133;   /* Títulos */
  --c-body:        #5C6467;   /* Corpo de texto */
  --c-line:        rgba(92, 100, 103, 0.12);
  --c-line-strong: rgba(92, 100, 103, 0.22);

  /* Tipografia */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:    "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero:   clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  --fs-h2:     clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-h3:     clamp(1.35rem, 1.15rem + 0.7vw, 1.6rem);
  --fs-lead:   clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem);
  --fs-body:   1rem;
  --fs-small:  0.875rem;
  --fs-micro:  0.75rem;

  /* Espaçamento */
  --space-section: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --gutter:        clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --max-width:     1200px;

  /* Formas */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 44px;
  --r-pill: 999px;

  /* Sombras — muito suaves, luz difusa */
  --shadow-xs: 0 1px 2px rgba(44, 49, 51, 0.04);
  --shadow-sm: 0 4px 16px rgba(44, 49, 51, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(44, 49, 51, 0.12);
  --shadow-lg: 0 28px 64px -24px rgba(44, 49, 51, 0.18);

  /* Superfícies translúcidas e gradientes (trocam no modo escuro) */
  --c-glass:       rgba(255, 255, 255, 0.6);
  --c-header-bg:   rgba(244, 236, 227, 0.88);
  --c-skip-bg:     #2C3133;
  --c-avatar-ink:  #2C3133;
  --c-map-grad:    linear-gradient(150deg, #E7EAE3 0%, #D3DBD2 100%);
  --c-cta-grad:    linear-gradient(140deg, #7B8F81 0%, #63796B 48%, #566B5E 100%);

  /* Movimento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t-med:  320ms var(--ease);
  --header-h: 76px;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   1b. Tema escuro — só entra quando data-theme="dark" está no <html>.
   Nunca é ativado por prefers-color-scheme: a escolha é sempre do visitante.
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --c-sand:        #1B1E1D;   /* Fundo principal — carvão quente */
  --c-sand-deep:   #232726;   /* Seções alternadas / rodapé */
  --c-surface:     #2A2F2D;   /* Cards */

  --c-terra:       #C57C6C;   /* CTA continua na cor da marca */
  --c-terra-hover: #D4907F;
  --c-terra-soft:  rgba(197, 124, 108, 0.18);
  --c-terra-text:  #DE9A88;   /* terracota clareada para ler sobre o escuro */
  --c-sage:        #94AB9A;
  --c-sage-soft:   rgba(148, 171, 154, 0.16);

  --c-ink:         #F1ECE4;   /* Títulos */
  --c-body:        #B4BAB6;   /* Corpo de texto */
  --c-line:        rgba(241, 236, 228, 0.13);
  --c-line-strong: rgba(241, 236, 228, 0.26);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 28px 64px -24px rgba(0, 0, 0, 0.7);

  --c-glass:       rgba(255, 255, 255, 0.07);
  --c-header-bg:   rgba(27, 30, 29, 0.88);
  --c-skip-bg:     #F1ECE4;
  --c-avatar-ink:  #4B534F;
  --c-map-grad:    linear-gradient(150deg, #2E3532 0%, #232927 100%);
  --c-cta-grad:    linear-gradient(140deg, #4C5E53 0%, #3D4E44 48%, #33433A 100%);

  color-scheme: dark;
}

/* O link "pular para o conteúdo" inverte junto com o fundo */
[data-theme="dark"] .skip-link { color: #1B1E1D; }

/* As ilustrações têm fundo areia embutido: um leve dim tira o brilho no escuro */
[data-theme="dark"] .photo { filter: brightness(0.9) saturate(0.95); }

/* Linhas do mapa ilustrado ficam mais discretas no escuro */
[data-theme="dark"] .footer__map-lines { opacity: .28; }

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-body);
  background-color: var(--c-sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

::selection { background: var(--c-terra); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Utilitários de layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--sand  { background: var(--c-sand-deep); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--c-skip-bg); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 200;
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   4. Blocos tipográficos
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-sage);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--c-sage); opacity: .6;
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after {
  content: ""; width: 26px; height: 1px; background: var(--c-sage); opacity: .6;
}

.section-title {
  font-size: var(--fs-h2);
  margin-top: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--c-terra-text);
}

.section-sub {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: var(--c-body);
  max-width: 58ch;
}
.section-head--center .section-sub { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-terra);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(197, 124, 108, .9);
}
.btn--primary:hover { background: var(--c-terra-hover); box-shadow: 0 16px 30px -12px rgba(179, 109, 94, .95); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.btn--ghost:hover { border-color: var(--c-ink); background: var(--c-glass); }

.btn--light {
  background: #fff; color: #2C3133; box-shadow: var(--shadow-sm);
}
.btn--light:hover { box-shadow: var(--shadow-md); }

.btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--sm { padding: .7rem 1.25rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* Link com seta */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9375rem; color: var(--c-terra-text);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / Navbar
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: var(--c-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--c-line);
  box-shadow: 0 4px 24px -18px rgba(44,49,51,.5);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .75rem; flex: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem; letter-spacing: .14em; color: var(--c-terra-text); font-weight: 600;
}
.brand__name span { color: var(--c-body); font-size: .9rem; letter-spacing: .02em; font-style: italic; }
.brand__tag {
  font-size: .5rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-body); margin-top: 5px; font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 1.5rem; white-space: nowrap; }
.nav__list { display: flex; align-items: center; gap: 1.45rem; }
.nav__link {
  font-size: .9rem; font-weight: 500; color: var(--c-body);
  position: relative; padding-block: .35rem;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--c-terra);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med);
}
.nav__link:hover { color: var(--c-ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong); background: var(--c-glass);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--c-ink); border-radius: 2px;
  position: relative; transition: background-color var(--t-fast);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--c-ink); border-radius: 2px; transition: transform var(--t-med), top var(--t-fast);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Botão de alternar tema */
.header__tools { display: flex; align-items: center; gap: .6rem; flex: none; }

.theme-toggle {
  width: 46px; height: 46px; flex: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  background: var(--c-glass);
  color: var(--c-ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover {
  border-color: var(--c-sage);
  color: var(--c-sage);
  transform: translateY(-2px);
}
.theme-toggle svg { width: 20px; height: 20px; }

/* O ícone mostra a AÇÃO: lua no tema claro (ir para o escuro) e sol no escuro */
.theme-toggle .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-toggle__sun  { display: block; }
[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }

/* Drawer mobile */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--c-sand);
  padding: 2rem var(--gutter) 3rem;
  display: flex; flex-direction: column;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav__link {
  font-family: var(--font-display); font-size: 1.75rem; color: var(--c-ink);
  padding: .85rem 0; border-bottom: 1px solid var(--c-line);
}
.mobile-nav .btn { margin-top: 2rem; }
.mobile-nav__meta { margin-top: auto; padding-top: 2.5rem; font-size: var(--fs-small); }
.mobile-nav__meta a { color: var(--c-terra-text); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 6rem));
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero__glow--terra {
  width: 520px; height: 520px; right: -160px; top: -80px;
  background: rgba(197,124,108,.16);
}
.hero__glow--sage {
  width: 420px; height: 420px; left: -180px; bottom: -140px;
  background: rgba(112,135,120,.16);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--c-glass); border: 1px solid var(--c-line);
  padding: .45rem .95rem .45rem .5rem; border-radius: var(--r-pill);
  font-size: var(--fs-small); color: var(--c-body); box-shadow: var(--shadow-xs);
}
.hero__badge b { color: var(--c-ink); font-weight: 600; }
.hero__badge-dot {
  width: 24px; height: 24px; border-radius: 50%; background: var(--c-sage-soft);
  display: grid; place-items: center; color: var(--c-sage); flex: none;
}
.hero__badge-dot svg { width: 13px; height: 13px; }

.hero__title {
  font-size: var(--fs-hero);
  margin-top: 1.5rem;
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.hero__title em { font-style: italic; color: var(--c-terra-text); }
.hero__title .u { position: relative; white-space: nowrap; }
.hero__title .u::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .1em; height: .3em;
  background: var(--c-sage-soft); border-radius: var(--r-pill); z-index: -1;
}

.hero__sub { margin-top: 1.75rem; font-size: var(--fs-lead); max-width: 52ch; }

.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .875rem; }

.hero__stats {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 2rem; border-top: 1px solid var(--c-line);
}
.hero__stat strong {
  display: block; font-family: var(--font-display); font-size: 2.15rem;
  color: var(--c-ink); line-height: 1;
}
.hero__stat span { font-size: var(--fs-small); color: var(--c-body); }

/* Composição visual do hero */
.hero__visual { position: relative; }
.hero__composition {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.frame {
  position: relative; overflow: hidden;
  background: var(--c-sand);
  box-shadow: var(--shadow-md);
}
.frame--arch {
  grid-row: span 2;
  border-radius: 180px 180px var(--r-lg) var(--r-lg);
  aspect-ratio: 3 / 4.35;
}
.frame--soft { border-radius: var(--r-xl); aspect-ratio: 4 / 3.1; }
.frame--round { border-radius: var(--r-2xl); aspect-ratio: 4 / 3.1; }

.hero__float {
  position: absolute; left: -6%; bottom: 5%;
  background: var(--c-surface); border-radius: var(--r-lg); padding: .95rem 1.1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem;
  max-width: 255px;
}
.hero__float-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--c-terra-soft); color: var(--c-terra-text);
  display: grid; place-items: center;
}
.hero__float-icon svg { width: 20px; height: 20px; }
.hero__float p { font-size: var(--fs-small); line-height: 1.4; color: var(--c-body); }
.hero__float b { color: var(--c-ink); display: block; font-size: .9rem; }

/* --------------------------------------------------------------------------
   8. Artes ilustradas (line art da marca)
   -------------------------------------------------------------------------- */
.photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  background: #F4ECE3;   /* mesmo fundo das ilustrações, nos dois temas */
}

.photo__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.75rem 1.15rem 1rem;
  font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: #2C3133;
  background: linear-gradient(to top, rgba(244, 236, 227, .96) 30%, rgba(244, 236, 227, 0));
}

/* --------------------------------------------------------------------------
   9. Faixa de credibilidade (marquee)
   -------------------------------------------------------------------------- */
.strip {
  border-block: 1px solid var(--c-line);
  background: var(--c-sand-deep);
  overflow: hidden; padding-block: 1.1rem;
}
.strip__track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 38s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-size: 1.35rem; color: var(--c-ink);
  white-space: nowrap; opacity: .75;
}
.strip__item::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-terra); flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. Pilares
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillar {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 2rem 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar__icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: var(--c-sage-soft); color: var(--c-sage);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: var(--fs-h3); margin-bottom: .65rem; }
.pillar p { font-size: .9375rem; }

/* --------------------------------------------------------------------------
   11. Método (passo a passo)
   -------------------------------------------------------------------------- */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.method__steps { display: grid; gap: 1rem; }
.step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 1.5rem 1.6rem;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.step__num {
  font-family: var(--font-display); font-size: 1.55rem; line-height: 1;
  color: var(--c-terra-text); flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-terra-soft);
  display: grid; place-items: center;
}
.step h3 { font-size: 1.28rem; margin-bottom: .35rem; }
.step p { font-size: .9375rem; }

.method__visual { position: relative; }
.method__frame {
  border-radius: var(--r-2xl); overflow: hidden; position: relative;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow-lg);
}
.method__quote {
  position: absolute; right: -4%; bottom: 6%; max-width: 272px;
  background: var(--c-surface); border-radius: var(--r-lg); padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-lg);
}
.method__quote p {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  color: var(--c-ink); line-height: 1.45;
}
.method__quote span {
  display: block; margin-top: .7rem; font-size: var(--fs-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-sage); font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Modalidades
   -------------------------------------------------------------------------- */
.modalities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.modality {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.modality:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.modality__media { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; }
.modality__badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  background: rgba(255,255,255,.92); color: #708778;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: var(--r-pill);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modality__body { padding: 1.9rem 1.7rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.modality h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem); margin-bottom: .75rem; }
.modality p { font-size: .9375rem; }
.modality__list { margin-top: 1.15rem; display: grid; gap: .55rem; }
.modality__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.modality__list svg { width: 16px; height: 16px; color: var(--c-sage); flex: none; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.tag {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .04em;
  padding: .38rem .75rem; border-radius: var(--r-pill);
  background: var(--c-sand); color: var(--c-body); border: 1px solid var(--c-line);
}
.tag--terra { background: var(--c-terra-soft); color: var(--c-terra-text); border-color: transparent; }
.modality__foot { margin-top: auto; padding-top: 1.5rem; }

/* --------------------------------------------------------------------------
   13. O Espaço — galeria bento
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, 200px);
  gap: 1rem;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.gallery__item:hover { transform: scale(1.015); box-shadow: var(--shadow-lg); }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; border-radius: var(--r-2xl); }
.gallery__item:nth-child(2) { grid-column: span 2; }

.space__features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem;
}
.space__feature {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 1.2rem 1.3rem;
  display: flex; gap: .85rem; align-items: center;
}
.space__feature svg { width: 20px; height: 20px; color: var(--c-terra-text); flex: none; }
.space__feature span { font-size: .875rem; font-weight: 500; color: var(--c-ink); line-height: 1.35; }

/* --------------------------------------------------------------------------
   14. Instagram & Comunidade
   -------------------------------------------------------------------------- */
.ig__head {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; margin-bottom: 2.75rem;
}
.ig__profile { display: flex; align-items: center; gap: 1.1rem; }
.ig__avatar {
  width: 78px; height: 78px; border-radius: 50%; flex: none;
  padding: 3px; background: linear-gradient(135deg, var(--c-terra), var(--c-sage));
}
.ig__avatar-inner {
  width: 100%; height: 100%; border-radius: 50%; background: var(--c-sand);
  display: grid; place-items: center; border: 2px solid var(--c-sand);
}
.ig__avatar-inner svg { width: 44px; height: 44px; }
.ig__handle { font-family: var(--font-display); font-size: 1.6rem; color: var(--c-ink); }
.ig__meta { display: flex; gap: 1.5rem; margin-top: .35rem; font-size: var(--fs-small); }
.ig__meta b { color: var(--c-ink); }

.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ig__post {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  display: block; box-shadow: var(--shadow-xs);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.ig__post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ig__post-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(44,49,51,.85) 0%, rgba(44,49,51,.42) 26%, rgba(44,49,51,0) 56%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; transition: background var(--t-med);
}
.ig__post:hover .ig__post-overlay {
  background: linear-gradient(to top, rgba(44,49,51,.85) 0%, rgba(44,49,51,.4) 60%, rgba(44,49,51,.18) 100%);
}
.ig__post-caption { color: #fff; font-size: .875rem; line-height: 1.45; }
.ig__post-tag {
  color: rgba(255,255,255,.78); font-size: var(--fs-micro);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: .35rem;
}
.ig__post-type {
  position: absolute; top: .85rem; right: .85rem; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #2C3133;
  display: grid; place-items: center;
}
.ig__post-type svg { width: 15px; height: 15px; }
.ig__cta { margin-top: 2.5rem; text-align: center; }

/* --------------------------------------------------------------------------
   15. Depoimentos
   -------------------------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stars { display: flex; gap: .18rem; color: var(--c-terra-text); margin-bottom: 1.1rem; }
.stars svg { width: 16px; height: 16px; }
.testimonial blockquote {
  font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5;
  color: var(--c-ink); font-style: italic; flex: 1;
}
.testimonial__author {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.1rem; color: #fff;
}
.avatar--terra { background: var(--c-terra); }
.avatar--sage  { background: var(--c-sage); }
.avatar--ink   { background: var(--c-avatar-ink); }
.testimonial__author b { display: block; color: var(--c-ink); font-size: .9375rem; font-weight: 600; }
.testimonial__author span { font-size: var(--fs-small); }

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.faq__list { display: grid; gap: .85rem; }
.faq__item {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-med);
}
.faq__item.is-open { border-color: transparent; box-shadow: var(--shadow-md); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.35rem 1.5rem; text-align: left;
  font-family: var(--font-display); font-size: 1.22rem; color: var(--c-ink);
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--c-terra-text); }
.faq__icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  border: 1px solid var(--c-line-strong); display: grid; place-items: center;
  transition: transform var(--t-med), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.faq__icon svg { width: 14px; height: 14px; }
.faq__item.is-open .faq__icon {
  transform: rotate(45deg); background: var(--c-terra); border-color: var(--c-terra); color: #fff;
}
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.5rem 1.5rem; font-size: .9375rem; }

.faq__aside {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-xl); padding: 2rem 1.85rem; box-shadow: var(--shadow-sm);
}
.faq__aside h3 { font-size: 1.5rem; margin: 1rem 0 .75rem; }
.faq__aside p { font-size: .9375rem; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   17. CTA final
   -------------------------------------------------------------------------- */
.cta-final { padding-block: var(--space-section); }
.cta-final__box {
  position: relative; overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--c-cta-grad);
  padding: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
  text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-final__glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.cta-final__glow--a { top: -180px; right: -120px; background: rgba(197,124,108,.4); }
.cta-final__glow--b { bottom: -220px; left: -120px; background: rgba(244,236,227,.22); }
.cta-final__leaf { position: absolute; opacity: .13; pointer-events: none; color: #fff; }
.cta-final__leaf--a { width: 190px; left: 4%; top: 10%; transform: rotate(-18deg); }
.cta-final__leaf--b { width: 150px; right: 5%; bottom: 8%; transform: rotate(162deg); }
.cta-final__inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.cta-final .eyebrow { color: rgba(255,255,255,.85); }
.cta-final .eyebrow::before, .cta-final .eyebrow::after { background: rgba(255,255,255,.6); }
.cta-final h2 { color: #fff; font-size: var(--fs-h2); margin-top: 1rem; }
.cta-final h2 em { font-style: italic; color: #F5DDD5; }
.cta-final p { color: rgba(255,255,255,.88); font-size: var(--fs-lead); margin-top: 1.25rem; }
.cta-final__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center; }
.cta-final__note { margin-top: 1.75rem; font-size: var(--fs-small); color: rgba(255,255,255,.72); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-sand-deep); border-top: 1px solid var(--c-line);
  padding-top: clamp(3.5rem, 2rem + 5vw, 5.5rem);
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__about p { font-size: .9375rem; margin-top: 1.35rem; max-width: 34ch; }
.footer__socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-line-strong); display: grid; place-items: center;
  color: var(--c-ink);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--c-terra); border-color: var(--c-terra); color: #fff; transform: translateY(-2px); }

.footer h4 {
  font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 1.25rem;
}
.footer__links { display: grid; gap: .7rem; }
.footer__links a { font-size: .9375rem; transition: color var(--t-fast), padding-left var(--t-fast); }
.footer__links a:hover { color: var(--c-terra-text); padding-left: 4px; }

.footer__contact { display: grid; gap: 1rem; }
.footer__contact-row { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; }
.footer__contact-row svg { width: 17px; height: 17px; color: var(--c-sage); flex: none; margin-top: 5px; }
.footer__contact-row b { display: block; color: var(--c-ink); font-weight: 600; }

.footer__map {
  margin-top: 1.25rem; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-line); height: 152px; position: relative; display: block;
  background: var(--c-map-grad);
}
.footer__map-lines { position: absolute; inset: 0; opacity: .55; }
.footer__map-pin {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center;
  gap: .35rem; color: var(--c-ink); text-align: center;
}
.footer__map-pin svg { width: 26px; height: 26px; color: var(--c-terra-text); }
.footer__map-pin span { font-size: var(--fs-small); font-weight: 600; }

.footer__bottom {
  border-top: 1px solid var(--c-line); padding-block: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: var(--fs-small);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__bottom a:hover { color: var(--c-terra-text); }

/* --------------------------------------------------------------------------
   19. WhatsApp flutuante
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90; display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #fff;
  border-radius: var(--r-pill); padding: .75rem 1.4rem .75rem .8rem;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .6);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float__label { font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(37,211,102,.7); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-pill);
  border: 2px solid rgba(37, 211, 102, .55);
  animation: pulse 2.6s ease-out infinite; pointer-events: none;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

/* --------------------------------------------------------------------------
   20. Animações de entrada
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .space__features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .theme-toggle { width: 42px; height: 42px; }
  .theme-toggle svg { width: 18px; height: 18px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__composition { max-width: 560px; margin-inline: auto; }
  /* Fora do fluxo absoluto no mobile: evita sobrepor a legenda da foto */
  .hero__float { position: static; max-width: 560px; margin: 1rem auto 0; }
  .method { grid-template-columns: 1fr; }
  .method__visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .method__quote { right: 0; }
  .modalities { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__aside { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(0, 170px); }
}

@media (max-width: 640px) {
  /* Cabeçalho compacto: a marca cede espaço para o tema + hambúrguer caberem */
  .header__inner { gap: .75rem; }
  .brand { gap: .6rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.15rem; letter-spacing: .1em; }
  .brand__name span { font-size: .8rem; }
  .brand__tag { font-size: .45rem; letter-spacing: .12em; }
  .header__tools { gap: .4rem; }
  .nav-toggle { width: 42px; height: 42px; }

  .hero__stats { gap: 1.5rem 2rem; }
  .hero__stat strong { font-size: 1.8rem; }
  .pillars { grid-template-columns: 1fr; }
  .ig__grid { grid-template-columns: repeat(2, 1fr); }
  .ig__post:nth-child(n+5) { display: none; }
  .space__features { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-final__actions .btn, .mobile-nav .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .wa-float { padding: .65rem 1.15rem .65rem .7rem; gap: .5rem; }
  .wa-float svg { width: 24px; height: 24px; }
  .wa-float__label { font-size: .875rem; }
  .frame--arch { border-radius: 130px 130px var(--r-lg) var(--r-lg); }
  .method__quote { position: static; max-width: none; margin-top: 1rem; }
}

@media (max-width: 420px) {
  /* Telas muito estreitas (320–420px): a marca encolhe mais um degrau */
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 1.02rem; letter-spacing: .08em; }
  .brand__name span { font-size: .72rem; }
  .brand__tag { font-size: .42rem; letter-spacing: .1em; }

  .hero__composition { gap: .65rem; }
  .ig__meta { gap: 1rem; }
  .ig__profile { gap: .85rem; }
  .ig__avatar { width: 64px; height: 64px; }
}
