/* ==========================================================================
   Kallai Medical Center — Global Stylesheet
   ========================================================================== */

:root {
  --primary: #0e7c86;        /* deep teal */
  --primary-dark: #0a5c64;
  --primary-light: #e6f7f6;
  --secondary: #ff8c42;      /* warm coral/orange accent */
  --secondary-dark: #e6722a;
  --secondary-light: #fff1e5;
  --pink: #ff6f91;
  --pink-light: #ffe3ea;
  --mint: #2fbf9f;
  --mint-light: #e0f8f2;
  --lavender: #8d6fce;
  --lavender-light: #eee7fb;
  --gold: #f4b400;
  --gold-light: #fef4d9;
  --dark: #163b3b;
  --text: #2c3e3e;
  --muted: #5c6f6f;
  --bg: #ffffff;
  --bg-soft: #f6fbfa;
  --border: #dcece9;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 8px 24px rgba(14, 124, 134, 0.12);
  --shadow-lg: 0 16px 40px rgba(14, 124, 134, 0.18);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* stop iOS/Android from auto-inflating text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Guard against sideways scroll on small screens.
     'clip' (not 'hidden') is deliberate: 'hidden' creates a scroll container
     and would break the sticky header. Older browsers ignore this harmlessly. */
  overflow-x: clip;
}

/* Long words/emails/URLs wrap instead of overflowing narrow screens */
h1, h2, h3, h4, p, li, a, summary {
  overflow-wrap: break-word;
}

/* Media never exceeds its container */
img, iframe { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-label {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-heading {
  max-width: 680px;
  margin: 0 0 40px;
}

.bg-soft { background: var(--bg-soft); }
.bg-primary { background: var(--primary); color: #fff; }
.bg-primary h2, .bg-primary h3, .bg-primary p { color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: #cfe9e6;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 8px;
}
.topbar a { color: #cfe9e6; }
.topbar .topbar-item { margin-right: 20px; }
.topbar .topbar-item:last-child { margin-right: 0; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark);
  flex-shrink: 0;          /* logo must never be squashed */
}
.logo .logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--mint));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.hero-logo-badge {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-badge img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}
.logo small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

nav.main-nav {
  flex: 1 1 auto;
  min-width: 0;            /* lets the nav shrink instead of pushing the button */
  display: flex;
  justify-content: center;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;     /* stop link labels breaking mid-word */
}
nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;     /* never wrap "Book Appointment" onto two lines */
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.35);
}
.btn-primary:hover { background: var(--secondary-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
}

.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 55%, var(--secondary-light) 100%);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-copy .section-label { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 20px; }

/* Homepage masthead headline.
   clamp(): 34px floor on phones -> 72px at desktop width. The middle value
   is viewport-relative so it scales smoothly instead of jumping at breakpoints. */
.hero-title {
  font-size: clamp(2.125rem, 7vw, 4.5rem);   /* 34px -> 72px */
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--primary-dark);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.35;
}
.hero-copy p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary-dark);
}
.hero-stats div span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--primary) 0%, var(--mint) 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-art .emoji-badge {
  font-size: 6rem;
}
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.hero-art::before { width: 180px; height: 180px; top: -50px; right: -50px; }
.hero-art::after { width: 120px; height: 120px; bottom: -30px; left: -30px; }
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.floating-card.card-1 { top: 18px; left: 18px; }
.floating-card.card-2 { bottom: 22px; right: 18px; }
.floating-card .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--mint);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .section-label { background: rgba(255,255,255,0.18); color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 620px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.9); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

/* color variants for icon badges / accents */
.tone-teal   { background: var(--primary-light); color: var(--primary-dark); }
.tone-coral  { background: var(--secondary-light); color: var(--secondary-dark); }
.tone-pink   { background: var(--pink-light); color: var(--pink); }
.tone-mint   { background: var(--mint-light); color: var(--mint); }
.tone-lavender { background: var(--lavender-light); color: var(--lavender); }
.tone-gold   { background: var(--gold-light); color: #b58200; }

.card.tone-border-teal { border-top: 4px solid var(--primary); }
.card.tone-border-coral { border-top: 4px solid var(--secondary); }
.card.tone-border-pink { border-top: 4px solid var(--pink); }
.card.tone-border-mint { border-top: 4px solid var(--mint); }
.card.tone-border-lavender { border-top: 4px solid var(--lavender); }
.card.tone-border-gold { border-top: 4px solid var(--gold); }

.card ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); }
.card ul li { margin-bottom: 6px; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Service detail sections (services.html) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-block.reverse .service-visual { order: 2; }

.service-visual {
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: var(--shadow);
}

.service-block h2 { margin-bottom: 12px; }
.service-block .service-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.service-block .service-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.96rem;
}
.service-block .service-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* nav pills for jumping to a service anchor */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.service-nav a {
  background: rgba(255,255,255,0.14);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.service-nav a:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* ---------- Why choose us / features ---------- */
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.feature-row .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.feature-row h4 { margin-bottom: 4px; }
.feature-row p { margin: 0; font-size: 0.94rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--secondary) 0%, var(--pink) 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { opacity: 0.95; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--primary);
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card .author { font-weight: 700; color: var(--dark); margin-top: 14px; }
.testimonial-card .author span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }

/* ---------- About page specifics ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  text-align: center;
}
.stat-strip strong { display: block; font-size: 2rem; }
.stat-strip span { font-size: 0.85rem; opacity: 0.85; }

.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-card h4 { margin-bottom: 6px; }
.contact-info-card p { margin: 0; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-soft);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 260px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.emergency-strip {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.emergency-strip strong { color: var(--secondary); }

/* ---------- Doctor photo cards ---------- */
.doctor-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card.has-photo { padding: 20px 26px 26px; }

/* ---------- Camps / Offers / Videos ---------- */
.promo-strip {
  background: linear-gradient(120deg, var(--gold) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 14px 0;
}
.promo-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}
.promo-strip a.btn {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.camp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.date-badge {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.date-badge .day { font-size: 1.5rem; font-weight: 700; }
.date-badge .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }

.offer-card {
  background: #fff;
  border: 2px dashed var(--secondary);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.offer-card .tag {
  background: var(--secondary);
  color: #fff;
}

/* Price display: struck-through original beside the camp rate */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}
.price-was {
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-now {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.price-note { font-size: 0.85rem; color: var(--muted); }

/* Test panel grid for the master health checkup */
.test-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.test-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.test-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--dark);
}
.test-item span {
  font-size: 0.82rem;
  color: var(--muted);
}
.test-count {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* Doctor chips on a camp card */
.camp-doctors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.doctor-chip {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.camp-card.featured { border: 2px solid var(--secondary); }

@media (max-width: 560px) {
  .test-panel { grid-template-columns: 1fr; }
  .price-now { font-size: 1.7rem; }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.video-placeholder .play-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ---------- Video cards (Media page) ---------- */
.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.video-card .video-embed { border-radius: 0; box-shadow: none; }
.video-card-body { padding: 18px 20px 20px; }
.video-card-body h3 { margin-bottom: 6px; font-size: 1.08rem; }
.video-card-body .video-meta {
  font-size: 0.84rem;
  color: var(--secondary-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.video-card-body p { margin: 0; font-size: 0.92rem; }

/* Portrait (phone-shot) videos: 9:16 instead of 16:9 */
.video-embed.portrait { padding-bottom: 177.78%; }

/* Instagram reel embeds render their own card (video + caption chrome),
   so they need a fixed height rather than an aspect-ratio box. */
.insta-embed {
  width: 100%;
  height: 620px;
  background: var(--bg-soft);
}
.insta-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Fallback link shown beneath the embed, in case Instagram blocks the frame */
.insta-fallback {
  font-size: 0.85rem;
  margin-top: 10px;
}
@media (max-width: 560px) {
  .insta-embed { height: 560px; }
}

/* ---------- Event photo gallery ---------- */
.event-block { margin-bottom: 44px; }
.event-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.event-head h3 { margin: 0; }
.event-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
}
.event-note { font-size: 0.92rem; color: var(--muted); margin: 0 0 16px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: var(--bg-soft);
}
.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  padding: 0 24px;
}

/* Empty-state panel for sections awaiting content */
.empty-note {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-soft);
}
.empty-note .big { font-size: 2rem; display: block; margin-bottom: 8px; }

@media (max-width: 560px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .lightbox { padding: 12px; }
  .lightbox-close { top: 10px; right: 12px; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding-bottom: 20px;
  margin: 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--dark);
  color: #cfe9e6;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #b8d9d6; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #93b8b4;
}

/* ---------- Responsive ---------- */

/* Between ~1080px and 1180px the 7 nav items get tight — trim the gap
   before falling back to the hamburger. */
@media (max-width: 1180px) and (min-width: 1081px) {
  nav.main-nav ul { gap: 14px; }
  nav.main-nav a { font-size: 0.89rem; }
}

/* 7 links + logo + button need more room than the old 900px breakpoint,
   so switch to the mobile drawer earlier. */
@media (max-width: 1080px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-block, .service-block.reverse {
    grid-template-columns: 1fr;
  }
  .service-block.reverse .service-visual { order: 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* newer components added after the original breakpoints */
  .video-grid { grid-template-columns: 1fr; }
  .promo-strip .container { flex-direction: column; gap: 10px; }
  .doctor-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; align-items: flex-start; }
  section { padding: 48px 0; }

  /* Typography breathing room */
  body { font-size: 0.97rem; }
  .container { padding: 0 18px; }
  .nav-wrap { padding: 12px 18px; }

  /* Top bar: compact, still readable */
  .topbar { font-size: 0.78rem; }
  .topbar .container { gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .topbar .topbar-item { margin-right: 12px; }

  /* Logo scales down so the header doesn't dominate the screen */
  .logo { font-size: 1.05rem; gap: 9px; }
  .logo-img { height: 40px; }
  .logo small { font-size: 0.6rem; }

  /* Hide the header "Book Appointment" button (it's in the mobile drawer) */
  .nav-cta > .btn { display: none; }

  /* Hero */
  .hero .container { padding-top: 36px; padding-bottom: 36px; gap: 30px; }
  .hero-copy p.lead { font-size: 1rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stats { gap: 20px; margin-top: 28px; }
  .hero-stats div strong { font-size: 1.3rem; }
  .hero-art { min-height: 220px; }
  .hero-logo-badge { padding: 14px 18px; }
  .hero-logo-badge img { max-width: 160px; }
  .floating-card { font-size: 0.72rem; padding: 9px 12px; }

  /* Page hero (interior pages) */
  .page-hero { padding: 44px 0 40px; }

  /* Cards */
  .card { padding: 24px 20px; }
  .cta-banner { padding: 32px 22px; }
  .stat-strip { padding: 28px 18px; gap: 16px; }
  .stat-strip strong { font-size: 1.5rem; }

  /* Camps: stack the date badge above the details */
  .camp-card { flex-direction: column; gap: 14px; padding: 22px; }

  /* Service detail blocks */
  .service-block { padding: 36px 0; gap: 26px; }
  .service-visual { min-height: 180px; font-size: 3.2rem; }
  .service-nav { gap: 8px; }
  .service-nav a { font-size: 0.78rem; padding: 7px 13px; }

  /* Forms: 16px min font stops iOS auto-zoom on focus */
  .form-card { padding: 24px 20px; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  .contact-info-card { padding: 22px; gap: 13px; }
  .emergency-strip { padding: 20px; }
  .faq-item { padding: 2px 18px; }
  .faq-item summary { padding: 16px 0; }

  /* Floating WhatsApp button: smaller, thumb-friendly placement */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 16px;
    right: 16px;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 4px;      /* ~48px tall: comfortable thumb target */
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
}
.mobile-nav a.active { color: var(--primary); font-weight: 600; }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 14px; text-align: center; padding: 14px 26px; }

/* Hamburger: larger hit area than the 3 bars suggest */
.hamburger { padding: 10px; margin: -10px; }

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
