/* =========================================================================
   Supriya Clinic — stylesheet
   Brand: blue / cyan (from building signage) + green medical-cross accent.
   Lightweight, dependency-free, mobile-first responsive.
   ========================================================================= */

:root {
  --blue-900: #0b3a5b;
  --blue-700: #0e5a8a;
  --blue-600: #1273ad;
  --blue-500: #1593d6;   /* primary cyan-blue */
  --blue-100: #e2f2fb;
  --blue-050: #f3f9fd;
  --green-600: #1f9d55;  /* medical cross accent */
  --green-500: #27ae60;
  --ink: #16242e;
  --muted: #54636d;
  --line: #dde7ee;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(11, 58, 91, .08);
  --shadow-md: 0 8px 24px rgba(11, 58, 91, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --space: clamp(3rem, 6vw, 5.5rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* guard against any horizontal page scroll */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--blue-900); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { color: var(--muted); }
ul { padding-left: 1.1rem; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--space); }
.section--tint { background: var(--blue-050); }
.section__head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section__head p { margin-top: .6rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: .5rem;
}
.icon { width: 1.5em; height: 1.5em; flex: none; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue-700); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1; min-height: 48px;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--call { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--call:hover { background: var(--green-500); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-100); }
.btn--ghost:hover { border-color: var(--blue-500); }
.btn--light { background: #fff; color: var(--blue-700); }
.btn--lg { font-size: 1.08rem; padding: 1rem 1.7rem; min-height: 54px; }

/* ---------- top bar ---------- */
.topbar { background: var(--blue-900); color: #cfe6f5; font-size: .9rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: center; padding-block: .5rem; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .ti { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon { width: 1.05em; height: 1.05em; color: #6cc0ec; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--shadow-sm); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--blue-900); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 44px; width: auto; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.nav__links a { color: var(--ink); font-weight: 600; padding: .5rem .8rem; border-radius: 8px; }
.nav__links a:hover { background: var(--blue-050); text-decoration: none; }
.nav__links a.is-active { color: var(--blue-700); background: var(--blue-100); }
.nav__cta { margin-left: .4rem; }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem; color: var(--blue-900); cursor: pointer; line-height: 0;
}
.nav__toggle .icon { width: 1.6em; height: 1.6em; }
.nav__icon-open { display: inline-flex; }
.nav__icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon-close { display: inline-flex; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, var(--blue-050), var(--blue-100)); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1rem; }
.hero p.lead { font-size: 1.12rem; color: #3a4a55; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero__note { display: inline-flex; align-items: center; gap: .5rem; color: var(--blue-700); font-weight: 600; font-size: .95rem; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.hero__badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: .8rem 1.1rem; display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--blue-900);
}
.hero__badge .icon { color: var(--green-600); }

/* ---------- highlight strip ---------- */
.highlights { background: var(--blue-700); }
.highlights .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; }
.highlight { display: flex; align-items: center; gap: .7rem; color: #eaf6ff; font-weight: 600; }
.highlight .icon { color: #8fd0f4; width: 1.8em; height: 1.8em; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 12px; background: var(--blue-100); color: var(--blue-600); margin-bottom: 1rem;
}
.card__icon .icon { width: 1.7em; height: 1.7em; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }
.card ul { margin-top: .7rem; }
.card ul li { font-size: .93rem; color: var(--muted); margin-bottom: .3rem; }

/* feature list with check icons */
.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
.checklist .icon { color: var(--green-600); margin-top: .15rem; width: 1.2em; height: 1.2em; }

/* facilities pill grid */
.facilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.facility { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); }
.facility .icon { color: var(--blue-600); width: 1.5em; height: 1.5em; }

/* ---------- split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split h2 { margin-bottom: 1rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.gallery img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(11,58,91,.85));
  color: #fff; font-size: .9rem; font-weight: 600; padding: 1.4rem .9rem .7rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dff1fc; max-width: 620px; margin: .8rem auto 1.6rem; }
.cta-band .btn--call { box-shadow: var(--shadow-md); }
.cta-band .phone-big { display: block; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; margin-top: 1rem; letter-spacing: .02em; }
.cta-band .phone-big a { color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.info-list { list-style: none; padding: 0; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .icon-wrap { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: inline-flex; align-items: center; justify-content: center; }
.info-list h3 { font-size: 1.02rem; margin-bottom: .15rem; }
.info-list p, .info-list a { color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe6f5; max-width: 640px; margin-top: .6rem; }
.breadcrumb { font-size: .85rem; color: #9ec9e4; margin-bottom: .8rem; }
.breadcrumb a { color: #d6ecf9; }

/* ---------- legal / prose ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; margin-bottom: .6rem; }
.prose h3 { margin-top: 1.4rem; margin-bottom: .4rem; }
.prose p, .prose li { color: #3f4d57; margin-bottom: .8rem; }
.prose ul { padding-left: 1.3rem; }
.prose .updated { color: var(--muted); font-style: italic; font-size: .9rem; }
.notice { background: var(--blue-050); border-left: 4px solid var(--blue-500); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.5rem 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-900); color: #b9d4e6; padding-block: 3rem 1.5rem; margin-bottom: 0; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #cfe6f5; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer-brand img { height: 42px; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: #6cc0ec; width: 1.2em; height: 1.2em; margin-top: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.2rem; text-align: center; font-size: .85rem; color: #8fb4cc; }
.footer-bottom a { color: #cfe6f5; }

/* ---------- sticky mobile call bar ---------- */
.call-bar { display: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .highlights .container { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split img, .contact-grid img { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* mobile nav */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; top: 120px; left: 12px; right: 12px; width: auto; z-index: 120;
    flex-direction: column; align-items: stretch;
    background: #fff; box-shadow: var(--shadow-md); padding: .5rem; gap: .15rem;
    display: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
    max-height: calc(100vh - 140px); overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .8rem 1rem; }
  .nav__cta { margin: .3rem 0 0; }
  .nav__cta .btn { width: 100%; }

  .grid--2, .grid--3, .grid--4, .facilities, .gallery { grid-template-columns: 1fr; }
  .highlights .container { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: 1.8rem; }

  /* sticky call bar appears on phones */
  body { padding-bottom: 68px; }
  .call-bar {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 150; gap: .6rem; padding: .55rem .8rem;
    background: #fff; box-shadow: 0 -2px 14px rgba(11,58,91,.18);
  }
  .call-bar .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
