/* Self-hosted latin subsets (SIL Open Font License).
   Both families are variable fonts, so one file per family covers every weight used. */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/libre-baskerville.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/source-sans-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-red: #bb171d;
  --brand-red-deep: #8d0f15;
  --brand-blue: #342d97;
  --brand-blue-deep: #17184d;
  --brand-ink: #121427;
  --brand-slate: #56607a;
  --brand-surface: #f4f7fc;
  --brand-surface-strong: #eef2fb;
  --brand-white: #ffffff;
  --brand-line: rgba(18, 20, 39, 0.09);
  --brand-shadow: 0 24px 60px rgba(23, 24, 77, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 32px));
  --font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brand-ink);
  background:
    radial-gradient(circle at top left, rgba(187, 23, 29, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(52, 45, 151, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 36%, #eef3fb 100%);
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(52, 45, 151, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  box-shadow: 0 0 0 6px rgba(52, 45, 151, 0.08);
}

.section-shell {
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  justify-items: center;
  text-align: center;
}

.section-head > p {
  max-width: 68ch;
}

.section-head h1,
.section-head h2,
.section-head h3,
.page-hero-copy h1,
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head h2,
.page-hero-copy h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
}

.section-head p,
.hero-copy p,
.page-hero-copy p,
.body-copy,
.card-copy,
.stat-card span,
.doctor-summary p,
.profile-copy p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 1.02rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-primary,
.button-secondary,
.button-text,
.rail-button {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-red) 0%, #d63f43 40%, var(--brand-blue) 100%);
  box-shadow: 0 16px 30px rgba(52, 45, 151, 0.18);
}

.button-primary:hover,
.button-secondary:hover,
.button-text:hover,
.rail-button:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--brand-blue-deep);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(52, 45, 151, 0.16);
}

.button-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(23, 24, 77, 0.08);
}

.nav-shell {
  padding: 12px 0;
}

.nav-shell .container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(52, 45, 151, 0.14);
  background: var(--brand-white);
}

.brand-mark {
  min-width: 0;
}

.brand-mark strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.18;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark span {
  display: block;
  color: var(--brand-slate);
  font-size: 0.76rem;
  line-height: 1.35;
}

.site-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 30px);
}

.site-nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: var(--brand-white);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-left: 6px;
  max-width: 242px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(52, 45, 151, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue-deep);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 28px rgba(23, 24, 77, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta-secondary:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(52, 45, 151, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue-deep);
  align-items: center;
  justify-content: center;
}

.hero-home {
  padding: 52px 0 88px;
}

.hero-layout,
.page-hero-layout,
.split-layout,
.profile-grid,
.about-grid,
.contact-grid,
.media-callout,
.experience-grid,
.cta-banner,
.footer-grid,
.detail-grid,
.gallery-preview-grid,
.content-columns {
  display: grid;
  gap: 28px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 36px;
  align-items: start;
}

.hero-home .hero-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.hero-card,
.glass-card,
.surface-card,
.doctor-card,
.service-hero-card,
.profile-card,
.faq-card,
.map-card,
.gallery-card,
.metric-card,
.experience-card,
.timeline-card,
.contact-card,
.quote-card,
.stat-card,
.detail-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--brand-shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(28px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.95)),
    linear-gradient(135deg, rgba(187, 23, 29, 0.05), rgba(52, 45, 151, 0.08));
}

.hero-panel::before,
.page-hero-panel::before,
.cta-banner::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 23, 29, 0.18), transparent 68%);
}

.hero-panel::after,
.page-hero-panel::after,
.cta-banner::after {
  content: "";
  position: absolute;
  inset: -80px -110px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 45, 151, 0.2), transparent 70%);
}

.hero-copy,
.page-hero-copy,
.detail-copy,
.profile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-copy h1 {
  max-width: 10.8ch;
  font-size: clamp(2.85rem, 4.7vw, 4.3rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 60ch;
  font-size: 1rem;
}

.hero-home .hero-panel {
  padding: clamp(38px, 4.2vw, 56px);
}

.hero-home .hero-copy {
  max-width: 780px;
  gap: 22px;
}

.hero-home .hero-copy h1 {
  max-width: 13.6ch;
  font-size: clamp(2.8rem, 4.2vw, 3.95rem);
  line-height: 0.96;
}

.hero-home .hero-copy p {
  max-width: 62ch;
}

.hero-metrics,
.mini-grid,
.stats-grid,
.doctor-list,
.contact-card-grid,
.summary-grid,
.home-service-grid,
.doctor-glance-grid {
  display: grid;
  gap: 18px;
}

.hero-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.metric-card,
.stat-card,
.detail-card {
  padding: 20px 22px;
}

.hero-metrics .metric-card:last-child {
  grid-column: 1 / -1;
}

.metric-card strong,
.stat-card strong,
.detail-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.15rem;
  color: var(--brand-blue-deep);
}

.detail-card {
  display: flex;
  flex-direction: column;
}

.detail-media {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 132px;
  padding: 18px 20px;
}

.metric-card span {
  font-size: 0.94rem;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.image-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 30px;
  box-shadow: 0 22px 50px rgba(23, 24, 77, 0.16);
}

.hero-card-primary,
.hero-card-secondary {
  min-height: 596px;
}

.hero-card-supporting {
  min-height: 264px;
  grid-column: 1 / -1;
}

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

.hero-card-primary img {
  object-position: center top;
}

.hero-card-secondary img {
  object-position: 78% top;
}

.hero-card-supporting img {
  object-position: center;
}

.image-card.overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 20, 44, 0.58) 100%);
}

.image-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 28px rgba(18, 20, 39, 0.12);
}

.image-tag strong,
.image-tag span {
  display: block;
}

.image-tag strong {
  font-size: 0.92rem;
}

.image-tag span {
  color: var(--brand-slate);
  font-size: 0.83rem;
}

.floating-badge {
  position: static;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(187, 23, 29, 0.96), rgba(52, 45, 151, 0.96));
  color: var(--brand-white);
  box-shadow: 0 24px 44px rgba(52, 45, 151, 0.2);
}

.floating-badge strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.floating-badge span {
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

.home-service-grid,
.doctor-list,
.contact-card-grid,
.summary-grid,
.doctor-glance-grid,
.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Two-column "Why this clinic matters" / "Why choose us" layout */
.split-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.split-columns .detail-copy h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.why-choose {
  display: grid;
  gap: 22px;
}

.why-choose-grid {
  gap: 16px;
}

.why-choose-grid .service-summary-card {
  padding: 22px;
}

.why-home-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 24%, rgba(187, 23, 29, 0.07), transparent 30%),
    radial-gradient(circle at 88% 72%, rgba(52, 45, 151, 0.09), transparent 32%),
    linear-gradient(180deg, var(--brand-surface) 0%, var(--brand-surface-strong) 100%);
  color: var(--brand-ink);
}


.why-home-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.why-home-intro {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 18px;
}

.why-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.why-kicker::before {
  content: "";
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}

.why-home-intro h2 {
  margin: 0;
  max-width: 9ch;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.why-home-intro h2 em {
  display: block;
  color: var(--brand-red);
  font-style: italic;
  font-weight: 500;
}

.why-home-intro p {
  max-width: 38ch;
  margin: 0;
  color: var(--brand-slate);
  font-size: 1.05rem;
  line-height: 1.8;
}

.why-home-list,
.why-compact-list,
.profile-info-grid,
.interest-chip-grid {
  display: grid;
  gap: 0;
}

.why-home-list {
  border-top: 1px solid var(--brand-line);
}

.profile-info-card {
  border: 1px solid var(--brand-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--brand-shadow);
}

.why-home-card {
  display: flex;
  gap: clamp(18px, 3vw, 26px);
  align-items: flex-start;
  padding: clamp(24px, 3.3vw, 34px) 0;
  border-bottom: 1px solid var(--brand-line);
}

.why-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(52, 45, 151, 0.08);
  border: 1px solid rgba(52, 45, 151, 0.12);
  color: var(--brand-blue);
}

.why-svg svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-home-card h3 {
  margin: 0 0 8px;
  color: var(--brand-blue-deep);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.22;
}

.why-home-card p {
  margin: 0;
  max-width: 58ch;
  color: var(--brand-slate);
  font-size: 1rem;
  line-height: 1.75;
}

.why-compact-list {
  gap: 12px;
}

.why-compact-list article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(52, 45, 151, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.why-compact-list .why-svg {
  width: 48px;
  height: 48px;
  background: rgba(52, 45, 151, 0.08);
  border-color: rgba(52, 45, 151, 0.12);
  color: var(--brand-blue);
}

.why-compact-list .why-svg svg {
  width: 24px;
  height: 24px;
}

.why-compact-list strong {
  display: block;
  color: var(--brand-blue-deep);
  font-size: 1rem;
  line-height: 1.3;
}

.why-compact-list p {
  margin: 4px 0 0;
  color: var(--brand-slate);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Stacked "Why this clinic matters" / "Why choose us" (up-and-down) */
.why-stack {
  display: grid;
  gap: clamp(38px, 5vw, 60px);
}

.why-block {
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
}

.why-block-head {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.why-block-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.14;
  color: var(--brand-ink);
}

.why-block-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--brand-slate);
  font-size: 1.02rem;
  line-height: 1.7;
}

.why-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
}

.why-feature {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 30px) 20px;
  border-radius: var(--radius-lg);
  background: transparent;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.why-feature:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--brand-shadow);
}

.why-feature strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-blue-deep);
  font-size: 1.06rem;
  line-height: 1.3;
}

.why-feature p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 0.96rem;
  line-height: 1.62;
}

.why-divider {
  height: 1px;
  width: min(100%, 720px);
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--brand-line) 20%, var(--brand-line) 80%, transparent);
}

.interest-chip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.interest-chip-grid span {
  display: flex;
  align-items: center;
  flex: 0 1 calc((100% - 2 * 18px) / 3);
  min-width: 240px;
  min-height: 88px;
  padding: 18px 20px;
  border-radius: 24px;
  color: var(--brand-white);
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 22px 42px rgba(23, 24, 77, 0.14);
}

.interest-chip-grid span:nth-child(6n + 1) {
  background: linear-gradient(135deg, #bb171d, #e26367);
}

.interest-chip-grid span:nth-child(6n + 2) {
  background: linear-gradient(135deg, #342d97, #6b63d9);
}

.interest-chip-grid span:nth-child(6n + 3) {
  background: linear-gradient(135deg, #047857, #34d399);
}

.interest-chip-grid span:nth-child(6n + 4) {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.interest-chip-grid span:nth-child(6n + 5) {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
}

.interest-chip-grid span:nth-child(6n) {
  background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.profile-info-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(187, 23, 29, 0.08), transparent 30%),
    radial-gradient(circle at 86% 76%, rgba(52, 45, 151, 0.1), transparent 32%),
    linear-gradient(180deg, var(--brand-surface) 0%, var(--brand-surface-strong) 100%);
  color: var(--brand-ink);
}

.profile-info-section::before {
  content: "";
  position: absolute;
  left: clamp(-20px, 3vw, 80px);
  bottom: clamp(-40px, -2vw, -10px);
  width: clamp(200px, 26vw, 380px);
  height: clamp(200px, 26vw, 380px);
  background: url("../img/logo.webp") no-repeat center center / contain;
  opacity: 0.06;
  pointer-events: none;
}

.profile-info-grid {
  position: relative;
  z-index: 1;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.profile-info-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(16px);
}

.profile-info-card .eyebrow {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(52, 45, 151, 0.12);
  color: var(--brand-blue);
}

.profile-info-card h2 {
  margin: 18px 0;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.08;
  color: var(--brand-blue-deep);
}

.credential-list {
  display: grid;
  gap: 12px;
}

.credential-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(52, 45, 151, 0.04);
  border: 1px solid rgba(52, 45, 151, 0.1);
}

.credential-item strong {
  color: var(--brand-red);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.15;
}

.credential-item span {
  color: var(--brand-slate);
  line-height: 1.65;
}

/* Qualifications shown as a professional vertical timeline */
.qual-timeline {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  position: relative;
}

.qual-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-red), var(--brand-blue));
  opacity: 0.35;
}

.qual-item {
  position: relative;
  padding: 0 0 clamp(20px, 2.4vw, 28px) 32px;
}

.qual-item:last-child {
  padding-bottom: 0;
}

.qual-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-white);
  border: 3px solid var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(52, 45, 151, 0.08);
}

.qual-item:first-child::before {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(187, 23, 29, 0.09);
}

.qual-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.qual-item h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.14rem;
  line-height: 1.2;
  color: var(--brand-red);
}

.qual-year {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-blue);
  background: rgba(52, 45, 151, 0.08);
  border: 1px solid rgba(52, 45, 151, 0.12);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.qual-item p {
  margin: 6px 0 0;
  color: var(--brand-slate);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Heading that stays on one line for the focus section */
.focus-head h2 {
  white-space: nowrap;
  font-size: clamp(1.3rem, 3.1vw, 2.15rem);
}

@media (max-width: 900px) {
  .focus-head h2 {
    white-space: normal;
  }
}

/* Compact clinical-focus grid (icon cards, no bulky imagery) */
.focus-grid {
  --focus-gap: clamp(14px, 1.6vw, 22px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--focus-gap);
}

.focus-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  flex: 0 1 calc((100% - 2 * var(--focus-gap)) / 3);
  min-width: 280px;
  padding: clamp(20px, 2vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--brand-shadow);
  border-color: rgba(52, 45, 151, 0.18);
}

.focus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(187, 23, 29, 0.1), rgba(52, 45, 151, 0.16));
  color: var(--brand-blue-deep);
  font-size: 1.15rem;
}

.focus-card h3 {
  margin: 0 0 5px;
  font-size: 1.04rem;
  line-height: 1.25;
  color: var(--brand-blue-deep);
}

.focus-card p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .focus-card {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* Detailed service cards (photo + icon + title + description) */
.svc-grid {
  --svc-gap: clamp(18px, 2vw, 26px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--svc-gap);
}

.svc-card {
  flex: 0 1 calc((100% - 2 * var(--svc-gap)) / 3);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  background: var(--brand-white);
  box-shadow: var(--brand-shadow);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 72px rgba(23, 24, 77, 0.18);
}

.svc-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(52, 45, 151, 0.08), rgba(187, 23, 29, 0.06));
}

.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.svc-card:hover .svc-card-media img {
  transform: scale(1.06);
}

.svc-card-icon {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue-deep);
  font-size: 1.1rem;
  box-shadow: 0 12px 24px rgba(23, 24, 77, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.svc-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2vw, 26px);
}

.svc-card-body h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.25;
  color: var(--brand-blue-deep);
}

.svc-card-body p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 0.95rem;
  line-height: 1.62;
}

@media (max-width: 620px) {
  .svc-card {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* Combined doctor profile (identity + approach + portrait) */
.doctor-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}

.doctor-profile-media {
  position: sticky;
  top: 100px;
}

.doctor-profile-media .image-card {
  aspect-ratio: 4 / 4.55;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(23, 24, 77, 0.2);
}

.doctor-profile-media .image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-profile-media-vathsalyan .image-card img {
  object-position: center 12%;
  transform: none;
}

.doctor-profile-media-sivayogini .image-card img,
.doctor-profile-media-sivayogini .doctor-hero-portrait-sivayogini {
  object-position: 72% 16%;
  transform: scale(1.2);
  transform-origin: 72% 0%;
}

.doctor-profile-body {
  display: grid;
  gap: 18px;
  align-content: start;
}

.doctor-profile-body h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  color: var(--brand-ink);
}

.doctor-profile-lead {
  margin: 0;
  max-width: 58ch;
  color: var(--brand-slate);
  font-size: 1.05rem;
  line-height: 1.75;
}

.doctor-profile-approach {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--brand-line);
}

.doctor-profile-approach h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  line-height: 1.15;
  color: var(--brand-blue-deep);
}

.doctor-profile-approach p {
  margin: 0;
  color: var(--brand-slate);
  line-height: 1.75;
}

.doctor-profile-approach .profile-points {
  margin-top: 4px;
}

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

  .doctor-profile-media {
    position: static;
  }

  .doctor-profile-media .image-card {
    aspect-ratio: 4 / 3.4;
    max-height: 480px;
  }
}

.achievement-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--brand-line);
}

.achievement-list article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--brand-line);
}

.achievement-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(52, 45, 151, 0.08);
  border: 1px solid rgba(52, 45, 151, 0.12);
  color: var(--brand-blue);
}

.achievement-svg svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.achievement-list strong {
  display: block;
  color: var(--brand-blue-deep);
  font-size: 1.04rem;
  line-height: 1.35;
}

.achievement-list p {
  margin: 5px 0 0;
  color: var(--brand-slate);
  font-size: 0.96rem;
  line-height: 1.65;
}

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

  .why-home-layout,
  .interest-chip-grid,
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .why-home-intro {
    position: relative;
    top: auto;
  }

  .why-home-intro h2 {
    max-width: 12ch;
  }

  .profile-info-section {
    padding: 72px 0;
  }

  .credential-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.service-summary-card,
.doctor-card,
.contact-card,
.experience-card,
.timeline-card,
.quote-card,
.detail-card {
  padding: 28px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(187, 23, 29, 0.12), rgba(52, 45, 151, 0.18));
  color: var(--brand-blue-deep);
  font-size: 1.35rem;
}

.service-summary-card h3,
.doctor-card h3,
.experience-card h3,
.contact-card h3,
.profile-copy h2,
.profile-card h2,
.detail-copy h2,
.service-hero-card h2,
.timeline-card h3,
.quote-card h3,
.faq-card h2 {
  margin: 18px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.08;
}

.service-summary-card p,
.doctor-card p,
.contact-card p,
.experience-card p,
.timeline-card p,
.quote-card p,
.summary-item span,
.profile-points li,
.bullet-list li,
.service-card p {
  color: var(--brand-slate);
}

.doctor-card {
  display: grid;
  gap: 18px;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  object-fit: cover;
  object-position: center center;
  background: linear-gradient(180deg, rgba(52, 45, 151, 0.08), rgba(187, 23, 29, 0.08));
}

.doctor-card-about-vathsalyan img {
  object-position: center 45%;
}

.doctor-card-about-sivayogini img {
  object-position: center 42%;
}

.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(52, 45, 151, 0.08);
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 700;
}

.split-layout,
.page-hero-layout,
.profile-grid,
.media-callout,
.content-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
}

.page-hero-layout {
  align-items: stretch;
}

.page-hero {
  padding: 42px 0 56px;
}

.page-hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
}

.page-hero-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 255, 0.94)),
    linear-gradient(135deg, rgba(187, 23, 29, 0.08), rgba(52, 45, 151, 0.1));
}

.page-hero-media {
  position: relative;
  display: flex;
  min-height: 420px;
  height: 100%;
}

.page-hero-media .image-card,
.page-hero-media .image-card img {
  height: 100%;
}

.page-hero-media .image-card {
  flex: 1 1 auto;
  width: 100%;
  min-height: 420px;
}

.doctor-page-hero-layout {
  align-items: start;
}

.doctor-page-hero-layout .page-hero-media {
  display: block;
  min-height: 0;
  height: auto;
}

.doctor-page-hero-layout .page-hero-media .image-card {
  min-height: 540px;
  height: 540px;
}

.doctor-page-hero-layout .page-hero-media .image-card.overlay::after {
  background: linear-gradient(180deg, transparent 34%, rgba(17, 20, 44, 0.48) 100%);
}

.doctor-page-hero-media-vathsalyan .image-card img {
  object-position: center 16%;
  transform: scale(1.03);
  transform-origin: center top;
}

.doctor-page-hero-media-sivayogini .image-card img,
.doctor-hero-portrait-sivayogini {
  object-position: 82% 34%;
  transform: scale(1.24);
  transform-origin: center center;
}

.page-hero-media .floating-badge {
  right: 26px;
  bottom: 26px;
}

.summary-grid {
  margin-top: 20px;
}

.summary-item {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(52, 45, 151, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 251, 0.82));
}

.summary-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-blue-deep);
}

.media-callout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.media-callout .image-card {
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1.05;
  max-height: 520px;
  position: sticky;
  top: 100px;
}

.media-callout .image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Airy, non-boxy numbered step list */
.care-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
}

.care-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-top: 1px solid var(--brand-line);
  transition: transform 220ms ease;
}

.care-step:last-child {
  border-bottom: 1px solid var(--brand-line);
}

.care-step:hover {
  transform: translateX(4px);
}

.care-step-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  padding-top: 2px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-red);
}

.care-step h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--brand-blue-deep);
}

.care-step p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 0.98rem;
  line-height: 1.68;
}

.bullet-list,
.profile-points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bullet-list li,
.profile-points li {
  position: relative;
  padding-left: 28px;
}

.bullet-list li::before,
.profile-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  box-shadow: 0 0 0 6px rgba(52, 45, 151, 0.08);
}

.service-hero-card,
.profile-card,
.map-card,
.faq-card {
  padding: clamp(28px, 4vw, 38px);
}

.service-hero-card {
  display: grid;
  gap: 18px;
}

.service-layout {
  display: grid;
  gap: 30px;
}

/* Centered header + tabs for the speciality services block */
.service-layout > .section-head {
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* Nephrology / Oncology tab toggle */
.service-tabs {
  display: inline-flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(52, 45, 151, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--brand-shadow);
}

.service-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px clamp(20px, 3vw, 34px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-blue-deep);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.service-tab i {
  font-size: 0.95em;
}

.service-tab.is-active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: var(--brand-white);
  box-shadow: 0 12px 26px rgba(52, 45, 151, 0.26);
}

/* Tab panels */
.service-panel {
  display: none;
}

.service-panel.is-active {
  display: grid;
  gap: 18px;
  animation: service-panel-in 320ms ease both;
}

/* Center the panel sub-heading (badge + doctor line). */
.service-panel .rail-head {
  justify-content: center;
  text-align: center;
}

.service-panel .rail-head > div {
  display: grid;
  gap: 8px;
  justify-items: center;
}

/* Show every service as a wrapping grid (like the services page), not a swipe rail. */
.page-home .service-panel .service-rail {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow-x: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
}

@keyframes service-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-rail-shell {
  display: grid;
  gap: 18px;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.rail-controls {
  display: inline-flex;
  gap: 10px;
}

.rail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(52, 45, 151, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue);
}

.service-rail {
  /* Show every service as a wrapping grid of blocks (no horizontal swipe). */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Home page only: restore the original touch-friendly horizontal swipe rail. */
.page-home .service-rail {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 45, 151, 0.35) transparent;
}

.service-card {
  scroll-snap-align: start;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(52, 45, 151, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 245, 255, 0.88));
  min-height: 100%;
}

.service-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(187, 23, 29, 0.1);
  color: var(--brand-red);
  font-weight: 800;
  flex-shrink: 0;
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.service-card p {
  margin: 0;
  font-size: 0.96rem;
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(187, 23, 29, 0.08);
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accent-panel {
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(23, 24, 77, 0.98), rgba(52, 45, 151, 0.94));
  color: var(--brand-white);
  box-shadow: 0 30px 60px rgba(23, 24, 77, 0.2);
}

.accent-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
}

.accent-panel p,
.accent-panel li,
.accent-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 18px;
}

.gallery-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: auto;
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
  color: var(--brand-slate);
  font-size: 0.92rem;
}

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

.gallery-preview-grid .image-card {
  min-height: 280px;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 28px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-line i {
  color: var(--brand-red);
  margin-top: 5px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-columns .timeline-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.content-columns .timeline-card {
  min-height: 0;
}

.timeline-card strong,
.experience-card strong,
.quote-card strong {
  display: block;
  color: var(--brand-blue);
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-card {
  display: grid;
  align-content: start;
}

.quote-panel {
  position: relative;
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(187, 23, 29, 0.94), rgba(52, 45, 151, 0.94));
  color: var(--brand-white);
  overflow: hidden;
}

.quote-panel blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.quote-panel p {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.timeline-card h3 {
  text-wrap: balance;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 24px;
  border: 1px solid rgba(52, 45, 151, 0.1);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 22px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--brand-red);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--brand-slate);
  line-height: 1.7;
}

/* General FAQ: single centered column */
.faq-single {
  max-width: 900px;
  margin-inline: auto;
}

/* Clinical FAQ: two grouped columns (Nephrology / Oncology) */
.faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.faq-group {
  display: grid;
  gap: 16px;
  align-content: start;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  color: var(--brand-blue-deep);
}

.faq-group-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(187, 23, 29, 0.1), rgba(52, 45, 151, 0.16));
  color: var(--brand-blue-deep);
  font-size: 1.05rem;
}

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

.quick-faq-shell {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(52, 45, 151, 0.1);
}

.quick-faq-shell h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.08;
  color: var(--brand-blue-deep);
}

.quick-faq-list {
  gap: 12px;
}

.quick-faq-list .faq-item {
  border-radius: 20px;
}

.quick-faq-list .faq-item summary {
  padding: 18px 20px;
  font-size: 0.96rem;
}

.quick-faq-list .faq-answer {
  padding: 0 20px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  gap: 22px;
  padding: clamp(30px, 3.4vw, 46px) clamp(30px, 4vw, 54px);
  border-radius: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(52, 45, 151, 0.12), transparent 55%),
    radial-gradient(120% 150% at 0% 100%, rgba(187, 23, 29, 0.1), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.95));
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 70px rgba(23, 24, 77, 0.16),
    0 8px 24px rgba(23, 24, 77, 0.08);
}

/* Make the primary action stand out a touch more in the CTA */
.cta-banner .button-primary {
  box-shadow: 0 16px 34px rgba(187, 23, 29, 0.3);
}

.cta-banner .button-primary:hover,
.cta-banner .button-secondary:hover {
  transform: translateY(-3px);
}

.cta-banner .button-secondary {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Keep the copy + actions in a compact left column */
.cta-banner > * {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-banner .button-row {
  flex-wrap: wrap;
}

/* Faint clinic-logo watermark filling the right side */
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 50% clamp(-24px, 0vw, 30px) auto auto;
  transform: translateY(-50%);
  width: clamp(200px, 24vw, 320px);
  height: clamp(200px, 24vw, 320px);
  border-radius: 0;
  background: url("../img/logo.webp") no-repeat center center / contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 720px) {
  .cta-banner::after {
    display: none;
  }

  .cta-banner > * {
    max-width: 100%;
  }
}

.footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--brand-blue-deep), #0e1136);
  color: rgba(255, 255, 255, 0.82);
}

.footer-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 0;
}

.footer-promo-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  border-radius: 30px;
  border: 1px solid rgba(52, 45, 151, 0.12);
  background:
    radial-gradient(circle at top right, rgba(52, 45, 151, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(187, 23, 29, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
  box-shadow: 0 24px 60px rgba(7, 10, 30, 0.18);
}

.footer .footer-promo-copy h3 {
  margin: 0 0 8px;
  color: var(--brand-ink);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.footer .footer-promo-copy p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 1.02rem;
  max-width: 46ch;
}

.footer-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red) 0%, #cf3345 45%, var(--brand-blue) 100%);
  color: var(--brand-white);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 18px 34px rgba(52, 45, 151, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.footer-promo-btn:hover {
  transform: translateY(-2px);
}

/* Community CTA relocated into the footer brand column */
.footer-community-btn {
  gap: 10px;
  margin-top: 22px;
  align-self: start;
}

.footer-community-btn i {
  font-size: 0.9em;
}

.footer-grid {
  grid-template-columns: 1.3fr 0.9fr 1fr 1fr;
  padding: 60px 0 34px;
  align-items: start;
}

.footer h3,
.footer h4 {
  margin: 0 0 16px;
  color: var(--brand-white);
}

.footer p,
.footer li,
.footer a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.footer-contact i {
  flex: 0 0 16px;
  width: 16px;
  margin-top: 0.18em;
  text-align: center;
  color: var(--brand-red);
  font-size: 0.92em;
}

/* Descriptive label shown next to a phone number */
.footer-contact .contact-label {
  display: inline;
  font-weight: 400;
  font-size: 0.92em;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

/* Social media links — footer (dark) + contact page (light card) */
.footer-social,
.contact-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-social .social-title {
  font-weight: 700;
  color: var(--brand-ink);
  margin-right: 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(7, 10, 30, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-social .social-link {
  border: 1px solid rgba(7, 10, 30, 0.08);
  box-shadow: 0 6px 16px rgba(7, 10, 30, 0.1);
}

.social-link svg {
  display: block;
  width: 21px;
  height: 21px;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(7, 10, 30, 0.32);
}

/* Brand-accurate colours (Instagram uses its inline gradient fill). */
.social-linkedin svg { fill: #0a66c2; }
.social-facebook svg { fill: #1877f2; }
.social-youtube svg { fill: #ff0000; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-home .hero-layout {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: fixed;
    inset: 96px 16px auto;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(52, 45, 151, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(23, 24, 77, 0.18);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta-secondary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-layout,
  .page-hero-layout,
  .split-layout,
  .profile-grid,
  .about-grid,
  .contact-grid,
  .media-callout,
  .experience-grid,
  .cta-banner,
  .footer-grid,
  .content-columns {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    grid-template-columns: 1fr;
  }

  .hero-card-primary,
  .hero-card-secondary,
  .hero-card-supporting {
    min-height: 320px;
  }

  .doctor-page-hero-layout .page-hero-media .image-card {
    min-height: 460px;
    height: 460px;
  }

  .hero-card-supporting {
    grid-column: auto;
  }

  .floating-badge {
    margin-left: 0;
  }

  .media-callout {
    grid-template-columns: 1fr;
  }

  .media-callout .image-card {
    position: static;
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }

  .hero-metrics,
  .home-service-grid,
  .doctor-list,
  .contact-card-grid,
  .summary-grid,
  .doctor-glance-grid,
  .detail-grid,
  .timeline-grid,
  .gallery-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section-shell {
    padding: 74px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .hero-home {
    padding: 28px 0 74px;
  }

  .hero-home .hero-panel {
    padding: 28px 22px;
  }

  .hero-home .hero-copy {
    gap: 18px;
  }

  .hero-home .hero-copy h1,
  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.55rem, 9vw, 3.55rem);
  }

  .hero-visual {
    gap: 14px;
  }

  .hero-collage {
    gap: 14px;
  }

  .hero-metrics,
  .home-service-grid,
  .doctor-list,
  .contact-card-grid,
  .summary-grid,
  .doctor-glance-grid,
  .detail-grid,
  .timeline-grid,
  .gallery-preview-grid {
    grid-template-columns: 1fr;
  }

  .service-rail {
    grid-template-columns: 1fr;
  }

  /* Keep the home rail as a horizontal swipe on phones. */
  .page-home .service-rail {
    grid-template-columns: none;
    grid-auto-columns: minmax(248px, 86vw);
  }

  .metric-card,
  .hero-metrics .metric-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .rail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    columns: 1;
  }

  .doctor-page-hero-layout .page-hero-media .image-card {
    min-height: 360px;
    height: 360px;
  }

  .footer-promo,
  .footer-promo-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-promo-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .footer .footer-promo-copy h3 {
    font-size: 2rem;
  }

  .footer .footer-promo-copy p {
    max-width: none;
    font-size: 0.98rem;
  }

  .footer-promo-btn {
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    padding: 0 18px;
    text-align: center;
    white-space: normal;
  }

  .cta-banner {
    padding: 28px;
  }

  .footer-grid {
    padding: 54px 0 24px;
  }
}

/* ---- Imagery added across cards & sections ---- */
.service-summary-card .card-media,
.service-card .card-media,
.timeline-card .card-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  box-shadow: 0 16px 36px rgba(23, 24, 77, 0.14);
}

.service-summary-card .card-media {
  margin-bottom: 18px;
}

.timeline-card .card-media {
  margin-bottom: 16px;
  aspect-ratio: 16 / 8;
}

.service-card .card-media {
  aspect-ratio: 16 / 9;
}

.service-summary-card .card-media img,
.service-card .card-media img,
.timeline-card .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-summary-card:hover .card-media img,
.service-card:hover .card-media img,
.timeline-card:hover .card-media img {
  transform: scale(1.06);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-strip .image-card {
  min-height: 300px;
}

/* Labeled diagram tile: show the full illustration on a clean ground
   instead of cropping it like a photo. */
.feature-strip .image-card--diagram {
  background: #ffffff;
}

.feature-strip .image-card--diagram img {
  object-fit: contain;
  padding: 18px 18px 78px;
}

.feature-strip .image-card--diagram.overlay::after {
  display: none;
}

@media (max-width: 920px) {
  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }
}

/* ---- Work Process (hexagon step flow) ---- */
.work-process {
  position: relative;
  overflow: hidden;
}

.work-process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(52, 45, 151, 0.06), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(187, 23, 29, 0.05), transparent 55%);
  pointer-events: none;
}

.process-steps {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 18px);
  margin-top: 12px;
}

.process-step {
  flex: 1 1 0;
  max-width: 270px;
  text-align: center;
}

.process-hex {
  position: relative;
  width: 100%;
  max-width: 196px;
  aspect-ratio: 1 / 1.12;
  margin: 0 auto 26px;
}

.process-hex-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-hex-ring polygon {
  fill: none;
  stroke: rgba(52, 45, 151, 0.4);
  stroke-width: 0.8;
  stroke-dasharray: 2.6 2.6;
  stroke-linejoin: round;
}

.process-hex-img {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(180deg, rgba(52, 45, 151, 0.08), rgba(187, 23, 29, 0.08));
}

.process-hex-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.process-step:hover .process-hex-img img {
  transform: scale(1.07);
}

.process-num {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: 46px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--brand-blue-deep);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 22px rgba(18, 20, 39, 0.25);
}

.process-num.is-red {
  background: var(--brand-red);
}

.process-step h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.process-step p {
  margin: 0 auto;
  max-width: 250px;
  color: var(--brand-slate);
  font-size: 0.96rem;
  line-height: 1.6;
}

.process-arrow {
  flex: 0 0 auto;
  margin-top: clamp(58px, 6.5vw, 86px);
  color: rgba(52, 45, 151, 0.32);
  font-size: 1.4rem;
}

@media (max-width: 860px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .process-step {
    max-width: 320px;
    width: 100%;
  }

  .process-arrow {
    margin: 2px 0;
    transform: rotate(90deg);
  }
}

/* ===========================================================
   Hero redesign — de-boxed content + auto-scrolling showcase
   =========================================================== */
.hero-redesign {
  position: relative;
  padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 7vw, 104px);
  overflow: clip;
}

/* Soft, premium depth glow behind the whole hero */
.hero-redesign .hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 78% 22%, rgba(52, 45, 151, 0.16), transparent 62%),
    radial-gradient(40% 48% at 96% 70%, rgba(187, 23, 29, 0.12), transparent 60%),
    radial-gradient(38% 44% at 8% 12%, rgba(52, 45, 151, 0.08), transparent 60%);
  filter: saturate(115%);
  z-index: 0;
}

.hero-redesign .hero-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* De-boxed content — floats over the page, no card border */
.hero-redesign .hero-copy {
  max-width: 620px;
  gap: 26px;
}

.hero-redesign .hero-copy h1 {
  font-size: clamp(2.9rem, 4.6vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  background: linear-gradient(120deg, var(--brand-blue-deep) 0%, var(--brand-blue) 52%, var(--brand-red) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-redesign .hero-copy p {
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--brand-slate);
}

.hero-redesign .button-row {
  margin-top: 6px;
  gap: 14px;
}

.hero-redesign .button-primary,
.hero-redesign .button-secondary {
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.hero-redesign .button-primary:hover,
.hero-redesign .button-secondary:hover {
  transform: translateY(-3px);
}

.hero-redesign .button-primary {
  box-shadow: 0 16px 34px rgba(187, 23, 29, 0.28);
}

/* ---- Showcase (right) ---- */
.hero-showcase {
  position: relative;
  z-index: 1;
}

.hero-marquee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  height: clamp(440px, 46vw, 580px);
  border-radius: var(--radius-xl);
}

/* Fade the top & bottom edges per column so each animated track is
   clipped reliably (a mask on the grid container can miss a
   compositing-promoted child, which broke the right column). */
.hero-marquee-col {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}

/* Offset the second column's content for a staggered, editorial rhythm.
   Padding (not margin/transform) keeps the column box full-height so the
   fade mask stays aligned, and leaves the scroll animation untouched. */
.hero-marquee-col:last-child {
  padding-top: clamp(26px, 4vw, 54px);
}

.hero-track {
  display: block;
  will-change: transform;
}

.hero-track-up {
  animation: heroScrollUp 38s linear infinite;
}

.hero-track-down {
  animation: heroScrollDown 38s linear infinite;
}

.hero-marquee:hover .hero-track {
  animation-play-state: paused;
}

@keyframes heroScrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes heroScrollDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.hero-tile {
  position: relative;
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(52, 45, 151, 0.08), rgba(187, 23, 29, 0.06));
  box-shadow: 0 18px 40px rgba(23, 24, 77, 0.16);
}

.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, transparent 55%, rgba(17, 20, 44, 0.22) 100%);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-tile:hover img {
  transform: scale(1.06);
}

/* Floating glassmorphism accent (decorative, brand icons only) */
.hero-accent-chip {
  position: absolute;
  left: -22px;
  bottom: 34px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 48px rgba(18, 20, 39, 0.2);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-accent-chip i {
  font-size: 1.4rem;
  line-height: 1;
}

.hero-accent-chip i:first-child {
  color: var(--brand-blue);
}

.hero-accent-chip i:last-child {
  color: var(--brand-red);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1100px) {
  .hero-redesign .hero-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-redesign .hero-copy {
    max-width: 760px;
  }

  .hero-marquee {
    height: clamp(360px, 64vw, 460px);
  }
}

@media (max-width: 600px) {
  .hero-accent-chip {
    left: 12px;
    bottom: 18px;
    padding: 12px 16px;
  }

  .hero-marquee {
    height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track-up,
  .hero-track-down,
  .hero-accent-chip {
    animation: none;
  }
}

/* ===========================================================
   Meet The Consultants — large portrait redesign
   =========================================================== */
.consultants-feature {
  position: relative;
  overflow: clip;
}

.consultants-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 60% at 88% 18%, rgba(52, 45, 151, 0.1), transparent 62%),
    radial-gradient(40% 55% at 60% 100%, rgba(187, 23, 29, 0.07), transparent 60%);
  z-index: 0;
}

/* Centered section header variant */
.section-head-center {
  justify-items: center;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head-center p {
  max-width: 52ch;
}

.section-head-center h2 {
  white-space: nowrap;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
}

@media (max-width: 620px) {
  .section-head-center h2 {
    white-space: normal;
  }
}

.text-accent {
  color: var(--brand-blue);
}

/* Circular team roster */
.team-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
}

.team-member {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  width: clamp(200px, 20vw, 250px);
  color: inherit;
}

.team-avatar {
  position: relative;
  display: block;
  width: clamp(170px, 15vw, 210px);
  height: clamp(170px, 15vw, 210px);
  margin-bottom: 16px;
  border-radius: 50%;
  padding: 8px;
  border: 2px dashed rgba(52, 45, 151, 0.4);
  background: var(--brand-white);
  box-shadow: 0 22px 50px rgba(23, 24, 77, 0.14);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.team-member:hover .team-avatar {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  box-shadow: 0 30px 66px rgba(23, 24, 77, 0.22);
}

.team-avatar-frame {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Per-doctor face framing — keep the full head visible with headroom */
.team-avatar--vathsalyan img {
  object-position: 50% 2%;
  transform: scale(1.05);
  transform-origin: 50% 0%;
}

.team-avatar--sivayogini img {
  object-position: 74% 14%;
  transform: scale(1.7);
  transform-origin: 74% 0%;
}

.team-member h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  line-height: 1.2;
  color: var(--brand-ink);
}

.team-role {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}

.team-degrees {
  color: var(--brand-slate);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .team-grid {
    gap: 36px;
  }

  .team-member {
    width: min(260px, 82vw);
  }
}

/* ===========================================================
   Health Tips — habit cards
   =========================================================== */
.habit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: 8px;
}

.habit-card {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(23, 24, 77, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.habit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 45, 151, 0.18);
  box-shadow: 0 28px 56px rgba(23, 24, 77, 0.16);
}

.habit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 1.55rem;
  transition: transform 0.4s ease;
}

.habit-card:hover .habit-icon {
  transform: rotate(-6deg) scale(1.06);
}

.habit-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.2;
  color: var(--brand-blue-deep);
}

/* Soft brand-aligned tints (calm, not bright marketing colors) */
.habit-icon.tint-red    { background: rgba(187, 23, 29, 0.1);  color: var(--brand-red); }
.habit-icon.tint-rose   { background: rgba(190, 24, 93, 0.1);  color: #be185d; }
.habit-icon.tint-blue   { background: rgba(52, 45, 151, 0.1);  color: var(--brand-blue); }
.habit-icon.tint-teal   { background: rgba(13, 148, 136, 0.12); color: #0f766e; }
.habit-icon.tint-violet { background: rgba(109, 40, 217, 0.1); color: #6d28d9; }
.habit-icon.tint-green  { background: rgba(22, 134, 90, 0.12); color: #15803d; }
.habit-icon.tint-amber  { background: rgba(217, 119, 6, 0.12); color: #b45309; }

@media (max-width: 900px) {
  .habit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ===========================================================
   Hero — full-width swiping background slider
   =========================================================== */
.hero-slider {
  position: relative;
  padding: 0;
  /* Taller hero band so the 16:9 imagery is cropped less top/bottom
     while staying full-bleed (closer to the images' own aspect ratio). */
  min-height: clamp(620px, 86vh, 840px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides,
.hero-slider-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide-track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  /* Clip each slide so the Ken Burns–scaled image can't bleed into
     the neighbouring slide and peek past the right edge. */
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* very subtle drift only — keep zoom low so low-res sources aren't
     upscaled (which reads as blurry) or cropped too tightly. */
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

/* Readability gradient — symmetric darkening so the centered copy
   stays legible across the full width while the image shows through. */
.hero-slider-overlay {
  background:
    linear-gradient(90deg,
      rgba(13, 16, 52, 0.82) 0%,
      rgba(18, 22, 66, 0.58) 30%,
      rgba(20, 24, 70, 0.5) 50%,
      rgba(18, 22, 66, 0.58) 70%,
      rgba(13, 16, 52, 0.82) 100%),
    linear-gradient(180deg, rgba(13, 16, 52, 0.32), rgba(13, 16, 52, 0.12) 40%, rgba(13, 16, 52, 0.4));
  pointer-events: none;
}

.hero-slider-content {
  /* Fill the hero box and dead-centre the copy on both axes. Absolute + inset:0
     removes all flex-item / container-width ambiguity. */
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
}

.hero-slider .hero-copy {
  /* Fill the centred area (width:100%) instead of shrink-wrapping around the
     wide single-line headline. Shrink-wrapping made the block's min-content
     (the nowrap <h1>) exceed its max-width, which broke symmetric centring and
     pushed the whole copy block off to the right. Now every child is centred
     via flex + text-align, so an over-wide headline overflows evenly both
     sides and the block stays dead-centre. */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 860px;
  gap: 22px;
  margin: 0 auto;
  text-align: center;
}

.hero-slider .button-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Per-slide headline / subline crossfade */
.hero-slider .hero-copy h1,
.hero-slider .hero-copy p {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slider .hero-copy.is-swapping h1,
.hero-slider .hero-copy.is-swapping p {
  opacity: 0;
  transform: translateY(10px);
}

/* Light treatment of the existing copy over the dark imagery */
.hero-slider .hero-logo {
  width: clamp(76px, 9vw, 104px);
  height: auto;
  margin: 0 auto 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
  box-shadow: 0 14px 34px rgba(7, 10, 30, 0.32);
}

.hero-slider .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-slider .eyebrow::before {
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.hero-slider .hero-copy h1 {
  color: #fff;
  max-width: none;
  /* Keep the headline on a single line on tablet/desktop */
  white-space: nowrap;
  font-size: clamp(2.2rem, 4.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-slider .hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  /* Keep the paragraph a tidy, readable centered column even though the
     single-line headline makes the copy track much wider. */
  max-width: 760px;
  justify-self: center;
  font-size: 1.02rem;
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-slider .button-row {
  margin-top: 6px;
  gap: 14px;
}

.hero-slider .button-primary {
  box-shadow: 0 18px 38px rgba(187, 23, 29, 0.4);
}

.hero-slider .button-secondary {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.hero-slider .button-primary:hover,
.hero-slider .button-secondary:hover {
  transform: translateY(-3px);
}

/* Pagination dots */
.hero-slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(18px, 3vw, 30px);
  transform: translateX(-50%);
  width: var(--container);
  display: flex;
  gap: 10px;
  padding: 0;
}

.hero-dot {
  width: 30px;
  height: 5px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  width: 46px;
  background: #fff;
}

@media (max-width: 760px) {
  .hero-slider {
    min-height: 0;
    align-items: stretch;
  }

  .hero-slider-content {
    position: relative;
    padding: 56px 20px 64px;
  }

  .hero-slide img {
    object-position: 70% 30%;
  }

  /* Allow the headline to wrap on phones so it doesn't overflow */
  .hero-slider .hero-copy h1 {
    white-space: normal;
    font-size: clamp(2rem, 8vw, 2.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img {
    animation: none;
  }
}

/* ============================================================
   Site preloader — brand-logo splash shown on every page load
   ============================================================ */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 30px);
  padding: clamp(20px, 6vw, 40px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(1100px 620px at 50% 38%, rgba(52, 45, 151, 0.07), transparent 70%),
    radial-gradient(900px 520px at 50% 120%, rgba(187, 23, 29, 0.06), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--brand-surface) 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-stage {
  position: relative;
  width: clamp(108px, 30vw, 138px);
  height: clamp(108px, 30vw, 138px);
  flex: none;
  display: grid;
  place-items: center;
}

/* Spinning gradient arc (comet ring) drawn as a masked conic gradient */
.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(52, 45, 151, 0) 0deg,
    rgba(52, 45, 151, 0.12) 90deg,
    var(--brand-blue) 240deg,
    var(--brand-red) 330deg,
    rgba(187, 23, 29, 0) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: preloaderSpin 1.05s linear infinite;
}

/* Soft halo that breathes behind the logo */
.preloader-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 45, 151, 0.18), rgba(52, 45, 151, 0) 70%);
  animation: preloaderHalo 1.8s ease-in-out infinite;
}

.preloader-logo {
  position: relative;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 12px;
  box-shadow: 0 14px 30px rgba(23, 24, 77, 0.22);
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.preloader-wordmark {
  display: block;
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(0.74rem, 3.3vw, 1.02rem);
  line-height: 1.35;
  letter-spacing: 0.22em;
  /* Letter-spacing trails the last glyph; pull it back so the line optically centres. */
  margin-right: -0.22em;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--brand-blue-deep);
  background: linear-gradient(90deg, var(--brand-blue-deep) 0%, var(--brand-red) 50%, var(--brand-blue-deep) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: preloaderShimmer 2.4s linear infinite;
}

.preloader-tagline {
  display: block;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: clamp(0.66rem, 2.8vw, 0.78rem);
  line-height: 1.4;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--brand-slate);
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes preloaderHalo {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes preloaderShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-ring,
  .preloader-glow,
  .preloader-logo,
  .preloader-wordmark {
    animation: none;
  }
}
