/* ===== Tokens ===== */
:root {
  --ink-night: #211823;
  --dawn-violet: #5B3A56;
  --ember-gold: #CDA15A;
  --ember-gold-bright: #E4BC7A;
  --terracotta: #C36F52;
  --terracotta-text: #A05339;
  --deep-teal: #2E6862;
  --clay-light: #F1E3D6;
  --clay-lighter: #F8F0E8;
  --ink-text: #2B2016;
  --ink-text-soft: #5A4C42;
  --cream-text: #F3E9DD;
  --cream-text-soft: #CBB8AE;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1120px;
  --radius: 18px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0s; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--clay-lighter);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.section, .hero { scroll-margin-top: 76px; }

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

a { color: inherit; }

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

.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: 1rem; top: -60px;
  background: var(--ember-gold);
  color: var(--ink-night);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--ember-gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--ember-gold-bright); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--deep-teal);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(46,104,98,0.55);
}
.btn-primary:hover { background: #275b56; }

.btn-ghost {
  color: var(--cream-text);
  border-color: rgba(243,233,221,0.4);
}
.btn-ghost:hover { border-color: var(--ember-gold-bright); color: var(--ember-gold-bright); }

.btn-outline {
  color: var(--ink-text);
  border-color: rgba(43,32,22,0.25);
  background: transparent;
}
.btn-outline:hover { border-color: var(--terracotta-text); color: var(--terracotta-text); }

.btn-large { padding: 1em 1.9em; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(33,24,35,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228,188,122,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(228,188,122,0.5);
}
.brand-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--cream-text);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  text-decoration: none;
  color: var(--cream-text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--ember-gold-bright); }
.nav-cta {
  background: var(--ember-gold);
  color: var(--ink-night) !important;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--ember-gold-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle-bar {
  width: 24px; height: 2px;
  background: var(--cream-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (signature: amanhecer) ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg,
    var(--ink-night) 0%,
    var(--dawn-violet) 45%,
    var(--terracotta) 78%,
    var(--ember-gold-bright) 100%);
  background-size: 100% 220%;
  animation: dawn-shift 16s ease-in-out infinite alternate;
}
@keyframes dawn-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sky { animation: none; background-position: 0% 35%; }
}
.hero-sun {
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 480px; height: 480px;
  margin-left: -240px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--ember-gold-bright), var(--ember-gold) 55%, transparent 78%);
  opacity: 0.85;
  animation: sunrise 16s ease-in-out infinite alternate;
  filter: blur(1px);
}
@keyframes sunrise {
  0% { transform: translateY(60px) scale(0.85); opacity: 0.55; }
  100% { transform: translateY(-40px) scale(1); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sun { animation: none; transform: translateY(0) scale(0.95); }
}
.hero-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--deep-teal), var(--ember-gold), var(--terracotta));
  z-index: -1;
}

.hero-inner {
  position: relative;
  padding-top: 76px;
  max-width: 760px;
}
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -2rem -3rem;
  z-index: -1;
  background: radial-gradient(ellipse 70% 65% at 30% 45%, rgba(33,24,35,0.5), transparent 72%);
}
.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  text-shadow: 0 4px 30px rgba(33,24,35,0.4);
}
.hero-title em {
  font-style: italic;
  color: var(--ember-gold-bright);
}
.hero-sub {
  color: var(--cream-text);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2em;
  text-shadow: 0 2px 16px rgba(33,24,35,0.5);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Sections ===== */
.section { padding: 6.5rem 0; }
.section-light { background: var(--clay-lighter); }
.section-dark { background: var(--ink-night); }
.section-title-light { color: var(--cream-text); }

.horizon-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--ember-gold), var(--deep-teal));
}

/* Sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: center;
}
.sobre-photo-frame {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--clay-light);
  box-shadow: 0 20px 50px -20px rgba(43,32,22,0.35);
  margin: 0 auto;
}
.sobre-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.sobre-photo-caption {
  text-align: center;
  font-size: 0.92rem;
  margin-top: 1.2rem;
  color: var(--ink-text-soft);
}
.sobre-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink-text); }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.tag-list li {
  background: var(--clay-light);
  color: var(--ink-text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5em 1em;
  border-radius: 999px;
  border: 1px solid rgba(195,111,82,0.25);
}

/* Abordagens */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.approach-card {
  background: rgba(243,233,221,0.05);
  border: 1px solid rgba(243,233,221,0.12);
  border-left: 4px solid var(--ember-gold);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), background var(--transition);
}
.approach-card:hover { transform: translateY(-6px); background: rgba(243,233,221,0.08); }
.approach-card h3 {
  color: var(--cream-text);
  font-size: 1.3rem;
  margin-bottom: 0.6em;
}
.approach-card p { color: var(--cream-text-soft); margin: 0; }
.approach-card--sistemica { border-left-color: var(--terracotta); }
.approach-card--psicodrama { border-left-color: var(--ember-gold); }
.approach-card--comportamental { border-left-color: var(--deep-teal); }

/* Convenios */
.convenios-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.convenios-inner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.convenio-badge {
  background: var(--ink-night);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(205,161,90,0.3);
}
.convenio-badge-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-gold-bright);
  margin-bottom: 0.6em;
}
.convenio-badge-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream-text);
}

/* Localizacao */
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.local-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.local-text address {
  font-style: normal;
  color: var(--cream-text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1em;
}
.local-note { color: var(--cream-text-soft); }
.map-illustration {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(205,161,90,0.25);
}
.map-caption {
  font-size: 0.82rem;
  color: var(--cream-text-soft);
  margin-top: 0.8rem;
  margin-bottom: 0;
}

/* Contato */
.contato-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.contato-inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.contato-sub { max-width: 50ch; margin: 0 auto 2em; }
.contato-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.social-proof {
  font-size: 0.9rem;
  color: var(--ink-text-soft);
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-night);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(243,233,221,0.12);
}
.footer-address {
  font-style: normal;
  color: var(--cream-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--cream-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--ember-gold-bright); }
.footer-fine {
  text-align: center;
  color: var(--cream-text-soft);
  font-size: 0.8rem;
  margin: 1.5rem 0 0;
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px; height: 58px;
  background: var(--deep-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(46,104,98,0.6);
  z-index: 90;
  transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sobre-grid, .convenios-inner, .local-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid { grid-template-columns: 1fr; }
  .convenio-badge { justify-self: start; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(33,24,35,0.97);
    backdrop-filter: blur(14px);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
  }
  .nav.is-open { max-height: 420px; padding: 0.5rem 1.5rem 1.5rem; }
  .nav a {
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(243,233,221,0.08);
  }
  .nav-cta { margin-top: 0.85rem; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.4rem; }
  .section { padding: 4.5rem 0; }
  .whatsapp-fab { right: 1rem; bottom: 1rem; }
}
