/* QuranlyHub Canada – homepage styles
   Static HTML + hand-written CSS. No framework. Inter webfont (Google Fonts)
   with a system-font fallback, inline SVG icons.
   Palette: white, teal #0F766E family, gold #F4B900, WhatsApp green #25D366 (sticky bar + float). */

:root {
  --teal: #0F766E;
  --teal-dark: #115E59;
  --teal-deep: #134E4A;
  --teal-50: #F0FDFD;
  --teal-100: #CCFBF1;
  --teal-300: #5EEAD4;
  --gold: #F4B900;
  --gold-dark: #B8850F;
  --gold-soft: #FFFBEB;
  --ink: #1F2937;
  --body: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --tint: #F8FAFC;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .08), 0 16px 32px rgba(15, 23, 42, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: #FFFFFF;
}

::selection { background: #FEF3C7; }

h1, h2, h3 { color: var(--teal-deep); line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 20px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; }
h3 { font-size: 1.35rem; margin: 32px 0 12px; }
p { margin: 0 0 16px; }
a { color: var(--teal); }
img, svg { display: block; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-tint { background: var(--tint); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-deep); color: #FFF; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; color: var(--teal-deep); flex: none;
}
.logo-mark { width: 34px; height: 34px; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-teal { color: var(--teal); }
.logo-gold { color: var(--gold-dark); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--body); font-weight: 600; text-decoration: none;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { color: var(--teal-dark); background: var(--teal-50); }
.nav-item { position: relative; }
.nav-drop-toggle { background: none; border: none; cursor: pointer; font: inherit; color: var(--body); font-weight: 600; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-drop-toggle:hover { color: var(--teal-dark); background: var(--teal-50); }
.nav-drop-toggle .chev { width: 11px; height: 11px; transition: transform .15s ease; }
.nav-drop { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: #FFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.nav-drop a { display: block; padding: 10px 12px; border-radius: 8px; }
.nav-drop a:hover { background: var(--teal-50); color: var(--teal-dark); }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop, .nav-item.open .nav-drop { display: block; }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.site-header .site-nav > a { color: #FFF; }
.site-header .site-nav > a:hover { background: rgba(255, 255, 255, .12); color: #FFF; }
.site-header .nav-drop-toggle { color: #FFF; }
.site-header .nav-drop-toggle:hover { background: rgba(255, 255, 255, .12); color: #FFF; }
.site-header .menu-toggle span { background: #FFF; }
.nav-cta { display: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(19, 78, 74, .45); z-index: 55; }
.nav-backdrop[hidden] { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }
.menu-toggle {
  display: none; background: none; border: none; padding: 10px 8px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--teal-deep); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer-close { display: none; background: none; border: none; cursor: pointer; color: var(--teal-deep); padding: 8px; }
.drawer-close .icon { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none;
  cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn-primary { background: var(--teal); color: #FFF; box-shadow: 0 6px 16px rgba(15, 118, 110, .28); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-gold { background: var(--gold); color: #123E40; }
.btn-gold:hover { background: #FACC15; }
.btn-ghost { background: #FFF; border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-50); }
.btn-small { padding: 9px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-100); color: var(--teal-dark);
  font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin: 0 0 20px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--body); max-width: 780px; }
.answer-box {
  background: #FFF; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow); margin: 0 0 8px;
}
.answer-box .lead { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.cta-center { justify-content: center; margin-top: 28px; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }
/* ---------- Section labels ---------- */
.section-label {
  color: var(--gold-dark); font-size: .82rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px;
}
.section-sub { font-size: 1.1rem; color: var(--muted); margin: 0 0 28px; max-width: 640px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: #FFF; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-100); color: var(--teal-dark);
  display: grid; place-items: center;
}
.card-icon .icon { width: 24px; height: 24px; }
.card-title { font-size: 1.15rem; margin: 0; }
.card-text { font-size: .98rem; margin: 0; flex: 1; }
.card-meta { font-size: .88rem; font-weight: 600; color: var(--muted); margin: 0; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal); font-weight: 700; text-decoration: none; margin-top: auto;
}
.card-link:hover { text-decoration: underline; }
.card-link .icon { width: 1em; height: 1em; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid; gap: 20px; margin: 36px 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.price-card {
  position: relative; background: #FFF; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
}
.price-featured { background: linear-gradient(145deg, var(--teal), var(--teal-deep)); border: 3px solid var(--gold); box-shadow: var(--shadow-lg); }
.price-featured .price-name { color: var(--teal-100); }
.price-featured .price-amount { color: #FFF; }
.price-featured .price-per { color: var(--teal-100); }
.price-featured .price-features li { color: var(--teal-50); }
.price-featured .price-features .icon { color: var(--teal-300); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #123E40; font-size: .8rem; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-name {
  margin: 0; color: var(--muted); font-size: .85rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.price-amount { margin: 8px 0 0; font-size: 2.2rem; font-weight: 800; color: var(--teal-deep); line-height: 1.1; }
.price-per { margin: 0; color: var(--muted); }
.price-features {
  list-style: none; margin: 20px 0; padding: 0; text-align: left;
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 8px; padding: 6px 0;
  font-size: .97rem;
}
.price-features .icon { color: var(--teal); margin-top: 4px; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; margin: 24px 0;
  border: 1px solid var(--line); border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th {
  background: var(--teal-deep); color: #FFF; text-align: left;
  padding: 12px 16px; font-weight: 700;
}
td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #F8FAFC; }
.table-note { font-size: .88rem; color: var(--muted); }

/* ---------- Course list (Adults section) ---------- */
.course-list { margin: 24px 0; }
.course-list > div { border-top: 1px solid var(--line); padding: 16px 0; }
.course-list > div:last-child { border-bottom: 1px solid var(--line); }
.course-list dt { display: inline; font-weight: 800; color: var(--teal-deep); }
.course-list dd { display: inline; margin: 0; }

/* ---------- Safety checklist + steps ---------- */
.safety-list { list-style: none; margin: 0 0 16px; padding: 0; }
.safety-list li {
  display: flex; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--line);
}
.safety-list li:last-child { border-bottom: 1px solid var(--line); }
.safety-list .icon { width: 22px; height: 22px; color: var(--teal); margin-top: 3px; }

.steps { list-style: none; margin: 24px 0; padding: 0; }
.steps li {
  display: flex; gap: 16px; padding: 14px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--teal); color: #FFF; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; padding: 18px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 1.05rem; font-weight: 700; color: var(--teal-deep);
  cursor: pointer; text-align: left;
}
.faq-q:hover { color: var(--teal); }
.faq-chevron { transition: transform .25s ease; width: 22px; height: 22px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0 0 18px; }

/* ---------- City pills ---------- */
.city-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.city-list a {
  background: #FFF; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; color: var(--teal-dark); font-weight: 600; text-decoration: none;
}
.city-list a:hover { border-color: var(--teal); background: var(--teal-50); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #D1FAE5; padding: 56px 0 0; }
.footer-grid {
  display: grid; gap: 32px; padding-bottom: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer .logo-teal { color: var(--teal-50); }
.site-footer .logo-gold { color: #FBBF24; }
.footer-brand p { color: #99F6E4; }
.footer-contact { margin-top: 20px; }
.footer-contact a {
  display: flex; align-items: center; gap: 9px;
  color: #D1FAE5; text-decoration: none; margin: 9px 0;
}
.footer-contact a:hover { color: #FFF; }
.footer-heading {
  color: #FFF; font-weight: 800; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px;
}
.footer-heading-gap { margin-top: 24px; }
.footer-col a {
  display: block; color: #99F6E4; text-decoration: none; padding: 5px 0;
}
.footer-col a:hover { color: #FFF; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 20px 0 28px; font-size: .9rem; color: #99F6E4;
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #FFF; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}
.mobile-cta .icon { color: #25D366; }
/* Floating WhatsApp button (like quranlyhub.com) */
.wa-float { position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.wa-bubble { pointer-events: none; background: #12211F; color: #FFF; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; position: relative; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.wa-bubble.wa-show { opacity: 1; transform: translateY(0); }
.wa-bubble:after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border-width: 5px 5px 0 5px; border-style: solid; border-color: #12211F transparent transparent transparent; }
.wa-fab { pointer-events: auto; position: relative; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(37, 211, 102, .45); color: #FFF; text-decoration: none; }
.wa-fab svg { width: 26px; height: 26px; }
@media (min-width: 768px) { .wa-float { right: 22px; bottom: 26px; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(320px, 86vw); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; margin: 0;
    background: #FFF; padding: 20px 20px 24px;
    box-shadow: -12px 0 32px rgba(19, 78, 74, .18);
    transform: translateX(102%); transition: transform .25s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { padding: 12px; font-size: 1.02rem; }
  .menu-toggle { display: inline-flex; }
  .drawer-close { display: inline-flex; align-self: flex-end; }
  .nav-drop { position: static; display: none; min-width: 0; border: none; box-shadow: none; padding: 2px 0 6px 14px; }
  .nav-item.open .nav-drop { display: block; }
  .nav-drop a { padding: 9px 12px; font-size: .95rem; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 12px; font-size: 1.02rem; }
  .site-header .site-nav > a { color: var(--body); }
  .site-header .site-nav > a:hover { background: var(--teal-50); color: var(--teal-dark); }
  .site-header .nav-drop-toggle { color: var(--body); }
  .site-header .nav-drop-toggle:hover { background: var(--teal-50); color: var(--teal-dark); }
  .site-nav .nav-cta { display: inline-flex; margin-top: auto; }
}
@media (max-width: 767px) {
  .mobile-cta { display: block; }
  .site-footer { padding-bottom: 76px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 44px 0; }
}
@media (max-width: 640px) {
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.hero-media { margin: 28px 0 0; }
.hero-media img, .section-media img, .band-media img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 32px rgba(19, 78, 74, .18); }
.hero-media figcaption, .section-media figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.section-media { margin: 24px 0 0; }
.band-media { margin: 0; }
.band-media img { border-radius: 0; box-shadow: none; }
