/* ============================================================
   DRA. TAIS MANDELSTAM — Design System
   Fontes  : Playfair Display (display) + Outfit (corpo)
   Acento  : Terracota quente (#A06438) — alinhado ao Instagram @drataispsiquiatra
   ============================================================ */

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

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --bg:        #FAF6F1;
  --bg-alt:    #F3EAE0;
  --bg-dark:   #1D1510;
  --bg-dark2:  #2A1E16;
  --rose:      #A06438;
  --rose-lt:   #C4895C;
  --rose-pale: #EDD3BC;
  --text:      #251C14;
  --muted:     #87776A;
  --border:    #E4D8CB;
  --white:     #FDFAF6;

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Outfit', system-ui, sans-serif;

  --max:  1300px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section: clamp(5rem, 9vw, 8.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* ─── SHARED UTILITIES ───────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
}

.rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--rose);
  flex-shrink: 0;
}
.rule--long { width: 5rem; }

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: var(--text);
}
.section-heading em { font-style: italic; color: var(--rose); }

.section-heading--lg {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
}

.section-body {
  font-size: clamp(0.88rem, 1.4vw, 0.96rem);
  line-height: 1.9;
  color: var(--muted);
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn--dark {
  color: var(--text);
  border-color: var(--text);
  background: transparent;
}
.btn--dark:hover { background: var(--text); color: var(--bg); }

.btn--fill-dark {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
.btn--fill-dark:hover { background: var(--rose); border-color: var(--rose); }

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

.btn--fill-rose {
  color: var(--white);
  background: var(--rose);
  border-color: var(--rose);
}
.btn--fill-rose:hover { background: var(--rose-lt); border-color: var(--rose-lt); }

.btn--light {
  color: var(--white);
  border-color: rgba(253,252,249,0.4);
  background: transparent;
}
.btn--light:hover {
  background: rgba(253,252,249,0.1);
  border-color: var(--white);
}

.btn--ghost-rose {
  color: var(--rose-pale);
  border-color: rgba(192,160,159,0.35);
  background: transparent;
}
.btn--ghost-rose:hover {
  background: rgba(155,123,122,0.15);
  border-color: var(--rose-lt);
  color: var(--white);
}

/* Arrow icon inside button */
.btn-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ─── NAV ────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
#nav.scrolled {
  background: rgba(29, 28, 26, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(155,123,122,0.15);
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--white);
  letter-spacing: 0.05em;
  display: block;
}
.nav-logo-sub {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-lt);
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253,252,249,0.6);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--rose-lt);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { right: 0; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  border: 1px solid rgba(155,123,122,0.2);
  min-width: 200px;
  padding: 1rem 0 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(253,252,249,0.6);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(155,123,122,0.12);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 199;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile a {
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-mobile a:hover { color: var(--rose-lt); }

/* ─── FOOTER ─────────────────────────────────────── */
#footer {
  background: #111010;
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(155,123,122,0.1);
}

.footer-brand-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.footer-brand-crm {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-lt);
  display: block;
  margin-bottom: 1.5rem;
}
.footer-brand-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(253,252,249,0.3);
  line-height: 1.6;
  max-width: 22rem;
}

.footer-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
  display: block;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col li {
  font-size: 0.82rem;
  color: rgba(253,252,249,0.4);
  line-height: 1.5;
}
.footer-col a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--rose-lt); }

.footer-bottom {
  padding: 1.75rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(253,252,249,0.2);
  letter-spacing: 0.05em;
}
.footer-legal {
  font-size: 0.7rem;
  color: rgba(155,123,122,0.35);
  letter-spacing: 0.1em;
}

/* ─── WHATSAPP FLOAT ─────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ─── INNER PAGE HERO (páginas internas) ─────────── */
.inner-hero {
  background: var(--bg-dark);
  padding: clamp(8rem, 15vw, 11rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(155,123,122,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.inner-hero-content { position: relative; z-index: 2; }
.inner-hero-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.inner-hero-label .eyebrow { color: var(--rose-lt); }
.inner-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.inner-hero h1 em { font-style: italic; color: var(--rose-lt); }
.inner-hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(253,252,249,0.55);
  max-width: 44rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.inner-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253,252,249,0.3);
  margin-bottom: 2.5rem;
}
.inner-hero-breadcrumb a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.inner-hero-breadcrumb a:hover { color: var(--rose-lt); }
.inner-hero-breadcrumb span { opacity: 0.4; }

/* ─── PHOTO PLACEHOLDER (remove quando tiver fotos) ─ */
.photo-ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-dark2) 0%, var(--bg-dark) 100%);
}
.photo-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(155,123,122,0.12);
}
.photo-ph-label {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(155,123,122,0.3);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ─── SCROLL REVEAL (GSAP hook classes) ──────────── */
.sr { opacity: 0; transform: translateY(32px); }
.sr-l { opacity: 0; transform: translateX(-32px); }
.sr-r { opacity: 0; transform: translateX(32px); }
.sr-s { opacity: 0; transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .sr, .sr-l, .sr-r, .sr-s {
    opacity: 1; transform: none; transition: none;
  }
}

/* ─── PAGE SECTION SPACING ───────────────────────── */
.section { padding: var(--section) 0; }
.section--dark { background: var(--bg-dark); }
.section--dark2 { background: var(--bg-dark2); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--white); }

/* ─── RESPONSIVE NAV ─────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}
