:root {
  --ink: #1c2a37;
  --muted: #586775;
  --navy: #1d3142;
  --navy-deep: #15232f;
  --brand: #445b74;
  --brand-soft: #e7edf2;
  --paper: #f6f4ef;
  --line: #dde2e6;
  --whatsapp: #1b7a50;
  --whatsapp-hover: #15643f;
  --radius: 6px;
  --sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h2 { font-size: clamp(30px, 3.4vw, 44px); }

:focus-visible { outline: 3px solid #7aa0c2; outline-offset: 2px; }

.container { width: min(var(--wrap), 100% - 64px); margin-inline: auto; }
.nowrap, a[href^="tel:"] { white-space: nowrap; }
.section { padding: clamp(72px, 9vw, 112px) 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: #fff; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #2c4559; }
.btn-outline { border-color: #b9c4cd; color: var(--navy); }
.btn-outline svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.btn-outline:hover { border-color: var(--navy); }
.btn-whatsapp { width: 100%; background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); }

.text-link {
  font-weight: 600; color: var(--brand);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--navy); }

/* Barra superior */
.topbar { background: var(--navy); color: #d5dee6; font-size: 13.5px; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.status { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fa3b5; }
.status.is-open .status-dot { background: #4cc38a; }
.status.is-open { color: #fff; }
.topbar-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(21, 35, 47, .07); }
.header-inner { height: 78px; display: flex; align-items: center; gap: 28px; }
.brand img { width: 176px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: #34475a; }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-cta { display: none; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--navy); white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.header-cta { min-height: 44px; padding: 10px 18px; font-size: 14.5px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px; padding: 0;
  background: none; border: 0; border-radius: var(--radius);
}
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 6px auto; background: var(--navy); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { background: var(--paper); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px);
  align-items: center; padding: 56px 0;
}
.hero-place { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 4.2vw, 54px); max-width: 13em; margin-bottom: 22px; }
.hero-lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-hours {
  display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 44px 0 0;
  padding-top: 24px; border-top: 1px solid #d9d6cf;
}
.hero-hours dt { font-size: 14px; color: var(--muted); }
.hero-hours dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; color: var(--navy); }
.hero-photo { border-radius: var(--radius); overflow: hidden; background: #dfe5e8; aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

/* Serviços */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px;
}
.section-head p { font-size: 17px; color: var(--muted); max-width: 30em; }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service { display: flex; flex-direction: column; background: #fff; padding: 30px 28px 28px; transition: background-color .2s; }
.service:hover { background: #fafaf8; }
.service h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.service p { font-size: 15.5px; color: var(--muted); margin-bottom: 22px; }
.service a {
  margin-top: auto; align-self: flex-start;
  font-size: 15px; font-weight: 600; color: var(--brand);
  text-decoration: underline; text-decoration-color: #b3c0cc; text-underline-offset: 4px;
}
.service a:hover { color: var(--navy); text-decoration-color: currentColor; }

/* A clínica */
.about { background: var(--paper); padding: clamp(72px, 9vw, 112px) 0 56px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-kicker { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.about-text h2 { margin-bottom: 22px; max-width: 15em; }
.about-text > p:not(.about-kicker) { color: var(--muted); font-size: 17px; margin-bottom: 14px; max-width: 34em; }
.about-text .text-link { display: inline-block; margin-top: 12px; }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #dfe5e8; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(48px, 6vw, 72px);
  background: #dcd8cf; border: 1px solid #dcd8cf; border-radius: var(--radius); overflow: hidden;
}
.pillars li { background: #fbfaf7; padding: 28px 26px 30px; }
.pillars svg {
  width: 28px; height: 28px; margin-bottom: 18px;
  fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.pillars h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.pillars p { font-size: 15px; color: var(--muted); }

.photo-band { background: var(--paper); padding: 0 0 clamp(72px, 9vw, 112px); }
.photo-band-grid { display: grid; grid-template-columns: 1.25fr 1fr .7fr; gap: 16px; }
.photo-band img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }
.photo-band img:nth-child(1) { object-position: 50% 45%; }
.photo-band img:nth-child(3) { object-position: 50% 30%; }

/* Perguntas */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq-side h2 { margin-bottom: 16px; }
.faq-side p { color: var(--muted); font-size: 17px; }
.faq-side p a { color: var(--navy); font-weight: 600; }
.faq-side img { margin-top: 36px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0; font-size: 18px; font-weight: 600; color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 14px; height: 2px; background: var(--brand); transition: transform .2s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--muted); }
.faq-list details p a { color: var(--navy); font-weight: 600; }

/* Marcação */
.booking { background: var(--navy); color: #d8e1e8; }
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.booking h2 { color: #fff; margin-bottom: 18px; }
.booking-text > p { font-size: 17px; max-width: 28em; }
.booking-alt { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.booking-alt p { font-size: 15px; }
.booking-alt a { display: inline-block; margin: 2px 0 6px; font-family: var(--serif); font-size: 30px; font-weight: 600; color: #fff; text-decoration: none; }
.booking-alt a:hover { text-decoration: underline; text-underline-offset: 6px; }
.booking-alt .booking-alt-hours { color: #a9b8c5; font-size: 14px; }

.booking-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 600; color: var(--navy); }
.optional { font-weight: 400; font-size: 13.5px; color: #7d8a96; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; background: #fff;
  border: 1px solid #c7d0d8; border-radius: var(--radius);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #7aa0c2; outline-offset: 0; border-color: #7aa0c2; }
.field [aria-invalid="true"] { border-color: #b4412e; }
.field textarea::placeholder { color: #98a4ae; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { margin: -4px 0 14px; font-size: 14.5px; color: #b4412e; }
.booking-form .btn-whatsapp { margin-top: 6px; min-height: 54px; font-size: 16px; }
.booking-form .btn-whatsapp svg { width: 22px; height: 22px; }

/* Contactos */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact-info h2 { margin-bottom: 22px; }
.contact-info address { font-style: normal; font-size: 18px; line-height: 1.55; margin-bottom: 10px; }
.hours { width: 100%; margin: 32px 0; border-collapse: collapse; font-size: 15.5px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours th { text-align: left; font-weight: 500; color: var(--muted); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--navy); font-weight: 700; }
.hours tr.is-today th::after { content: ' · hoje'; font-weight: 500; color: var(--brand); }
.contact-lines li { display: flex; flex-direction: column; margin-bottom: 14px; }
.contact-lines span { font-size: 14px; color: var(--muted); }
.contact-lines a { font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.map { min-height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--brand-soft); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }

/* Rodapé */
.contact { padding-bottom: clamp(120px, 13vw, 168px); }
.footer { background: var(--navy-deep); color: #b3c1cd; font-size: 15px; padding-bottom: 28px; }

.footer-cta {
  position: relative; top: -64px; margin-bottom: -24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: 40px 48px; border-radius: 10px;
  background: var(--brand); color: #dbe4ec;
  box-shadow: 0 24px 48px rgba(21, 35, 47, .18);
}
.footer-cta-title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.2; color: #fff; margin-bottom: 6px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta .btn-whatsapp { width: auto; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.btn-light:hover { background: var(--brand-soft); }

.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr 1.1fr 1.1fr; gap: 48px; padding: 40px 0 56px; }
.footer-name { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; color: #fff; margin-bottom: 12px; }
.footer-about > p:not(.footer-name) { max-width: 22em; line-height: 1.65; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #fff;
  transition: background-color .2s, border-color .2s;
}
.social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contacts li { display: flex; flex-direction: column; margin-bottom: 14px; }
.footer-contacts span { font-size: 13px; color: #7f93a4; }
.footer-contacts a { color: #fff; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.footer-contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-hours { margin: 0; }
.footer-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-hours div:first-child { padding-top: 0; }
.footer-hours dd { margin: 0; color: #fff; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer-status { margin-top: 16px; font-size: 14px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #7f93a4;
}

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 6px 20px rgba(14, 50, 34, .3);
  transition: background-color .2s;
}
.whatsapp-float:hover { background: var(--whatsapp-hover); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Responsivo */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .header-phone { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 32px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(21, 35, 47, .08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid #eef1f3; }
  .nav .nav-cta { display: block; margin-top: 16px; padding: 14px; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff; text-align: center; font-weight: 600; }
  .header-cta { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 0; gap: 40px; }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
  .hero-photo img { object-position: 50% 72%; }

  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .faq-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .faq-side img { display: none; }
  .map, .map iframe { min-height: 360px; }
  .footer-cta { padding: 32px; top: -52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .topbar-inner { justify-content: center; }
  .topbar-contact { display: none; }
  .header-inner { height: 68px; gap: 12px; }
  .brand img { width: 150px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .nav { padding: 4px 18px 20px; }

  .hero-grid { padding-top: 36px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-hours { gap: 12px 28px; margin-top: 32px; }
  .hero-photo { margin: 0 -18px; border-radius: 0; }

  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 24px 20px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 16px; padding: 22px 20px; }
  .pillars svg { grid-row: span 2; margin: 0; }
  .photo-band-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-band img { height: 200px; }
  .photo-band img:nth-child(3) { display: none; }
  .faq-list summary { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .booking-alt a { font-size: 26px; }
  .footer-cta { padding: 28px 22px; top: -40px; margin-bottom: -12px; }
  .footer-cta-actions, .footer-cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 40px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer-bottom { padding-bottom: 64px; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
