/* ==========================================================================
   HOME page (index.html)
   Page-specific styles. Requires ../styles.css (global tokens & components).
   ========================================================================== */

/* ---------- Image placeholders ----------
   Swap each .img-slot for a real <img> when photos are ready (see comments in index.html).
   Then delete this block if nothing else uses it. */
.img-slot {
  position: relative; display: flex; align-items: flex-end; width: 100%; aspect-ratio: 4 / 3;
  padding: 0.875rem; overflow: hidden; border-radius: 0.75rem;
  border: 1px dashed color-mix(in oklab, var(--primary) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 14%, var(--background)), color-mix(in oklab, var(--primary) 4%, var(--soft)));
  color: var(--muted-foreground); font-size: 0.8125rem; line-height: 1.4;
}
.img-slot.tall { aspect-ratio: 4 / 5; }
.map-slot { min-height: 18rem; align-items: center; justify-content: center; text-align: center; }
.map-embed iframe, .map-slot iframe { display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 18rem; border: 0; border-radius: 0.75rem; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: min(80vh, 36rem); overflow: hidden; background: var(--foreground); }
.hero > img, .hero > .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > img { object-fit: cover; object-position: center; }
.hero-media {
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 55%, var(--foreground)), var(--foreground));
  color: color-mix(in oklab, var(--background) 55%, transparent); font-size: 0.8125rem;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--foreground), color-mix(in oklab, var(--foreground) 75%, transparent), color-mix(in oklab, var(--foreground) 10%, transparent));
}
.hero .section-shell { position: relative; padding-block: 2.5rem; }
@media (min-width: 48rem) { .hero .section-shell { padding-block: 3rem; } }
.hero-copy { max-width: 42rem; color: var(--background); }
.hero-eyebrow { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; }
/* Icon accent uses the calm light-blue token (not the warm/orange accent —
   orange is reserved for emergency cues only). */
.hero-eyebrow .icon { width: 1.25rem; height: 1.25rem; color: var(--light-blue); }
.hero h1 { font-size: 2.25rem; line-height: 1.25; }
@media (min-width: 48rem) { .hero h1 { font-size: 3.75rem; } }
.hero-text { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 2rem; color: color-mix(in oklab, var(--background) 90%, transparent); }
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 40rem) { .hero-actions { flex-direction: row; } }

/* ---------- Proof / credentials strip ----------
   Sits between About and Departments. Stat numbers and accreditation
   logos are placeholders — see comments in index.html. Do not style this
   to look "finished" with invented figures; the dashed slot below is
   intentionally visible until real logos are added. */
.proof-stats {
  display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40rem) { .proof-stats { grid-template-columns: repeat(4, 1fr); } }
.proof-stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--border);
  padding: 1.5rem 1rem; text-align: center;
}
.proof-stat .icon { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.proof-number { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.proof-label { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.4; }

.proof-accred { margin-top: 2.5rem; text-align: center; }
.proof-accred-label { font-weight: 600; color: var(--foreground); margin-bottom: 0.75rem; }
.proof-accred-slot {
  display: flex; align-items: center; justify-content: center; min-height: 5rem;
  border-radius: var(--radius-card); padding: 1.25rem;
  border: 1px dashed color-mix(in oklab, var(--primary) 35%, transparent);
  background: color-mix(in oklab, var(--primary) 4%, var(--card));
  color: var(--muted-foreground); font-size: 0.8125rem; line-height: 1.4; max-width: 40rem; margin-inline: auto;
}

/* ---------- Departments (photo cards with a colored icon badge) ----------
   Each card is: photo (4:3, top corners rounded) -> a circle badge that
   straddles the photo/body seam -> title + copy. The badge color and icon
   are set per-department via the modifier class below (dept-pulmonology,
   dept-cardiology, …), which sets --dept-color and picks the <use> icon
   inline in index.html. To add a department: duplicate a modifier rule
   with a new color and reference a new #i-… symbol on the card. */
.dept-card-home { padding: 0; }
.dept-media {
  position: relative; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0;
  aspect-ratio: 4 / 3; min-height: 11rem; /* floor so the box never collapses before a real photo is in place */
  background: linear-gradient(135deg, color-mix(in oklab, var(--dept-color, var(--primary)) 16%, var(--background)), color-mix(in oklab, var(--dept-color, var(--primary)) 5%, var(--soft)));
}
.dept-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Badge sits fully INSIDE the photo (not straddling the photo/body seam) so it
   can never get clipped by a card's overflow:hidden — no dependency on the
   card's own overflow rules. */
.dept-icon-badge {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--dept-color, var(--primary));
  border: 3px solid var(--background);
  box-shadow: 0 6px 14px color-mix(in oklab, var(--foreground) 22%, transparent);
}
.dept-icon-badge .icon { width: 1.625rem; height: 1.625rem; color: var(--background); }
.dept-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.dept-card-body h3 { font-size: 1.125rem; color: var(--foreground); }
.dept-card-body p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted-foreground); }

.dept-pulmonology  { --dept-color: #2E86D8; }
.dept-cardiology   { --dept-color: #E5484D; }
.dept-orthopaedics { --dept-color: #F5A623; }
.dept-neurosurgery { --dept-color: #8B5CF6; }
.dept-psychiatry   { --dept-color: #14B8A6; }
.dept-rheumatology { --dept-color: #3B82C4; }

/* ---------- Doctors ---------- */
.doctor-grid { display: grid; gap: 1.5rem; margin-block: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.doctor-card { padding: 0; overflow: hidden; }
.doctor-card .img-slot { border-radius: 0; border-width: 0 0 1px; }
.doctor-body { padding: 1.25rem 1.5rem 1.5rem; }
.doctor-body h3 { font-size: 1.125rem; }
.doctor-role { margin-top: 0.25rem; font-weight: 600; color: var(--primary); }
.doctor-qual { font-size: 0.875rem; color: var(--muted-foreground); }
.doctor-body .text-link { margin-top: 1rem; }

/* ---------- Why choose us (text only, no icons or invented numbers) ---------- */
.why-grid { display: grid; gap: 2rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.why-item { border-top: 3px solid var(--primary); padding-top: 1rem; }
.why-item:nth-child(2) { border-top-color: var(--emergency); }
.why-item h3 { font-size: 1.125rem; }
.why-item p { margin-top: 0.5rem; color: var(--muted-foreground); }

/* ---------- Affordable care band ---------- */
.wellness-split { display: grid; gap: 2rem; align-items: center; text-align: left; }
@media (min-width: 48rem) { .wellness-split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.wellness-split p { margin-top: 1rem; }
.wellness-band .img-slot { color: inherit;  border: 1.5px dashed currentColor; background: color-mix(in oklab, currentColor 8%, transparent); }

/* ---------- OPD & emergency ---------- */
.hours-strip { background: var(--soft); padding-block: 3rem; }
.hours-strip .section-shell { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .hours-strip .section-shell { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.hours-strip .left { display: flex; gap: 1rem; }
.hours-strip .left .icon { width: 2rem; height: 2rem; flex: none; margin-top: 0.25rem; color: var(--primary); }
.hours-strip h2 { font-size: 1.5rem; font-weight: 600; }
.hours-list { margin: 1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; font-size: 1.0625rem; }
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; }
.hours-emergency h3 { font-size: 1.125rem; font-weight: 600; color: var(--emergency); }
.hours-emergency p { margin-top: 0.25rem; color: var(--muted-foreground); }
.hours-phones { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Find us ---------- */
.map-address { margin: 1.5rem 0; display: grid; gap: 0.75rem; font-style: normal; }
.map-address p { display: flex; gap: 0.75rem; }
.map-address .icon { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.2rem; color: var(--primary); }
.map-address a { font-weight: 600; }

/* ---------- Final contact CTA ---------- */
.contact-band { padding-block: 3rem; }
.contact-band .section-shell { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .contact-band .section-shell { grid-template-columns: 0.9fr 1.1fr; } }
.contact-band h2 { font-size: 1.875rem; }
.contact-band p { margin-top: 0.75rem; max-width: 30rem; color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pill {
  display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.5rem; border-radius: 9999px;
  background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); padding-inline: 1rem; font-weight: 600;
}
.contact-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 40rem) { .contact-actions { flex-direction: row; } }
.contact-band .btn.btn-ghost-light {
  background: transparent; color: var(--primary-foreground);
  border: 2px solid color-mix(in oklab, var(--primary-foreground) 70%, transparent);
}