/* ==========================================================================
   Arihant Hospitals - polish layer (loaded last)
   Design tokens, accessibility, responsive refinements, motion preferences.
   ========================================================================== */
:root{
  --ease:cubic-bezier(.2,.7,.2,1);
  --shadow-1:0 1px 2px rgba(6,46,32,.06),0 4px 12px rgba(6,46,32,.06);
  --shadow-2:0 2px 4px rgba(6,46,32,.06),0 18px 40px rgba(6,46,32,.14);
  --focus:#c99a1a;
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:96px}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;overflow-x:clip}
img,video{max-width:100%;height:auto}
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
::selection{background:var(--pl);color:var(--gd)}
[id]{scroll-margin-top:96px}

/* Accessible, branded focus ring (keyboard only) */
:focus{outline:none}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:8px}
.skip:focus-visible{outline-offset:0}

/* Touch targets & interaction feedback */
a,button{-webkit-tap-highlight-color:transparent}
button,.btn,.cta{transition:transform .2s var(--ease),box-shadow .2s var(--ease),background-color .2s,color .2s}
.btn:hover,.cta:hover{transform:translateY(-1px);box-shadow:var(--shadow-1)}
.btn:active,.cta:active,button:active{transform:translateY(0) scale(.98)}
@media(pointer:coarse){.nav>li>a,.nav>li>button,.drop li a,.btn,.cta,.tl button{min-height:44px}}

/* Hero carousel: height follows the tallest slide, so controls never overlap content */
#slides{display:grid;min-height:0!important}
#slides>.slide{position:relative;inset:auto;grid-area:1/1;min-width:0}

/* Explore directory: tidy grid on every breakpoint */
.xp-c{box-shadow:var(--shadow-1)}
.xp-c img{aspect-ratio:3/2;height:auto;object-fit:cover}
.xp-c span{line-height:1.3}
@media(max-width:767px){
  .xp-g{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .xp-c img{aspect-ratio:4/3}
  .xp-c span{padding:10px 12px;font-size:14px}
  .xp h3{margin:22px 0 12px;font-size:18px}
  .sec{padding-block:44px}
}
@media(min-width:768px) and (max-width:1100px){.xp-g{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Cards: consistent depth + smooth hover */
.cc,.xp-c,.dc{transition:transform .3s var(--ease),box-shadow .3s var(--ease)}

/* Footer safe-area for notched phones with the sticky action bar */
@supports(padding:max(0px)){body{padding-bottom:env(safe-area-inset-bottom)}}

/* Icon font not available: hide ligature text instead of showing raw words */
.no-icons .ms{font-size:0!important;color:transparent!important}
.no-icons .ms::before{content:"";display:inline-block}

/* Respect user motion preferences */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
/* Print: clean article output */
@media print{.hdr,.ftr,.float,.sticky-cta,.consult,#explore{display:none!important}body{background:#fff}}
