/* ============================================================
   DENTAL CLINIC PATNA — Premium Stylesheet
   (Mobile‑optimized & polished)
   ============================================================ */

/* ------- TOKENS ------- */
:root {
  --primary: #0B2341;
  --primary-2: #0F2E55;
  --primary-dark: #021428;
  --accent: #2E7BEF;
  --accent-soft: #DCE9FE;
  --success: #22C55E;
  --whatsapp: #25D366;
  --bg: #F8FAFC;
  --bg-2: #EEF2F7;
  --white: #FFFFFF;
  --text: #0F172A;
  --text-2: #64748B;
  --line: #E5E7EB;
  --line-soft: #EEF2F7;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 10px 30px -10px rgba(15,23,42,.18);
  --shadow-lg: 0 30px 80px -30px rgba(11,35,65,.30);
  --shadow-xl: 0 40px 100px -40px rgba(11,35,65,.45);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  --container: 1240px;
  --topbar-h: 40px;
  --header-h: 92px;
  --header-h-sm: 74px;

  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", serif;
}

/* ------- RESET ------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow--light { background: rgba(255,255,255,.12); color: #BFD6FF; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.eyebrow--light::before { background: #BFD6FF; box-shadow: 0 0 12px #BFD6FF; }

.accent { color: var(--accent); }
.accent-soft { color: #9EC1FF; }

h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0; color: var(--text-2); }

/* ------- ICONS ------- */
.ic { width: 16px; height: 16px; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ic-r { width: 18px; height: 18px; margin-left: 4px; }
.ic-l { width: 18px; height: 18px; margin-right: 6px; }

/* ------- ANCHOR OFFSET FOR STICKY HEADER ------- */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px); /* 112px default */
}
@media (max-width: 1024px) {
  section[id] {
    scroll-margin-top: calc(var(--header-h-sm) + 16px); /* 90px */
  }
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar { background: var(--primary); color: #DBE6F7; font-size: 13px; }
.topbar__inner {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  justify-content: space-between;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #DBE6F7; }
.topbar__item a { color: #fff; }
.topbar__phone:hover { color: #9EC1FF; }
@media (max-width: 900px) { .topbar { display: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  transition: height .25s ease, box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: 0 12px 40px -20px rgba(15,23,42,.15); background: rgba(255,255,255,.98); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: height .25s ease;
}
.header.is-scrolled .header__inner { height: var(--header-h-sm); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #EEF2FF, #DCE9FE); }
.brand__mark svg { width: 32px; height: 32px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -0.01em; }
.brand__tag { font-size: 11px; color: var(--text-2); letter-spacing: .04em; }
.brand--light .brand__mark { background: rgba(255,255,255,.08); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: #9FB4D2; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 10px 14px; border-radius: 10px;
  font-weight: 500; font-size: 14.5px; color: var(--text); transition: color .2s, background .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 1024px) {
  .nav { display: none; }
}
@media (max-width: 640px) {
  .header__cta .btn--primary { display: none; }
}

/* ------- BUTTONS ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 12px 30px -12px rgba(11,35,65,.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(11,35,65,.65); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(46,123,239,.55); }
.btn--accent:hover { transform: translateY(-2px); }
.btn--secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn--secondary:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(0,0,0,.25); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }

/* ------- MOBILE MENU ------- */
.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1024px) { .menu-toggle { display: inline-flex; } }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw);
  background: #fff; padding: 24px; z-index: 70;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,.0,.2,1);
  display: flex; flex-direction: column; gap: 16px; box-shadow: -20px 0 60px -20px rgba(0,0,0,.25);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; }
.menu-close {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center;
}
.menu-close svg { width: 18px; height: 18px; color: var(--text); }
/* Note: In your HTML, add aria-label="Close menu" to this button for accessibility */
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--text);
}
.mobile-menu__nav a span { color: var(--text-2); font-weight: 400; }
.mobile-menu__nav a:hover { color: var(--accent); }
.mobile-menu__contact { font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.mobile-menu__contact a { color: var(--text); font-weight: 600; }

.mobile-backdrop {
  position: fixed; inset: 0; background: rgba(2,20,40,.45); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60;
}
.mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #F4F8FF 100%);
  padding: 56px 0 72px;
}
.hero::before {
  content: ""; position: absolute; right: -10%; top: 10%;
  width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(46,123,239,.18), transparent 70%);
  filter: blur(30px); z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 45fr 55fr; gap: 60px; align-items: center;
  min-height: calc(90vh - var(--header-h));
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; min-height: auto; }
  .hero { padding: 36px 0 56px; }
}

.hero__rating { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,.7); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 13px; }
.hero__rating .stars { color: #F59E0B; letter-spacing: 1px; }
.hero__rating strong { color: var(--text); font-weight: 700; }
.hero__rating span { color: var(--text-2); }

.hero__headline { margin: 24px 0 18px; }
.hero__headline .small { display: block; font-size: clamp(20px, 2vw, 28px); font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; line-height: 1.3; margin-top: 14px; }
.hero__desc { max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--text-2); margin-top: 8px; }

.hero__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text); list-style: none; }
.hero__trust svg { width: 18px; height: 18px; color: var(--accent); }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.hero__stat { padding: 18px; border-radius: var(--r-md); background: rgba(255,255,255,.7); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .25s, box-shadow .25s; }
.hero__stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hero__stat .num { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.hero__stat .lbl { font-size: 12px; color: var(--text-2); margin-top: 2px; }
@media (max-width: 640px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }

.hero__media { position: relative; }
.hero__image-wrap {
  position: relative; aspect-ratio: 5/6;
  border-radius: 28px; overflow: hidden; background: var(--bg-2);
  box-shadow: var(--shadow-xl);
}
.hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11,35,65,.18)); }

.float-card {
  position: absolute; padding: 14px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; max-width: 250px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.float-card .ico svg { width: 22px; height: 22px; }
.float-card .ttl { font-size: 13px; font-weight: 700; color: var(--text); }
.float-card .sub { font-size: 11px; color: var(--text-2); }

.float-1 { top: 8%;  left: -32px; }
.float-2 { top: 28%; right: -24px; animation-delay: -2s; }
.float-3 { bottom: 22%; left: -36px; animation-delay: -3s; }
.float-4 { bottom: 6%; right: -16px; animation-delay: -4s; }
@media (max-width: 1024px) { .float-card { display: none; } .float-1, .float-4 { display: flex; } .float-1{ left: 8px; } .float-4 { right: 8px; bottom: 12px; } }
/* Avoid overlap on very small screens */
@media (max-width: 360px) {
  .float-1,
  .float-4 { display: none; }
}

@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

/* ============================================================
   SECTIONS (general)
   ============================================================ */
section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; }
@media (max-width: 480px) {
  .section-head { margin-bottom: 36px; }   /* tighter spacing on small phones */
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why { background: var(--bg); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 1024px) { .why__grid { grid-template-columns: 1fr; gap: 40px; } }

.why__features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
@media (max-width: 480px) { .why__features { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(46,123,239,.3); }
.feature-card .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature-card .ic-wrap svg { width: 22px; height: 22px; }
.feature-card h4 { margin-bottom: 6px; }
.feature-card p { font-size: 14px; line-height: 1.55; }

.why__media {
  position: relative;
  overflow: hidden;              /* keeps float card inside rounded corners */
}
.why__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.why__media .float-card { position: absolute; bottom: 24px; left: -20px; }
@media (max-width: 1024px) {
  .why__media .float-card {
    left: 16px;                  /* stays fully visible on mobile */
    bottom: 16px;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .services__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(46,123,239,.4); }
.service-card__img { position: relative; aspect-ratio: 5/4; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__img .badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.service-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card__body h3 { font-size: 21px; }
.service-card__body p { font-size: 14.5px; line-height: 1.55; flex: 1; }
.service-card__actions { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px dashed var(--line); }
.service-card__actions a { font-weight: 600; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.service-card__actions a:hover { gap: 8px; }

/* ============================================================
   DOCTORS
   ============================================================ */
.doctors { background: var(--bg); }
.doctors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .doctors__grid { grid-template-columns: 1fr; gap: 24px; } }

.doctor-card {
  background: #fff; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-card__img { aspect-ratio: 4/4.4; overflow: hidden; background: var(--bg-2); position: relative; }
.doctor-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.doctor-card:hover .doctor-card__img img { transform: scale(1.04); }
.doctor-card__body { padding: 24px; }
.doctor-card__name { font-size: 22px; font-weight: 700; }
.doctor-card__qual { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.doctor-card__spec { color: var(--text-2); font-size: 14px; margin-top: 10px; line-height: 1.55; }
.doctor-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.doctor-card__badges span { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.doctor-card__actions { display: flex; gap: 10px; margin-top: 18px; }
.doctor-card__actions .btn { flex: 1; padding: 11px 16px; font-size: 14px; border-radius: 10px; }

/* ============================================================
   SMILE GALLERY
   ============================================================ */
.gallery { background: #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .gallery__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .gallery__grid { grid-template-columns: 1fr; } }
.gallery-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card__label {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(255,255,255,.92); padding: 12px 16px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
}
.gallery-card__label span { color: var(--accent); font-weight: 700; font-size: 12px; }
.gallery-card__split { display: flex; height: 100%; }
.gallery-card__split > div { position: relative; flex: 1; }
.gallery-card__split > div::after {
  position: absolute; left: 12px; top: 12px;
  background: rgba(11,35,65,.85); color: #fff; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
.gallery-card__split > div:first-child::after { content: "BEFORE"; }
.gallery-card__split > div:last-child::after  { content: "AFTER"; background: var(--accent); }
.gallery-card__split img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card__split > div:first-child img { filter: grayscale(.2) brightness(.95); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg); position: relative; overflow: hidden; }
.testimonials__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .testimonials__rail { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .testimonials__rail { grid-template-columns: 1fr; } }
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s, box-shadow .3s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card .stars { color: #F59E0B; letter-spacing: 2px; font-size: 14px; }
.testimonial-card p { font-size: 14.5px; color: var(--text); line-height: 1.55; }
.testimonial-card__person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.testimonial-card__person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-card__person .nm { font-weight: 700; font-size: 14px; }
.testimonial-card__person .rl { font-size: 12px; color: var(--text-2); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 980px) { .trust__grid { grid-template-columns: repeat(2,1fr); } }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); transition: background .25s; }
.trust__item:hover { background: var(--bg); }
.trust__item .ic-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.trust__item .ic-wrap svg { width: 24px; height: 24px; }
.trust__item .ttl { font-weight: 700; font-size: 14px; }
.trust__item .sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ============================================================
   APPOINTMENT
   ============================================================ */
.appointment { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.appointment__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch; }
@media (max-width: 980px) { .appointment__grid { grid-template-columns: 1fr; } }

.appointment__left {
  background: linear-gradient(135deg, var(--primary) 0%, #143664 100%);
  color: #fff; border-radius: var(--r-xl); padding: 40px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 28px;
}
.appointment__left::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; background: radial-gradient(closest-side, rgba(46,123,239,.4), transparent); }
.appointment__left img { border-radius: var(--r-md); aspect-ratio: 16/10; object-fit: cover; }
.appointment__left h3 { color: #fff; font-size: 26px; }
.appointment__info { display: flex; flex-direction: column; gap: 14px; }
.appointment__info-item { display: flex; gap: 12px; }
.appointment__info-item .ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: 0 0 auto; }
.appointment__info-item .ico svg { width: 18px; height: 18px; color: #BFD6FF; }
.appointment__info-item .ttl { font-size: 12px; color: #9FB4D2; text-transform: uppercase; letter-spacing: .08em; }
.appointment__info-item .val { font-size: 14.5px; color: #fff; font-weight: 500; }
.appointment__info-item a.val:hover { color: #BFD6FF; }

.appointment__form {
  background: #fff; border-radius: var(--r-xl); padding: 40px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.appointment__form h3 { margin-bottom: 8px; }
.appointment__form .sub { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Stack form fields on narrow screens */
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field input,
  .field select,
  .field textarea {
    padding: 15px 14px;       /* larger tap target */
    font-size: 16px;          /* prevents iOS zoom */
  }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px;
  background: #fff; transition: border-color .2s, box-shadow .2s; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,123,239,.12); }
.field textarea { resize: vertical; min-height: 100px; }

.form-msg { padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: none; }
.form-msg.is-show { display: block; }
.form-msg--ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-msg--err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---- MOBILE APPOINTMENT COMPACTNESS (ADDED) ---- */
@media (max-width: 640px) {
  .appointment__left,
  .appointment__form {
    padding: 24px;
  }
  .appointment__left {
    gap: 20px;
  }
  .appointment__left h3 {
    font-size: 22px;
  }
  .appointment__form .sub {
    margin-bottom: 16px;
  }
  .appointment__grid {
    gap: 28px;
  }
  .form-grid {
    gap: 10px;
  }
  .appointment .field textarea {
    min-height: 80px;
  }
}

/* Override the global 480px padding to keep fields compact while preserving iOS zoom fix */
@media (max-width: 480px) {
  .appointment .field input,
  .appointment .field select,
  .appointment .field textarea {
    padding: 12px 14px;      /* 12px vs global 15px → still 44px+ tap target */
    font-size: 16px;         /* prevents iOS zoom, unchanged */
  }
}

/* ============================================================
   PRE-FOOTER CTA
   ============================================================ */
.prefooter { padding: 0 0 96px; background: #fff; }
.prefooter__card {
  background: radial-gradient(circle at 10% 0%, #143664 0%, #0B2341 50%, #021428 100%);
  color: #fff; border-radius: var(--r-xl); padding: 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.prefooter__card::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; background: radial-gradient(closest-side, rgba(46,123,239,.4), transparent); }
@media (max-width: 768px) { .prefooter__card { grid-template-columns: 1fr; padding: 40px 28px; } }
.prefooter h2 { color: #fff; }
.prefooter p { color: #BFD6FF; font-size: 16.5px; margin-top: 14px; }
.prefooter__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

.prefooter .btn--ghost-light{
    gap: 14px;
    min-height: 78px;
    font-size: 18px;
    font-weight: 700;
}

.prefooter .btn--ghost-light svg{
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, #021428 0%, #0B2341 100%);
  color: #C7D4E8; padding: 100px 0 40px;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.1fr; gap: 36px; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer__brand { grid-column: 1 / -1; } }

.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: #9FB4D2; font-size: 14px; transition: color .2s, transform .2s; display: inline-block; }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__desc { font-size: 14px; line-height: 1.6; color: #9FB4D2; margin: 20px 0; max-width: 340px; }
.footer__badges { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.footer__badges li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: #C7D4E8; }
.footer__badges strong { color: #fff; }

.footer__social{
    display:flex;
    gap:10px;
    margin-top:12px;
}
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #C7D4E8; transition: transform .2s, background .2s, color .2s; }
.footer__social a:hover { background: var(--accent); color: #fff; transform: scale(1.08); border-color: var(--accent); }
.footer__social a svg { width: 18px; height: 18px; }

.footer__social a i{
    font-size:18px;
}

.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact li { display: flex; flex-direction: column; font-size: 14px; line-height: 1.5; color: #C7D4E8; }
.footer__contact li span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6E89B1; margin-bottom: 2px; }

.footer__map { border-radius: 14px; overflow: hidden; aspect-ratio: 16/12; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.1); }
.footer__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.92) hue-rotate(180deg); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: #6E89B1;
}
.footer__bottom a { color: #9FB4D2; margin-left: 18px; }
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   STICKY MOBILE ACTION BAR
   ============================================================ */
.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: #fff; border-top: 1px solid var(--line); height: 72px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.08);
}
.actionbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; color: #fff; }
.actionbar__btn svg { width: 20px; height: 20px; }
.actionbar__btn--call { background: var(--primary); }
.actionbar__btn--wa   { background: var(--whatsapp); }
.actionbar__btn--book { background: var(--accent); }
@media (max-width: 768px) {
  .actionbar { display: grid; }
  body { padding-bottom: 72px; }
}

/* ============================================================
   PAGE HEADERS (about/services/doctors/contact)
   ============================================================ */
.page-hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, #F4F8FF 100%);
  position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(46,123,239,.15), transparent 70%); }
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero__breadcrumb { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.page-hero__breadcrumb a { color: var(--text-2); }
.page-hero__breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); }
.page-hero p { font-size: 17px; margin-top: 16px; max-width: 640px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item:hover { border-color: rgba(46,123,239,.3); }
.faq-item summary { padding: 22px 24px; cursor: pointer; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 300; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: rgba(46,123,239,.4); }
.faq-item .answer { padding: 0 24px 24px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; }

.values { background: var(--bg); }
.values__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 980px) { .values__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .values__grid { grid-template-columns: 1fr; } }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .ic-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.value-card .ic-wrap svg { width: 24px; height: 24px; }
.value-card h4 { margin-bottom: 6px; font-size: 17px; }
.value-card p { font-size: 14px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: .1s; }
.reveal[data-delay="200"] { transition-delay: .2s; }
.reveal[data-delay="300"] { transition-delay: .3s; }
.reveal[data-delay="400"] { transition-delay: .4s; }
.reveal[data-delay="500"] { transition-delay: .5s; }

::selection { background: var(--accent); color: #fff; }

/* CONTACT PAGE MOBILE FIX */

@media (max-width: 768px){

    .trust__grid{
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .trust__item{
        padding: 18px;
    }

    .trust__item .sub{
        word-break: break-word;
    }

}