/* ==========================================================================
   DrJavedSikandar.com — "VeinCare Premium + Doctor First"
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #073B5C;
  --navy-900: #04283F;
  --navy-700: #0B4A72;
  --teal: #00A6A6;          /* brand teal — accents, icons, large text */
  --teal-deep: #007F84;     /* AA-contrast teal for buttons & small text on white */
  --aqua: #DFF7F6;
  --aqua-50: #F0FBFB;
  --grey-bg: #F5F8FA;
  --white: #FFFFFF;
  --gold: #C2A36B;          /* use sparingly */
  --gold-soft: #E9D9B8;
  --whatsapp: #1DA851;

  --ink: #10283A;
  --text: #3D5566;
  --muted: #647A89;
  --line: #E1EAEF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(7, 59, 92, .05), 0 4px 14px rgba(7, 59, 92, .05);
  --shadow: 0 2px 6px rgba(7, 59, 92, .05), 0 14px 36px rgba(7, 59, 92, .09);
  --shadow-lg: 0 30px 70px rgba(7, 59, 92, .18);

  --gutter: 16px;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.005em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Placeholder markers — dashed gold so unverified content is obvious during review */
.ph {
  display: inline;
  padding: .05em .4em;
  border: 1px dashed rgba(194, 163, 107, .85);
  border-radius: 6px;
  background: rgba(194, 163, 107, .12);
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph-block {
  border: 1.5px dashed rgba(194, 163, 107, .8);
  background: rgba(194, 163, 107, .07);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 1.4rem;
  font-size: .95rem;
}
.ph-block p:last-child { margin: 0; }
.ph-block-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8C7240; margin-bottom: .4rem !important; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal-deep); --btn-fg: #fff; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em;
  border: 1.5px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .97rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(7, 59, 92, .16); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { min-height: 54px; padding: .9em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary:hover { --btn-bg: var(--navy); }
.btn-navy { --btn-bg: var(--navy); }
.btn-navy:hover { --btn-bg: var(--teal-deep); }
.btn-whatsapp { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: var(--line); }
.btn-whatsapp .icon { color: var(--whatsapp); }
.btn-whatsapp:hover { --btn-border: var(--whatsapp); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn-light:hover { --btn-bg: var(--aqua); }
.btn-teal-light { --btn-bg: var(--teal); --btn-fg: var(--navy-900); }
.btn-teal-light:hover { --btn-bg: var(--aqua); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }

.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--teal-deep); }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 1rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--teal); }
.eyebrow--light { color: var(--teal); }
.fine-print { font-size: .8rem; color: var(--muted); margin: 0; }

.tag {
  display: inline-block; padding: .3em .8em; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--aqua); color: var(--teal-deep);
}
.tag--navy { background: #E6EEF4; color: var(--navy); }
.tag--gold { background: rgba(194, 163, 107, .18); color: var(--gold-soft); border: 1px solid rgba(194, 163, 107, .5); }

/* ---------- Top bar ---------- */
.topbar { display: none; background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-list { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar-list li, .topbar-list a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar-list a:hover { color: #fff; }
.topbar .icon { color: var(--teal); }
.topbar .ph { border-color: rgba(194, 163, 107, .55); background: rgba(194, 163, 107, .1); }
@media (min-width: 900px) { .topbar { display: block; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(7, 59, 92, .08); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
/* header + top bar get a slightly wider content area so the full logo/name/designation
   unit and the complete navigation fit on one line without squeezing */
.site-header .container, .topbar .container { --container: 1400px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--ink); margin-right: auto; white-space: nowrap; }
.brand:hover { color: var(--ink); }
/* official logo artwork (opaque navy square) shown as a rounded-square brand mark;
   the frame trims only empty navy margin around the emblem so it stays legible */
.brand-mark { flex: none; display: block; width: 50px; height: 50px; overflow: hidden; border-radius: 13px; background: #04233F; box-shadow: 0 2px 8px rgba(4, 35, 63, .16); }
.brand-mark img { display: block; width: 100%; height: 100%; transform: scale(1.22); }
.brand--light .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; color: var(--navy); }
.brand-role { font-size: .64rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand--light .brand-name { color: #fff; }
.brand--light .brand-role { color: rgba(255, 255, 255, .65); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  position: relative; display: block; padding: 8px 7px;
  font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
  border-radius: 8px; transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--teal-deep); background: var(--aqua-50); }
.primary-nav a[aria-current="page"] { color: var(--teal-deep); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--teal);
}
.header-cta { display: none; min-height: 44px; padding: .6em 1.15em; font-size: .9rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 639px) {
  .brand { gap: 10px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 11px; }
  .brand-name { font-size: 1.06rem; }
  .brand-role { font-size: .58rem; letter-spacing: .01em; margin-top: 2px; }
}
@media (max-width: 359px) {
  .brand-role { display: none; }
}
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1440px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .header-inner { gap: 16px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s linear .35s; }
.mobile-menu.is-open { visibility: visible; transition-delay: 0s; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(4, 40, 63, .45); opacity: 0; transition: opacity .3s; }
.mobile-menu.is-open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  display: flex; flex-direction: column; gap: 20px;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.mobile-menu.is-open .mobile-menu-panel { transform: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; }
.icon-btn .icon { width: 22px; height: 22px; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 600;
}
.mobile-nav a::after { content: "→"; color: var(--teal); font-weight: 400; }
.mobile-nav a[aria-current="page"] { color: var(--teal-deep); }
.mobile-menu-actions { display: grid; gap: 10px; }
.mobile-menu-contact { display: grid; gap: 10px; font-size: .9rem; color: var(--muted); }
.mobile-menu-contact li { display: flex; align-items: center; gap: 10px; }
.mobile-menu-contact .icon { color: var(--teal-deep); }
.mobile-menu-contact a { color: inherit; }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 5vw + 40px, 120px); }
.section--tint { background: var(--grey-bg); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .8); overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy > .container { position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-lead { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section-head--split { max-width: none; display: grid; gap: 16px 48px; text-align: left; align-items: end; }
.section-head--split .eyebrow { justify-content: flex-start; }
.section-head--split h2 { margin: 0; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; } }
.section-foot { margin: 32px 0 0; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  --hero-pb: clamp(56px, 7vw, 112px);
  padding-block: clamp(40px, 6vw, 96px) var(--hero-pb);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(0, 166, 166, .14), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(223, 247, 246, .9), transparent 70%),
    linear-gradient(180deg, var(--grey-bg), #fff);
}
.hero-veins { position: absolute; top: 0; right: 0; width: min(900px, 100%); height: 100%; pointer-events: none; }
.vein-flow { stroke-dasharray: 14 10; animation: vein-flow 6s linear infinite; }
.vein-flow--slow { animation-duration: 10s; }
@keyframes vein-flow { to { stroke-dashoffset: -240; } }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-title { margin: 0 0 1.25rem; }
.hero-name {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em;
  color: var(--navy);
}
.hero-role {
  display: block; margin-top: .6rem;
  font-size: clamp(1.1rem, .95rem + .8vw, 1.5rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  color: var(--teal-deep);
}
.hero-role .amp { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--gold); }
.positioning {
  margin: 0 0 1.25rem;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.02rem, .92rem + .45vw, 1.25rem); line-height: 1.45;
  color: var(--navy);
}
.positioning .dot { color: var(--gold); font-style: normal; margin-right: .1em; }
.section--navy .positioning { color: #fff; }
.hero-lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); max-width: 560px; margin-bottom: 2rem; }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 2.25rem 0 .9rem; max-width: 560px; }
.benefits li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.benefit-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--aqua); color: var(--teal-deep); flex: none; }

/* Transparent-background portrait: the photo sits on the hero's bottom edge so the
   cut-off at the chest reads as the section boundary, with a soft teal glow behind. */
.hero-visual {
  position: relative; align-self: end;
  width: 100%; max-width: 600px;
  margin: 0 auto calc(var(--hero-pb) * -1);
}
.hero-photo { position: relative; display: block; width: 92%; height: auto; margin-inline: auto; }
.hero-photo-glow {
  position: absolute; left: 50%; top: 4%; width: 92%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(0, 166, 166, .2) 0%, rgba(223, 247, 246, .75) 45%, rgba(223, 247, 246, 0) 70%);
  pointer-events: none;
}
.hero-photo-glow::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  border: 1.5px solid rgba(0, 166, 166, .22);
}

.portrait {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--aqua) 0%, #F7FCFC 55%, #E7F0F5 100%);
  box-shadow: var(--shadow-lg);
}
/* square photo anchored to the bottom of the 4:5 frame — never cropped */
.portrait-photo { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: auto; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow);
  font-size: .78rem; line-height: 1.3; color: var(--muted);
}
.float-card strong { display: block; color: var(--ink); font-size: .9rem; }
.float-card small { font-size: .76rem; }
.float-card { z-index: 1; }
/* kept clear of the face, hair and shoulders: one above the head, one beside the lower sleeve */
.float-card--top { top: -14%; right: 0; }
.float-card--bottom { bottom: 4%; left: -12%; }
.float-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--aqua); color: var(--teal-deep); }
.float-icon .icon { width: 22px; height: 22px; }
.float-icon--navy { background: var(--navy); color: #fff; }

@media (min-width: 600px) and (max-width: 959px) {
  /* stacked tablet layout: badges sit in the side margins beside the hair and sleeve */
  .float-card--top { top: 2%; right: -8%; }
  .float-card--bottom { bottom: 4%; left: -8%; }
}
@media (max-width: 599px) {
  /* phones: let the portrait bleed to the screen edges instead of shrinking it */
  .hero-visual { width: calc(100% + var(--gutter) * 2); max-width: none; margin-inline: calc(var(--gutter) * -1); }
  .hero-photo { width: 100%; }
  .hero-photo-glow { width: 100%; }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; font-size: .72rem; max-width: calc(50% - var(--gutter) - 4px); }
  .float-card strong { font-size: .82rem; }
  .float-icon { width: 34px; height: 34px; }
  /* both badges sit side by side over the lower jacket, below the shoulders */
  .float-card--top, .float-card--bottom { top: auto; right: auto; bottom: 14px; }
  .float-card--bottom { left: var(--gutter); }
  .float-card--top { left: auto; right: var(--gutter); }
}
@media (max-width: 380px) {
  .float-card small { display: none; }
}
@media (max-width: 420px) {
  .benefits { grid-template-columns: 1fr; }
  .hero .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 100%; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; }
  .hero-visual { max-width: 600px; margin-right: 0; }
}

/* ---------- Expertise ---------- */
.expertise-grid { display: grid; gap: 20px; }
.x-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.x-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0, 166, 166, .35); }
.x-card h3 { margin-top: 18px; }
.x-card p { color: var(--muted); font-size: .95rem; }
.x-card .text-link { margin-top: auto; }
.x-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--aqua); color: var(--teal-deep); flex: none; }
.x-icon .icon { width: 26px; height: 26px; }
.x-icon--light { background: rgba(255, 255, 255, .1); color: var(--teal); border: 1px solid rgba(255, 255, 255, .14); }

.x-card--featured {
  --pad: clamp(28px, 3vw, 44px);
  overflow: hidden; padding: var(--pad);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 60%, #0A5B79 100%);
  border: 0; color: rgba(255, 255, 255, .8);
}
.x-card--featured:hover { border-color: transparent; }
.x-card--featured .tag { margin-bottom: 22px; }
.x-card--featured h3 { margin-top: 0; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.x-card--featured p { color: rgba(255, 255, 255, .78); font-size: 1rem; max-width: 460px; }
.x-card--featured .btn { margin-top: auto; }
.x-card-veins { position: absolute; right: -40px; top: 0; width: 300px; height: 100%; color: var(--teal); opacity: .35; pointer-events: none; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; }
.chip-list li { padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }

.x-feature-main, .x-feature-side { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 640px) {
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-card--featured { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Varicose Veins Treatment photograph — on phones it sits above the heading; from tablet up the
   text stays on the left and the photo fills the right ~45%. The photo itself fades to transparent
   (CSS mask), so the card's own navy gradient shows through and there is no hard edge or seam. */
.x-feature-photo {
  /* phones: 13:6 frame (~19% shorter than 16:9); tablet/desktop override this with a stretched split */
  position: relative; align-self: stretch; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 24px; aspect-ratio: 13 / 6; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.x-feature-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 36% center; }
.x-feature-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(4, 40, 63, .12); }
@media (min-width: 768px) {
  .x-card--featured { --gap: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-rows: auto 1fr; column-gap: var(--gap); align-items: start; }
  .x-feature-main { grid-column: 1; grid-row: 1; }
  .x-feature-side { grid-column: 1; grid-row: 2; }
  .x-feature-photo {
    grid-column: 2; grid-row: 1 / span 2; align-self: stretch; aspect-ratio: auto; min-height: 280px;
    margin: calc(var(--pad) * -1) calc(var(--pad) * -1) calc(var(--pad) * -1) calc(var(--gap) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 20%, #000 46%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 20%, #000 46%);
  }
  .x-feature-photo img { object-position: 40% center; }
  .x-card--featured .x-card-veins { display: none; }
}
@media (min-width: 1024px) {
  .x-card--featured { --gap: 48px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.about-visual { position: relative; margin: 0 auto; width: 100%; max-width: 440px; }
.portrait--about { z-index: 1; box-shadow: var(--shadow); }
.about-accent {
  position: absolute; z-index: 0; inset: 24px -18px -18px 24px; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, var(--aqua) 0 2px, transparent 2px 12px);
  border: 1px solid rgba(0, 166, 166, .25);
}
@media (max-width: 520px) {
  /* keep the offset accent inside the viewport on phones */
  .about-visual { max-width: calc(100% - 12px); margin-left: 0; }
  .about-accent { inset: 16px -12px -12px 16px; }
}
.about-subtitle { margin: -.4rem 0 1.4rem; font-weight: 600; color: var(--teal-deep); }
.credentials { display: grid; gap: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.credentials > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credentials dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.credentials dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (min-width: 560px) { .credentials > div { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: baseline; } }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
}

.why { margin-top: clamp(56px, 6vw, 88px); }
.why-title { text-align: center; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 32px; }
.why-title--spaced { margin-top: clamp(48px, 5vw, 72px); }
.why-grid { display: grid; gap: 16px; }
.why-card { padding: 26px; border-radius: var(--radius); background: var(--grey-bg); border: 1px solid transparent; transition: border-color .25s, background-color .25s; }
.why-card:hover { background: #fff; border-color: var(--line); }
.section--tint .why-card { background: #fff; border-color: var(--line); }
.why-card h4 { margin: 16px 0 6px; }
.why-card p { margin: 0; font-size: .93rem; color: var(--muted); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Varicose veins ---------- */
.varicose-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.varicose .container { position: relative; }
.varicose-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.varicose-copy h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); margin-bottom: .2em; }
.varicose-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--teal); margin-bottom: 1.4rem; }
.varicose-copy p { max-width: 600px; }
.varicose-copy .btn { margin-top: .8rem; }
/* Healthy vs varicose vein illustration (WebP, 1672×941) — shown whole, never cropped */
.vein-figure { margin: 0; }
.vein-figure-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain;
  border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .12);
  background: #0A3352; box-shadow: 0 24px 60px rgba(2, 20, 36, .35);
}
.vein-legend { display: grid; gap: 8px 24px; margin-top: 16px; font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.vein-legend strong { font-weight: 600; color: #fff; }
.vein-legend-item { display: flex; align-items: baseline; gap: 10px; }
.vein-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-1px); }
.vein-dot--healthy { background: var(--teal); }
.vein-dot--varicose { background: var(--gold); }
@media (max-width: 639px) { .vein-figure-img { border-radius: var(--radius); } }
/* legend items sit beneath their matching leg */
@media (min-width: 640px) {
  .vein-legend { grid-template-columns: 1fr 1fr; }
  .vein-legend-item:last-child { justify-content: flex-end; text-align: right; }
}
@media (min-width: 1200px) { .varicose-intro { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; } }

.journey { position: relative; display: grid; gap: 14px; counter-reset: step; }
.journey-step {
  position: relative; padding: 24px 22px 24px 84px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .25s, border-color .25s;
}
.journey-step:hover { background: rgba(255, 255, 255, .08); border-color: rgba(0, 166, 166, .5); }
.journey-icon {
  position: absolute; left: 20px; top: 22px;
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: var(--navy-900); box-shadow: 0 0 0 6px rgba(0, 166, 166, .15);
}
.journey-icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.journey-num { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--teal); margin-bottom: 4px; }
.journey-step h3 { margin-bottom: .35em; font-size: 1.12rem; }
.journey-step p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .72); }
/* connector line on mobile (vertical) */
.journey::before { content: ""; position: absolute; left: 42px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--teal), rgba(0, 166, 166, .1)); }
.journey-step { z-index: 1; }
@media (min-width: 1024px) {
  .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .journey::before { left: 10%; right: 10%; top: 45px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, rgba(0, 166, 166, .1), var(--teal), rgba(0, 166, 166, .1)); }
  .journey-step { padding: 22px 20px 24px; background: transparent; border-color: transparent; text-align: center; }
  .journey-step:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
  .journey-icon { position: relative; left: auto; top: auto; width: 50px; height: 50px; margin: 0 auto 18px; box-shadow: 0 0 0 8px var(--navy), 0 0 0 9px rgba(0, 166, 166, .35); }
}

.seek-care {
  display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 64px); padding: 24px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.seek-care h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: .4em; }
.seek-care h3 .icon { color: var(--teal); }
.seek-care p { margin: 0; font-size: .93rem; }
.seek-care-urgent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(194, 163, 107, .12); border: 1px solid rgba(194, 163, 107, .35); }
.seek-care-urgent .icon { color: var(--gold-soft); margin-top: 3px; }
.seek-care-urgent strong { color: #fff; }
.seek-care a { color: var(--gold-soft); font-weight: 700; }
@media (min-width: 900px) { .seek-care { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 28px 32px; gap: 32px; } }

/* ---------- Treatment highlights ---------- */
.treatment-scroller { outline-offset: 6px; }
.treatment-grid { display: grid; gap: 20px; }
.t-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.t-card .x-icon { margin: 18px 0 16px; }
.t-card h3 { font-size: 1.12rem; }
.t-card p { margin: 0; font-size: .93rem; color: var(--muted); }
@media (max-width: 639px) {
  /* swipeable row on phones, contained so the page never scrolls sideways */
  .treatment-scroller { margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .treatment-scroller::-webkit-scrollbar { display: none; }
  .treatment-grid { grid-auto-flow: column; grid-auto-columns: 82%; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .t-card { scroll-snap-align: center; }
}
@media (min-width: 640px) { .treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .treatment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Gallery ---------- */
/* Treatment cases: continuously scrolling track (see main.js); photos are never cropped */
.ba-gallery { --ba-gap: 18px; position: relative; }
.ba-empty { display: flex; flex-direction: column; align-items: center; max-width: 640px; margin-inline: auto; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.ba-empty[hidden] { display: none; }
.ba-empty p { max-width: 52ch; margin: 18px 0 0; font-size: 1.02rem; line-height: 1.65; color: var(--muted); text-wrap: balance; }
.ba-scroller { overflow-x: auto; padding-block: 8px 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ba-scroller::-webkit-scrollbar { display: none; }
.ba-track { display: flex; gap: var(--ba-gap); }
.ba-slide { flex: 0 0 82%; min-width: 0; }
.ba-card {
  display: block; width: 100%; height: 100%; padding: 10px 10px 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); text-align: left; cursor: zoom-in;
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.ba-card:hover { box-shadow: var(--shadow); border-color: rgba(0, 166, 166, .35); }
.ba-card:focus-visible { outline-offset: -3px; }
.ba-frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #F2F8FB; }
.ba-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ba-frame--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: none; }
.ba-half { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 10px; background: #F2F8FB; }
.ba-label { position: absolute; left: 8px; top: 8px; padding: .3em .7em; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: #fff; }
.ba-label--before { background: var(--navy); }
.ba-label--after { background: var(--teal-deep); }
.ba-lb-frame.ba-frame--pair img { height: min(68dvh, 720px); }
.ba-meta { display: block; padding: 12px 6px 14px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.ba-meta strong { display: block; font-size: .98rem; color: var(--ink); }
.ba-controls { display: flex; justify-content: center; gap: 10px; }
.no-js .ba-controls { display: none; }
.ba-btn {
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--navy); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.ba-btn:hover { background: var(--aqua); border-color: var(--teal); }
.ba-flip { transform: scaleX(-1); }
.ba-controls[hidden], .ba-btn[hidden] { display: none; }
.ba-gallery[data-mode="static"] .ba-track { justify-content: center; }
.ba-lightbox { width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.ba-lightbox::backdrop { background: rgba(4, 40, 63, .82); }
.ba-lb-inner { position: relative; padding: clamp(16px, 3vw, 28px); }
.ba-lb-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.ba-lb-title { margin: 0 56px .2em 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
.ba-lb-detail { margin: 0 56px 14px 0; font-size: .92rem; color: var(--teal-deep); font-weight: 600; }
.ba-lb-frame { aspect-ratio: auto; }
.ba-lb-frame img { height: auto; max-height: min(68dvh, 720px); }
.ba-lb-detail:empty { display: none; }
.ba-lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ba-lb-note { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }
body.lb-open { overflow: hidden; }
/* phones: full-bleed row, one prominent card with the next one peeking in */
@media (max-width: 639px) {
  .ba-gallery { --ba-gap: 12px; }
  .ba-scroller { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}
@media (min-width: 640px) { .ba-slide { flex-basis: calc((100% - var(--ba-gap)) / 2); } }
@media (min-width: 1100px) { .ba-slide { flex-basis: calc((100% - var(--ba-gap) * 2) / 3); } }
.privacy-note {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 22px 24px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.privacy-note h3 { font-size: 1.02rem; margin-bottom: .3em; }
.privacy-note p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 480px) { .privacy-note { flex-direction: column; } }

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(180deg, #fff, var(--aqua-50)); }
.testimonial-grid { display: grid; gap: 20px; }
.q-card {
  display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: var(--radius);
  background: #fff; border: 1.5px dashed rgba(194, 163, 107, .55); box-shadow: var(--shadow-sm);
}
.q-mark { display: block; height: 40px; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--teal); }
.q-text { flex: 1; margin: 8px 0 24px; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; line-height: 1.5; color: var(--muted); }
.q-meta { display: flex; align-items: center; gap: 12px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); line-height: 1.35; }
.q-meta strong { display: block; color: var(--ink); font-size: .92rem; }
.q-avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--aqua); color: var(--teal-deep); }
@media (min-width: 800px) { .testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- CTA + appointment form ---------- */
.cta-section { background: var(--grey-bg); }
.cta-card {
  --pad-y: clamp(28px, 4vw, 64px); --pad-x: clamp(20px, 4vw, 64px);
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: clamp(22px, 3vw, 36px);
  background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(0, 166, 166, .28), transparent 60%), linear-gradient(140deg, var(--navy-900), var(--navy) 55%, #0A5577);
  color: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-lg);
}
.cta-veins { position: absolute; left: -60px; top: 0; height: 100%; width: 520px; pointer-events: none; }
.cta-copy { position: relative; align-self: center; }
.cta-copy h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.cta-copy > p:not(.eyebrow) { font-size: 1.05rem; max-width: 520px; margin-bottom: 1.8rem; }
/* consultation locations & timings (inside the navy appointment card) */
.locations { margin-top: 2.25rem; }
.locations-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.locations-title .icon { color: var(--teal); }
.location-list { display: grid; gap: 10px; }
.location { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.location-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(0, 166, 166, .16); color: var(--teal); }
.location-icon .icon { width: 19px; height: 19px; }
.location h4 { margin: 0 0 4px; font-size: .95rem; line-height: 1.3; color: #fff; }
.location p { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .86rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.location p .icon { width: 14px; height: 14px; color: var(--teal); }
@media (min-width: 560px) { .location-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cta-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* Consultation photograph — top of the card on phones/tablets; on desktop it fills the top of the
   right column (bleeding to the card corner). It fades to transparent towards the copy (strong navy
   → medium → photo) and at the bottom, and the form overlaps only its lower desk area. */
.cta-photo {
  position: relative; margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1) -8px; aspect-ratio: 16 / 9; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}
.cta-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 34% center; }
.cta-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(4, 40, 63, .14); }
@media (min-width: 640px) and (max-width: 1023px) { .cta-photo { aspect-ratio: 21 / 9; } }
@media (min-width: 1024px) {
  .cta-card--photo { grid-template-areas: "copy photo" "copy form"; grid-template-rows: auto 1fr; row-gap: 0; }
  .cta-card--photo .cta-copy { grid-area: copy; }
  .cta-card--photo .appt-form { grid-area: form; align-self: start; margin-top: -84px; z-index: 1; }
  .cta-photo {
    grid-area: photo; aspect-ratio: auto; height: clamp(240px, 19vw, 290px);
    margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1) 0 -56px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 22%, #000 48%), linear-gradient(180deg, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 22%, #000 48%), linear-gradient(180deg, #000 55%, transparent 100%);
    mask-composite: intersect;
  }
  .cta-photo img { object-position: 36% center; }
}
.appt-form { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: #fff; color: var(--text); box-shadow: var(--shadow); }
.appt-form h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin-bottom: .3em; }
.form-intro { font-size: .92rem; color: var(--muted); margin-bottom: 1.4rem; }
.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.req { color: #B4413C; }
.optional { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--grey-bg);
  font-size: 1rem; /* ≥16px avoids iOS zoom on focus */
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073B5C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(0, 166, 166, .15); }
.field [aria-invalid="true"] { border-color: #B4413C !important; background-color: #FDF6F5 !important; }
.field-error { margin: 6px 0 0; font-size: .8rem; font-weight: 600; color: #B4413C; }
.field-error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: start; margin: 6px 0 18px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-deep); }
.field--check label { font-weight: 500; font-size: .86rem; color: var(--text); margin: 0; }
.field--check .field-error { grid-column: 2; }
.form-status { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; font-size: .9rem; background: var(--aqua); color: var(--navy); border: 1px solid rgba(0, 166, 166, .35); }
.form-status.is-info { background: rgba(194, 163, 107, .12); border-color: rgba(194, 163, 107, .5); color: var(--ink); }
.form-privacy { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: clamp(56px, 6vw, 88px) 0 28px; font-size: .93rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-location { display: flex; align-items: center; gap: 8px; margin: 20px 0 18px; }
.footer-location .icon, .footer-contact .icon { color: var(--teal); }
.footer-title { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-title--spaced { margin-top: 28px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-col a:hover { color: var(--teal); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; }
.site-footer .ph { border-color: rgba(194, 163, 107, .5); background: rgba(194, 163, 107, .08); color: rgba(255, 255, 255, .75); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background-color .2s, border-color .2s; }
.social-link:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.social-link.is-placeholder { border-style: dashed; border-color: rgba(194, 163, 107, .55); color: rgba(255, 255, 255, .45); cursor: help; }
.footer-disclaimer { display: flex; gap: 14px; margin-top: 48px; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; line-height: 1.6; }
.footer-disclaimer .icon { color: var(--teal); margin-top: 3px; }
.footer-disclaimer p { margin: 0; }
.footer-disclaimer strong { color: #fff; }
.footer-disclaimer a { color: var(--teal); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; } }

/* ---------- Mobile bottom action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px rgba(7, 59, 92, .08);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 54px; border-radius: 12px; text-decoration: none;
  font-size: .76rem; font-weight: 700; color: var(--navy); background: var(--grey-bg);
}
.mobile-bar a .icon { width: 20px; height: 20px; }
.mobile-bar a:nth-child(2) .icon { color: var(--whatsapp); }
.mobile-bar a.is-primary { flex-direction: row; gap: 8px; font-size: .88rem; white-space: nowrap; background: var(--teal-deep); color: #fff; }
@media (max-width: 400px) { .mobile-bar a.is-primary .icon { display: none; } }
@media (max-width: 350px) { .mobile-bar a.is-primary { font-size: .8rem; } }
body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Inner pages (About, etc.) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 5vw, 80px) clamp(48px, 6vw, 96px);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(0, 166, 166, .14), transparent 70%),
    linear-gradient(180deg, var(--grey-bg), #fff);
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; font-size: .84rem; color: var(--muted); }
.breadcrumb a { color: var(--teal-deep); text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.page-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -.02em; color: var(--navy); margin-bottom: .4em; }
.page-hero .hero-role { margin: 0 0 1.25rem; }

.role-grid { display: grid; gap: 20px; }
.role-card { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.role-card h3 { margin-bottom: .25em; }
.role-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.role-card .tag { margin-bottom: 10px; }
@media (min-width: 800px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hospital-grid { display: grid; gap: 16px; }
.hospital-card { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.hospital-card .x-icon { width: 46px; height: 46px; }
@media (min-width: 720px) { .hospital-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.focus-list { display: grid; gap: 12px; }
.focus-list li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.focus-list li.is-featured { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); color: #fff; }
.focus-list .icon { color: var(--teal); width: 22px; height: 22px; }
@media (min-width: 640px) { .focus-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .focus-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.split-grid { display: grid; gap: 40px; align-items: start; }
.split-copy p { max-width: 620px; }
.rays-features { display: grid; gap: 14px; }
.rays-feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.rays-feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.rays-feature p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .72); }
.rays-feature .x-icon { flex: none; }
.rays-note { margin-top: 1.5rem; font-size: .84rem; color: rgba(255, 255, 255, .6); }
.rays-note .ph { border-color: rgba(194, 163, 107, .55); background: rgba(194, 163, 107, .1); color: rgba(255, 255, 255, .8); }
@media (min-width: 960px) { .split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }

.cta-card--simple { text-align: center; }
.cta-card--simple .cta-copy { max-width: 680px; margin-inline: auto; }
.cta-card--simple .cta-copy > p:not(.eyebrow) { margin-inline: auto; }
.cta-card--simple .btn-row, .cta-card--simple .eyebrow { justify-content: center; }
@media (min-width: 1024px) { .cta-card--simple { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gallery, Contact, Patient Information and legal pages ---------- */
.page-hero--compact { padding-block: clamp(32px, 4vw, 64px) clamp(36px, 4vw, 64px); }
.page-note { display: flex; align-items: flex-start; gap: 10px; margin: 1.5rem 0 0; font-size: .92rem; color: var(--muted); }
.page-note .icon { flex: none; width: 18px; height: 18px; margin-top: .2em; color: var(--teal-deep); }
.role-card .text-link { display: inline-flex; margin: 12px 18px 0 0; }
@media (min-width: 960px) { .role-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.locations--page { max-width: 860px; margin: 0 auto; }
.legal-section { padding-block-start: clamp(32px, 4vw, 56px); }
.legal { max-width: 800px; }
.legal h2 { margin: 2.2rem 0 .6rem; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); }
.legal p, .legal li { max-width: 72ch; }
.legal ul { margin: 0 0 1rem; padding-left: 1.3rem; list-style: disc; }
.legal li { margin-bottom: .55rem; }
.legal li::marker { color: var(--teal-deep); }
.legal-updated { font-size: .92rem; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(80px, 12vw, 160px); text-align: center; background: linear-gradient(180deg, var(--grey-bg), #fff); }
.notfound h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); }
.notfound p { max-width: 520px; margin-inline: auto; }
.notfound .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .vein-flow { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
