/* ============================================================
   Gisele Sousa — Psicanálise Clínica
   Design tokens
   ============================================================ */

:root {
  /* Palette */
  --wine: #5E2233;
  --wine-deep: #401621;
  --wine-soft: #7A3A4A;
  --gold: #A9793F;
  --gold-soft: #C9A876;
  --nude: #E7D6C4;
  --cream: #FAF5EE;
  --paper: #F3E9DD;
  --ink: #2B211D;
  --ink-soft: #5A4C45;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  /* Rhythm */
  --edge: clamp(1.5rem, 5vw, 5rem);
  --max: 1180px;
}

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

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--wine-deep);
  margin: 0;
  letter-spacing: -0.01em;
}

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

.rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 1.4rem 0;
}

.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--wine);
  color: var(--cream);
}
.btn-primary:hover { background: var(--wine-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}
.btn-outline:hover { background: var(--wine); color: var(--cream); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250,245,238,0.55);
}
.btn-ghost:hover { border-color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.0);
  padding: 1.4rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(250, 245, 238, 0.94);
  backdrop-filter: blur(6px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 rgba(43,33,29,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}
.site-header.scrolled .brand { color: var(--wine-deep); }
.brand strong { font-weight: 600; }

.nav-links {
  display: flex;
  gap: 2.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.4s ease, opacity 0.2s ease;
  opacity: 0.92;
}
.nav-links a:hover { opacity: 1; }
.site-header.scrolled .nav-links a { color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--wine-deep);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8.5rem var(--edge) 4rem;
  color: var(--cream);
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  max-width: 30ch;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.14;
  max-width: 15ch;
}
.hero-lede {
  margin-top: 1.6rem;
  max-width: 46ch;
  color: var(--nude);
  font-size: 1.12rem;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-availability {
  margin-top: 3rem;
  color: var(--nude);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.02);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--wine-deep) 0%, rgba(64,22,33,0.15) 22%, rgba(64,22,33,0) 45%);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(64,22,33,0.55) 0%, rgba(64,22,33,0) 30%),
    linear-gradient(180deg, rgba(64,22,33,0.45) 0%, rgba(64,22,33,0) 18%);
  z-index: 1;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 6.5rem 0; }
.section-tight { padding: 4rem 0; }
.section-alt { background: var(--paper); }
.section-wine { background: var(--wine-deep); color: var(--cream); }
.section-wine h2, .section-wine h3 { color: var(--cream); }

.kicker {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gold);
  font-weight: 600;
}
.section-wine .kicker { color: var(--gold-soft); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.22;
  margin-top: 0.6rem;
}

/* ---------- Manifesto / quote ---------- */
.manifesto {
  padding: 7rem 0;
  background: var(--wine);
  color: var(--cream);
  text-align: left;
}
.manifesto blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.4;
  max-width: 20ch;
}
.manifesto cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--nude);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  border-radius: 2px;
}
.about-photo .rule-frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  z-index: -1;
}
.about-photo-wrap { position: relative; }

.about-copy p { color: var(--ink-soft); font-size: 1.03rem; }
.about-copy p + p { margin-top: 1.1rem; }

.credentials {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.85rem;
}
.credentials div {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(94,34,51,0.15);
  padding-top: 0.85rem;
}
.credentials span.label {
  flex: 0 0 130px;
  color: var(--wine);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Identify block (checklist) ---------- */
.identify-block {
  max-width: 640px;
  padding: 2.4rem 2.6rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}
.identify-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--wine-deep);
  margin: 0 0 1.3rem;
}
.identify-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.identify-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.identify-list li + li { margin-top: 0.7rem; }
.identify-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.identify-close {
  margin: 1.6rem 0 0;
  color: var(--wine-deep);
  font-size: 0.98rem;
  font-style: italic;
}

/* ---------- Method / process ---------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}
.method-step {
  padding-top: 1.6rem;
  border-top: 2px solid var(--gold);
}
.method-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.method-step p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  align-items: start;
}
.testimonial-card {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
}
.testimonial-card .tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.testimonial-card .quote {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--wine-deep);
  margin: 0 0 1.4rem;
  flex: 1;
}
.testimonial-card .who {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Practical info / logistics ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(43,33,29,0.12);
  font-size: 0.96rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.info-card li span.k { color: var(--ink); }

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.location-card {
  padding: 2rem;
  background: var(--paper);
  border-left: 3px solid var(--wine);
}
.location-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.location-card p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.location-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}
.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.office-gallery img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-top: 3px solid var(--gold);
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 7rem 0;
  background: var(--wine-deep);
  color: var(--cream);
  text-align: center;
}
.final-cta h2 {
  color: var(--cream);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 18ch;
  margin: 0 auto;
  line-height: 1.25;
}
.final-cta p {
  max-width: 46ch;
  margin: 1.3rem auto 2.3rem;
  color: var(--nude);
}
.final-cta .rule { margin-left: auto; margin-right: auto; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  background: var(--wine);
  color: var(--cream);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(64,22,33,0.35);
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
.wa-float:hover { background: var(--wine-deep); transform: translateY(-3px); }
.wa-float svg { width: 25px; height: 25px; }
.wa-float.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
}
@media (max-width: 720px) {
  .wa-float { width: 50px; height: 50px; right: 1rem; bottom: 1rem; }
  .wa-float svg { width: 22px; height: 22px; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--wine-deep);
  color: var(--nude);
  padding: 3.2rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250,245,238,0.15);
}
footer .brand { color: var(--cream); font-size: 1.1rem; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: var(--nude); opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  opacity: 0.75;
  font-size: 0.82rem;
}

/* ---------- Reveal animation (single orchestrated entrance) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; height: 56vh; }
  .hero-copy { padding-top: 2.4rem; }
  .about-grid, .location-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .office-gallery { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; gap: 2rem; }
  .diff-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .testimonials { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .identify-block { padding: 2rem 1.6rem; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--wine-deep);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--cream); font-size: 1.15rem; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 70;
    line-height: 1;
  }
  .site-header.scrolled .nav-toggle { color: var(--wine-deep); }
}
