/* ══════════════════════════════════════════════════════════════════
   HOME PAGE FEATURES — home-features.css
   ──────────────────────────────────────────────────────────────────
   Frontend-only additions for index.html:
     • Dark mode toggle + overrides
     • Quick-Pay floating action button
     • WhatsApp share button (announcement banner)
     • FAQ accordion section
     • Emergency & Important Contacts section
   This file only ADDS new rules and scopes dark-mode overrides under
   body.dark-mode — it does not modify any selector from index.css.
   Safe to remove (with its <link> tag) without affecting anything else.
   ══════════════════════════════════════════════════════════════════ */

/* ── Dark mode toggle button (sits in header, next to Login) ───────── */
.hf-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.2s ease;
  flex: 0 0 auto;
}
.hf-dark-toggle:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* ── Quick-Pay floating action button ───────────────────────────────── */
.hf-pay-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}
.hf-pay-fab.hf-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hf-pay-fab:hover { box-shadow: 0 10px 28px rgba(15, 118, 110, 0.5); }
.hf-pay-fab i { font-size: 16px; }
@media (max-width: 600px) {
  .hf-pay-fab { right: 14px; bottom: 18px; padding: 12px 16px; font-size: 13px; }
}

/* ── WhatsApp share button inside announcement banner ───────────────── */
.hf-ann-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  margin-right: 6px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease;
}
.hf-ann-share:hover { background: rgba(255,255,255,0.28); }

/* ── FAQ accordion section ───────────────────────────────────────────── */
.hf-faq-section { padding: 64px 24px; text-align: center; }
.hf-faq-list {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hf-faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.hf-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
}
.hf-faq-q i { color: #0F766E; transition: transform 0.25s ease; flex: 0 0 auto; }
.hf-faq-item.open .hf-faq-q i { transform: rotate(180deg); }
.hf-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 20px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
}
.hf-faq-item.open .hf-faq-a { max-height: 240px; padding: 0 20px 18px; }

/* ── Emergency & Important Contacts section ──────────────────────────── */
.hf-contacts-section { padding: 64px 24px; text-align: center; background: #F8FAFC; }
.hf-contacts-grid {
  max-width: 960px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.hf-contact-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hf-contact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,0.08); }
.hf-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F0FDFA;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: 0 0 auto;
}
.hf-contact-card > div:last-child { min-width: 0; }
.hf-contact-name { font-weight: 600; color: #0F172A; font-size: 0.95rem; }
.hf-contact-role { font-size: 0.78rem; color: #64748B; margin: 2px 0 6px; }
.hf-contact-phone {
  font-size: 0.88rem;
  color: #0F766E;
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hf-contact-phone:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hf-faq-section, .hf-contacts-section { padding: 36px 16px; }
}
@media (max-width: 480px) {
  .hf-faq-section, .hf-contacts-section { padding: 30px 14px; }
  .hf-contact-card { padding: 16px; gap: 10px; }
  .hf-contact-icon { width: 38px; height: 38px; font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════════════
   DARK MODE — scoped entirely under body.dark-mode, additive only
   ══════════════════════════════════════════════════════════════════ */
body.dark-mode { background: #0F172A; color: #CBD5E1; }
body.dark-mode .section,
body.dark-mode .hf-faq-section,
body.dark-mode .feedback-section { background: #0F172A; }
/* #about sets its own background via an ID selector in index.css, which beats
   a plain class selector regardless of load order — needs its own ID-level
   override here or it stays stuck on its light background in dark mode. */
body.dark-mode #about { background: #0F172A; }
body.dark-mode .section h2,
body.dark-mode .hf-faq-section h2,
body.dark-mode .hf-contacts-section h2 { color: #F1F5F9; }
body.dark-mode .section p,
body.dark-mode .about-stat-label { color: #94A3B8; }

body.dark-mode .hf-contacts-section { background: #111827; }
body.dark-mode .hf-faq-item,
body.dark-mode .hf-contact-card { background: #1E293B; border-color: #334155; }
body.dark-mode .hf-faq-q { color: #F1F5F9; }
body.dark-mode .hf-faq-a { color: #94A3B8; }
body.dark-mode .hf-contact-name { color: #F1F5F9; }
body.dark-mode .hf-contact-role { color: #94A3B8; }
body.dark-mode .hf-contact-icon { background: rgba(15,118,110,0.18); }

body.dark-mode .gallery-swiper-section,
body.dark-mode .swiper-gallery { background: transparent; }

/* ── Hero section: sync with the toggle ──────────────────────────────
   The hero is already a dark teal/navy gradient, so leaving it untouched
   made the toggle feel like it "skipped" this section. Deepen the tones
   to match the rest of dark mode, and add a soft glass reflection that
   sweeps across the hero once, right when the toggle fires — a visible
   confirmation the change reached here too. */
body.dark-mode .hero {
  background:
    radial-gradient(circle at 20% 25%, rgba(45, 212, 191, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(245, 158, 11, 0.14) 0%, transparent 42%),
    linear-gradient(135deg, #060B14 0%, #0B3B37 45%, #0A5049 75%, #062420 100%);
}
body.dark-mode .hero::after {
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 22% 28%, rgba(255,255,255,0.10) 0%, transparent 38%),
    radial-gradient(circle at 82% 65%, rgba(147,197,253,0.14) 0%, transparent 42%),
    linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 45%);
}

/* Reflection sweep — a soft diagonal band of light that glides across the
   hero once. Element is created on demand by hfPlayHeroSweep() in
   home-features.js, so no HTML changes are required. */
.hero-mode-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.22) 50%, transparent 58%);
  background-size: 250% 250%;
  background-position: -60% -60%;
  opacity: 0;
}
.hero-mode-sweep.play {
  animation: heroModeSweep 0.9s ease-out;
}
@keyframes heroModeSweep {
  0%   { opacity: 0;   background-position: -60% -60%; }
  15%  { opacity: 1; }
  100% { opacity: 0;   background-position: 160% 160%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mode-sweep.play { animation: none; }
}