/* La Vie Saúde Integrada — Design System v2 "Premium Espresso" */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:         #F5F1E9;
  --surface:    #FFFFFF;
  --surface-2:  #FAF5EC;
  --ink:        #221F1A;
  --muted:      #6B6357;
  --line:       #E5DCCB;
  --gold:       #B68A45;
  --gold-ink:   #221F1A;
  --hero-bg:    #221F1A;
  --hero-ink:   #F4EDDE;
  --hero-muted: #B5AC99;
  --hero-line:  #3C372E;
  --radius:     3px;
  --radius-lg:  4px;
  --font-d:     'Marcellus', Georgia, serif;
  --font-b:     'Hanken Grotesk', system-ui, sans-serif;
  --max-w:      1180px;
  --nav-h:      72px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 46px; }
.logo-dark { display: none; }
.scrolled .logo-light { display: none; }
.scrolled .logo-dark  { display: block; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hero-ink);
  text-transform: uppercase;
  transition: color 0.2s;
}
.scrolled .nav-links a        { color: var(--muted); }
.nav-links a:hover            { color: var(--gold); }
.scrolled .nav-links a:hover  { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--hero-ink);
  display: block;
  transition: background 0.2s;
}
.scrolled .nav-toggle span { background: var(--ink); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--hero-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-content {
  padding: 5rem 3rem 5rem 4rem;
  max-width: 600px;
}
.hero-location {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--hero-ink);
  letter-spacing: 0.005em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-tagline {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--hero-muted);
  max-width: 38ch;
  margin-bottom: 2.5rem;
}
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.88; }

.btn-outline-light {
  display: inline-block;
  border: 1px solid var(--hero-line);
  color: var(--hero-ink);
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.hero-photo {
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: 6rem 2rem; }
.section--surface   { background: var(--surface); }
.section--surface-2 { background: var(--surface-2); }
.section--dark { background: var(--hero-bg); color: var(--hero-ink); }

.inner { max-width: var(--max-w); margin: 0 auto; }

.section-heading { margin-bottom: 3.5rem; }
.section-heading h2 {
  font-family: var(--font-d);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.2;
  color: var(--ink);
}
.section-heading p {
  margin-top: 0.875rem;
  color: var(--muted);
  max-width: 58ch;
}
.section--dark .section-heading h2 { color: var(--hero-ink); }
.section--dark .section-heading p  { color: var(--hero-muted); }

/* ── A clínica ───────────────────────────────────────────────────── */
.clinica-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.clinica-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.clinica-gallery .img-main {
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.clinica-gallery img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.clinica-text h2 {
  font-family: var(--font-d);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.clinica-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.clinica-text p:last-child { margin-bottom: 0; }

/* ── Profissionais ───────────────────────────────────────────────── */
.profissionais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.lv-prof-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.lv-prof-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.lv-prof-info { padding: 1.25rem 1.5rem; }
.lv-prof-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.lv-prof-name {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.lv-prof-sub {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.lv-prof-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold);
  transition: opacity 0.2s;
}
.lv-prof-link:hover { opacity: 0.8; }

/* ── Convênios ───────────────────────────────────────────────────── */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.convenio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.convenio-logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.convenio-logo img { max-height: 72px; max-width: 100%; object-fit: contain; }
.convenio-name { font-weight: 600; font-size: 0.875rem; color: var(--ink); margin-bottom: 0.25rem; }
.convenio-cat  { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.75rem; }
.convenio-link { font-size: 0.8125rem; font-weight: 700; color: var(--gold); margin-top: auto; }

/* ── Contato cards ───────────────────────────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--gold); transform: translateX(2px); }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hero-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-muted);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-value { font-size: 0.9375rem; color: var(--hero-ink); font-weight: 500; }

.contact-map-form {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 2rem;
  align-items: start;
}
.contact-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
}
.contact-info p {
  color: var(--hero-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}
.contact-info strong { color: var(--hero-ink); }
.contact-info a { color: var(--gold); }

/* ── Footer bar ──────────────────────────────────────────────────── */
.footer-bar {
  background: var(--hero-bg);
  border-top: 1px solid var(--hero-line);
  padding: 2rem;
  text-align: center;
}
.footer-bar img { height: 48px; margin: 0 auto 0.75rem; }
.footer-bar p   { font-size: 0.8125rem; color: var(--hero-muted); }
.footer-bar a   { display: inline-block; }

/* ── WhatsApp FAB ────────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; }

/* ── Specialty pages ─────────────────────────────────────────────── */
.page-hero {
  background: var(--hero-bg);
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
}
.page-hero .inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero .breadcrumb {
  font-size: 0.8125rem;
  color: var(--hero-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--hero-ink);
  letter-spacing: 0.005em;
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: balance;
}
.page-hero .subtitle {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--hero-muted);
  max-width: 60ch;
  line-height: 1.6;
}
.page-hero .cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.specialty-body {
  padding: 5rem 2rem;
  background: var(--bg);
}
.specialty-body .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.spec-main h2 {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.2;
}
.spec-main h2:first-child { margin-top: 0; }
.spec-main p  { color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }
.spec-main ul { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1rem; line-height: 1.8; list-style: disc; }

.spec-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }

.spec-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.spec-box h3 {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.spec-box ul { list-style: none; padding: 0; }
.spec-box li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.spec-box li:last-child { border-bottom: none; }
.spec-box li::before { content: "—"; color: var(--gold); flex-shrink: 0; }

.spec-cta-dark {
  background: var(--hero-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.spec-cta-dark h3 {
  font-family: var(--font-d);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--hero-ink);
  margin-bottom: 0.75rem;
}
.spec-cta-dark p {
  color: var(--hero-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.spec-cta-dark .btn-gold { display: block; text-align: center; }

.spec-note {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 3rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-section { margin-top: 3rem; }
.faq-section h2 {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2rem;
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.5;
}
.faq-q::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
}
.faq-item.open .faq-a { display: block; }

/* ── Specialty CTA section ───────────────────────────────────────── */
.spec-contact {
  text-align: center;
  padding: 3rem 0;
}
.spec-contact h2 {
  font-family: var(--font-d);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--hero-ink);
  margin-bottom: 1rem;
}
.spec-contact p {
  color: var(--hero-muted);
  margin-bottom: 2rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.spec-contact .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content { padding: 4rem 2rem 3rem; max-width: 100%; }
  .hero-photo { height: 55vw; min-height: auto; }

  .clinica-grid { grid-template-columns: 1fr; }
  .clinica-gallery { grid-template-columns: 1fr; }
  .clinica-gallery .img-main { height: 240px; }
  .clinica-gallery img { display: none; }
  .clinica-gallery .img-main { display: block; }

  .contact-cards { grid-template-columns: 1fr; }
  .contact-map-form { grid-template-columns: 1fr; }

  .specialty-body .inner { grid-template-columns: 1fr; }
  .spec-sidebar { position: static; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--hero-bg);
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    border-top: 1px solid var(--hero-line);
  }
  .nav-links.open { display: flex; }
  .scrolled .nav-links { background: var(--surface); }
  .scrolled .nav-links a { color: var(--ink); }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .convenios-grid { grid-template-columns: 1fr 1fr; }
  .profissionais-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
