/* ============================================================
   Clínica Dr. Emerson Monteiro — Design System
   Navy + ice-blue premium medical identity
   ============================================================ */

:root {
  --navy-900: #101a3d;
  --navy-800: #16224f;
  --navy-700: #1e2d66;
  --navy-600: #29397e;
  --royal: #3b57b0;
  --sky: #7d96d8;
  --ice-200: #dbe3f5;
  --ice-100: #edf1fa;
  --ice-50: #f7f9fd;
  --white: #ffffff;
  --gold: #b9995f;
  --gold-soft: #d8c39a;
  --ink: #232a3d;
  --ink-soft: #5b6478;
  --whatsapp: #1fa855;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Cinzel", Georgia, serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-soft: 0 18px 50px -18px rgba(16, 26, 61, 0.25);
  --shadow-card: 0 10px 34px -14px rgba(16, 26, 61, 0.18);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--royal); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; color: var(--navy-800); line-height: 1.14; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--royal);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Topbar + Header ---------- */

.topbar {
  background: var(--navy-900); color: #c4cfec;
  font-size: 0.82rem; padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e6ebf8; font-weight: 600; }
.topbar span { white-space: nowrap; }
.portal-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  padding: 3px 14px; font-weight: 700; font-size: 0.78rem;
  color: #fff !important; letter-spacing: 0.04em; white-space: nowrap;
  transition: 0.2s; background: rgba(255, 255, 255, 0.06);
}
.portal-pill:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900) !important; }
.portal-pill svg { flex: none; }

header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ice-200);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand svg { flex: none; }
.brand .logo-mark { height: 54px; width: auto; flex: none; }
.logo-mark-footer { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.brand .name {
  font-family: var(--font-brand); font-weight: 700;
  color: var(--navy-800); font-size: 0.92rem; letter-spacing: 0.03em;
  line-height: 1.2; white-space: nowrap;
}
.brand .name small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--royal); margin-top: 3px;
}

nav.main { display: flex; align-items: center; gap: 20px; }
nav.main a {
  color: var(--ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: 0.2s;
}
nav.main a:hover { color: var(--royal); }
nav.main a.active { color: var(--royal); border-bottom-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  transition: 0.22s; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--navy-700); color: var(--white); }
.btn-primary:hover { background: var(--royal); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-800); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #179047; transform: translateY(-1px); }
.btn svg { flex: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */

.hero {
  position: relative; color: var(--white);
  background: linear-gradient(115deg, rgba(13, 21, 51, 0.94) 0%, rgba(22, 34, 79, 0.82) 45%, rgba(30, 45, 102, 0.42) 100%),
    var(--hero-img, url("../assets/clinica-recepcao.jpg")) center / cover no-repeat;
  overflow: hidden;
}
.hero .wrap { padding-top: clamp(84px, 12vw, 150px); padding-bottom: clamp(84px, 12vw, 150px); position: relative; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p { margin: 26px 0 38px; font-size: 1.18rem; color: #d9e1f5; max-width: 54ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 8px 18px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero-badge svg { flex: none; }

/* Page hero (internal pages) */
.page-hero { text-align: left; }
.page-hero .wrap { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.page-hero .crumbs { font-size: 0.84rem; color: #aebadf; margin-bottom: 20px; letter-spacing: 0.06em; }
.page-hero .crumbs a { color: #dfe6f8; }

/* ---------- Sections ---------- */

section.block { padding: clamp(64px, 9vw, 110px) 0; }
section.block.tint { background: var(--ice-50); }
section.block.navy { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #dce3f6; }
section.block.navy h2, section.block.navy h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 16px; color: var(--ink-soft); }
.navy .section-head p { color: #b9c5e6; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--ice-200);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: 0 2px 10px -6px rgba(16, 26, 61, 0.08);
  transition: 0.25s; position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: #c9d5f0; }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, var(--ice-100), var(--ice-200));
  display: grid; place-items: center; margin-bottom: 20px; color: var(--navy-700);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 0.88rem; color: var(--royal); }
.card .more::after { content: " →"; }
a.card { color: inherit; }

.card ul { list-style: none; margin-top: 8px; }
.card ul li { padding: 5px 0 5px 24px; position: relative; font-size: 0.93rem; color: var(--ink-soft); }
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); opacity: 0.85;
}

/* ---------- Split (image + text) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.split .media { position: relative; }
.split .media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.split .media .accent {
  position: absolute; inset: auto -18px -18px auto; width: 58%; height: 58%;
  border: 3px solid var(--gold-soft); border-radius: var(--radius-lg); z-index: -1;
}
.split .media .chip {
  position: absolute; left: -16px; bottom: 26px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 14px 20px;
  display: flex; gap: 12px; align-items: center;
}
.split .media .chip strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-800); line-height: 1; }
.split .media .chip span { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; }
.split .body p + p { margin-top: 14px; }
.split .body p { color: var(--ink-soft); }
.split .body .btn { margin-top: 28px; }

.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist li svg { flex: none; margin-top: 3px; color: var(--gold); }

/* ---------- Stats band ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats div { padding: 10px; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold-soft); line-height: 1.1; }
.stats span { font-size: 0.9rem; color: #b9c5e6; letter-spacing: 0.04em; }

/* ---------- Vertical hub rows ---------- */

.area-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 26px; align-items: center;
  background: var(--white); border: 1px solid var(--ice-200); border-radius: var(--radius-lg);
  padding: 26px 30px; transition: 0.22s;
}
.area-row:hover { border-color: #c9d5f0; box-shadow: var(--shadow-card); transform: translateX(4px); }
.area-row + .area-row { margin-top: 16px; }
.area-row .icon { width: 76px; height: 76px; border-radius: 20px; background: linear-gradient(140deg, var(--navy-700), var(--royal)); color: #fff; display: grid; place-items: center; }
.area-row h3 { margin-bottom: 6px; }
.area-row p { font-size: 0.94rem; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Detail sections (service pages) ---------- */

.service {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: 40px 0; border-top: 1px solid var(--ice-200);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h3 { font-size: 1.55rem; display: flex; align-items: center; gap: 14px; }
.service h3 .n {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 800;
  color: var(--gold); letter-spacing: 0.12em;
}
.service p { color: var(--ink-soft); max-width: 76ch; }
.service .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-size: 0.78rem; font-weight: 700; color: var(--navy-700);
  background: var(--ice-100); border: 1px solid var(--ice-200);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-card);
  border: 1px solid var(--ice-200); position: relative;
}
.quote-card::before {
  content: "\201C"; font-family: var(--font-display);
  font-size: 4.6rem; line-height: 1; color: var(--gold-soft);
  position: absolute; top: 18px; left: 26px;
}
.quote-card p { padding-top: 34px; font-size: 1.02rem; color: var(--ink); font-style: italic; }
.quote-card footer { margin-top: 18px; font-size: 0.85rem; font-weight: 700; color: var(--royal); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- FAQ ---------- */

details.faq {
  background: var(--white); border: 1px solid var(--ice-200);
  border-radius: var(--radius-md); padding: 0; overflow: hidden;
}
details.faq + details.faq { margin-top: 12px; }
details.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; padding: 20px 24px; font-weight: 700; color: var(--navy-800);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); font-weight: 400; transition: 0.2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--royal) 100%);
  border-radius: var(--radius-lg); color: var(--white);
  padding: clamp(44px, 6vw, 72px); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px;
  border-radius: 50%; border: 44px solid rgba(255, 255, 255, 0.06);
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: #c9d3ef; max-width: 58ch; margin: 0 auto 30px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(34px, 5vw, 60px); align-items: start; }

.info-tile {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--ice-200);
}
.info-tile:last-child { border-bottom: 0; }
.info-tile .icon { width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--ice-100); display: grid; place-items: center; color: var(--navy-700); }
.info-tile strong { display: block; color: var(--navy-800); margin-bottom: 2px; }
.info-tile a, .info-tile span { color: var(--ink-soft); font-size: 0.96rem; }

form.contact { background: var(--white); border: 1px solid var(--ice-200); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
form.contact label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-700); margin: 18px 0 7px; }
form.contact label:first-of-type { margin-top: 0; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; border: 1.6px solid var(--ice-200); border-radius: var(--radius-sm);
  padding: 13px 15px; font: inherit; color: var(--ink); background: var(--ice-50);
  transition: 0.18s;
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus {
  outline: none; border-color: var(--royal); background: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 87, 176, 0.12);
}
form.contact button { width: 100%; justify-content: center; margin-top: 26px; }
form.contact .note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }

.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ---------- Footer ---------- */

footer.site { background: var(--navy-900); color: #a9b6dd; font-size: 0.92rem; }
footer.site .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 46px; }
footer.site h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
footer.site ul { list-style: none; }
footer.site ul li { margin-bottom: 10px; }
footer.site a { color: #c3cdeb; }
footer.site a:hover { color: var(--white); }
footer.site .brandline { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
footer.site .brandline .name { font-family: var(--font-brand); color: var(--white); font-size: 1rem; letter-spacing: 0.05em; }
footer.site .brandline .name small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.28em; color: var(--sky); text-transform: uppercase; margin-top: 2px; }
footer.site .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.8rem; color: #7c8ab5;
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(31, 168, 85, 0.55); transition: 0.2s;
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Notice / disclaimer ---------- */

.notice {
  background: var(--ice-100); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; font-size: 0.88rem; color: var(--ink-soft); margin-top: 40px;
}

/* ---------- Social carousel (Instagram + Facebook) ---------- */

.carousel-shell { position: relative; }
.car-track {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 6px 18px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }

.social-card {
  flex: 0 0 min(430px, 86vw); scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--ice-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  overflow: hidden; display: flex; flex-direction: column;
}
.social-card .sc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--ice-200);
}
.social-card .sc-head .badge {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.social-card .sc-head .badge.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.social-card .sc-head .badge.fb { background: #1877f2; }
.social-card .sc-head strong { display: block; font-size: 0.92rem; color: var(--navy-800); line-height: 1.25; }
.social-card .sc-head span { font-size: 0.78rem; color: var(--ink-soft); }
.social-card .sc-head .follow {
  margin-left: auto; font-size: 0.8rem; font-weight: 800;
  color: var(--royal); white-space: nowrap;
}
.social-card iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }

/* Per-post cards */
a.post-card { flex-basis: min(330px, 82vw); color: inherit; transition: 0.22s; }
a.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.pc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pc-head .pc-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: contain; flex: none;
  border: 1.6px solid var(--ice-200); background: #fff; padding: 3px;
}
.pc-head strong { display: block; font-size: 0.82rem; color: var(--navy-800); line-height: 1.2; }
.pc-head span { font-size: 0.7rem; color: var(--ink-soft); }
.pc-head .pc-net { margin-left: auto; color: var(--ink-soft); flex: none; }
.pc-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-type {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(10, 16, 38, 0.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; color: #fff;
}
.pc-actions { display: flex; gap: 14px; padding: 12px 14px 0; color: var(--navy-800); }
.pc-actions svg:last-child { margin-left: auto; }
.pc-counts { padding: 8px 14px 0; font-size: 0.84rem; color: var(--ink); }
.pc-cap {
  padding: 6px 14px 0; font-size: 0.84rem; color: var(--ink-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-cap strong { color: var(--navy-800); }
.pc-view { padding: 10px 14px 16px; font-size: 0.8rem; font-weight: 800; color: var(--royal); }

.social-card.social-cta {
  justify-content: center; text-align: center; padding: 44px 34px;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border: 0; color: #d5ddf3;
}
.social-card.social-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.social-card.social-cta p { font-size: 0.95rem; margin-bottom: 26px; }
.social-card.social-cta .btn { justify-content: center; width: 100%; }
.social-card.social-cta .btn + .btn { margin-top: 12px; }
.btn-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.btn-ig:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { transform: translateY(-1px); background: #0f65d6; }

.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ice-200);
  background: var(--white); color: var(--navy-800); cursor: pointer;
  box-shadow: var(--shadow-card); display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1; transition: 0.2s;
}
.car-btn:hover { background: var(--navy-700); color: #fff; }
.car-btn.prev { left: -14px; }
.car-btn.next { right: -14px; }
@media (max-width: 720px) {
  .car-btn { display: none; }
  .car-track { scroll-snap-type: x mandatory; }
}

/* ---------- Na mídia (press) ---------- */

section.press { padding: clamp(44px, 6vw, 70px) 0; border-bottom: 1px solid var(--ice-200); }
.press-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.press-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.press-head .eyebrow { margin-bottom: 8px; }
a.press-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid var(--ice-200);
  border-radius: var(--radius-md); padding: 22px 24px;
  color: inherit; transition: 0.22s;
}
a.press-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: #c9d5f0; }
.press-card .pub { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.press-card .pub img {
  height: 30px; width: auto; max-width: 62%; object-fit: contain;
  background: var(--navy-800); padding: 5px 11px; border-radius: 7px; box-sizing: border-box;
}
.press-card .pub time { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; white-space: nowrap; }
.press-card h3 { font-size: 1.02rem; line-height: 1.35; }
.press-card blockquote { font-size: 0.87rem; color: var(--ink-soft); font-style: italic; border-left: 3px solid var(--gold-soft); padding-left: 12px; }
.press-card .more { margin-top: auto; font-weight: 800; font-size: 0.82rem; color: var(--royal); }
.press-card .more::after { content: " →"; }

/* ---------- Portal do Paciente (Clinisete) ---------- */

.portal-panel {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); border: 1px solid var(--ice-200);
  padding: 26px; position: relative;
}
.portal-panel .bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; border-bottom: 1px solid var(--ice-200); margin-bottom: 8px;
}
.portal-panel .bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ice-200); }
.portal-panel .bar .dot:first-child { background: var(--gold-soft); }
.portal-panel .bar strong { margin-left: auto; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); }
.portal-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 10px; border-radius: var(--radius-sm); transition: 0.2s;
}
.portal-item:hover { background: var(--ice-50); }
.portal-item + .portal-item { border-top: 1px dashed var(--ice-200); }
.portal-item .icon {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  background: linear-gradient(140deg, var(--ice-100), var(--ice-200));
  display: grid; place-items: center; color: var(--navy-700);
}
.portal-item strong { display: block; font-size: 0.93rem; color: var(--navy-800); }
.portal-item span { font-size: 0.8rem; color: var(--ink-soft); }
.portal-item .pill {
  margin-left: auto; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--whatsapp); background: rgba(31, 168, 85, 0.1);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Aviso de emergência (popup) ---------- */

.aviso-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 16, 38, 0.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 22px;
  opacity: 0; transition: opacity 0.3s ease;
}
.aviso-overlay.in { opacity: 1; }
.aviso-modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 480px; width: 100%; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10, 16, 38, 0.5);
  transform: translateY(22px) scale(0.97); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  position: relative;
}
.aviso-overlay.in .aviso-modal { transform: none; }
.aviso-head {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 26px 30px; display: flex; align-items: center; gap: 16px;
}
.aviso-head .ic {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid; place-items: center; color: var(--gold-soft);
}
.aviso-head h3 { color: #fff; font-size: 1.3rem; }
.aviso-head p { font-size: 0.8rem; color: #b9c5e6; margin-top: 2px; }
.aviso-body { padding: 26px 30px 30px; }
.aviso-body .msg { color: var(--ink-soft); font-size: 0.98rem; }
.aviso-fone {
  display: flex; align-items: center; gap: 14px; margin: 20px 0;
  background: var(--ice-50); border: 1.5px dashed var(--ice-200);
  border-radius: var(--radius-md); padding: 16px 20px;
}
.aviso-fone .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--navy-800); line-height: 1; }
.aviso-fone .lbl { font-size: 0.8rem; color: var(--ink-soft); }
.aviso-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.aviso-actions .btn { flex: 1; justify-content: center; min-width: 150px; }
.aviso-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.15); color: #fff;
  font-size: 1.15rem; line-height: 1; display: grid; place-items: center; transition: 0.2s;
}
.aviso-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  footer.site .top { grid-template-columns: 1fr 1fr; }
  .area-row { grid-template-columns: 64px 1fr; }
  .area-row .icon { width: 60px; height: 60px; border-radius: 15px; }
  .area-row .btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 1180px) {
  /* backdrop-filter tornaria o header o "containing block" do menu fixed — desliga no mobile */
  header.site { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: block; }
  nav.main {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 6px;
    background: var(--white); padding: 90px 28px 34px;
    box-shadow: var(--shadow-soft); transform: translateY(-100%);
    transition: transform 0.3s ease; z-index: 55; align-items: flex-start;
  }
  nav.main.open { transform: none; }
  nav.main a { font-size: 1.06rem; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--ice-100); }
  nav.main .btn { margin-top: 12px; width: 100%; justify-content: center; }
}

header.site nav.main .btn { padding: 11px 20px; font-size: 0.88rem; white-space: nowrap; }
nav.main a.btn-primary { color: var(--white); border-bottom: 0; }
nav.main a.btn-primary:hover { color: var(--white); }

@media (max-width: 720px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; gap: 8px; }
  .topbar .wrap > span:first-child { display: none; }
  .topbar span { white-space: normal; text-align: center; }
  header.site .brand { gap: 10px; }
  header.site .brand .logo-mark { height: 44px; }
  header.site .brand .name { font-size: 0.76rem; letter-spacing: 0.01em; padding-right: 44px; }
  .split .media .chip { left: 8px; }
  .split .media .accent { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .press-head { margin-bottom: 20px; }
  .press-head > span { display: none; }
  .area-row { padding: 20px; gap: 16px; }
  .cta-band .actions .btn { width: 100%; justify-content: center; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .aviso-fone .num { font-size: 1.5rem; }
  .aviso-head { padding: 22px 24px; }
  .aviso-body { padding: 22px 24px 24px; }
  .map-frame { height: 320px; }
}

@media (max-width: 600px) {
  footer.site .top { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 36px; }
  section.block { padding: 52px 0; }
  .service h3 { font-size: 1.3rem; }
}

/* ---------- Destaque viral (reel embed) ---------- */
.reel-embed {
  max-width: 380px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--ice-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.reel-embed iframe { display: block; width: 100%; height: 615px; border: 0; }
@media (max-width: 720px) { .reel-embed iframe { height: 540px; } }
