/* =========================================================
   Dev Ortho & Eye Care Multispeciality Hospital — Kanpur
   Design system + components
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  --navy-900:#0A2342;
  --navy-800:#0E2C52;
  --navy-700:#123A66;
  --navy-500:#1D5391;
  --teal-700:#0B6F6A;
  --teal-600:#0E8C86;
  --teal-500:#14A79E;
  --teal-100:#D8EFEC;
  --teal-50:#EDF7F6;
  --accent:#E0722B;
  --accent-dark:#BF5A17;
  --accent-50:#FDF1E7;
  --ivory:#FBF8F3;
  --paper:#FFFFFF;
  --grey-50:#F4F6F8;
  --line:#E4E8EE;
  --ink:#111E2F;
  --body:#3E4C5E;
  --muted:#66768A;

  --radius-sm:12px;
  --radius:18px;
  --radius-lg:26px;
  --shadow-xs:0 1px 2px rgba(10,35,66,.06);
  --shadow-sm:0 4px 14px rgba(10,35,66,.06);
  --shadow-md:0 10px 30px rgba(10,35,66,.08);
  --shadow-lg:0 20px 48px rgba(10,35,66,.12);

  --container:1160px;
  --nav-h:68px;
  --font:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.65;
  color:var(--body);
  background:var(--ivory);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{max-width:100%;display:block}
img{height:auto}
h1,h2,h3,h4{color:var(--ink);line-height:1.18;margin:0 0 .5em;letter-spacing:-.02em;font-weight:700}
h1{font-size:clamp(1.95rem,5.4vw,3.35rem);letter-spacing:-.03em}
h2{font-size:clamp(1.55rem,3.9vw,2.4rem)}
h3{font-size:clamp(1.12rem,2.2vw,1.32rem)}
h4{font-size:1.03rem}
p{margin:0 0 1rem}
a{color:var(--navy-500);text-decoration-thickness:1px;text-underline-offset:3px}
ul{margin:0 0 1rem;padding-left:1.15rem}
li{margin-bottom:.4rem}
strong{color:var(--ink)}
:focus-visible{outline:3px solid var(--teal-500);outline-offset:3px;border-radius:6px}

/* ---------- Layout helpers ---------- */
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:20px}
.section{padding:clamp(52px,8vw,96px) 0}
.section--tight{padding:clamp(40px,6vw,68px) 0}
.section--ivory{background:var(--ivory)}
.section--paper{background:var(--paper)}
.section--grey{background:var(--grey-50)}
.section--navy{background:var(--navy-900);color:#D8E2EE}
.section--navy h2,.section--navy h3{color:#fff}
.stack>*+*{margin-top:1rem}
.center{text-align:center}
.max-60{max-width:62ch}
.center.max-60{margin-inline:auto}

.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.76rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--teal-700);margin-bottom:.85rem;
}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--teal-500);border-radius:2px}
.section--navy .eyebrow{color:var(--teal-100)}
.section--navy .eyebrow::before{background:var(--teal-500)}
.lead{font-size:clamp(1.02rem,1.6vw,1.14rem);color:var(--body)}
.muted{color:var(--muted)}
.small{font-size:.88rem}

/* Placeholder chips for details awaiting hospital approval */
.pending{
  display:inline-block;font-size:.74rem;font-weight:600;letter-spacing:.02em;
  color:var(--accent-dark);background:var(--accent-50);
  border:1px dashed rgba(224,114,43,.45);border-radius:999px;padding:.15rem .6rem;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:48px;padding:.78rem 1.35rem;
  font:inherit;font-size:.97rem;font-weight:600;
  border-radius:999px;border:1.5px solid transparent;cursor:pointer;
  text-decoration:none;transition:transform .15s ease,background .2s ease,box-shadow .2s ease,color .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn svg{width:19px;height:19px;flex:none}
.btn--primary{background:var(--accent);color:#fff;box-shadow:0 6px 18px rgba(224,114,43,.28)}
.btn--primary:hover{background:var(--accent-dark);color:#fff}
.btn--navy{background:var(--navy-900);color:#fff}
.btn--navy:hover{background:var(--navy-700);color:#fff}
.btn--teal{background:var(--teal-600);color:#fff}
.btn--teal:hover{background:var(--teal-700);color:#fff}
.btn--ghost{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.55);backdrop-filter:blur(6px)}
.btn--ghost:hover{background:rgba(255,255,255,.2);color:#fff}
.btn--outline{background:var(--paper);color:var(--navy-900);border-color:var(--line)}
.btn--outline:hover{border-color:var(--navy-500);color:var(--navy-700)}
.btn--wide{width:100%}
.btn--sm{min-height:42px;padding:.55rem 1.05rem;font-size:.9rem}
.link-arrow{
  display:inline-flex;align-items:center;gap:.4rem;font-weight:650;
  color:var(--navy-500);text-decoration:none;
}
.link-arrow::after{content:"→";transition:transform .18s ease}
.link-arrow:hover{color:var(--navy-700)}
.link-arrow:hover::after{transform:translateX(3px)}

/* ---------- Skip link ---------- */
.skip{
  position:absolute;left:12px;top:-70px;z-index:200;
  background:var(--navy-900);color:#fff;padding:.7rem 1.1rem;border-radius:10px;
  text-decoration:none;transition:top .2s ease;
}
.skip:focus{top:12px;color:#fff}

/* ---------- Header ---------- */
.topbar{
  background:var(--navy-900);color:#B9C9DC;font-size:.82rem;
}
.topbar .container{display:flex;gap:1.2rem;align-items:center;justify-content:space-between;min-height:38px;flex-wrap:wrap}
.topbar a{color:#E6EDF5;text-decoration:none;font-weight:600}
.topbar a:hover{text-decoration:underline}
.topbar__item{display:inline-flex;align-items:center;gap:.42rem}
.topbar__right{display:inline-flex;align-items:center;gap:.85rem;flex-wrap:wrap}
.topbar svg{width:15px;height:15px;color:var(--teal-500)}
@media (max-width:640px){.topbar__hours{display:none}}

/* Language switcher (topbar) */
.lang-btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.28rem .7rem;min-height:30px;
  border:1px solid rgba(255,255,255,.28);border-radius:999px;
  background:rgba(255,255,255,.08);color:#E6EDF5;
  font:inherit;font-size:.8rem;font-weight:600;line-height:1;cursor:pointer;
  transition:background .2s ease,border-color .2s ease;
}
.lang-btn:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5)}
.lang-btn:focus-visible{outline:3px solid var(--teal-500);outline-offset:2px}
.lang-btn svg{width:14px;height:14px;color:var(--teal-500);flex:none}

.site-header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
}
.site-header .container{display:flex;align-items:center;gap:1rem;min-height:var(--nav-h)}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;margin-right:auto}
.brand img{height:46px;width:auto}
@media (max-width:420px){.brand img{height:38px}}
.brand__name{font-weight:800;color:var(--navy-900);font-size:1.02rem;line-height:1.15;letter-spacing:-.02em}
.brand__sub{display:block;font-size:.7rem;font-weight:600;color:var(--teal-700);letter-spacing:.06em;text-transform:uppercase}
.nav{display:flex;align-items:center;gap:.15rem}
.nav a{
  padding:.55rem .78rem;border-radius:10px;color:var(--ink);text-decoration:none;
  font-weight:600;font-size:.94rem;white-space:nowrap;
}
.nav a:hover{background:var(--teal-50);color:var(--navy-700)}
.nav a[aria-current]{color:var(--teal-700);background:var(--teal-50)}
.header-cta{margin-left:.6rem;white-space:nowrap}
.nav-toggle{
  display:none;align-items:center;justify-content:center;gap:.45rem;
  min-height:44px;min-width:44px;padding:.5rem .7rem;border-radius:12px;
  border:1px solid var(--line);background:var(--paper);color:var(--navy-900);
  font:inherit;font-weight:600;font-size:.9rem;cursor:pointer;
}
.nav-toggle svg{width:20px;height:20px}
@media (max-width:900px){
  .nav,.header-cta{display:none}
  .nav-toggle{display:inline-flex}
}

/* Mobile drawer */
.drawer{
  position:fixed;inset:0;z-index:150;display:none;
}
.drawer[open],.drawer.is-open{display:block}
.drawer__scrim{position:absolute;inset:0;background:rgba(10,35,66,.5);backdrop-filter:blur(2px)}
.drawer__panel{
  position:absolute;top:0;right:0;height:100%;width:min(88vw,340px);
  background:var(--paper);padding:1.1rem 1.15rem 2rem;overflow-y:auto;
  box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:.35rem;
  animation:slideIn .22s ease-out;
}
@keyframes slideIn{from{transform:translateX(18px);opacity:.4}to{transform:none;opacity:1}}
.drawer__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}
.drawer__close{
  min-height:44px;min-width:44px;border-radius:12px;border:1px solid var(--line);
  background:var(--paper);cursor:pointer;color:var(--navy-900);font-size:1.1rem;
}
.drawer a.drawer__link{
  display:flex;align-items:center;justify-content:space-between;
  padding:.85rem .3rem;border-bottom:1px solid var(--line);
  color:var(--ink);text-decoration:none;font-weight:650;font-size:1.02rem;
}
.drawer a.drawer__link[aria-current]{color:var(--teal-700)}
.drawer__actions{margin-top:1.1rem;display:grid;gap:.6rem}
.drawer__meta{margin-top:1.4rem;font-size:.86rem;color:var(--muted)}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--navy-900);overflow:hidden}
.hero__media{position:absolute;inset:0}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:center 38%}
.hero__scrim{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(10,35,66,.86) 0%,rgba(10,35,66,.66) 40%,rgba(10,35,66,.90) 100%);
}
@media (min-width:900px){
  .hero__scrim{background:linear-gradient(100deg,rgba(10,35,66,.96) 0%,rgba(10,35,66,.86) 46%,rgba(10,35,66,.42) 100%)}
}
.hero__inner{position:relative;padding-block:clamp(56px,9vw,110px) clamp(44px,6vw,86px)}
.hero__content{max-width:660px;color:#DCE6F2}
.hero h1{color:#fff;margin-bottom:.55rem}
.hero__badge{
  display:inline-flex;align-items:center;gap:.5rem;margin-bottom:1.1rem;
  background:rgba(20,167,158,.16);border:1px solid rgba(20,167,158,.5);
  color:#9FE3DD;border-radius:999px;padding:.4rem .9rem;font-size:.8rem;font-weight:650;
}
.hero__badge span{width:7px;height:7px;border-radius:50%;background:var(--teal-500)}
.hero__sub{font-size:clamp(1rem,2vw,1.13rem);color:#C3D3E6;max-width:56ch}
.hero__actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.6rem}
@media (max-width:520px){.hero__actions .btn{width:100%}}

/* Trust strip */
.trust{background:var(--paper);border-bottom:1px solid var(--line)}
.trust__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line)}
.trust__item{background:var(--paper);padding:1.15rem 1rem;display:flex;gap:.7rem;align-items:center;justify-content:center}
.trust__item svg{width:22px;height:22px;color:var(--teal-600);flex:none}
.trust__item p{margin:0;font-size:.92rem;font-weight:600;color:var(--ink);line-height:1.4}
@media (max-width:760px){
  .trust__grid{grid-template-columns:1fr}
}

/* ---------- Speciality gateway ---------- */
.gateway{display:grid;gap:1.4rem}
@media (min-width:860px){.gateway{grid-template-columns:1fr 1fr;gap:1.6rem}}
.spec-card{
  position:relative;border-radius:var(--radius-lg);overflow:hidden;
  padding:clamp(1.5rem,3vw,2.3rem);color:#EAF2FA;
  display:flex;flex-direction:column;min-height:340px;box-shadow:var(--shadow-md);
}
.spec-card--eye{background:linear-gradient(150deg,#123A66 0%,#0A2342 62%)}
.spec-card--ortho{background:linear-gradient(150deg,#0B6F6A 0%,#0A3B44 65%)}
.spec-card::after{
  content:"";position:absolute;right:-70px;top:-70px;width:230px;height:230px;
  border-radius:50%;background:rgba(255,255,255,.06);
}
.spec-card__icon{
  width:56px;height:56px;border-radius:16px;display:grid;place-items:center;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);margin-bottom:1.1rem;
}
.spec-card__icon svg{width:28px;height:28px;color:#fff}
.spec-card h3{color:#fff;font-size:clamp(1.35rem,2.6vw,1.7rem);margin-bottom:.35rem}
.spec-card p{color:#C6D6E8;font-size:.97rem}
.spec-card__tags{display:flex;flex-wrap:wrap;gap:.45rem;margin:1rem 0 1.6rem;padding:0;list-style:none}
.spec-card__tags li{
  margin:0;font-size:.83rem;font-weight:600;color:#DCE9F5;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);
  padding:.32rem .72rem;border-radius:999px;
}
.spec-card .btn{margin-top:auto;align-self:flex-start}
@media (max-width:520px){.spec-card .btn{width:100%}}

/* ---------- Cards ---------- */
.grid{display:grid;gap:1.1rem}
.grid--2{grid-template-columns:1fr}
.grid--3{grid-template-columns:1fr}
.grid--4{grid-template-columns:1fr 1fr}
@media (min-width:700px){
  .grid--2{grid-template-columns:1fr 1fr}
  .grid--3{grid-template-columns:repeat(2,1fr)}
  .grid--4{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1000px){
  .grid--3{grid-template-columns:repeat(3,1fr)}
  .grid--4{grid-template-columns:repeat(4,1fr)}
}
.card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem 1.35rem;box-shadow:var(--shadow-xs);
  transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease;
}
.card:hover{box-shadow:var(--shadow-sm);border-color:#D4DBE5}
.card h3{margin-bottom:.4rem}
.card p:last-child{margin-bottom:0}
.card__icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:var(--teal-50);color:var(--teal-700);margin-bottom:.95rem;
}
.card__icon svg{width:23px;height:23px}
.card__icon--accent{background:var(--accent-50);color:var(--accent-dark)}
@media (max-width:699px){
  .grid--compact{grid-template-columns:1fr 1fr;gap:.75rem}
  .grid--compact .card{padding:1.05rem .95rem}
  .grid--compact .card h3{font-size:1rem}
  .grid--compact .card p{font-size:.85rem;line-height:1.5}
  .grid--compact .card__icon{width:38px;height:38px;margin-bottom:.7rem;border-radius:11px}
  .grid--compact .card__icon svg{width:19px;height:19px}
}

/* ---------- Doctors ---------- */
.doctors{display:grid;gap:1.1rem;max-width:940px;margin-inline:auto}
.doc{
  display:grid;grid-template-columns:1fr;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow-xs);transition:box-shadow .2s ease;
}
.doc:hover{box-shadow:var(--shadow-sm)}
@media (min-width:660px){.doc{grid-template-columns:212px 1fr}}
.doc__photo{position:relative;aspect-ratio:4/3;background:var(--grey-50);overflow:hidden}
@media (min-width:660px){.doc__photo{aspect-ratio:auto;min-height:262px}}
.doc__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.doc__photo--shivangi img{object-position:56% 24%}
.doc__photo--tp img{object-position:50% 22%}
.doc__body{padding:1.2rem 1.35rem 1.3rem;display:flex;flex-direction:column;gap:.2rem}
.doc__name{margin:0;font-size:1.2rem}
.doc__qual{color:var(--muted);font-size:.85rem;font-weight:650;letter-spacing:.03em;text-transform:uppercase;margin:.1rem 0 0}
.doc__role{color:var(--teal-700);font-weight:650;font-size:.95rem;margin:.35rem 0 0}
.doc__desc{margin:.55rem 0 0;font-size:.93rem;line-height:1.55}
.chips{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;padding:0;margin:.75rem 0 0}
.chips li{
  margin:0;font-size:.79rem;font-weight:650;color:var(--navy-700);
  background:var(--teal-50);border:1px solid var(--teal-100);
  padding:.3rem .7rem;border-radius:999px;
}
.doc__body .pending{margin-top:.75rem;align-self:flex-start}
.doc__body .btn{align-self:flex-start;margin-top:.9rem}
@media (max-width:520px){.doc__body .btn{width:100%}}

/* ---------- Split media ---------- */
.split{display:grid;gap:1.8rem;align-items:center}
@media (min-width:900px){
  .split{grid-template-columns:1fr 1fr;gap:3rem}
  .split--reverse .split__media{order:2}
}
.split__media img{border-radius:var(--radius-lg);box-shadow:var(--shadow-md);width:100%}
.figure-note{margin:.7rem 0 0;font-size:.82rem;color:var(--muted)}

/* ---------- Gallery ---------- */
.gallery{display:grid;gap:1rem}
@media (min-width:700px){.gallery{grid-template-columns:1fr 1fr}}
.gallery figure{margin:0}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.gallery figcaption{margin-top:.55rem;font-size:.85rem;color:var(--muted)}

/* ---------- Timeline ---------- */
.timeline{list-style:none;padding:0;margin:0;display:grid;gap:1px;background:var(--line);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
@media (min-width:860px){.timeline{grid-template-columns:repeat(4,1fr)}}
.timeline li{margin:0;background:var(--paper);padding:1.35rem 1.25rem}
.timeline__num{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  background:var(--navy-900);color:#fff;font-weight:700;font-size:.9rem;margin-bottom:.8rem;
}
.timeline h3{font-size:1.02rem;margin-bottom:.25rem}
.timeline p{margin:0;font-size:.9rem}

/* ---------- Service directory ---------- */
.filters{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:1.9rem}
.filter{
  min-height:44px;padding:.55rem 1.1rem;border-radius:999px;
  border:1.5px solid var(--line);background:var(--paper);color:var(--navy-900);
  font:inherit;font-weight:650;font-size:.92rem;cursor:pointer;transition:all .18s ease;
}
.filter:hover{border-color:var(--navy-500)}
.filter[aria-pressed="true"]{background:var(--navy-900);border-color:var(--navy-900);color:#fff}
.svc{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:1.5rem 1.4rem;display:flex;flex-direction:column;box-shadow:var(--shadow-xs);
}
.svc__tag{
  display:inline-flex;align-items:center;gap:.4rem;align-self:flex-start;
  font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:.28rem .7rem;border-radius:999px;margin-bottom:.9rem;
}
.svc__tag--eye{background:#E8EFF9;color:var(--navy-700)}
.svc__tag--ortho{background:var(--teal-50);color:var(--teal-700)}
.svc h3{margin-bottom:.45rem}
.svc__list{margin:.4rem 0 1.1rem;padding-left:1.1rem;font-size:.93rem}
.svc__list li::marker{color:var(--teal-500)}
.svc details{
  margin:0 0 1.15rem;border-top:1px dashed var(--line);padding-top:.85rem;
}
.svc details summary{
  cursor:pointer;font-weight:650;font-size:.92rem;color:var(--navy-700);
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  min-height:32px;
}
.svc details summary::-webkit-details-marker{display:none}
.svc details summary::after{content:"+";font-size:1.2rem;color:var(--teal-600);line-height:1}
.svc details[open] summary::after{content:"–"}
.svc details p{margin:.7rem 0 0;font-size:.9rem;color:var(--body)}
.svc .btn{margin-top:auto;align-self:flex-start}
@media (max-width:520px){.svc .btn{width:100%}}
.svc[hidden]{display:none}

/* ---------- Frequently asked questions ---------- */
#faq{scroll-margin-top:calc(var(--nav-h) + 20px)}
.faq-wrap{max-width:860px;margin:2.4rem auto 0}
.ayushman-note{
  position:relative;padding:clamp(22px,4vw,32px);margin-bottom:1.6rem;
  background:var(--teal-50);border:1px solid var(--teal-100);border-radius:var(--radius);
}
.ayushman-brand{margin-bottom:1.15rem}
.ayushman-brand .eyebrow{margin:0}
.ayushman-layout{display:block}
.ayushman-logo{position:absolute;top:18px;right:22px;width:220px;height:auto;mix-blend-mode:multiply}
.ayushman-copy h2{max-width:calc(100% - 245px);font-size:clamp(1.85rem,3.5vw,2.2rem)}
.ayushman-title-line{display:block;white-space:nowrap}
.ayushman-note h2{color:var(--navy-900)}
.ayushman-note p:last-of-type{margin-bottom:1.2rem}
.faq-list{border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item summary{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-height:64px;padding:1.15rem .25rem;list-style:none;
  cursor:pointer;font-weight:700;color:var(--navy-900);line-height:1.5;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";flex-shrink:0;font-size:1.5rem;font-weight:500;color:var(--teal-700)}
.faq-item[open] summary::after{content:"−"}
.faq-item summary:hover{color:var(--teal-700)}
.faq-answer{padding:0 2rem 1.2rem .25rem}
.faq-answer p{margin:0}
@media (max-width:520px){
  .ayushman-logo{top:16px;right:16px;width:126px}
  .ayushman-copy h2{max-width:calc(100% - 145px);font-size:1.65rem}
  .ayushman-title-line{white-space:normal}
  .ayushman-note .btn{width:100%}
}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg,var(--navy-900) 0%,var(--navy-700) 55%,var(--teal-700) 140%);
  border-radius:var(--radius-lg);padding:clamp(1.8rem,4vw,3.2rem);color:#D8E4F1;
  box-shadow:var(--shadow-md);
}
.cta-band h2{color:#fff;margin-bottom:.5rem}
.cta-band p{color:#C2D3E6;max-width:60ch}
.cta-band__actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.5rem}
@media (max-width:520px){.cta-band__actions .btn{width:100%}}

/* ---------- Page header (inner pages) ---------- */
.page-head{background:var(--navy-900);color:#C6D6E8;padding:clamp(40px,7vw,74px) 0 clamp(36px,6vw,64px);position:relative;overflow:hidden}
.page-head::after{
  content:"";position:absolute;right:-120px;bottom:-160px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(20,167,158,.22),transparent 65%);
}
.page-head h1{color:#fff;position:relative}
.page-head p{position:relative;max-width:62ch;color:#BACBDF}
.crumbs{position:relative;font-size:.84rem;margin-bottom:.9rem;color:#8FA6C0}
.crumbs a{color:#BFD2E8;text-decoration:none}
.crumbs a:hover{text-decoration:underline}

/* ---------- Contact ---------- */
.contact-grid{display:grid;gap:1.6rem}
@media (min-width:960px){.contact-grid{grid-template-columns:1.05fr .95fr;gap:2.4rem;align-items:start}}
.info-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.5rem 1.4rem;box-shadow:var(--shadow-xs)}
.info-row{display:flex;gap:.9rem;padding:.95rem 0;border-bottom:1px solid var(--line)}
.info-row:last-of-type{border-bottom:0}
.info-row svg{width:20px;height:20px;color:var(--teal-600);flex:none;margin-top:4px}
.info-row h3{font-size:.95rem;margin-bottom:.15rem}
.info-row p{margin:0;font-size:.95rem}
.info-row a{font-weight:600;text-decoration:none}
.info-row a:hover{text-decoration:underline}

.hours{width:100%;border-collapse:collapse;font-size:.94rem;margin:.4rem 0 0}
.hours caption{text-align:left;font-weight:700;color:var(--ink);padding-bottom:.6rem}
.hours th,.hours td{padding:.7rem .5rem;border-bottom:1px solid var(--line);text-align:left}
.hours th{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.hours td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.hours tr:last-child td{border-bottom:0}
.hours .closed{color:var(--accent-dark);font-weight:650}

.map-card{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--line);background:var(--paper);box-shadow:var(--shadow-xs)}
.map-embed{position:relative;aspect-ratio:16/10;background:linear-gradient(150deg,#E7EEF7,var(--teal-50));display:grid;place-items:center;text-align:center;padding:1.5rem}
.map-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.map-embed__inner svg{width:36px;height:36px;color:var(--navy-500);margin:0 auto .6rem}
.map-card__foot{padding:1.1rem 1.2rem;display:grid;gap:.6rem}
@media (min-width:520px){.map-card__foot{grid-template-columns:1fr 1fr}}

.notice{
  display:flex;gap:.85rem;border-radius:var(--radius);padding:1.05rem 1.15rem;
  background:var(--accent-50);border:1px solid rgba(224,114,43,.28);color:#6E3A12;font-size:.93rem;
}
.notice svg{width:20px;height:20px;color:var(--accent-dark);flex:none;margin-top:3px}
.notice p{margin:0}
.notice strong{color:#5A2E0C}

/* ---------- Form ---------- */
.form-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);padding:clamp(1.3rem,3vw,2rem);box-shadow:var(--shadow-sm)}
.field{margin-bottom:1.05rem}
.field label{display:block;font-weight:650;font-size:.92rem;color:var(--ink);margin-bottom:.4rem}
.field .req{color:var(--accent-dark)}
.field input,.field select,.field textarea{
  width:100%;min-height:50px;padding:.75rem .9rem;font:inherit;font-size:1rem;color:var(--ink);
  background:var(--paper);border:1.5px solid var(--line);border-radius:var(--radius-sm);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.field textarea{min-height:110px;resize:vertical}
.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366768A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;background-size:20px;padding-right:2.6rem}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal-500);box-shadow:0 0 0 3px rgba(20,167,158,.16);outline:none}
.field input[aria-invalid="true"],.field select[aria-invalid="true"]{border-color:#C4392C;box-shadow:0 0 0 3px rgba(196,57,44,.12)}
.field .hint{display:block;font-size:.82rem;color:var(--muted);margin-top:.35rem}
.field .error{display:none;font-size:.84rem;color:#B3311F;margin-top:.35rem;font-weight:600}
.field.has-error .error{display:block}
.field-row{display:grid;gap:0}
@media (min-width:600px){.field-row{grid-template-columns:1fr 1fr;gap:0 1rem}}
.consent{font-size:.86rem;color:var(--muted);margin:.2rem 0 1.2rem}
.form-success{
  display:none;text-align:center;padding:1.5rem .5rem;
}
.form-success.is-visible{display:block}
.form-success__icon{
  width:64px;height:64px;border-radius:50%;background:var(--teal-50);color:var(--teal-700);
  display:grid;place-items:center;margin:0 auto 1rem;
}
.form-success__icon svg{width:32px;height:32px}
.form-success .btn{margin-top:.4rem}
.form-summary{
  text-align:left;background:var(--grey-50);border:1px solid var(--line);border-radius:var(--radius);
  padding:1rem 1.1rem;margin:1.2rem 0;font-size:.92rem;
}
.form-summary dl{display:grid;grid-template-columns:auto 1fr;gap:.35rem .9rem;margin:0}
.form-summary dt{font-weight:650;color:var(--muted)}
.form-summary dd{margin:0;color:var(--ink)}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy-900);color:#A9BDD4;padding:clamp(42px,6vw,68px) 0 0;font-size:.93rem}
.site-footer h4{color:#fff;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:1rem}
.footer-grid{display:grid;gap:2rem}
@media (min-width:760px){.footer-grid{grid-template-columns:1.5fr 1fr 1fr}}
@media (min-width:1000px){.footer-grid{grid-template-columns:1.7fr 1fr 1fr 1.1fr}}
.site-footer a{color:#CBDAEA;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-brand{display:flex;align-items:center;margin-bottom:1.1rem}
.footer-brand img{height:54px;width:auto;background:#fff;padding:9px 12px;border-radius:14px}
.footer-brand strong{color:#fff;font-size:1.02rem;display:block;line-height:1.2}
.footer-brand span{font-size:.75rem;color:var(--teal-500);letter-spacing:.06em;text-transform:uppercase;font-weight:650}
.footer-list{list-style:none;padding:0;margin:0}
.footer-list li{margin-bottom:.6rem}
.socials{display:flex;gap:.5rem;margin-top:.9rem}
.socials a{
  width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13);color:#DCE7F3;
}
.socials a:hover{background:rgba(255,255,255,.14)}
.socials svg{width:18px;height:18px}
.footer-bottom{
  margin-top:2.4rem;border-top:1px solid rgba(255,255,255,.12);
  padding:1.3rem 0 calc(1.3rem + env(safe-area-inset-bottom));
  display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;justify-content:space-between;font-size:.85rem;color:#8CA3BE;
}
.disclaimer{
  margin-top:1.8rem;padding:1.1rem 1.2rem;border-radius:var(--radius);
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);
  font-size:.84rem;color:#9EB4CD;
}
.disclaimer strong{color:#DCE7F3}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:120;display:none;
  background:rgba(255,255,255,.97);backdrop-filter:blur(10px);
  border-top:1px solid var(--line);box-shadow:0 -6px 22px rgba(10,35,66,.10);
  padding:.45rem .5rem calc(.45rem + env(safe-area-inset-bottom));
  grid-template-columns:repeat(3,1fr);gap:.4rem;
}
.mobile-bar a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.18rem;
  min-height:56px;border-radius:14px;text-decoration:none;
  font-size:.74rem;font-weight:700;letter-spacing:.01em;
}
.mobile-bar svg{width:20px;height:20px}
.mobile-bar .mb-book{background:var(--accent);color:#fff}
.mobile-bar .mb-wa{background:var(--teal-600);color:#fff}
.mobile-bar .mb-call{background:var(--navy-900);color:#fff}
@media (max-width:900px){
  .mobile-bar{display:grid}
  body{padding-bottom:78px}
}

/* ---------- Motion ---------- */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .drawer__panel{animation:none}
  *{transition-duration:.01ms !important}
}

/* =========================================================
   Gallery page — masonry photo grid + lightbox
   ========================================================= */
.ph-group + .ph-group{margin-top:2.75rem}
.ph-group__head{margin-bottom:1.15rem}
.ph-group__head h2{margin:0 0 .25rem}
.ph-group__head p{margin:0;color:var(--muted);font-size:.95rem}

.ph-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media (min-width:620px){.ph-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.ph-grid{grid-template-columns:repeat(3,1fr)}}

.ph-item{
  display:block;width:100%;margin:0;padding:0;border:0;
  background:none;font:inherit;color:inherit;text-align:left;
  position:relative;overflow:hidden;border-radius:var(--radius);
  box-shadow:var(--shadow-sm);cursor:zoom-in;
}
/* Every thumbnail is the same shape; the photo is cropped to fill it. */
.ph-item img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:transform .5s ease}
.ph-item:hover img{transform:scale(1.045)}
.ph-item:focus-visible{outline:3px solid var(--teal-500);outline-offset:3px}
.ph-item__cap{
  position:absolute;inset:auto 0 0 0;padding:1.6rem .9rem .75rem;
  font-size:.85rem;font-weight:600;line-height:1.35;color:#fff;
  background:linear-gradient(to top,rgba(10,35,66,.85),rgba(10,35,66,0));
}
@media (prefers-reduced-motion:reduce){.ph-item img,.ph-item:hover img{transition:none;transform:none}}

/* ---------- Lightbox ---------- */
.lb{
  position:fixed;inset:0;z-index:130;display:none;
  align-items:center;justify-content:center;
  background:rgba(8,22,42,.94);padding:clamp(.75rem,3vw,2rem);
}
.lb.is-open{display:flex}
.lb__stage{max-width:1100px;width:100%;display:flex;flex-direction:column;align-items:center;gap:.85rem}
.lb__img{
  max-width:100%;max-height:74vh;width:auto;height:auto;
  object-fit:contain;border-radius:var(--radius);box-shadow:var(--shadow-lg);background:#0b1c33;
}
.lb__cap{margin:0;color:#E8EEF6;font-size:.92rem;text-align:center;max-width:60ch}
.lb__count{margin:0;color:#9FB2C8;font-size:.8rem;letter-spacing:.04em}
.lb__btn{
  position:absolute;display:grid;place-items:center;
  width:48px;height:48px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.14);color:#fff;transition:background .2s ease;
}
.lb__btn:hover{background:rgba(255,255,255,.26)}
.lb__btn:focus-visible{outline:3px solid var(--teal-500);outline-offset:2px}
.lb__btn svg{width:24px;height:24px}
.lb__close{top:clamp(.75rem,3vw,1.5rem);right:clamp(.75rem,3vw,1.5rem);font-size:1.35rem;line-height:1}
.lb__prev{left:clamp(.5rem,2vw,1.5rem);top:50%;transform:translateY(-50%)}
.lb__next{right:clamp(.5rem,2vw,1.5rem);top:50%;transform:translateY(-50%)}
@media (max-width:600px){
  .lb__img{max-height:64vh}
  .lb__prev{left:.5rem}
  .lb__next{right:.5rem}
}

/* =========================================================
   Patient reviews — summary panel + scroll-snap carousel
   Rendered from window.DEVORTHO_REVIEWS (assets/js/reviews.js).
   The whole section removes itself while that list is empty, so
   the page never shows an empty or placeholder testimonial.
   ========================================================= */
.reviews{background:var(--navy-900);color:#D8E2EE;position:relative;overflow:hidden}
/* Soft teal wash so the flat navy does not read as a solid slab. */
.reviews::before{
  content:"";position:absolute;inset:-40% 55% auto -10%;height:90%;
  background:radial-gradient(closest-side,rgba(20,167,158,.22),transparent);
  pointer-events:none;
}
.reviews .container{position:relative}
.reviews h2{color:#fff}
.reviews .eyebrow{color:var(--teal-100)}

.tm-layout{display:grid;gap:1.75rem}
/* Grid items default to min-width:auto, so the horizontally overflowing rail
   would stretch its own track instead of scrolling inside it. */
.tm-layout>*{min-width:0}
@media (min-width:980px){
  .tm-layout{grid-template-columns:minmax(0,1fr);gap:2.25rem;align-items:start}
  .tm-summary{width:min(100%,600px);justify-self:center}
}

/* ---- Left: the aggregate, straight from the hospital's public listing ---- */
.tm-summary{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-lg);padding:1.6rem 1.5rem;
}
@media (max-width:979px){
  .tm-summary{width:min(100%,600px);justify-self:center}
}
.tm-score{display:flex;align-items:baseline;gap:.5rem;margin-bottom:.3rem}
.tm-score b{font-size:2.9rem;line-height:1;color:#fff;letter-spacing:-.03em}
.tm-score span{font-size:1rem;color:#9FB2C8}
.tm-summary .tm-stars{margin-bottom:.7rem}
.tm-count{margin:0 0 1.15rem;color:#B9C9DC;font-size:.9rem;line-height:1.5}
.tm-summary .btn{width:100%}
.tm-note{margin:1.1rem 0 0;font-size:.78rem;line-height:1.55;color:#8FA3BA}

/* ---- Right: the cards ---- */
.tm-bar{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-bottom:1rem}
.tm-bar p{margin:0;font-size:.88rem;color:#9FB2C8}
.tm-nav{display:flex;gap:.5rem;flex:none}
.tm-nav button{
  width:44px;height:44px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.22);border-radius:50%;
  background:rgba(255,255,255,.06);color:#fff;cursor:pointer;
  transition:background .2s ease,border-color .2s ease,opacity .2s ease;
}
.tm-nav button:hover:not(:disabled){background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.45)}
.tm-nav button:disabled{opacity:.3;cursor:default}
.tm-nav button:focus-visible{outline:3px solid var(--teal-500);outline-offset:2px}
.tm-nav svg{width:20px;height:20px}

/* Track widths are fixed fractions of the rail, never minmax(0,…) — a zero
   minimum would let every card shrink to fit instead of overflowing, and the
   rail would stop scrolling. */
.tm-rail{
  display:grid;grid-auto-flow:column;grid-auto-columns:86%;
  gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:.25rem .25rem 1rem;margin:-.25rem -.25rem 0;
  scrollbar-width:none;-ms-overflow-style:none;
}
.tm-rail::-webkit-scrollbar{display:none}
.tm-rail.is-auto{scroll-snap-type:none}
.tm-rail:focus-visible{outline:3px solid var(--teal-500);outline-offset:4px;border-radius:var(--radius)}
@media (min-width:620px){.tm-rail{grid-auto-columns:calc(50% - .5rem)}}
@media (min-width:1240px){.tm-rail{grid-auto-columns:calc(33.333% - .67rem)}}

.tm-card{
  /* <figure> carries a UA default margin of 1em 40px — reset it or the card
     sits 80px narrower than its grid track. */
  margin:0;position:relative;
  scroll-snap-align:start;display:flex;flex-direction:column;gap:.9rem;
  background:var(--paper);border-radius:var(--radius);
  padding:1.65rem 1.45rem 1.35rem;box-shadow:var(--shadow-md);
  transition:transform .25s ease,box-shadow .25s ease;
}
.tm-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
/* Decorative opening quote, tucked behind the text. */
.tm-card::before{
  content:"\201C";position:absolute;top:.35rem;right:1.1rem;
  font-size:4.6rem;line-height:1;color:var(--teal-50);
  font-family:Georgia,"Times New Roman",serif;pointer-events:none;
}
.tm-stars{display:flex;gap:.15rem;color:#E8A33D}
.tm-stars svg{width:17px;height:17px;fill:currentColor}
.tm-quote{margin:0;position:relative;color:var(--body);font-size:.97rem;line-height:1.65}
/* The footer is pinned to the bottom of every card, so it only stays aligned
   across cards while it is the same height in each — which means the meta line
   must never wrap to two lines. */
.tm-foot{
  margin-top:auto;display:flex;align-items:center;gap:.75rem;
  padding-top:1rem;border-top:1px solid var(--line);
}
.tm-who{min-width:0}
.tm-avatar{
  width:42px;height:42px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:var(--teal-600);color:#fff;font-weight:700;font-size:1rem;
}
.tm-name,.tm-meta{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-name{font-weight:700;color:var(--ink);font-size:.93rem;line-height:1.35}
.tm-meta{color:var(--muted);font-size:.79rem;line-height:1.35}
@media (prefers-reduced-motion:reduce){.tm-card,.tm-card:hover{transition:none;transform:none}}
