/* ==================================================================
   Shasthya Hospital — v2.0.4 PROFESSIONAL DESIGN POLISH
   ------------------------------------------------------------------
   Additive override layer, loaded AFTER assets/css/main.css (see
   functions.php: shasthya_assets). DESIGN ONLY — no menu, form field,
   button text, label or data flow is changed anywhere in this file,
   and no PHP/JS logic is touched by it.

   Palette (navy-gold only for decoration):
     navy #002355 / #152644 / #1E3357 / footer #0F1D37
     sky  #5AC3E6 / #44C9F5 / #0284C7 / #0EA5E9
     gold #C9A227 / #D9B84A  (ONE gold — the #C79300 used by the v2.0.0
     instant-account / notification styles is unified to #C9A227 below)
   Kept on purpose (semantic, not decorative): green #229E75 for
   "available / ready / income" states, red #991B1B/#B91C1C for
   emergency / error states, amber for warnings. Removing those would
   hide meaning, not add polish.
   Removed as decoration: purple #8B6DAF (button + hero slide 2),
   the rainbow gradient strip, orange #F99D1C (unused token).

   Deliberately NOT touched here (v1.9.3 / v2.0.1 guards):
   - .sh-inview / .sh-word animation rules: any transform/opacity
     change there would re-break the v2.0.0 appointment popup, whose
     fixed overlay must not sit inside a transformed ancestor
     (v2.0.1 fail-safe: .sh-inview.is-visible uses transform:none).
   - .curve-card transforms: positioned by JS (curved slider).
   - .hero-slide.has-photo: NO overlay/scrim layer over slide photos
     (v1.3.1 rule — photos stay fully clear). Readability on photos
     comes from stronger text-shadow only, never a curtain.
   ================================================================== */

:root{
  --sh-gold:#C9A227;
  --sh-gold-2:#D9B84A;
  --sh-radius:12px;
  --sh-radius-lg:14px;
  --sh-shadow:0 10px 30px rgba(0,35,85,.10);
  --sh-shadow-lg:0 16px 36px rgba(0,35,85,.16);
}

/* ------------------------------------------------------------------
   1. Buttons — ONE primary/secondary language everywhere
   ------------------------------------------------------------------ */
.btn{
  border-radius:10px;
  min-width:180px;
  padding:0 1.5rem;
  letter-spacing:.01em;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(0,35,85,.22)}
.btn:focus-visible{outline:3px solid rgba(201,162,39,.55);outline-offset:2px}
/* Decorative purple retired: the "purple" button is now the same navy
   primary as every other CTA (text, size and link unchanged). */
.btn-purple{background:var(--primary)}
.btn-purple:hover{background:var(--navy3)}
/* Re-asserted AFTER .btn:hover above, or the generic hover would turn
   these navy-on-hover and break them: outline (white on navy hero)
   and emergency (white on red strip) keep their own hover. */
.btn-outline:hover{background:#fff;color:var(--primary)}
.btn-emergency:hover{background:#FEE2E2;color:#991B1B}
.btn-sky:hover{background:var(--sky600)}

/* ------------------------------------------------------------------
   2. Header — tidy sticky spacing, crisper nav
   ------------------------------------------------------------------ */
.site-header{box-shadow:0 2px 12px rgba(0,35,85,.08)}
.mainnav{padding:.55rem 1rem} /* main.css sets .mainnav padding ".6rem 0", which kills the container's side padding — the logo sat flush on the viewport edge at every width */
.site-logo{line-height:1.15}
.mainnav ul a{padding:.35rem 0;transition:color .2s ease}
.mainnav ul a:hover{color:var(--sky600);text-decoration:none}
.menu-toggle{border-radius:8px}
.topbar .sh-auth-btn{border-radius:20px} /* pill kept: header auth only */
/* Hotline must never wrap mid-number (seen at 1024px). The welcome line
   duplicates the site-name badge, so below 1280px it steps aside and
   the topbar stays one clean row — the same reason it is hidden on
   phones (v1.3.4). */
.topbar .hotline{white-space:nowrap}
@media(max-width:1279px){.topbar .welcome{display:none}}

/* ------------------------------------------------------------------
   3. Hero — hierarchy + contrast (text-shadow only on photos)
   ------------------------------------------------------------------ */
.hero-slide h2{
  font-size:clamp(1.6rem,4.5vw,2.6rem);
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.01em;
  max-width:720px;
}
.hero-slide p{
  font-size:clamp(1rem,2vw,1.15rem);
  line-height:1.65;
  font-weight:500;
  max-width:620px;
}
/* Gold CTA on the dark hero: the old navy button sat invisible on the
   navy gradient. Gold + navy text is the palette's own high-contrast
   combination; the button text and link are unchanged. */
.hero-slide .btn{
  margin-top:1.25rem;
  min-width:200px;
  height:52px;
  line-height:52px;
  border-radius:10px;
  background:linear-gradient(135deg,#C9A227,#D9B84A);
  color:#002355;
}
.hero-slide .btn:hover{
  background:linear-gradient(135deg,#D9B84A,#C9A227);
  color:#002355;
}
/* Photo slides: stronger shadow, still NO overlay layer (v1.3.1). */
.hero-slide.has-photo h2{text-shadow:0 2px 18px rgba(0,0,0,.95),0 1px 5px rgba(0,0,0,.95),0 0 2px rgba(0,0,0,.85)}
.hero-slide.has-photo p{text-shadow:0 2px 12px rgba(0,0,0,.95),0 1px 4px rgba(0,0,0,.95)}
.hero-slide.has-photo .btn{box-shadow:0 4px 16px rgba(0,0,0,.45)}
/* Gradient slides: a mild shadow so text reads the same on every slide. */
.hero-slide:not(.has-photo) h2,
.hero-slide:not(.has-photo) p{text-shadow:0 1px 6px rgba(0,20,50,.35)}
/* Slide 2 gradient: purple retired, navy -> sky like slides 1 and 3. */
.hero-slide.bg-2{background:linear-gradient(135deg,#152644,#0284C7)}
.hero-nav button:hover{background:rgba(0,35,85,.85)}
.hero-dots button{background:rgba(255,255,255,.55)}
.hero-dots button.active{background-color:#C9A227}
/* Rainbow strip retired: one navy -> sky -> gold hairline. */
.gradient-strip{background:linear-gradient(90deg,#002355 0%,#0284C7 45%,#5AC3E6 70%,#C9A227 100%)}

/* Quick tiles: same radius language as the cards below them. */
.quick-tile{border-radius:var(--sh-radius)}
.quick-tile .tile-label{letter-spacing:.02em;overflow-wrap:anywhere} /* long single words (APPOINTMENT) wrap inside the tile instead of running under the icon */

/* ------------------------------------------------------------------
   4. Section rhythm — one spacing scale, one heading style
   ------------------------------------------------------------------ */
.section{margin-bottom:3.5rem}
.section-alt{padding:3.5rem 0;margin-bottom:3.5rem}
.section-title{font-size:1.75rem;margin-bottom:2rem}
.section-title::after{
  content:"";display:block;width:56px;height:4px;
  background:#C9A227;border-radius:2px;margin:.8rem auto 0;
}
.section-title.left::after{margin-left:0;margin-right:auto}
.section-intro{color:var(--grey700);margin-bottom:2.25rem}
@media(min-width:1024px){
  .section{margin-bottom:4rem}
  .section-title{font-size:2.125rem;margin-bottom:2.5rem}
}
/* "View All …" rows under homepage sections (was 6 inline styles). */
.sh-section-cta{margin-top:1.5rem}
.sh-section-cta.center{text-align:center}
/* Full-bleed bands use the same rhythm as .section. */
.sh-stats{padding:3rem 0;margin-bottom:3.5rem}
.sh-stats-title{font-size:1.75rem}
.sh-stats-title::after{
  content:"";display:block;width:56px;height:4px;
  background:#C9A227;border-radius:2px;margin:.8rem auto 0;
}
.sh-emergency{padding:2.25rem 0;margin-bottom:3.5rem}
.ask-banner{padding:2rem 0;margin-bottom:3.5rem}
@media(min-width:1024px){.sh-stats-title{font-size:2.125rem}}
/* Slider dots: one active colour (gold) on every slider. */
.spec-dots button.active{background-color:#C9A227}
#home-doctors .curve-dots button.active{background:#C9A227}
.tst-dots button.active{background:#C9A227}

/* ------------------------------------------------------------------
   5. Cards — one radius, one shadow, equal heights
   ------------------------------------------------------------------ */
.card{border-radius:var(--sh-radius-lg);box-shadow:var(--sh-shadow);transition:box-shadow .25s ease,transform .25s ease}
.card:hover{transform:translateY(-2px);box-shadow:var(--sh-shadow-lg)}
.card-body{padding:1.25rem 1.5rem;display:flex;flex-direction:column}
.card-body p:last-child{margin-bottom:0}
.card-title{line-height:1.35}
/* Button row pinned to the card foot so buttons line up across a row
   of equal-height cards. :has() is progressive enhancement: browsers
   without it simply show the button after the text, as in v2.0.3. */
.card-body>p:has(>.btn){margin-top:auto;padding-top:1rem}
@media(hover:none){.card:hover{transform:none;box-shadow:var(--sh-shadow)}}

/* Specialities: slider + tiles share the card radius/shadow. */
.spec-slider{border-radius:var(--sh-radius-lg)}
.spec-tile{border-radius:var(--sh-radius);box-shadow:0 4px 14px rgba(0,35,85,.06)}
.spec-tile:hover{border-color:var(--primary)}

/* FAQ + map share the same radius language. */
.faq-item{border-radius:10px}
.sh-map{border-radius:var(--sh-radius-lg);box-shadow:var(--sh-shadow)}
.sh-map-address{margin-top:1.25rem}

/* ------------------------------------------------------------------
   6. Doctor cards — uniform photos, aligned rows, bottom buttons
   ------------------------------------------------------------------ */
.doctor-card{
  border-radius:var(--sh-radius-lg);
  box-shadow:var(--sh-shadow);
  align-items:stretch;
}
.doctor-card>div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.doctor-card>div>p:has(>.btn){margin-top:auto;padding-top:.9rem}
.doctor-card h3{line-height:1.3}
.doctor-card.compact>div{align-items:center}
.avatar{flex:none}
/* Homepage curved slider: name (2 lines) and speciality (1 line) are
   given fixed minimum heights so those rows align across cards; the
   button is pinned to the foot. Photo ratio (4/5) is unchanged. */
#home-doctors .curve-card{border-radius:var(--sh-radius-lg)}
#home-doctors .curve-body{flex:1}
#home-doctors .curve-body h3{min-height:2.6em;line-height:1.3;margin:0}
#home-doctors .curve-body .qual{min-height:1.35em}
#home-doctors .curve-body p:has(>.btn){margin-top:auto;padding-top:.75rem;width:100%}
/* Duty cards ("Doctors Present Today"): same treatment — uniform
   112px avatar, aligned title/spec rows, button at the foot. */
.sh-duty-grid .sh-duty-card{display:flex;flex-direction:column}
.sh-duty-grid .sh-duty-card .avatar{width:112px;height:112px;min-width:112px;margin:1.25rem auto 0}
.sh-duty-grid .sh-duty-card .card-body{flex:1}
.sh-duty-grid .sh-duty-card .card-title{min-height:2.6em;line-height:1.3}
.sh-duty-spec{min-height:1.35em}
.sh-duty-grid .sh-duty-card .card-body>p:has(>.btn){margin-top:auto;padding-top:.75rem}

/* ------------------------------------------------------------------
   7. Forms & buttons — ONE input style, ONE focus ring
   ------------------------------------------------------------------ */
.sh-form input,.sh-form textarea,.sh-form select,
.doctor-search input[type=text],.doctor-search select,
.sh194-form input,.sh194-form textarea,
.sh-auth-body input,.sh-auth-body select,.sh-auth-body textarea,
.sh200-followup select,.sh200-followup input[type=date],.sh200-followup input[type=text],
.sh197-test-row input[type=text],.sh197-test-row select,
.sh-rate-form input,.sh-rate-form select,.sh-rate-form textarea{
  padding:.8rem .9rem;
  border:1.5px solid var(--border);
  border-radius:10px;
  font-size:1rem;
  background:#fff;
}
.sh-form input:focus,.sh-form textarea:focus,.sh-form select:focus,
.doctor-search input[type=text]:focus,.doctor-search select:focus,
.sh194-form input:focus,.sh194-form textarea:focus,
.sh-auth-body input:focus,.sh-auth-body select:focus,.sh-auth-body textarea:focus,
.sh200-followup select:focus,.sh200-followup input[type=date]:focus,.sh200-followup input[type=text]:focus,
.sh197-test-row input[type=text]:focus,.sh197-test-row select:focus,
.sh-rate-form input:focus,.sh-rate-form select:focus,.sh-rate-form textarea:focus{
  outline:none;
  border-color:#C9A227;
  box-shadow:0 0 0 3px rgba(201,162,39,.35);
}
/* The taller unified padding needs a taller search field (was 44px). */
.doctor-search input[type=text],.doctor-search select{height:48px}
.doctor-search{border-radius:var(--sh-radius-lg)}
.sh-form .sh-doctor-fixed{border-radius:10px}
.sh-form .error,.sh-form .success{border-radius:10px}
/* Auth submit + dashboard links/buttons share the 10px radius.
   (The glassmorphism auth scene keeps its own 12px radius: its
   selectors are more specific, so they still win here.) */
.sh-auth-btn{border-radius:10px}
.sh194-links a{border-radius:10px}
.sh194-btn-small{border-radius:10px}
.sh194-kpi{border-radius:var(--sh-radius)}
.sh194-card{border-radius:var(--sh-radius-lg)}
.sh194-next{border-radius:var(--sh-radius-lg)}
.sh-rate-form{border-radius:var(--sh-radius-lg)}
/* Medicine picker focus ring: same gold ring, picker layout untouched. */
.sh196-rx-picker select:focus,.sh196-rx-picker input:focus{
  outline:none;border-color:#C9A227;box-shadow:0 0 0 3px rgba(201,162,39,.35);
}

/* ------------------------------------------------------------------
   8. Instant-account modal + notifications — ONE gold (#C9A227)
   The #C79300 gold used by these v2.0.0 styles is unified to the
   theme gold. Modal geometry, z-index and scroll behaviour untouched.
   ------------------------------------------------------------------ */
.sh200-card{border-top-color:#C9A227}
.sh200-kicker{color:#C9A227}
.sh200-card input[type=password]{
  padding:.8rem .9rem;border:1.5px solid var(--border);border-radius:10px;
}
.sh200-card input[type=password]:focus{
  outline:none;border-color:#C9A227;box-shadow:0 0 0 3px rgba(201,162,39,.35);background:#fff;
}
.sh200-btn{border-radius:10px}
.sh200-btn-gold{background:#C9A227;color:#002355}
.sh200-btn-gold:hover{background:#D9B84A;color:#002355}
.sh200-bell-count{background:#C9A227}
.sh200-notif-item.is-unread{border-left-color:#C9A227}
.sh200-board-item.is-unread{border-left-color:#C9A227}
.sh200-push-btn{border-radius:10px}
.sh200-followup{border-color:#C9A227}

/* ------------------------------------------------------------------
   9. Footer — gold rules, quieter links, no empty gaps
   ------------------------------------------------------------------ */
.site-footer{padding:2.75rem 0 0}
.site-footer h4{font-size:1.05rem;letter-spacing:.02em;margin-bottom:.9rem}
.site-footer h4::after{
  content:"";display:block;width:36px;height:3px;
  background:#C9A227;border-radius:2px;margin-top:.55rem;
}
.site-footer p{color:#D1D5DB;line-height:1.7}
.site-footer p:empty{display:none}
.site-footer a{color:#DCEDFE}
.site-footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-grid{gap:2.5rem;padding-bottom:2.5rem}
.footer-grid ul{gap:.55rem}
.footer-grid ul a{display:inline-block;padding:.1rem 0}
.footer-grid iframe{border-radius:10px}
.footer-bottom{padding:1.15rem 1rem;color:#D1D5DB}
.site-footer .widget{margin-bottom:1.25rem}

/* ------------------------------------------------------------------
   10. Hospital Dashboard (wp-admin) — same radius/button language,
   scoped to .shdash so no other admin screen is touched. Loaded
   only when the dashboard stylesheet is enqueued (functions.php).
   ------------------------------------------------------------------ */
.shdash-head{border-radius:var(--sh-radius)}
.shdash-kpi{border-radius:10px}
.shdash-card{border-radius:10px}
.shdash .button,.shdash .button-primary{min-height:40px;border-radius:8px}

/* ------------------------------------------------------------------
   11. Mobile (360 / 390px) — stack, don't squeeze
   ------------------------------------------------------------------ */
@media(max-width:480px){
  /* Re-asserts the v2.0.3 phone sizes: the clamp() hero sizes above
     would otherwise override them (same specificity, later sheet). */
  /* Short phone slides (300px): the prev/next arrows sit over the
     slide text. Phones keep the 44px dots for navigation instead. */
  .hero-nav{display:none}
  .hero-slide h2{font-size:1.4rem}
  .hero-slide p{font-size:1rem}
  .section-title{font-size:1.5rem}
  .section-title::after{width:44px}
  /* Archive doctor cards stack vertically instead of squeezing the
     84px avatar beside the text in a 328px column. */
  .doctor-card{flex-direction:column;text-align:center;align-items:center}
  .doctor-card>div{align-items:center}
  .doctor-card>div>p:has(>.btn){padding-top:.75rem}
  /* Full-width appointment submit for an easy thumb target. */
  .sh-form .btn{width:100%}
  .sh-stats-grid{gap:1rem}
  .sh-stat-num{font-size:1.75rem}
  .footer-grid{gap:1.75rem}
  .site-footer{padding-top:2.25rem}
}
@media(max-width:390px){
  .section{margin-bottom:3rem}
  .section-alt{padding:3rem 0;margin-bottom:3rem}
}

/* Reduced motion: keep the v1.9.3 behaviour — no lift on buttons. */
@media (prefers-reduced-motion:reduce){
  .btn:hover{transform:none}
  .card:hover{transform:none}
}
