/* =========================================================
   ATHERIA GROUP — Design System
   Paleta extraída da identidade visual (logo): marrom escuro
   sofisticado + rosé/blush como acento. Estrutura pensada para
   troca futura de marca (nome, logo, cores) via variáveis CSS.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ---- Marca (trocar aqui em rebranding) ---- */
  --brand-dark: #3c332d;
  --brand-dark-2: #2a231f;
  --brand-rose: #cc9d80;
  --brand-rose-light: #e6cdba;
  --brand-rose-soft: #f2e4d8;

  /* ---- Superfícies (modo claro) ---- */
  --bg-page: #fbf9f7;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f4efe9;
  --bg-dark-block: var(--brand-dark);

  /* ---- Texto ---- */
  --text-primary: #2a231f;
  --text-secondary: #6b6058;
  --text-inverse: #f6efe8;
  --text-inverse-muted: #cbbdb1;

  /* ---- Bordas / sombras ---- */
  --border-soft: #e7ddd3;
  --shadow-soft: 0 20px 60px -30px rgba(42, 35, 31, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(42, 35, 31, 0.25);

  /* ---- Tipografia ---- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Ritmo ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --container: 1180px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

html[data-theme="dark"] {
  --bg-page: #221d1a;
  --bg-surface: #2a231f;
  --bg-surface-alt: #332b26;
  --bg-dark-block: #17130f;

  --text-primary: #f3ece5;
  --text-secondary: #b9ab9f;
  --text-inverse: #f6efe8;
  --text-inverse-muted: #cbbdb1;

  --border-soft: #40372f;
  --shadow-soft: 0 20px 60px -30px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 30px -18px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; line-height: 1.7; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-rose);
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brand-rose);
}
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-surface-alt); }
.section--dark {
  background: var(--bg-dark-block);
  color: var(--text-inverse);
}
.section--dark .eyebrow { color: var(--brand-rose-light); }
.section--dark p { color: var(--text-inverse-muted); }
.section--dark h2, .section--dark h3 { color: var(--text-inverse); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; color: var(--text-secondary); }
.section--dark .section-head p { color: var(--text-inverse-muted); }

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand-dark);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--brand-dark-2); }
html[data-theme="dark"] .btn-primary { background: var(--brand-rose); color: var(--brand-dark-2); }
html[data-theme="dark"] .btn-primary:hover { background: var(--brand-rose-light); }

.btn-outline {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--brand-rose); }

.section--dark .btn-outline { border-color: rgba(246,239,232,0.3); color: var(--text-inverse); }
.section--dark .btn-outline:hover { border-color: var(--brand-rose-light); }

.btn-ghost-inverse {
  background: transparent;
  border-color: rgba(246,239,232,0.35);
  color: var(--text-inverse);
}
.btn-ghost-inverse:hover { border-color: var(--brand-rose-light); background: rgba(246,239,232,0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-page) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container { max-width: 1340px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-rose);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.main-nav a, .nav-dropdown-toggle {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .nav-dropdown-toggle:hover { color: var(--text-primary); background: var(--bg-surface-alt); }
.main-nav a.active, .nav-dropdown-toggle.active { color: var(--text-primary); background: var(--bg-surface-alt); }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown-toggle svg { width: 13px; height: 13px; transition: transform var(--transition); }
.nav-item.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-item.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background var(--transition);
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: var(--bg-surface-alt); }
.nav-dropdown-menu a strong { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; }
.nav-dropdown-menu a span { font-size: 0.78rem; color: var(--text-secondary); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition);
}
.theme-toggle:hover { border-color: var(--brand-rose); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: flex; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 108px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-rose-soft) 0%, transparent 70%);
  z-index: 0;
  opacity: .8;
}
html[data-theme="dark"] .hero::after { opacity: .12; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
}
.hero-meta div span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-rose); }
.card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-rose-soft);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
html[data-theme="dark"] .card .card-icon { background: rgba(204,157,128,0.16); color: var(--brand-rose-light); }
.card .card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }
.card .card-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brand-rose);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Produto teaser ---------- */
.product-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}
.product-teaser + .product-teaser { margin-top: 28px; }
.product-teaser .pt-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.product-teaser .pt-visual {
  background: var(--brand-dark);
  color: var(--text-inverse);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  position: relative;
}
.product-teaser .pt-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(204,157,128,0.28), transparent 60%);
}
.product-teaser .pt-visual .pt-tag {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-rose-light);
  font-weight: 600;
}
.product-teaser .pt-visual ul { position: relative; display: flex; flex-direction: column; gap: 12px; }
.product-teaser .pt-visual li {
  font-size: 0.92rem;
  color: var(--text-inverse-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.product-teaser .pt-visual li::before { content: '—'; color: var(--brand-rose); }
.product-teaser h3 { font-size: 1.6rem; margin: 14px 0 16px; }
.product-teaser p { color: var(--text-secondary); }
.product-teaser .btn { margin-top: 28px; align-self: flex-start; }
.product-teaser.reverse { grid-template-columns: 1fr 1fr; }
.product-teaser.reverse .pt-visual { order: 2; }
.product-teaser.reverse .pt-content { order: 1; }

/* ---------- Listas com check ---------- */
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text-secondary);
}
.check-list li .dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-rose-soft);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}
html[data-theme="dark"] .check-list li .dot { background: rgba(204,157,128,0.18); color: var(--brand-rose-light); }

/* ---------- CTA final ---------- */
.cta-final {
  border-radius: var(--radius-lg);
  background: var(--brand-dark);
  color: var(--text-inverse);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(204,157,128,0.25), transparent 55%);
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { color: var(--text-inverse); font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 480px; }
.cta-final p { color: var(--text-inverse-muted); margin-top: 12px; max-width: 460px; }
.cta-final .btn-primary { background: var(--brand-rose); color: var(--brand-dark-2); }
.cta-final .btn-primary:hover { background: var(--brand-rose-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark-block);
  color: var(--text-inverse-muted);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 0.9fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246,239,232,0.12);
}
.footer-brand .brand-text strong { color: var(--text-inverse); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-inverse-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--brand-rose-light); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Página interna: header de seção ---------- */
.page-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 780px; }
.page-hero p.lead { margin-top: 20px; font-size: 1.08rem; color: var(--text-secondary); max-width: 620px; }
.page-hero .hero-actions { margin-top: 32px; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--brand-rose); }

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
}
.module-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.module-card ul { display: flex; flex-direction: column; gap: 10px; }
.module-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
}
.module-card li::before { content: '•'; color: var(--brand-rose); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-row .stat { text-align: left; }
.stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  color: var(--brand-rose);
}
.stat span { font-size: 0.85rem; color: var(--text-inverse-muted); }

.journey-track { display: flex; flex-direction: column; gap: 0; }
.journey-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
}
.journey-step:last-child { border-bottom: none; }
.journey-step .step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand-rose);
}
.journey-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.journey-step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Formulário de contato ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand-rose);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--text-secondary); margin-top: 6px; }
.contact-info-card {
  background: var(--brand-dark);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.contact-info-card h3 { color: var(--text-inverse); font-size: 1.3rem; margin-bottom: 18px; }
.contact-info-card .info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-card .info-item .card-icon { background: rgba(204,157,128,0.18); color: var(--brand-rose-light); width: 40px; height: 40px; margin-bottom: 0; flex: none; }
.contact-info-card .info-item div strong { display: block; font-size: 0.95rem; color: var(--text-inverse); }
.contact-info-card .info-item div span { font-size: 0.85rem; color: var(--text-inverse-muted); }

.form-success {
  display: none;
  background: var(--bg-surface-alt);
  border: 1px solid var(--brand-rose);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  font-size: 0.92rem;
}
.form-success.visible { display: block; }

/* ---------- Responsivo ---------- */
/* Breakpoint próprio do header: nav + marca + CTA precisam de ~1100px para caber sem quebrar */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-teaser, .product-teaser.reverse { grid-template-columns: 1fr; }
  .product-teaser.reverse .pt-visual { order: 1; }
  .product-teaser.reverse .pt-content { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .cta-final { padding: 40px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
  .section { padding: 64px 0; }
  .header-inner { min-height: 72px; }
  .brand-text span { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* Menu mobile */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-page);
}
.mobile-nav.open { display: flex; }
.mobile-nav > a {
  padding: 12px 8px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav > a:last-child { border-bottom: none; }
.mobile-nav > a.active { color: var(--brand-rose); }

.mobile-nav-group { border-bottom: 1px solid var(--border-soft); }
.mobile-nav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: inherit;
  padding: 12px 8px;
  font-size: 0.98rem;
  color: var(--text-secondary);
}
.mobile-nav-toggle svg { width: 14px; height: 14px; transition: transform var(--transition); }
.mobile-nav-group.open .mobile-nav-toggle svg { transform: rotate(180deg); }
.mobile-nav-sub {
  display: none;
  flex-direction: column;
  padding: 0 8px 12px 16px;
  gap: 2px;
}
.mobile-nav-group.open .mobile-nav-sub { display: flex; }
.mobile-nav-sub a {
  padding: 10px 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.mobile-nav-sub a.active { color: var(--brand-rose); }
