/* ==========================================================================
   Espaço Terapêutico Maria Rita — Design Tokens & Estilos Globais
   ========================================================================== */

:root {
  /* Cor — paleta oficial (folder institucional) + apoio */
  --navy: #0B355B;
  --navy-deep: #082744;
  --gold: #D4A83D;
  --gold-deep: #A9791F; /* variante mais escura para texto sobre creme (contraste AA) */
  --cream: #F7F0E6;
  --cream-soft: #FBF7F0;
  --white: #FFFFFF;
  --sage: #6E8B74;
  --sage-soft: #E4EAE1;
  --ink: #1F2A33;
  --ink-soft: #4A5560;
  --line: #E3D9C8;

  /* Tipografia */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Espaçamento */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 7rem;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -25px rgba(11, 53, 91, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

section { padding: var(--gap-xl) 0; }

/* Foco visível para acessibilidade */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.8em 1.4em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-deep); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #c79a30; }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-whatsapp { background: #1F7A54; color: var(--white); }
.btn-whatsapp:hover { background: #175f42; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 240, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  font-family: var(--font-display);
  color: var(--navy);
}
.brand-mark { width: 46px; height: auto; flex-shrink: 0; object-fit: contain; }
.brand-name { font-size: 1.15rem; line-height: 1.1; }
.brand-name span { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); font-family: var(--font-body); font-weight: 600; }

nav.main-nav { display: flex; align-items: center; gap: 1.6rem; }
nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 0.3em 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-deep);
  transition: width 0.25s ease;
}
nav.main-nav a:hover::after, nav.main-nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
}
.nav-toggle svg { width: 26px; height: 26px; }

.header-cta { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 880px) {
  nav.main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    background: var(--cream-soft);
    flex-direction: column;
    width: min(320px, 82vw);
    padding: 6rem 2rem 2rem;
    align-items: flex-start;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-lg);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-copy p.lead { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero-motif {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  opacity: 0;
  transform: scale(0.88);
  filter: drop-shadow(0 25px 40px rgba(11,53,91,0.18));
  animation: heroLogoIn 1.1s cubic-bezier(0.22,1,0.36,1) forwards 0.2s;
}
@keyframes heroLogoIn { to { opacity: 1; transform: scale(1); } }

.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,168,61,0.16), transparent 70%);
  z-index: 0;
}

/* ---------- Seção divisor (assinatura visual) ---------- */
.bloom-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto var(--gap-md);
  max-width: 220px;
}
.bloom-divider svg { width: 34px; height: 34px; }
.bloom-divider svg path { fill: none; stroke: var(--gold-deep); stroke-width: 1.6; }
.bloom-divider .rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- Sobre ---------- */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.values-list li { display: flex; gap: 0.8em; align-items: flex-start; }
.values-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--sage); margin-top: 0.2em; }

/* ---------- Especialidades ---------- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 950px) { .specialties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .specialties-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  border: 1px solid var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; color: var(--navy); }
.card h3 { margin-bottom: 0.4em; }
.card .tag { font-size: 0.82rem; color: var(--gold-deep); font-weight: 600; margin-bottom: 0.6em; }
.card p { flex: 1; }
.card .btn { margin-top: 1em; align-self: flex-start; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.8rem 1.5rem 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.4em;
}

/* ---------- Público ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 700px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}
.audience-card h3 { color: var(--white); }
.audience-card p { color: rgba(247,240,230,0.82); }
.audience-card.alt { background: var(--sage); }

/* ---------- Equipe ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; text-align: center; padding: 2rem 1.5rem; }
.team-photo {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--sage-soft);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
}
.team-photo svg { width: 42px; height: 42px; }
.placeholder-note { font-size: 0.85rem; color: var(--gold-deep); font-style: italic; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.5rem 1.3rem; color: var(--ink-soft); }

/* ---------- Contato ---------- */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1rem; }
.contact-info-list li { display: flex; gap: 0.9em; align-items: flex-start; }
.contact-info-list svg { width: 22px; height: 22px; color: var(--gold-deep); flex-shrink: 0; margin-top: 0.15em; }
.contact-info-list a { text-decoration: underline; text-decoration-color: var(--line); font-weight: 600; }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.4rem; }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

form.contact-form { display: grid; gap: 1.1rem; }
.form-field { display: grid; gap: 0.4em; }
.form-field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream-soft);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 90;
  background: #1F7A54;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(31,122,84,0.6);
  text-decoration: none;
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(247,240,230,0.85);
  padding: var(--gap-lg) 0 var(--gap-md);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: var(--gold); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1em; }
footer.site-footer a { color: rgba(247,240,230,0.85); text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6em; }
.footer-bottom {
  border-top: 1px solid rgba(247,240,230,0.15);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(247,240,230,0.55);
}
.footer-brand { display: flex; gap: 0.7em; align-items: center; margin-bottom: 1rem; }
.footer-brand .brand-mark { width: 40px; height: auto; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-deep);
  color: var(--cream);
  padding: 1.2rem 1.5rem;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: rgba(247,240,230,0.85); margin: 0; max-width: 62ch; font-size: 0.92rem; }
.cookie-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Página interna (especialidade) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(247,240,230,0.85); max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: rgba(247,240,230,0.65); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(247,240,230,0.85); text-decoration: underline; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-lg); }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
.info-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; align-self: start; position: sticky; top: 100px; }
.info-panel ul { padding-left: 1.2em; margin: 0 0 1em; color: var(--ink-soft); }
.info-panel .btn { width: 100%; margin-top: 0.6rem; }

.disclaimer-box {
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 1.6rem 0;
}

.insert-info {
  background: #FCEFD9;
  border: 1px dashed var(--gold-deep);
  color: var(--gold-deep);
  padding: 0.15em 0.5em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
}

.legal-content h2 { margin-top: 2em; }
.legal-content ul { color: var(--ink-soft); }
