/* ==========================================================================
   Royal Pearl ENT Hospital — Stylesheet
   Design language: Royal navy + gold, ivory paper background.
   Mobile-first, no framework dependency.
   ========================================================================== */

/* -------------------------------- Tokens -------------------------------- */
:root {
  /* Brand palette (from crest/logo) */
  --navy-950: #081527;
  --navy-900: #0c1e3d;
  --navy-800: #142b52;
  --navy-700: #1c3a68;
  --navy-100: #e7ecf4;

  --gold-100: #f7ecc9;
  --gold-300: #e8c874;
  --gold-500: #c9a04e;
  --gold-600: #ab8535;
  --gold-700: #8a6a28;

  --maroon-700: #7a1f2b;
  --maroon-600: #92242f;

  --ivory-50: #fdfbf6;
  --ivory-100: #faf6ec;
  --ivory-200: #f3ecd9;

  --ink-900: #1b1f27;
  --ink-700: #3a3f4b;
  --ink-500: #656c7a;
  --ink-300: #a2a8b4;

  --white: #ffffff;

  --success: #1f7a4d;

  /* Semantic */
  --color-bg: var(--ivory-50);
  --color-surface: var(--white);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-500);
  --color-primary: var(--navy-900);
  --color-accent: var(--gold-500);
  --color-accent-dark: var(--gold-700);
  --color-border: #e6ddc7;

  /* Type */
  --font-heading: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 30, 61, 0.06), 0 1px 1px rgba(12, 30, 61, 0.04);
  --shadow-md: 0 8px 24px rgba(12, 30, 61, 0.10);
  --shadow-lg: 0 20px 48px rgba(12, 30, 61, 0.16);
  --header-h: 92px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 0.55em;
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 0.4em;
}

h2 {
  font-size: clamp(1.65rem, 1.4rem + 1.1vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Give any CTA immediately following body copy breathing room by default */
p + .btn,
p + .btn-block,
p + a.btn {
  margin-top: 0.4em;
}

/* ------------------------------ Utilities ------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(48px, 6vw, 96px);
}

.section-tight {
  padding-block: clamp(32px, 4vw, 56px);
}

.section-alt {
  background: var(--navy-900);
  color: var(--navy-100);
}

.section-alt h2,
.section-alt h3 {
  color: var(--white);
}

.section-alt p {
  color: #c3cbdc;
}

/* Cards keep their normal (white-background) text color even inside a
   navy .section-alt — the light color above is only for text sitting
   directly on the navy background. */
.section-alt .card p,
.section-alt .card h3,
.section-alt .finder-card p,
.section-alt .finder-card h3 {
  color: var(--color-text-muted);
}

.section-alt .card h3,
.section-alt .finder-card h3 {
  color: var(--navy-900);
}

.section-ivory {
  background: var(--ivory-100);
}

/* ---------------------------- Speciality spotlight -------------------------- */
.spotlight {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950) 85%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 116, 0.22), transparent 70%);
  pointer-events: none;
}

.spotlight .eyebrow {
  color: var(--gold-300);
}

.spotlight h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.spotlight > .container > div > p {
  color: #f0dede;
  margin-bottom: 26px;
}

.spotlight-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.spotlight-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.05rem;
}

.spotlight-list li:last-child {
  border-bottom: none;
}

.spotlight-list .ring {
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold-300);
  border-radius: 50%;
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section-alt .eyebrow {
  color: var(--gold-300);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid > * {
  min-width: 0;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  border-color: var(--navy-800);
  color: var(--navy-900);
}

.btn-ghost:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand img {
  height: 72px;
  width: auto;
}

.brand-text {
  font-family: var(--font-heading);
  line-height: 1.1;
}

.brand-text strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}

.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 700;
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-call {
  gap: 8px;
}

.nav-call span {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 600;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] {
  color: var(--gold-700);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 460px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.main-nav .dropdown.dropdown--single {
  width: 230px;
  grid-template-columns: 1fr;
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}

.dropdown a:hover {
  background: var(--ivory-200);
  color: var(--gold-700);
}

.nav-cta {
  margin-left: 8px;
}

/* -------------------------------- Hero -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(201, 160, 78, 0.22), transparent 60%),
    radial-gradient(700px 480px at 8% 108%, rgba(122, 31, 43, 0.28), transparent 62%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%23c9a04e' stroke-width='1'%3E%3Ccircle cx='40' cy='300' r='30' opacity='0.18'/%3E%3Ccircle cx='40' cy='300' r='55' opacity='0.14'/%3E%3Ccircle cx='40' cy='300' r='80' opacity='0.1'/%3E%3Ccircle cx='40' cy='300' r='105' opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: -40px 20%;
  background-size: 480px 480px;
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ccircle cx='70' cy='70' r='1.3' fill='%23c9a04e' fill-opacity='0.3'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  padding-block: clamp(48px, 7vw, 88px);
}

.hero-copy {
  padding-top: clamp(8px, 2vw, 28px);
}

.hero-copy .eyebrow {
  color: var(--gold-300);
}

.hero-copy h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero-copy p.lead {
  color: #cfd6e4;
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 26px;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-300);
}

.hero-stats div span {
  font-size: 0.82rem;
  color: #b8c0d3;
}

.hero-panel {
  position: relative;
}

.hero-form-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.hero-form-card h3 {
  color: var(--white);
  margin-bottom: 6px;
}

.hero-form-card > p {
  color: #c3cbdc;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.hero-form .field {
  margin-bottom: 14px;
}

.hero-form .field label {
  color: #dde3ef;
  font-size: 0.8rem;
}

.hero-form .field input,
.hero-form .field select {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.hero-form .field input::placeholder {
  color: #93a0b8;
}

.hero-form .field select option {
  color: var(--ink-900);
}

.hero-form-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #b8c0d3;
  text-align: center;
}

.hero-form-note a {
  color: var(--gold-300);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* --------------------------- Breadcrumbs --------------------------- */
.breadcrumb-bar {
  background: var(--navy-950);
  color: #a9b2c6;
  font-size: 0.82rem;
}

.breadcrumb-bar .container {
  padding-block: 12px;
}

.breadcrumb-bar ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb-bar li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--gold-600);
}

.breadcrumb-bar a:hover {
  color: var(--gold-300);
}

.breadcrumb-bar li[aria-current="page"] {
  color: var(--gold-300);
}

.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding-block: clamp(40px, 5vw, 72px);
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  color: #c3cbdc;
  max-width: 680px;
}

/* ---------------------------- Medical review byline -------------------------- */
.review-byline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.76rem;
  color: #b8c0d3;
}

.review-byline svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--gold-300);
}

.review-byline a {
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-byline a:hover {
  color: var(--white);
}

/* Light-background variant (used outside a navy .page-hero) */
.section-ivory .review-byline,
.section .review-byline {
  border-top-color: var(--color-border);
  color: var(--color-text-muted);
}

.section-ivory .review-byline svg,
.section .review-byline svg {
  color: var(--gold-700);
}

.section-ivory .review-byline a,
.section .review-byline a {
  color: var(--gold-700);
}

.section-ivory .review-byline a:hover,
.section .review-byline a:hover {
  color: var(--navy-900);
}

/* -------------------------------- Cards -------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300));
  color: var(--navy-900);
  margin-bottom: 18px;
}

.card .step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 16px;
}

.visit-step {
  text-align: center;
}

.visit-step .step-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold-500);
  margin-bottom: 6px;
}

.visit-step h3 {
  margin-bottom: 8px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 14px;
}

.card-link {
  font-weight: 700;
  color: var(--gold-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--navy-900);
}

/* -------------------------------- Trust bar -------------------------------- */
.trust-bar {
  background: var(--ivory-100);
  padding-block: 22px;
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 780px) {
  .trust-bar-inner {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy-900);
}

.trust-item > svg {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--gold-700);
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
}

.trust-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-grid--compact {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 780px) {
  .service-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .service-grid--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------ Doctor cards ----------------------------- */
.doctor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.doctor-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy-100);
}

@media (max-width: 640px) {
  .doctor-card .doctor-photo {
    max-height: 340px;
  }
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doctor-body {
  padding: 24px;
}

.doctor-body .role {
  color: var(--gold-700);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.doctor-body h3 {
  margin-bottom: 4px;
}

.doctor-cred {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.doctor-summary {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ivory-200);
  color: var(--navy-800);
  border: 1px solid var(--color-border);
}

/* ------------------------------ Photo gallery ---------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(12, 30, 61, 0.88), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 16, 30, 0.92);
  padding: 60px 20px;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  max-width: 900px;
  max-height: 100%;
  margin: 0;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-inline: auto;
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------ Video embeds ----------------------------- */
.video-facade {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-900);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.video-play-btn svg {
  margin-left: 3px;
}

.video-facade:hover .video-play-btn {
  transform: scale(1.08);
}

.video-facade.is-playing .video-play-btn {
  display: none;
}

.video-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.video-carousel-track .video-facade {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

@media (max-width: 560px) {
  .video-carousel-track .video-facade {
    flex-basis: 180px;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ---------------------------------- Blog ---------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card-cover {
  display: block;
}

.blog-card-cover-art {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950) 85%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.blog-card-cover-art::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 116, 0.25), transparent 70%);
}

.blog-cat-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(232, 200, 116, 0.5);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  position: relative;
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.blog-card-body h3 a {
  color: var(--navy-900);
}

.blog-card-body h3 a:hover {
  color: var(--gold-700);
}

.blog-card-body p {
  font-size: 0.92rem;
  flex: 1;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.blog-card-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card-author a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
}

.blog-card-author a:hover {
  color: var(--gold-700);
}

/* Post page */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
}

.blog-post-header .blog-cat-tag {
  border-color: var(--gold-500);
}

.blog-post-cover {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950) 85%);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-post-cover::before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 116, 0.2), transparent 70%);
}

.blog-post-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.blog-post-meta-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-post-meta-row a {
  font-weight: 700;
  color: var(--navy-800);
}

.blog-post-body h2 {
  margin-top: 1.6em;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--ivory-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 40px;
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.author-box h4 {
  margin-bottom: 2px;
}

.author-box .role {
  font-size: 0.82rem;
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: 8px;
}

.author-box p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}

.blog-sidebar-card h4 {
  margin-bottom: 14px;
}

.blog-sidebar-list li {
  padding-block: 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.blog-sidebar-list li:last-child {
  border-bottom: none;
}

.blog-sidebar-list a {
  font-weight: 600;
  color: var(--navy-800);
}

.blog-sidebar-list a:hover {
  color: var(--gold-700);
}

/* Author page */
.author-hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 700px) {
  .author-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-hero-grid .doctor-photo {
    margin-inline: auto;
    max-width: 220px;
  }
}

.author-hero-grid .doctor-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------------------------- About story side --------------------------- */
.about-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.about-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .doctor-profile {
    grid-template-columns: 1fr;
  }

  .doctor-profile .doctor-photo {
    max-width: 240px;
    margin-inline: auto;
  }
}

.doctor-profile .doctor-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-block: 20px;
}

.stat-box {
  position: relative;
  text-align: center;
  padding: 20px 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-box strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}

.stat-box span {
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

/* ------------------------------ Spec list -------------------------------- */
.spec-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.spec-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.spec-list .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold-700);
}

.spec-list strong {
  display: block;
  font-size: 0.94rem;
  color: var(--navy-900);
}

.spec-list span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ------------------------------ Finder cards ------------------------------ */
.finder-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.finder-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.finder-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.finder-card h3 {
  margin-bottom: 8px;
}

.finder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold-700);
  margin-top: 4px;
}

.finder-link:hover {
  color: var(--navy-900);
}

/* -------------------------------- Lists --------------------------------- */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-block: 8px;
  border-bottom: 1px dashed var(--color-border);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list .icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--gold-700);
}

/* -------------------------------- Timeline ------------------------------- */
.timeline {
  border-left: 2px solid var(--gold-300);
  margin-left: 10px;
  padding-left: 26px;
  display: grid;
  gap: 26px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--ivory-50);
}

/* -------------------------------- FAQ ------------------------------------ */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--navy-900);
}

.faq-question .plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-500);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.25s var(--ease);
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--gold-700);
}

.faq-question .plus::before {
  width: 11px;
  height: 2px;
}

.faq-question .plus::after {
  width: 2px;
  height: 11px;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .faq-question .plus::after {
  transform: scaleY(0);
}

.faq-item[open] .faq-question {
  color: var(--gold-700);
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 0;
}

/* ------------------------------ Testimonials ------------------------------ */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--gold-500);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.testimonial-card p {
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  display: grid;
  place-items: center;
  color: var(--navy-950);
  font-weight: 700;
  font-family: var(--font-heading);
}

.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ---------------------------- Testimonial carousel -------------------------- */
.tcarousel-viewport {
  overflow: hidden;
}

.tcarousel-track {
  display: flex;
  transition: transform 0.4s var(--ease);
}

.tcarousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px;
}

@media (min-width: 781px) {
  .tcarousel-slide {
    flex-basis: 50%;
  }
}

@media (min-width: 1080px) {
  .tcarousel-slide {
    flex-basis: 33.3333%;
  }
}

.tcarousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.tcarousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  flex: none;
}

.section-alt .tcarousel-arrow {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.tcarousel-arrow svg {
  transform: rotate(90deg);
}

.tcarousel-arrow-next svg {
  transform: rotate(-90deg);
}

.tcarousel-arrow:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.tcarousel-dots {
  display: flex;
  gap: 8px;
}

.tcarousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.section-alt .tcarousel-dot {
  background: rgba(255, 255, 255, 0.25);
}

.tcarousel-dot.is-active {
  background: var(--gold-500);
  transform: scale(1.25);
}

/* ----------------------------- Symptom checker ------------------------------ */
.symptom-checker h2 {
  color: var(--maroon-700);
}

.symptom-head-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.symptom-head-grid .section-head {
  max-width: none;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .symptom-head-grid {
    grid-template-columns: 1fr;
  }
}

.symptom-help-card {
  background: var(--ivory-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.symptom-help-card h3 {
  margin-bottom: 8px;
}

.symptom-help-card p {
  margin-bottom: 18px;
}

.symptom-help-card .btn {
  width: 100%;
  margin-bottom: 10px;
}

.symptom-help-card .btn:last-child {
  margin-bottom: 0;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-block: 36px;
}

@media (max-width: 780px) {
  .symptom-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.symptom-col h3 {
  color: var(--maroon-700);
  font-size: 1.15rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-500);
  margin-bottom: 16px;
}

.symptom-col ul {
  display: grid;
  gap: 12px;
}

.symptom-col li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--color-text);
}

.symptom-col .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--gold-600);
}

.symptom-urgent-inline {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--maroon-600);
  color: var(--ink-700);
}

.symptom-urgent-inline strong {
  color: var(--maroon-700);
}

/* ------------------------------ Location cards ----------------------------- */
.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.location-card .location-head {
  background: var(--navy-900);
  color: var(--white);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.location-card .location-head h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.1rem;
}

.location-card .location-body {
  padding: 22px;
}

.location-card address {
  font-style: normal;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.location-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.location-meta li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.location-meta .icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--gold-700);
  margin-top: 2px;
}

/* -------------------------------- Forms ---------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid > * {
  min-width: 0;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
}

.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 160, 78, 0.2);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-md);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #e9f6ef;
  color: var(--success);
  font-weight: 700;
  margin-bottom: 18px;
}

.form-success.visible {
  display: block;
}

/* ------------------------------- CTA banner ------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 78, 0.35), transparent 70%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner p {
  color: #c3cbdc;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* --------------------------- Sticky mobile CTA ---------------------------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: none;
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  gap: 10px;
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
}

@media (max-width: 780px) {
  .mobile-cta-bar {
    display: flex;
  }
  body {
    padding-bottom: 66px;
  }
}

/* -------------------------------- Footer --------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: #b8c0d3;
  padding-top: clamp(48px, 6vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  height: 80px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: #97a1b8;
  font-size: 0.9rem;
  max-width: 320px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-row a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: #b8c0d3;
}

.footer-col a:hover {
  color: var(--gold-300);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
}

.footer-contact .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold-300);
  margin-top: 3px;
}

.footer-bottom {
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8994ac;
}

.footer-bottom a:hover {
  color: var(--gold-300);
}

/* ------------------------------- Misc / prose ------------------------------ */
.prose h2 {
  margin-top: 34px;
  margin-bottom: 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul,
.prose ol {
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.prose ul li,
.prose ol li {
  padding-left: 22px;
  position: relative;
  color: var(--color-text-muted);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col > * {
  min-width: 0;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.side-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.side-panel h3 {
  margin-bottom: 14px;
}

.side-panel .btn {
  margin-top: 10px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-block: 18px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--ivory-100);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

a.badge-pill:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.divider-gold {
  height: 3px;
  width: 70px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  margin-block: 18px;
}

/* -------------------------------- Responsive nav -------------------------------- */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100vh;
    width: min(340px, 88vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 22px 26px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 550;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    width: auto;
    grid-template-columns: 1fr;
    padding: 0 0 10px 14px;
  }

  .has-dropdown.is-expanded .dropdown {
    display: grid;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 18px 0 0;
    gap: 10px;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 21, 39, 0.5);
    z-index: 450;
  }

  .nav-backdrop.is-visible {
    display: block;
  }
}

@media (min-width: 981px) {
  .main-nav {
    display: flex !important;
    transform: none !important;
  }
}

/* ---------------------------- Motion & hover polish -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance (JS-independent, runs on load) */
  .hero-copy {
    animation: heroRise 0.7s var(--ease) both;
  }

  .hero-panel {
    animation: heroRise 0.7s var(--ease) 0.12s both;
  }

  @keyframes heroRise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Scroll-reveal: the .js-anim class is added synchronously at the top of
     <body>, before these elements parse, so there is no flash of visible
     content. Without JS, .js-anim is never added and everything stays
     visible by default — content is never hidden from no-JS users/crawlers. */
  .js-anim .card,
  .js-anim .doctor-card,
  .js-anim .location-card,
  .js-anim .testimonial-card,
  .js-anim .stat-box,
  .js-anim .symptom-col,
  .js-anim .faq-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }

  .js-anim .card.is-inview,
  .js-anim .doctor-card.is-inview,
  .js-anim .location-card.is-inview,
  .js-anim .testimonial-card.is-inview,
  .js-anim .stat-box.is-inview,
  .js-anim .symptom-col.is-inview,
  .js-anim .faq-item.is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav link underline sweep */
.main-nav a.nav-link {
  position: relative;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a.nav-link:hover::after,
.main-nav a.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Doctor photo zoom on hover */
.doctor-photo img {
  transition: transform 0.6s var(--ease);
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.06);
}

/* Card icon lift on hover */
.card .icon {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Location & testimonial cards join the same lift as .card */
.location-card,
.testimonial-card {
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.location-card:hover,
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Service-card arrow nudge */
.card-link svg {
  transition: transform 0.25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* Social/contact icon buttons already scale via background change; add a lift */
.social-row a,
.tcarousel-arrow {
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.social-row a:hover,
.tcarousel-arrow:hover {
  transform: translateY(-2px);
}

/* Stat box hover lift */
.stat-box {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}

/* -------------------------------- Print -------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .mobile-cta-bar,
  .breadcrumb-bar {
    display: none;
  }
}
