/* ============================================================
   Adriana Leipnitz Hertcert — Psicóloga Clínica / Psicanalista
   Design system
   ============================================================ */

:root {
  --navy: #0C3A5B;
  --navy-dark: #082944;
  --gold-1: #BE9A3E;
  --gold-2: #E8C96A;
  --gold-3: #F4E3A1;
  --gold-4: #C9A44C;
  --gold-grad: linear-gradient(120deg, var(--gold-1), var(--gold-2), var(--gold-3), var(--gold-4));
  --cream: #FBF7EF;
  --sand: #F4EDDF;
  --white-warm: #FFFDF8;
  --ink: #2B2620;
  --ink-soft: #5B5548;
  --line: #E4DAC4;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(12, 58, 91, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(12, 58, 91, 0.25);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Cinzel", Georgia, serif;
  color: var(--ink);
  background: var(--white-warm);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cinzel", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--gold-1);
  font-weight: 600;
  display: inline-block;
  margin-bottom: .9em;
}

.section {
  padding: 88px 0;
}
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }
.section--navy {
  background: var(--navy);
  background-image: linear-gradient(160deg, var(--navy), var(--navy-dark));
  color: var(--sand);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #C9D6E0; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { max-width: 560px; margin-left: auto; margin-right: auto; }
.section-subtitle {
  color: var(--gold-1);
  font-size: 1rem;
  letter-spacing: .04em;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: "Cinzel", serif;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--gold-grad);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 58, 91, 0.96);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: 46px; border-radius: 50%; }
.brand-text {
  font-family: "Cinzel", serif;
  color: #fff;
  line-height: 1.25;
}
.brand-text strong { display: block; font-size: .95rem; letter-spacing: .03em; }
.brand-text span { display: block; font-size: .68rem; color: var(--gold-3); letter-spacing: .1em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: #E9EEF2;
  font-family: "Cinzel", serif;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-3); border-color: var(--gold-2); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: .82rem;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone svg { width: 16px; height: 16px; fill: var(--gold-3); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 0;
  padding: 128px 0 76px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,41,68,.55) 0%, rgba(8,41,68,.35) 45%, rgba(8,41,68,.75) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero h1 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); line-height: 1.3; }
.hero-inner { max-width: 720px; }
.hero-crp {
  font-family: "Cinzel", serif;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--gold-3);
  margin-bottom: 8px;
}
.hero-quote {
  font-size: 1rem;
  letter-spacing: .02em;
  color: #F2EBDA;
  border-left: 2px solid var(--gold-2);
  padding-left: 14px;
  margin: 16px 0 18px;
}
.hero p.lead { color: #E8EDF1; font-size: 1rem; margin-bottom: 18px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }

.hero-simple {
  padding: 96px 0 60px;
}
.hero-simple .hero-inner { max-width: 560px; }

.hero-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
}
.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #E8EDF1;
  font-size: .9rem;
}
.hero-list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-grad);
  margin-top: 7px;
  flex: none;
}

@media (min-width: 640px) {
  .hero-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- About / intro block ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.about-grid.reverse { grid-template-columns: 1.15fr 0.85fr; }
.about-grid.reverse .about-media { order: 2; }
.about-role {
  color: var(--gold-1);
  font-family: "Cinzel", serif;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.about-copy p,
.about-narrative p {
  font-size: .98rem;
}
.about-highlight {
  color: var(--navy);
  font-size: 1.18rem !important;
  line-height: 1.55;
  border-left: 2px solid var(--gold-1);
  padding-left: 18px;
  margin-bottom: 24px;
}
.about-narrative {
  max-width: 860px;
  margin: 0 auto;
}
.formation-block {
  margin: 42px 0 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white-warm);
  box-shadow: var(--shadow-sm);
}
.formation-block h2 {
  margin-bottom: 18px;
}
.formation-block ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}
.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #e9f7ee;
  color: #1f7a3f;
  font-family: "Cinzel", serif;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-inline:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.whatsapp-inline svg { width: 18px; height: 18px; fill: #1f7a3f; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius);
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  opacity: .06;
}
.cta-banner-text { position: relative; max-width: 620px; }
.cta-banner-text h2 { color: #fff; }
.cta-banner-text p { color: #C9D6E0; margin-bottom: 0; }
.cta-banner .btn { position: relative; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  background: var(--white-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
}
.step-num {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Cards / Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--white-warm);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { height: 190px; width: 100%; object-fit: cover; }
.card-body { padding: 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Cinzel", serif;
  font-size: .98rem;
  color: var(--navy);
}
.faq-q .plus {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--gold-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform .25s ease;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 680px; padding-bottom: 22px; }
.faq-a p { margin: 0; }

/* ---------- Clinic gallery ---------- */
.clinic-gallery-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 201, 106, .12), transparent 34%),
    linear-gradient(160deg, #082944 0%, #061f34 48%, #041927 100%);
  color: var(--sand);
  padding: 88px 0 96px;
}
.clinic-gallery-head {
  text-align: center;
  margin: 0 auto 34px;
}
.clinic-gallery-head h2 {
  color: #fff;
  margin-bottom: 0;
}
.clinic-carousel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  outline: none;
}
.clinic-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(232, 201, 106, .55);
  border-radius: var(--radius);
}
.clinic-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(4, 25, 39, .82);
  border: 1px solid rgba(232, 201, 106, .24);
  box-shadow: 0 28px 70px -34px rgba(0, 0, 0, .85);
  cursor: grab;
  touch-action: pan-y;
}
.clinic-carousel-viewport.is-dragging {
  cursor: grabbing;
}
.clinic-carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.clinic-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: clamp(10px, 2vw, 18px);
  aspect-ratio: 16 / 10;
  min-height: 420px;
  max-height: 680px;
  display: grid;
  place-items: center;
}
.clinic-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px);
  user-select: none;
  pointer-events: none;
}
.clinic-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 106, .42);
  background: rgba(8, 41, 68, .82);
  color: var(--gold-3);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .95);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.clinic-carousel-btn:hover,
.clinic-carousel-btn:focus-visible {
  background: var(--gold-2);
  color: var(--navy-dark);
  transform: translateY(-50%) scale(1.04);
}
.clinic-carousel-btn--prev { left: 18px; }
.clinic-carousel-btn--next { right: 18px; }
.clinic-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.clinic-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 106, .62);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.clinic-carousel-dots button[aria-current="true"] {
  background: var(--gold-2);
  transform: scale(1.22);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.form-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 26px;
}
.contact-card h3 { color: #fff; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-card li { display: flex; gap: 12px; align-items: flex-start; color: #DCE6EC; min-width: 0; }
.contact-card li > span, .contact-card li > a { min-width: 0; overflow-wrap: break-word; }
.contact-card svg { width: 18px; height: 18px; fill: var(--gold-3); flex: none; margin-top: 3px; }
.contact-card a { color: #fff; }

.site-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: "Cinzel", serif;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
}
.field .optional { color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-size: .78rem; }
.field input, .field textarea {
  font-size: .92rem;
  letter-spacing: .015em;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white-warm);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px rgba(190,154,62,.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.site-form .btn { justify-self: start; border: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #C9D6E0;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { height: 52px; width: 52px; border-radius: 50%; flex: none; }
.footer-brand h4 { color: #fff; margin-bottom: 4px; font-size: 1.05rem; }
.footer-brand p { color: #A9BBC7; margin-bottom: 0; font-size: .92rem; }
.site-footer h5 {
  font-family: "Cinzel", serif;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-list li { min-width: 0; }
.footer-list a, .footer-list span {
  color: #C9D6E0;
  font-size: .92rem;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-width: 0;
  overflow-wrap: break-word;
}
.footer-list svg { width: 16px; height: 16px; fill: var(--gold-3); flex: none; margin-top: 3px; }
.footer-list a:hover { color: var(--gold-3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 44px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #8FA3B0;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .about-grid.reverse { grid-template-columns: 1fr; }
  .about-grid.reverse .about-media { order: 0; }
  .steps, .cards, .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .main-nav { display: none; }
  .header-phone span { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 18px 24px 26px;
    gap: 16px;
  }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
  .clinic-slide { min-height: 340px; aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .btn { white-space: normal; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { padding: 108px 0 56px; }
  .cta-banner { padding: 32px 20px; }
  .formation-block { padding: 26px 22px; }
  .clinic-gallery-section { padding: 64px 0 72px; }
  .clinic-slide { min-height: 280px; padding: 8px; }
  .clinic-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.65rem;
  }
  .clinic-carousel-btn--prev { left: 10px; }
  .clinic-carousel-btn--next { right: 10px; }
}
