/* Shared site header — used on every page. Classes are prefixed lgh- to avoid clashing with page styles. */
.lgh {
  --lgh-brand: #1d4ed8;
  --lgh-brand-dark: #1e3a8a;
  --lgh-ink: #0f172a;
  --lgh-ink-2: #334155;
  --lgh-ink-3: #64748b;
  --lgh-rule: rgba(15, 23, 42, .08);
  --lgh-soft: #eff4ff;
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--lgh-rule);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: box-shadow .2s ease, background .2s ease;
}
.lgh.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px -14px rgba(15, 23, 42, .25); }
.lgh *, .lgh *::before, .lgh *::after { box-sizing: border-box; }
.lgh a { text-decoration: none; }
.lgh ul { list-style: none; margin: 0; padding: 0; }

.lgh-bar {
  max-width: 1140px; margin: 0 auto;
  height: 68px; padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
}

/* Brand */
.lgh-brand { display: flex; align-items: center; gap: 10px; color: var(--lgh-ink); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; margin-right: auto; white-space: nowrap; }
.lgh-brand:hover { text-decoration: none; }
.lgh-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6 0%, var(--lgh-brand) 45%, var(--lgh-brand-dark) 100%);
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.04em;
  box-shadow: 0 6px 16px -6px rgba(29, 78, 216, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.lgh-name b { color: var(--lgh-brand); font-weight: 800; }

/* Desktop nav */
.lgh-nav { display: flex; align-items: center; gap: 18px; }
.lgh-links { display: flex; align-items: center; gap: 4px; }
.lgh-links > li { position: relative; }
.lgh-links > li > a, .lgh-menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--lgh-ink-2);
  background: none; border: 0; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lgh-links > li > a:hover, .lgh-menu-btn:hover, .lgh-has-menu.is-open .lgh-menu-btn { background: var(--lgh-soft); color: var(--lgh-brand); text-decoration: none; }
.lgh-links a[aria-current="page"] { color: var(--lgh-brand); background: var(--lgh-soft); }
.lgh-menu-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.lgh-has-menu.is-open .lgh-menu-btn svg { transform: rotate(180deg); }

.lgh-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--lgh-brand) 0%, var(--lgh-brand-dark) 100%);
  color: #fff !important; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(29, 78, 216, .8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lgh-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(29, 78, 216, .9); text-decoration: none; }
.lgh-cta svg { width: 16px; height: 16px; }

/* Apps dropdown */
.lgh-apps {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 640px; padding: 14px;
  background: #fff; border: 1px solid var(--lgh-rule); border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .28);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lgh-apps::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.lgh-has-menu.is-open .lgh-apps { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 961px) {
  .lgh-has-menu:hover .lgh-apps { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .lgh-has-menu:hover .lgh-menu-btn svg { transform: rotate(180deg); }
}
.lgh-apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lgh-app {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px; color: var(--lgh-ink);
  transition: background .15s ease;
}
.lgh-app:hover { background: #f5f7fb; text-decoration: none; }
.lgh-app .ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.lgh-app .ic svg { width: 18px; height: 18px; }
.lgh-app .t { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.lgh-app .s { display: block; font-size: 12px; color: var(--lgh-ink-3); line-height: 1.3; margin-top: 1px; }
.lgh-apps-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--lgh-rule);
  font-size: 13px; color: var(--lgh-ink-3);
}
.lgh-apps-foot a { color: var(--lgh-brand); font-weight: 700; }

/* Icon colours */
.ic-netpause { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.ic-shieldra { background: linear-gradient(135deg, #8b5cf6, #2563eb); }
.ic-christmas { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.ic-duplicates { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.ic-whatsdirect { background: linear-gradient(135deg, #22c55e, #15803d); }
.ic-birthday { background: linear-gradient(135deg, #ec4899, #db2777); }
.ic-barakaat { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.ic-newyear { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.ic-ramadan { background: linear-gradient(135deg, #0ea5e9, #1e3a8a); }

/* Hamburger */
.lgh-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; flex: none;
  border: 1px solid var(--lgh-rule); background: #fff; cursor: pointer;
  position: relative;
}
.lgh-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--lgh-ink); transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.lgh-toggle span:nth-child(1) { top: 15px; }
.lgh-toggle span:nth-child(2) { top: 21px; }
.lgh-toggle span:nth-child(3) { top: 27px; }
.lgh.is-menu-open .lgh-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.lgh.is-menu-open .lgh-toggle span:nth-child(2) { opacity: 0; }
.lgh.is-menu-open .lgh-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Tablet & phone ---------- */
@media (max-width: 960px) {
  .lgh-bar { height: 62px; padding: 0 16px; gap: 12px; }
  .lgh-toggle { display: block; }
  .lgh-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 12px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--lgh-rule);
    box-shadow: 0 24px 40px -20px rgba(15, 23, 42, .3);
    max-height: calc(100vh - 62px); max-height: calc(100dvh - 62px); overflow-y: auto;
  }
  .lgh.js-ready .lgh-nav { display: none; }
  .lgh.js-ready.is-menu-open .lgh-nav { display: flex; animation: lgh-drop .2s ease; }
  .lgh-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .lgh-links > li > a, .lgh-menu-btn { width: 100%; justify-content: space-between; padding: 13px 14px; border-radius: 12px; font-size: 16px; }
  .lgh-apps {
    position: static; width: auto; transform: none; padding: 4px 0 0;
    border: 0; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; display: none;
  }
  .lgh-apps::before { display: none; }
  .lgh-has-menu.is-open .lgh-apps { display: block; transform: none; }
  .lgh-apps-grid { grid-template-columns: 1fr 1fr; }
  .lgh-cta { justify-content: center; padding: 14px 18px; font-size: 15px; }
}
@media (max-width: 480px) {
  .lgh-brand { font-size: 15.5px; }
  .lgh-mark { width: 34px; height: 34px; }
  .lgh-apps-grid { grid-template-columns: 1fr; }
}
@keyframes lgh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lgh *, .lgh { transition: none !important; animation: none !important; } }
body.lgh-lock { overflow: hidden; }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 84px; }

/* ---------- Cookie consent banner (assets/analytics.js) ---------- */
.lg-consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 16px;
  background: #0f172a; color: #e2e8f0;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .45);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.5;
  animation: lgh-drop .25s ease;
}
.lg-consent p { margin: 0; flex: 1 1 260px; color: #e2e8f0; font-size: 14px; }
.lg-consent strong { color: #fff; }
.lg-consent a { color: #93c5fd; text-decoration: underline; font-weight: 600; }
.lg-consent-actions { display: flex; gap: 8px; flex: none; }
.lg-btn { font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; }
.lg-btn-primary { background: #3b82f6; color: #fff; }
.lg-btn-primary:hover { background: #2563eb; }
.lg-btn-ghost { background: transparent; color: #e2e8f0; border-color: rgba(226, 232, 240, .35); }
.lg-btn-ghost:hover { border-color: #e2e8f0; }
@media (max-width: 480px) {
  .lg-consent { left: 10px; right: 10px; bottom: 10px; }
  .lg-consent-actions { width: 100%; }
  .lg-consent-actions .lg-btn { flex: 1; }
}
