/* ============================================================
   NEURO SERVICES BH — design tokens & global styles
   ============================================================ */

:root {
  /* Brand palette */
  --blue-900: #0b3a6a;
  --blue-700: #0e4880;
  --blue-300: #91abba;
  --cyan-100: #c4eef0;
  --orange-500: #ff751f;
  --orange-300: #f3a555;
  --white: #ffffff;

  /* Tonal neutrals (extending the cool brand palette) */
  --paper: #fbfaf7;
  --paper-2: #f4f1ea;
  --ink-900: #0a2240;
  --ink-700: #294060;
  --ink-500: #5a6a7e;
  --ink-300: #8c9aa9;
  --line: rgba(11, 58, 106, 0.10);
  --line-2: rgba(11, 58, 106, 0.18);

  /* Type scale */
  --serif: "Newsreader", "Spectral", Georgia, serif;
  --sans: "DM Sans", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Easings */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Tweakable */
  --accent: var(--orange-500);
  --accent-soft: var(--orange-300);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Headings — serif, optical size */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.015em;
  color: var(--blue-900);
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Layout */
.page { width: 100%; }
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Soft white halo behind logo on dark surfaces so internal text stays legible */
.ap-side-overlay .brand-mark,
.admin-side .brand-mark,
.contact-band .brand-mark {
  background: white;
  border-radius: 12px;
  padding: 4px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--blue-900);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-500);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.nav-link:hover {
  background: rgba(14, 72, 128, 0.06);
  color: var(--blue-900);
}
.nav-link.active {
  background: var(--blue-900);
  color: var(--white);
}
@media (max-width: 980px) {
  .nav-links { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--accent);
  color: var(--white);
  font-weight: 500;
  font-size: 14.5px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(255, 117, 31, 0.55);
}
.btn .ic {
  width: 18px; height: 18px;
}
.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--blue-900);
  color: var(--white);
  border-color: var(--blue-900);
  box-shadow: none;
}
.btn-dark {
  background: var(--blue-900);
  color: var(--white);
}
.btn-dark:hover {
  box-shadow: 0 8px 24px -8px rgba(11, 58, 106, 0.55);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 28px 0 96px;
}
.hero-photo-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d9e8ed, #91abba);
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,30,55,0.10) 0%, rgba(7,30,55,0.45) 45%, rgba(4,18,36,0.92) 100%),
    linear-gradient(90deg, rgba(4,18,36,0.92) 0%, rgba(7,30,55,0.55) 55%, rgba(7,30,55,0.10) 100%);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  z-index: 2;
  color: var(--white);
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--white);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-title em {
  font-style: italic;
  color: var(--cyan-100);
  font-weight: 300;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
  max-width: 36ch;
  margin-bottom: 22px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.hero-actions .btn-ghost:hover {
  background: var(--white);
  color: var(--blue-900);
  border-color: var(--white);
}

@media (max-width: 900px) {
  .hero-photo-frame { aspect-ratio: 4 / 5; }
  .hero-overlay {
    left: 24px; right: 24px; bottom: 28px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Alternative split hero */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 60px 0 96px;
}
.hero-split .col-text { padding-right: 20px; }
.hero-split .col-photo {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #d9e8ed, #91abba);
  position: relative;
}
.hero-split .col-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-split h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.hero-split h1 em {
  color: var(--accent);
  font-style: italic;
}
.hero-split .lede {
  font-size: 17px;
  color: var(--ink-700);
  margin: 26px 0 32px;
  max-width: 46ch;
}
.hero-split .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-split .stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--blue-900);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-split .stat-num small {
  color: var(--accent);
  font-size: 24px;
}
.hero-split .stat-label {
  font-size: 12.5px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; padding: 28px 0 64px; }
}

/* WhatsApp ribbon */
.ribbon {
  background: var(--blue-900);
  color: rgba(255,255,255,0.86);
  padding: 14px 0;
  font-size: 13.5px;
  overflow: hidden;
}
.ribbon-track {
  display: flex;
  gap: 56px;
  animation: ribbon 38s linear infinite;
  white-space: nowrap;
}
.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ribbon-dot {
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}
@keyframes ribbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== SECTION HEADERS ============== */
.section { padding: 110px 0; position: relative; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--blue-900); color: var(--white); }
.section.dark h2 { color: var(--white); }
.section.dark .eyebrow { color: rgba(255,255,255,0.65); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.section-head p {
  font-size: 16px;
  color: var(--ink-500);
  max-width: 50ch;
  margin: 0;
}
.section.dark .section-head p { color: rgba(255,255,255,0.7); }
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
}

/* ============== EXAMS GRID ============== */
.exams {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.exam-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.exam-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 24px 60px -28px rgba(11, 58, 106, 0.35);
}
.exam-card.span-6 { grid-column: span 6; }
.exam-card.span-4 { grid-column: span 4; }
.exam-card.span-8 { grid-column: span 8; }
.exam-card.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .exam-card.span-6, .exam-card.span-4, .exam-card.span-8, .exam-card.span-12 {
    grid-column: span 12;
  }
}

.exam-photo {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  position: relative;
  overflow: hidden;
}
.exam-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.exam-card:hover .exam-photo img { transform: scale(1.04); }

.exam-body {
  padding: 28px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.exam-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.exam-title {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 12px;
  font-weight: 400;
}
.exam-desc {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}
.exam-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-900);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  transition: gap 0.2s var(--ease);
}
.exam-card:hover .exam-link { gap: 14px; color: var(--accent); }

/* ============== HOW IT WORKS ============== */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

.steps-photo {
  position: sticky;
  top: 100px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
}
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }

.steps-list { display: flex; flex-direction: column; }
.step {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  font-style: italic;
}
.step-title {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 400;
}
.step-body {
  font-size: 15px;
  color: var(--ink-500);
}

/* ============== DIFFERENTIALS ============== */
.diffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 900px) { .diffs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .diffs { grid-template-columns: 1fr; } }

.diff {
  background: var(--blue-900);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  transition: background 0.3s var(--ease);
}
.diff:hover { background: #08305a; }
.diff-ic {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent);
}
.diff-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--white);
  line-height: 1.15;
  margin: 0;
  font-weight: 400;
}
.diff-body {
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin-top: auto;
}

/* ============== ABOUT BAND ============== */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 5 / 6;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 140px; height: 140px;
  background: var(--accent);
  border-radius: 50% 0 0 0;
}
.about h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; font-weight: 300; }
.about h2 em { font-style: italic; color: var(--accent); }
.about p {
  font-size: 16px;
  color: var(--ink-700);
  line-height: 1.65;
  margin: 24px 0;
}
.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.signature-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-700));
  overflow: hidden;
}
.signature-avatar img { width: 100%; height: 100%; object-fit: cover; }
.signature-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--blue-900);
}
.signature-role {
  font-size: 13px;
  color: var(--ink-500);
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
}

/* ============== TESTIMONIALS ============== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

.testi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.testi-stars {
  display: flex;
  gap: 3px;
}
.testi-stars svg {
  filter: drop-shadow(0 1px 1px rgba(255,117,31,0.18));
}
.testi-avatar-letter {
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.testi-google {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.testi-google svg { display: block; }
.testi-quote-mark {
  font-family: var(--serif);
  font-size: 70px;
  line-height: 0.6;
  color: var(--cyan-100);
  position: absolute;
  top: 32px; right: 28px;
  font-style: italic;
  user-select: none;
}
.testi-text {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--blue-900);
  font-weight: 400;
  flex: 1;
  font-variation-settings: "opsz" 24;
}
.testi-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  overflow: hidden;
  flex-shrink: 0;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-900);
}
.testi-meta {
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ============== COVERAGE ============== */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; gap: 32px; } }

.coverage-map {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 25%, rgba(196,238,240,0.4), transparent 55%),
    linear-gradient(135deg, #eef5fa 0%, #dde9f2 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 28px;
}
.coverage-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.coverage-overlay {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(11, 58, 106, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: white;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  justify-content: center;
}
.cov-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 2px;
}
.cov-dot-main { background: #6e7fb8; }
.cov-dot-region { background: #b8d4e8; }

@media (max-width: 760px) {
  .coverage-map { padding: 16px; }
  .coverage-overlay { font-size: 10.5px; flex-wrap: wrap; padding: 8px 12px; }
}
.cov-city {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  transform: translate(-50%, -50%);
}
.cov-city::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,117,31,0.25), 0 0 0 10px rgba(255,117,31,0.12);
}
.cov-city.is-bh::before {
  width: 14px; height: 14px;
  box-shadow: 0 0 0 6px rgba(255,117,31,0.3), 0 0 0 14px rgba(255,117,31,0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255,117,31,0.3), 0 0 0 14px rgba(255,117,31,0.15); }
  50% { box-shadow: 0 0 0 10px rgba(255,117,31,0.2), 0 0 0 22px rgba(255,117,31,0.08); }
}

.cities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 30px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cities-list li {
  font-size: 14px;
  color: var(--ink-700);
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cities-list li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============== BLOG ============== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

.post {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
}
.post-photo {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  position: relative;
}
.post-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post:hover .post-photo img { transform: scale(1.05); }
.post-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: flex;
  gap: 12px;
}
.post-meta b {
  color: var(--accent);
  font-weight: 600;
}
.post-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  font-variation-settings: "opsz" 24;
}

/* ============== FAQ ============== */
.faq {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--blue-900);
  font-variation-settings: "opsz" 24;
}
.faq-q .ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  font-size: 15.5px;
  color: var(--ink-500);
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 18px;
}

/* ============== CONTACT BAND ============== */
.contact-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--blue-900);
  color: var(--white);
  padding: 80px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px; height: 320px;
  background: var(--accent);
  opacity: 0.18;
  border-radius: 50%;
  filter: blur(80px);
}
.contact-band h2 {
  color: var(--white);
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.05;
  font-weight: 300;
}
.contact-band h2 em { color: var(--accent); font-style: italic; }
.contact-band p {
  color: rgba(255,255,255,0.78);
  margin: 20px 0 32px;
  font-size: 16px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
}
.contact-row .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: var(--accent);
}
.contact-row-label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3px;
}
.contact-row-value {
  font-size: 17px;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 400;
}
@media (max-width: 820px) {
  .contact-band { grid-template-columns: 1fr; padding: 44px 28px; gap: 36px; }
}

/* ============== FOOTER ============== */
.footer {
  background: var(--paper-2);
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 18px;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 14.5px;
  color: var(--ink-700);
  padding: 5px 0;
  list-style: none;
  cursor: pointer;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand p {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.6;
  margin-top: 18px;
  max-width: 36ch;
}
.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-500);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============== WHATSAPP FLOAT ============== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: #25D366;
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.2s var(--ease);
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.4;
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============== SUBPAGE HERO ============== */
.subhero {
  padding: 44px 0 80px;
}
.subhero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-700));
}
.subhero-frame img { width: 100%; height: 100%; object-fit: cover; }
.subhero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,58,106,0.30) 0%, rgba(7,30,55,0.80) 100%);
}
/* Position image to the right (used on Contato hero to keep the
   WhatsApp icon clear of the title text on the left).
   We anchor by intrinsic dimensions and use the frame background +
   a strong left-to-right gradient as the "dark canvas" for the title. */
.subhero-frame.pos-right {
  background: var(--blue-900);
}
.subhero-frame.pos-right img {
  width: auto;
  height: 100%;
  max-width: none;
  position: absolute;
  right: 0;
  top: 0;
  object-fit: contain;
}
.subhero-frame.pos-right::after {
  background:
    linear-gradient(0deg, rgba(4,18,36,0.85) 0%, rgba(7,30,55,0.55) 35%, rgba(7,30,55,0.10) 70%, transparent 100%),
    linear-gradient(90deg, rgba(4,18,36,0.97) 0%, rgba(7,30,55,0.85) 35%, rgba(7,30,55,0.20) 70%, transparent 100%);
}
.subhero.subhero-compact h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}
@media (max-width: 760px) {
  .subhero-frame.pos-right img {
    width: 100%;
    height: 100%;
    position: static;
    object-fit: cover;
    object-position: center;
  }
  .subhero-frame.pos-right::after {
    background: linear-gradient(180deg, rgba(11,58,106,0.30) 0%, rgba(7,30,55,0.80) 100%);
  }
}
.subhero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px;
  z-index: 2;
  color: var(--white);
}
.subhero h1 {
  color: var(--white);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-variation-settings: "opsz" 60;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.subhero h1 em { font-style: italic; color: var(--cyan-100); }
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.breadcrumb b { color: var(--accent); font-weight: 600; }
@media (max-width: 820px) {
  .subhero-frame { aspect-ratio: 4 / 5; }
  .subhero-overlay { padding: 28px; }
}

/* ============== PREP PAGE ============== */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .prep-grid { grid-template-columns: 1fr; } }
.prep-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prep-card h3 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 400;
}
.prep-list { padding: 0; margin: 0; }
.prep-list li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-700);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.prep-list li:last-child { border-bottom: none; }
.prep-list .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan-100);
  color: var(--blue-900);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.prep-list .cross {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,117,31,0.12);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============== CONTACT PAGE ============== */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; gap: 36px; } }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.04em;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.2s var(--ease);
  font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-700);
}
.field textarea { min-height: 110px; resize: vertical; }

/* Image placeholder fallback (when no src given) */
.ph-fallback {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(11,58,106,0.04) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  display: grid;
  place-items: center;
  color: var(--blue-900);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 16px;
}

/* Subtle entrance */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   DASHBOARD MOCKUP — Preparo page
   ============================================================ */
.dash-mock-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.dash-mock-window {
  width: 100%;
  background: #f4f6fa;
  border-radius: 18px;
  box-shadow:
    0 30px 60px -25px rgba(11, 58, 106, 0.35),
    0 8px 20px -10px rgba(11, 58, 106, 0.18);
  overflow: hidden;
  border: 1px solid var(--line);
}
.dash-mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e9ecf2;
  border-bottom: 1px solid rgba(11,58,106,0.08);
}
.dash-mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dash-mock-dot.r { background: #ff6058; }
.dash-mock-dot.y { background: #ffbd2e; }
.dash-mock-dot.g { background: #28ca42; }
.dash-mock-url {
  flex: 1;
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-500);
  background: white;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-mock-lock {
  display: inline-flex;
  color: #28ca42;
  flex-shrink: 0;
}
.dash-mock-lock svg { width: 12px; height: 12px; }
.dash-mock-body {
  padding: 22px 22px 26px;
  background: var(--paper-2);
}

.dash-mock-card {
  background: var(--blue-900);
  color: white;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.dash-mock-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px; height: 180px;
  background: var(--accent);
  opacity: 0.22;
  border-radius: 50%;
  filter: blur(40px);
}
.dash-mock-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.dash-mock-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 300;
  position: relative;
  z-index: 1;
}
.dash-mock-title em {
  font-style: italic;
  color: var(--accent);
}

.dash-mock-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 12px;
}

.dash-mock-exam {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.dash-mock-exam.soft { opacity: 0.85; }
.dash-mock-exam-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--cyan-100);
  color: var(--blue-900);
  display: grid;
  place-items: center;
}
.dash-mock-exam-ic.soft {
  background: rgba(145,171,186,0.2);
  color: var(--ink-500);
}
.dash-mock-exam-ic svg { width: 16px; height: 16px; }
.dash-mock-exam-title {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--blue-900);
  font-weight: 500;
}
.dash-mock-exam-meta {
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 2px;
}
.dash-mock-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11,58,106,0.08);
  color: var(--blue-900);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dash-mock-pill.soft {
  background: rgba(255,117,31,0.10);
  color: var(--accent);
}
.dash-mock-pill-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.dash-mock-btn {
  background: var(--blue-900);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.dash-mock-btn svg { width: 12px; height: 12px; }

.dash-mock-caption {
  font-size: 12px;
  color: var(--ink-500);
  font-style: italic;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .dash-mock-body { padding: 16px 14px 20px; }
  .dash-mock-card { padding: 18px 18px; }
  .dash-mock-title { font-size: 18px; }
  .dash-mock-exam {
    grid-template-columns: 32px 1fr;
    gap: 10px;
  }
  .dash-mock-exam-ic { width: 32px; height: 32px; }
  .dash-mock-pill, .dash-mock-btn {
    grid-column: 2;
    justify-self: start;
  }
  .dash-mock-url { font-size: 10px; }
}

/* ============================================================
   DOCTOR FEATURE — single-doctor highlight on Quem Somos
   ============================================================ */
.exam-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.doctor-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.doctor-feature-photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  position: relative;
  box-shadow: 0 30px 60px -28px rgba(11, 58, 106, 0.35);
}
.doctor-feature-photo::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 140px; height: 140px;
  background: var(--accent);
  border-radius: 50% 0 0 0;
}
.doctor-feature-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.doctor-feature-name {
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--blue-900);
  margin-top: 12px;
}
.doctor-feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-700);
  font-size: 14.5px;
  font-weight: 500;
}
.doctor-feature-meta .sep { color: var(--ink-300); }
.doctor-feature-body p {
  margin: 22px 0 0;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.65;
}
.doctor-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doctor-feature-grid-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 6px;
}
.doctor-feature-grid-value {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--blue-900);
  line-height: 1.3;
}
@media (max-width: 900px) {
  .doctor-feature { grid-template-columns: 1fr; gap: 32px; }
  .doctor-feature-photo::after { width: 90px; height: 90px; inset: auto -18px -18px auto; }
  .doctor-feature-grid { gap: 18px; }
  .doctor-feature-grid-value { font-size: 15px; }
}
@media (max-width: 560px) {
  .doctor-feature-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
}

/* ============================================================
   NAV — additions: actions, mobile menu, drawer
   ============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link-area {
  border: 1px solid var(--line-2);
  background: transparent;
}
.nav-link-area:hover {
  background: var(--blue-900);
  color: white;
  border-color: var(--blue-900);
}
.btn-cta-nav { padding: 12px 18px; }
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
  color: var(--blue-900);
  background: transparent;
}
.hide-md { display: inline; }

@media (max-width: 980px) {
  .nav-link-area .hide-md { display: none; }
  .nav-link-area { padding: 9px 12px; }
}
@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  .btn-cta-nav .hide-md { display: none; }
  .btn-cta-nav { padding: 11px 14px; }
  .nav-link-area { display: none; }
}
@media (max-width: 480px) {
  .btn-cta-nav { display: none; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 9px; letter-spacing: 0.18em; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s var(--ease), visibility 0s linear 0s;
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 22px;
  gap: 2px;
  overflow-y: auto;
}
.mobile-drawer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--blue-900);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mobile-drawer-link.active { color: var(--accent); }
.mobile-drawer-foot {
  padding: 22px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   MOBILE RESPONSIVE PASS — fine-tuning for narrow screens
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }

  /* Hero overlay */
  .hero { padding: 16px 0 56px; }
  .hero-photo-frame { border-radius: 22px; aspect-ratio: 3 / 4; }
  .hero-overlay {
    left: 22px; right: 22px; bottom: 24px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .hero-sub { font-size: 14.5px; margin-bottom: 16px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 12px 16px; font-size: 13.5px; flex: 1; justify-content: center; }

  /* Hero split */
  .hero-split { gap: 28px; padding: 16px 0 56px; }
  .hero-split .col-text { padding-right: 0; }
  .hero-split .col-photo { aspect-ratio: 4 / 5; border-radius: 22px; }
  .hero-split h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-split .lede { font-size: 15.5px; margin: 18px 0 22px; }
  .hero-split .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .hero-split .stat-num { font-size: 26px; }
  .hero-split .stat-num small { font-size: 16px; }
  .hero-split .stat-label { font-size: 10px; letter-spacing: 0.08em; }

  /* Section paddings */
  .section { padding: 60px 0; }
  .section-head h2 { font-size: clamp(28px, 7vw, 38px); }
  .section-head { margin-bottom: 32px; }

  /* Exams grid */
  .exams { gap: 16px; }
  .exam-card { border-radius: 18px; }
  .exam-body { padding: 22px 22px 24px; }
  .exam-title { font-size: 22px; }

  /* Steps */
  .steps-photo { position: relative; top: 0; aspect-ratio: 5 / 4; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; }
  .step-num { font-size: 26px; }
  .step-title { font-size: 19px; }

  /* Differentials */
  .diff { padding: 28px 24px; min-height: 0; }
  .diff-title { font-size: 19px; }

  /* About */
  .about-photo::after { width: 90px; height: 90px; inset: auto -18px -18px auto; }
  .about { gap: 32px !important; }
  .about h2 { font-size: clamp(28px, 7vw, 38px); }

  /* Testimonials */
  .testi { padding: 28px 26px; gap: 18px; }
  .testi-text { font-size: 17px; }
  .testi-quote-mark { font-size: 54px; top: 20px; right: 18px; }

  /* Coverage */
  .coverage-map { aspect-ratio: 4 / 3; }
  .cities-list { grid-template-columns: 1fr; gap: 0; }
  .cov-city span { font-size: 10.5px; }

  /* Blog */
  .post-title { font-size: 19px; }

  /* FAQ */
  .faq-q { font-size: 18px; gap: 14px; }
  .faq-q .ic { width: 24px; height: 24px; }

  /* Contact band */
  .contact-band {
    padding: 36px 24px;
    border-radius: 22px;
    gap: 28px;
  }
  .contact-band h2 { font-size: clamp(26px, 7vw, 36px); }
  .contact-info { gap: 16px; }
  .contact-row { grid-template-columns: 40px 1fr; gap: 12px; }
  .contact-row .ic { width: 40px; height: 40px; }
  .contact-row-value { font-size: 15px; }

  /* Footer */
  .footer { padding: 48px 0 28px; }
  .footer-grid { gap: 24px; margin-bottom: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bot { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }

  /* WhatsApp float */
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }

  /* Subhero */
  .subhero { padding: 20px 0 48px; }
  .subhero-frame { border-radius: 22px; aspect-ratio: 3 / 4; }
  .subhero-overlay { padding: 24px; }
  .subhero h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .breadcrumb { font-size: 11px; margin-bottom: 12px; }

  /* Prep cards */
  .prep-card { padding: 28px 24px; }
  .prep-card h3 { font-size: 22px; }

  /* Contact form */
  .form { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-page { gap: 32px; }

  .eyebrow { font-size: 11px; }
}

/* Stack zigzag exam layout & featured blog post on mobile */
@media (max-width: 820px) {
  .stack-on-mobile {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .stack-on-mobile > .order-first-on-mobile {
    order: -1 !important;
  }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 64px; }
  .section { padding: 48px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .testi-grid, .blog-grid { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   ÁREA DO PACIENTE — Login screen
   ============================================================ */
.ap-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
}
.ap-side {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.ap-side-photo {
  position: absolute;
  inset: 0;
}
.ap-side-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.ap-side-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 44px 56px 56px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(11,58,106,0.78) 0%, rgba(11,58,106,0.94) 100%);
  min-height: 100vh;
}
.ap-form-wrap {
  display: grid;
  place-items: center;
  padding: 44px;
}
.ap-form-inner {
  width: 100%;
  max-width: 440px;
}
.ap-form-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-900);
  background: white;
  border: 1px solid var(--line-2);
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  width: max-content;
  letter-spacing: 0.01em;
}
.ap-form-back::before {
  content: "←";
  display: inline-block;
  transition: transform 0.2s var(--ease);
  font-weight: 400;
}
.ap-form-back:hover {
  color: white;
  background: var(--blue-900);
  border-color: var(--blue-900);
  box-shadow: 0 6px 16px -8px rgba(11, 58, 106, 0.5);
}
.ap-form-back:hover::before {
  transform: translateX(-3px);
}
.ap-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}
.field-ic {
  position: relative;
  display: flex;
  align-items: center;
}
.field-ic .ic-leading {
  position: absolute;
  left: 14px;
  color: var(--ink-500);
  display: inline-flex;
}
.field-ic input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.field-ic input:focus { border-color: var(--blue-700); }

@media (max-width: 820px) {
  .ap-shell { grid-template-columns: 1fr; }
  .ap-side {
    min-height: 220px;
    aspect-ratio: auto;
  }
  .ap-side-overlay { min-height: 220px; padding: 28px; }
  .ap-form-wrap { padding: 32px 22px 48px; }
}

/* Dashboard */
@media (max-width: 760px) {
  .ap-dash-head {
    grid-template-columns: 1fr !important;
    padding: 32px 28px !important;
    border-radius: 22px !important;
  }
  .ap-dash-actions {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .ap-dash-actions .btn { flex: 1; justify-content: center; }
  .ap-exam-row {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
    gap: 14px !important;
  }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--paper-2);
}
.admin-side {
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-side .brand .brand-name { font-size: 17px; }
.admin-side .brand .brand-name small { font-size: 9.5px; }

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  background: transparent;
  text-align: left;
  transition: all 0.2s var(--ease);
}
.admin-nav-item:hover { background: rgba(14, 72, 128, 0.04); color: var(--blue-900); }
.admin-nav-item.active {
  background: var(--blue-900);
  color: white;
}
.admin-nav-item.active .admin-nav-count {
  background: rgba(255,255,255,0.15);
  color: white;
}
.admin-nav-item.highlight:not(.active) {
  color: var(--accent);
  background: rgba(255,117,31,0.06);
}
.admin-nav-ic { display: inline-flex; }
.admin-nav-count {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11,58,106,0.08);
  color: var(--blue-900);
  font-weight: 600;
}

.admin-side-foot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  margin-bottom: 8px;
}
.admin-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-logout {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  color: var(--ink-500);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
}
.admin-logout:hover { color: var(--accent); border-color: var(--accent); }

.admin-main {
  padding: 36px 44px;
}
.admin-content {
  max-width: 1200px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.admin-head h1 { line-height: 1.05; }
.admin-head h1 em { font-style: italic; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.stat-card-value {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--blue-900);
  line-height: 1.05;
  margin-top: 8px;
}
.stat-card-value small {
  font-size: 14px;
  color: var(--ink-500);
  margin-left: 4px;
}
.stat-card-delta {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 4px;
}
.stat-card-delta.warn { color: var(--accent); font-weight: 500; }

.admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 14px;
}
.admin-card-head h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}
.btn-link {
  font-size: 13.5px;
  color: var(--blue-900);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.btn-link:hover { color: var(--accent); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.admin-table td {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--paper); }
.admin-card:has(.admin-table) { padding: 0; }
.admin-card:has(.admin-table) .admin-card-head { padding: 24px 28px 12px; margin: 0; }

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  background: white;
  margin-left: 4px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }
.btn-icon.btn-icon-danger { color: #d04a1f; }
.btn-icon.btn-icon-danger:hover { color: white; background: #d04a1f; border-color: #d04a1f; }
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger {
  background: #d04a1f;
  color: white;
}
.btn-danger:hover {
  box-shadow: 0 8px 24px -8px rgba(208, 74, 31, 0.55);
}
.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-search {
  flex: 1;
  max-width: 480px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink-900);
  outline: none;
}
.admin-search:focus { border-color: var(--blue-700); }
.admin-toolbar-meta {
  font-size: 13px;
  color: var(--ink-500);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 58, 106, 0.45);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: white;
  border-radius: 22px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: pop 0.25s var(--ease);
  overflow: hidden;
  min-height: 0;
}
/* Form inside modal must transmit the flexbox so body scrolls and footer sticks */
.modal-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { transform: scale(0.96); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.modal-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-foot {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--paper);
  flex-shrink: 0;
}

/* Stepper */
.admin-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.admin-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-500);
  opacity: 0.6;
}
.admin-step.active { opacity: 1; border-color: var(--blue-900); }
.admin-step.done { background: var(--cyan-100); border-color: var(--cyan-100); color: var(--blue-900); }
.admin-step-n {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  flex-shrink: 0;
}
.admin-step.active .admin-step-n { background: var(--blue-900); color: white; }
.admin-step.done .admin-step-n { background: var(--blue-900); color: white; }
.admin-step-l {
  font-weight: 500;
}

/* Paciente list (for upload flow) */
.admin-paciente-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  max-height: 320px;
  overflow-y: auto;
}
.admin-paciente-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.admin-paciente-row:hover { background: var(--paper); }
.admin-paciente-row.selected {
  background: rgba(255,117,31,0.05);
}
.admin-paciente-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-100), var(--blue-300));
  color: var(--blue-900);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Dropzone */
.admin-dropzone {
  display: block;
  border: 2px dashed var(--line-2);
  border-radius: 18px;
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--paper);
}
.admin-dropzone:hover { border-color: var(--accent); background: rgba(255,117,31,0.03); }
.admin-dropzone.drag {
  border-color: var(--accent);
  background: rgba(255,117,31,0.06);
  transform: scale(1.01);
}
.admin-dropzone.has-file {
  padding: 22px;
  text-align: left;
  border-style: solid;
  background: white;
  border-color: var(--line);
}

/* Mobile admin */
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 16px 22px;
    gap: 16px;
    overflow-x: auto;
  }
  .admin-side .brand { flex-shrink: 0; }
  .admin-nav {
    flex-direction: row;
    gap: 4px;
    flex: 1;
  }
  .admin-nav-item { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .admin-side-foot {
    border-top: none;
    padding: 0;
    flex-shrink: 0;
  }
  .admin-profile { display: none; }
  .admin-main { padding: 24px 22px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-head h1 { font-size: 28px !important; }
  .admin-stepper { flex-direction: column; gap: 6px; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 12px 14px; }
  .admin-card { padding: 20px 18px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-search { max-width: none; }
  /* Hide less-essential columns on mobile */
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3),
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4) {
    display: none;
  }
}

/* Subtle textures */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
}
