/* =========================================================================
   No Gluten Life — Sistema de design
   -------------------------------------------------------------------------
   PALETA: verde-sálvia + creme (identidade do @noglutenlife).
   Troque os valores em :root para ajustar a identidade. Tudo herda daqui.
   ========================================================================= */

:root {
  /* Cores base */
  --bg:          #EFE7D7;  /* creme quente (fundo) */
  --surface:     #FBF7EE;  /* cartões (creme claro) */
  --surface-2:   #E5DAC5;  /* seções alternadas (areia) */
  --ink:         #333B2B;  /* verde-carvão (texto principal) */
  --ink-soft:    #55604A;  /* texto secundário */
  --muted:       #877F6B;  /* legendas, apoio */
  --line:        #D8CDB6;  /* linhas/hairlines */

  /* Acento principal — verde-musgo/sálvia */
  --primary:     #56654A;
  --primary-ink: #3F4C36;  /* links em texto (contraste AA) */
  --primary-dk:  #34402C;  /* hover */
  --primary-soft:#E1E3D0;  /* fundo tênue verde */

  /* Acento secundário — argila/terracota (usar com muita parcimônia) */
  --accent:      #B0603C;
  --accent-soft: #EEDCCD;

  /* Detalhe quente — trigo/dourado */
  --gold:        #BE9048;
  --gold-soft:   #EFE2C9;

  /* Tipografia */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Métrica */
  --wrap:   1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(51,59,43,.05), 0 12px 32px -12px rgba(51,59,43,.16);
  --shadow-sm: 0 1px 2px rgba(51,59,43,.05), 0 6px 18px -10px rgba(51,59,43,.13);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Utilidades ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 1rem; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body);
  font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

.wheat-divider { color: var(--primary); display: inline-flex; }
.wheat-divider svg { width: 24px; height: 40px; }

/* --- Tipografia ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); font-weight: 600; }
p  { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

/* --- Botões --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-lg { padding: 1.1rem 2rem; font-size: 1.06rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(86,101,74,.8); }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }

/* --- Cabeçalho / navegação ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-mark { color: var(--primary); display: inline-flex; }
.brand-mark svg { width: 17px; height: 28px; }
.brand-text { font-family: var(--display); font-weight: 600; font-size: 1.7rem; color: var(--ink); letter-spacing: 0; }
.brand-text em { font-style: normal; color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 999px; transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--primary-ink); }
.nav-cta { background: var(--ink); color: #fff !important; margin-left: .4rem; }
.nav-cta:hover { background: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* --- Seções --------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 62ch; }
.section-head p { margin-top: .9rem; font-size: 1.1rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -12%; top: -30%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at center, var(--primary-soft), transparent 66%); z-index: 0; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-top: 1.1rem; }
.hero .lede { margin-top: 1.4rem; font-size: 1.2rem; max-width: 46ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); }

/* Retrato / placeholder de imagem */
.portrait {
  position: relative; border-radius: 210px 210px 22px 22px; overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--primary-soft), var(--gold-soft));
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
}
.portrait span { font-family: var(--body); font-size: .82rem; color: var(--muted); padding: 1rem 1.4rem; line-height: 1.5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* --- Cartões (grid de valor) --------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.15rem; margin-top: 2.6rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .num { font-family: var(--display); font-size: 1.5rem; color: var(--primary); font-weight: 600; }
.card h3 { margin-top: .3rem; font-size: 1.5rem; }
.card p { margin-top: .5rem; font-size: .98rem; }

/* --- Prose (guia + textos longos) ---------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.8rem; padding-top: .4rem; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.prose h2:first-of-type { margin-top: 1.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--primary-dk); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose blockquote {
  border-left: 3px solid var(--primary); padding: .3rem 0 .3rem 1.4rem; margin-block: 1.8rem;
  font-family: var(--display); font-size: 1.7rem; font-style: italic; line-height: 1.25; color: var(--ink);
}
.callout {
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-block: 2rem;
}
.callout p { color: var(--ink); }
.callout strong { color: var(--primary-ink); }

/* Layout do guia com sumário lateral */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: 94px; font-size: .92rem; }
.toc p { font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); margin-bottom: .7rem; }
.toc a { display: block; text-decoration: none; color: var(--ink-soft); padding: .35rem 0 .35rem .8rem; border-left: 2px solid var(--line); transition: .16s; }
.toc a:hover { color: var(--primary-ink); border-color: var(--primary); }

/* --- Página do ebook ------------------------------------------------------ */
.ebook-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ebook-cover {
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  aspect-ratio: 3/4; background: linear-gradient(160deg, var(--primary-soft), var(--gold-soft));
  display: grid; place-items: center; text-align: center;
}
.ebook-cover span { font-size: .82rem; color: var(--muted); padding: 1.2rem; }
.ebook-cover img { width: 100%; height: 100%; object-fit: cover; }
.price-row { display: flex; align-items: baseline; gap: .6rem; margin-block: 1.4rem 1.8rem; }
.price-now { font-family: var(--display); font-size: 2.8rem; font-weight: 600; color: var(--ink); }
.price-note { color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem;
  background: var(--primary); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/74% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/74% no-repeat;
}

/* --- FAQ (accordion nativo) ---------------------------------------------- */
.faq-list { max-width: 74ch; margin-top: 2.4rem; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem; font-family: var(--display);
  font-weight: 600; font-size: 1.4rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.6rem; color: var(--primary); transition: transform .2s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; }
.faq-item .faq-body p { color: var(--ink-soft); }

/* --- Faixa CTA ------------------------------------------------------------ */
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 8vw, 5.5rem); text-align: center; }
.cta-inner { max-width: 60ch; margin-inline: auto; }
.cta-band .wheat-divider { color: var(--gold); margin-bottom: 1rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #E6E1D3; margin-top: 1rem; font-size: 1.12rem; }
.cta-band .btn { margin-top: 2rem; }
.cta-band .btn-primary { background: var(--gold); color: #2B2417; box-shadow: 0 10px 24px -10px rgba(190,144,72,.8); }
.cta-band .btn-primary:hover { background: #cfa259; }

/* --- Rodapé --------------------------------------------------------------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 3.2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand-mark { color: var(--primary); }
.footer-name { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin-top: .5rem; }
.footer-name em { font-style: normal; color: var(--primary); }
.footer-tag { color: var(--muted); font-size: .95rem; margin-top: .2rem; max-width: 34ch; }
.footer-nav, .footer-connect { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a, .footer-social { text-decoration: none; color: var(--ink-soft); font-size: .98rem; }
.footer-nav a:hover, .footer-social:hover { color: var(--primary-ink); }
.footer-label { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); margin-bottom: .2rem; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.disclaimer { font-size: .85rem; color: var(--muted); max-width: 80ch; }
.copyright { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* --- Responsivo ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .portrait { max-width: 380px; }
  .ebook-hero { grid-template-columns: 1fr; }
  .ebook-cover { max-width: 320px; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .8rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-cta { margin-left: 0; margin-top: .3rem; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Movimento reduzido --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
