/* =====================================================
   BMWCA BANGALORE — Shared Stylesheet
   Theme: Light Blue × Warm Gold × Modern
   Fonts: Poppins (headings) + Inter (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --primary:      #1A3C8F;
  --primary-600:  #2254C5;
  --primary-400:  #5B8FE8;
  --primary-100:  #DBEAFE;
  --primary-50:   #EFF6FF;

  --gold:         #B45309;
  --gold-500:     #D97706;
  --gold-300:     #FCD34D;
  --gold-100:     #FEF3C7;
  --gold-50:      #FFFBEB;

  --rose:         #DB2777;
  --rose-200:     #FBCFE8;
  --rose-50:      #FDF2F8;

  --teal:         #0D9488;
  --teal-50:      #F0FDFA;

  --text:         #0F172A;
  --text-mid:     #334155;
  --text-muted:   #64748B;
  --border:       #E2E8F0;
  --border-light: #F1F5F9;

  --bg:           #F7F9FF;
  --bg-card:      #FFFFFF;
  --white:        #FFFFFF;

  --hero-grad:    linear-gradient(135deg, #EFF6FF 0%, #FFFBEB 55%, #FDF2F8 100%);
  --banner-blue:  linear-gradient(130deg, #EFF6FF 0%, #DBEAFE 100%);
  --banner-gold:  linear-gradient(130deg, #FFFBEB 0%, #FEF3C7 100%);
  --banner-rose:  linear-gradient(130deg, #FDF2F8 0%, #FCE7F3 100%);
  --banner-purple:linear-gradient(130deg, #F5F3FF 0%, #EDE9FE 100%);
  --banner-teal:  linear-gradient(130deg, #F0FDFA 0%, #CCFBF1 100%);

  --font-head:    'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg:    0 12px 40px rgba(15,23,42,0.12);
  --shadow-card:  0 2px 12px rgba(26,60,143,0.07);

  --radius:       12px;
  --radius-lg:    20px;
  --section-pad:  clamp(64px, 8vw, 100px);
  --container:    1200px;

  /* ── HEADER HEIGHT SYSTEM ── */
  --nav-h:        68px;
  --header-h:     var(--nav-h);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── FOCUS STYLES (Accessibility) ── */
:focus-visible {
  outline: 3px solid var(--primary-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

/* ── PATTERN STRIP ── */
.pattern-strip {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent        0%,
    var(--primary-100) 15%,
    var(--primary-400) 50%,
    var(--primary-100) 85%,
    transparent        100%
  );
  opacity: 0.7;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  overflow: visible; /* ensure dropdown panel is never clipped */
  background: rgba(247, 249, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(15,23,42,0.10); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0; /* never let the logo/brand get squeezed by nav-links */
  min-width: 0;
}
.nav-logo img {
  width: 56px; height: 56px; /* fits within --nav-h (68px) with breathing room, was 72px (taller than the bar itself, causing top/bottom clipping) */
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(26,60,143,0.18));
}
.nav-logo-fallback {
  display: none;
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary);
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(26,60,143,0.18);
}
.nav-logo-fallback span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-300);
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; white-space: nowrap; }
.nav-brand strong {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.nav-brand span {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.nav-links a.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--primary-600);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-mobile-login { display: none; }
.btn-login {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-login:hover { background: var(--primary-600); transform: translateY(-1px); }

/* ── Nav user pill (logged-in, desktop) ── */
/* Avatar-only pill: clean, compact — no name text in pill */
.nav-user-pill {
  display: none;
  align-items: center; gap: 5px;
  position: relative; cursor: pointer;
  padding: 4px 10px 4px 4px;
  border-radius: 40px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  user-select: none;
}
.nav-user-pill:hover { box-shadow: 0 2px 16px rgba(15,23,42,0.13); border-color: #c7d2fe; background: var(--primary-50); }
.nav-user-pill.open { border-color: var(--primary-400); box-shadow: 0 2px 16px rgba(26,60,143,0.15); }
.nav-user-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 11px; font-weight: 700; font-family: var(--font-head);
  letter-spacing: 0.5px; flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(26,60,143,0.2);
}
/* Profile photo, when the member has one — same idiom as .member-avatar.has-photo
   on members.html: background-image is set inline per element, this just makes
   the initial-letter text disappear so it doesn't show through underneath. */
.nav-user-avatar.has-photo,
.nav-mobile-user-avatar.has-photo,
.nav-user-dropdown-avatar.has-photo {
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
}
/* Name span removed from pill — kept in dropdown header */
.nav-user-name { display: none; }
.nav-user-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s ease, color 0.2s; }
.nav-user-pill:hover .nav-user-chevron,
.nav-user-pill.open .nav-user-chevron { color: var(--primary); }
.nav-user-pill.open .nav-user-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; left: auto;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.16);
  min-width: 260px; max-width: min(300px, calc(100vw - 1.5rem));
  padding: 6px; z-index: 9999;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-user-pill.open .nav-user-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
/* Dropdown — user info header */
.nav-user-dropdown-header {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px 10px;
}
.nav-user-dropdown-avatar {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 14px; font-weight: 700; font-family: var(--font-head);
  letter-spacing: 0.5px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,60,143,0.22);
}
.nav-user-dropdown-info { flex: 1; min-width: 0; }
.nav-user-dropdown-name {
  font-size: 14px; font-weight: 700;
  color: var(--text); font-family: var(--font-head);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}
.nav-user-dropdown-role {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted); font-family: var(--font-head);
  letter-spacing: 0.5px; text-transform: uppercase; margin-top: 3px;
  white-space: nowrap; line-height: 1;
}
.nav-user-dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 6px 6px; }
/* Sign out button */
.nav-user-dropdown button {
  width: 100%; padding: 10px 12px;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-align: left; border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.nav-user-dropdown button svg { flex-shrink: 0; transition: stroke 0.15s; }
.nav-user-dropdown button:hover { background: #FEF2F2; color: #DC2626; }
.nav-user-dropdown button:hover svg { stroke: #DC2626; }

/* ── Avatar gradient system — 8 distinct gradients, set via data-grad="0"…"7" ── */
.nav-user-avatar[data-grad="0"],.nav-user-dropdown-avatar[data-grad="0"],.nav-mobile-user-avatar[data-grad="0"] { background: linear-gradient(135deg,#1a3a9f 0%,#6c63ff 100%); }
.nav-user-avatar[data-grad="1"],.nav-user-dropdown-avatar[data-grad="1"],.nav-mobile-user-avatar[data-grad="1"] { background: linear-gradient(135deg,#0f4c81 0%,#0891b2 100%); }
.nav-user-avatar[data-grad="2"],.nav-user-dropdown-avatar[data-grad="2"],.nav-mobile-user-avatar[data-grad="2"] { background: linear-gradient(135deg,#14532d 0%,#059669 100%); }
.nav-user-avatar[data-grad="3"],.nav-user-dropdown-avatar[data-grad="3"],.nav-mobile-user-avatar[data-grad="3"] { background: linear-gradient(135deg,#7c2d12 0%,#ea580c 100%); }
.nav-user-avatar[data-grad="4"],.nav-user-dropdown-avatar[data-grad="4"],.nav-mobile-user-avatar[data-grad="4"] { background: linear-gradient(135deg,#581c87 0%,#9333ea 100%); }
.nav-user-avatar[data-grad="5"],.nav-user-dropdown-avatar[data-grad="5"],.nav-mobile-user-avatar[data-grad="5"] { background: linear-gradient(135deg,#831843 0%,#e11d48 100%); }
.nav-user-avatar[data-grad="6"],.nav-user-dropdown-avatar[data-grad="6"],.nav-mobile-user-avatar[data-grad="6"] { background: linear-gradient(135deg,#713f12 0%,#d97706 100%); }
.nav-user-avatar[data-grad="7"],.nav-user-dropdown-avatar[data-grad="7"],.nav-mobile-user-avatar[data-grad="7"] { background: linear-gradient(135deg,#164e63 0%,#0284c7 100%); }

/* ── First name in nav pill — hidden by default, shows ≥1200px ── */
.nav-user-firstname {
  display: none;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-head);
  color: var(--text);
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1200px) {
  body.bmwca-logged-in .nav-user-firstname { display: inline; }
}

/* ── Dropdown: name row with verified badge ── */
.nav-user-name-row {
  display: flex; align-items: center; gap: 5px;
  overflow: hidden; margin-bottom: 2px;
}
.nav-user-name-row .nav-user-dropdown-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.nav-user-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: #16a34a; color: white;
  font-size: 8px; font-weight: 800; flex-shrink: 0; line-height: 1;
  box-shadow: 0 1px 4px rgba(22,163,74,0.35);
}
.nav-user-dropdown-since {
  font-size: 10.5px; color: var(--text-muted);
  margin-top: 3px; font-family: var(--font-head); letter-spacing: 0.1px;
}
.nav-user-dropdown-since strong { color: var(--primary); font-weight: 700; }

/* ── Quick links zone ── */
.nav-user-dropdown-quicklinks {
  padding: 3px 0;
  display: flex; flex-direction: column; gap: 1px;
}
.nav-user-ql-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 9px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-user-ql-item svg { flex-shrink: 0; stroke: var(--text-muted); transition: stroke 0.15s; }
.nav-user-ql-item:hover { background: var(--primary-50); color: var(--primary); }
.nav-user-ql-item:hover svg { stroke: var(--primary); }
button.nav-user-ql-item {
  width: 100%; border: none; background: none; cursor: pointer; text-align: left;
}

/* ── Sign-out zone ── */
.nav-user-dropdown-signout { padding: 3px 0 2px; }
.nav-signout-btn {
  width: 100%; padding: 9px 12px;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-mid); text-align: left; border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.nav-signout-btn svg { flex-shrink: 0; stroke: var(--text-muted); transition: stroke 0.15s; }
.nav-signout-btn:hover { background: #FEF2F2; color: #DC2626; }
.nav-signout-btn:hover svg { stroke: #DC2626; }
/* Inline sign-out confirmation */
.nav-signout-confirm {
  display: none;
  padding: 10px 12px 8px; margin: 0 0 2px;
  background: #FEF2F2; border-radius: 9px; border: 1px solid #FECACA;
}
.nav-signout-confirm.show { display: block; }
.nav-signout-confirm > span {
  display: block; font-size: 12px; font-weight: 600;
  color: #b91c1c; margin-bottom: 8px; font-family: var(--font-head);
}
.nav-signout-confirm-btns { display: flex; gap: 6px; }
.nav-signout-confirm-btns button {
  flex: 1; padding: 7px 8px; border-radius: 7px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: var(--font-head); border: none; transition: background 0.15s;
}
.nav-signout-confirm-btns button:first-child { background: #DC2626; color: white; }
.nav-signout-confirm-btns button:first-child:hover { background: #b91c1c; }
.nav-signout-confirm-btns button:last-child { background: white; color: var(--text-mid); border: 1.5px solid var(--border-light) !important; }
.nav-signout-confirm-btns button:last-child:hover { background: #f1f5f9; }

/* ── Modal header trust stats ── */
.modal-header-trust {
  display: flex; align-items: center; gap: 0;
  margin-top: 9px;
}
.modal-header-trust .mht-item {
  display: flex; flex-direction: column; align-items: flex-start;
}
.modal-header-trust .mht-item span {
  font-size: 13px; font-weight: 800; color: #ffd666;
  font-family: var(--font-head); line-height: 1;
}
.modal-header-trust .mht-item label {
  font-size: 9px; color: rgba(255,255,255,0.52);
  letter-spacing: 0.5px; text-transform: uppercase;
  font-family: var(--font-head); margin-top: 2px; cursor: default;
}
.modal-header-trust .mht-sep {
  width: 1px; height: 22px; background: rgba(255,255,255,0.15);
  margin: 0 11px; flex-shrink: 0;
}

/* Auth state: show pill (desktop), hide login btn */
body.bmwca-logged-in .nav-user-pill { display: flex; }
body.bmwca-logged-in #navLoginBtn { display: none !important; }

/* Mobile user li: hidden everywhere by default; shown on mobile when logged in */
/* order: -1 moves it to the top of the flex-column nav menu when visible */
#navMobileUserLi { display: none !important; order: -1; }

/* ── Nav mobile user display (logged-in, inside hamburger menu) ── */
.nav-mobile-user {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  background: var(--primary-50); border-radius: 12px;
  border: 1.5px solid var(--primary-100);
}
.nav-mobile-user-avatar {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 13px; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.5px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,60,143,0.22);
}
.nav-mobile-user-info { flex: 1; min-width: 0; }
.nav-mobile-user-greeting {
  font-size: 10px; color: var(--primary); font-family: var(--font-head);
  letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600;
}
.nav-mobile-user-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; margin-top: 2px;
}
.nav-mobile-logout {
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-mid);
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  padding: 6px 10px; border-radius: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font-head); flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.nav-mobile-logout svg { flex-shrink: 0; transition: stroke 0.15s; }
.nav-mobile-logout:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.nav-mobile-logout:hover svg { stroke: #DC2626; }
.nav-mobile-editprofile {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 8px; padding: 10px 14px;
  background: var(--white); color: var(--primary);
  border: 1.5px solid var(--primary-200); border-radius: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.nav-mobile-editprofile:hover { background: var(--primary-50); border-color: var(--primary-400); }
.nav-mobile-editprofile svg { flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO — HOME PAGE ── */
/* ═══════════════════════════════════════════════
   HERO — EDGE-TO-EDGE BANNER CAROUSEL
═══════════════════════════════════════════════ */

.hero-carousel {
  position: relative;
  width: 100%;
  /* Generous, premium banner height — capped by viewport height AND by the
     source banner's own ratio, so it never looks over- or under-cropped */
  height: min(80vh, calc(100vw / 2.4));
  min-height: 340px;
  max-height: 880px;
  overflow: hidden;
  background: linear-gradient(180deg, #dbe8f7 0%, #eef2ff 100%);
}
@media (max-width: 700px) {
  .hero-carousel {
    height: min(72vh, calc(100vw / 0.8));
    min-height: 420px;
    max-height: 760px;
  }
}

/* Subtle bottom scrim — keeps dots/arrows legible over any banner artwork */
.hero-carousel::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(90px, 16vh, 160px);
  background: linear-gradient(180deg, transparent, rgba(10,16,32,0.24));
  pointer-events: none;
  z-index: 2;
}

/* Track fills the carousel box exactly via inset:0 — no percentage-height
   chain, so slides can never leave a visible gap on any side */
.hc-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hc-track::-webkit-scrollbar { display: none; }

.hc-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* Unwrap <a>/<picture> from layout so <img> positions directly against .hc-slide */
.hc-slide-link { display: contents; }
.hc-slide picture { display: contents; }
.hc-slide img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
  transform: scale(1);
  transition: transform 6.2s ease-out;
}
.hc-slide.is-active img { transform: scale(1.045); }
/* The 4 welfare-banner slides bake their headline + CTA button near the
   BOTTOM of the artwork (both the 1920x800 desktop and 1080x1350 mobile
   crops). The hero container's height is clamped (min-height/max-height)
   for very short or ultra-wide viewports (e.g. 3440x1440 / 5120x1440
   monitors), which can force object-fit:cover to crop more off the top
   and bottom than the badge-to-CTA span allows for a center anchor. Bias
   the crop toward the bottom so the CTA is never the part that gets cut
   -- this has zero effect whenever no cropping is happening (the vast
   majority of viewports, where container and image aspect ratios match). */
.hc-slide-link img { object-position: center bottom; }

/* The new 1080x1350 mobile crops (Jul 2026 refresh) flip that layout: logo
   + headline + CTA now sit at the TOP of the artwork, with a supporting
   photo filling the bottom. On short mobile viewports object-fit:cover
   still needs to crop, but biasing toward the bottom (above) would slice
   the logo/headline off the top instead. Re-bias to the top on mobile only
   so the branding and headline are never the part that gets cut; any crop
   instead trims the (purely decorative) photo underneath. Desktop keeps
   the bottom bias above since that artwork's content is centered evenly. */
@media (max-width: 700px) {
  .hc-slide-link img { object-position: center top; }
}

/* Dots + animated progress fill */
.hc-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(14px, 3vw, 24px);
  display: flex;
  justify-content: center;
  z-index: 5;
}
.hc-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(15,23,42,0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 100px;
}
.hc-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.35s ease, border-radius 0.35s ease, background 0.2s ease;
}
.hc-dot:hover { background: rgba(255,255,255,0.75); }
.hc-dot.is-active { width: 28px; border-radius: 100px; background: rgba(255,255,255,0.35); }
.hc-dot-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
}
.hc-dot.is-active .hc-dot-fill.run { animation: hcProgress 5s linear forwards; }
@keyframes hcProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-slide img { transition: none; }
  .hc-slide.is-active img { transform: none; }
  .hc-dot.is-active .hc-dot-fill.run { animation: none; transform: scaleX(1); }
}

/* ── SLIDE CAPTION — optional per-slide overlay (tag / headline / desc / CTA) ── */
/* Scrim is a FULL-BLEED layer, independent of the text column width — this is
   what avoids the hard rectangular "box" edge; it fades smoothly across the
   whole photo instead of stopping abruptly where the text block ends. */
.hc-slide--captioned::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg,
      rgba(6,10,24,0.86) 0%,
      rgba(6,10,24,0.66) 24%,
      rgba(6,10,24,0.28) 48%,
      transparent 70%),
    linear-gradient(0deg,
      rgba(6,10,24,0.55) 0%,
      rgba(6,10,24,0.14) 32%,
      transparent 58%);
  pointer-events: none;
}
@media (max-width: 700px) {
  /* On the portrait mobile crop the text runs the full width, so the fade
     only needs to rise from the bottom — a left-right fade would look odd */
  .hc-slide--captioned::before {
    background: linear-gradient(0deg,
      rgba(6,10,24,0.84) 0%,
      rgba(6,10,24,0.56) 28%,
      rgba(6,10,24,0.14) 52%,
      transparent 72%);
  }
}

.hc-caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: 640px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5.5vw, 64px) clamp(60px, 8.5vw, 92px);
  pointer-events: none; /* let swipe/drag pass through; only the CTA re-enables it */
}
.hc-caption > * { pointer-events: auto; }

.hc-cap-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6px 15px;
  border-radius: 100px;
  white-space: nowrap;
  margin-bottom: 16px;
}

.hc-cap-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hc-cap-title span { color: var(--primary-400); }
.hc-cap-title em   { font-style: normal; color: var(--gold-300); }

.hc-cap-desc {
  font-size: clamp(13px, 1.1vw, 15.5px);
  line-height: 1.7;
  color: rgba(255,255,255,0.90);
  max-width: 480px;
  margin-bottom: 24px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.30);
  text-wrap: pretty; /* avoids a lone orphan word stranded on the last line at in-between viewport widths; no-op in browsers that don't support it yet */
}

.hc-cap-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.30);
}
/* White pill, navy text — matches the CTA style used on the other 4 carousel
   banners and gives the strongest possible contrast against the dark scrim,
   at every breakpoint. Compound selector (.hc-cap-cta.btn) so it reliably
   overrides .btn's radius regardless of stylesheet order. */
.hc-cap-cta.btn {
  background: #fff;
  color: var(--primary);
  border-radius: 100px;
}
.hc-cap-cta.btn:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.36);
}

@media (max-width: 700px) {
  /* Mobile banner-1 artwork reserves a dedicated empty "isolation zone" in
     the bottom ~28-30% of the frame for this caption — keep the stack
     (headline + CTA only, no tag/description) compact enough to live
     entirely inside it rather than climbing up over the dancers. Bottom
     padding is also sized to clear .hc-controls (the dot row), which
     sits at its own fixed bottom offset independent of this caption. */
  /* Center-align on mobile: the mobile crop is a single symmetric column
     (dancers spanning the full width above, caption below, both centered
     figures) with a straight bottom-fade scrim -- unlike desktop's
     diagonal left-to-right scrim, there's no asymmetric "text zone" to
     justify a left edge here, so centering reads as more intentional and
     balanced. Desktop keeps its existing left alignment, which matches
     that scrim. */
  .hc-caption { max-width: none; padding: 20px 6vw 46px; align-items: center; text-align: center; }
  .hc-cap-tag { display: none; }
  .hc-cap-title { margin-bottom: 6px; }
  .hc-cap-desc { display: none; }
  /* Smaller pill on mobile: keeps the tap target comfortable while
     shrinking its footprint so it reads as clearly separate from the
     dot indicator below it, not a single crowded cluster. */
  .hc-cap-cta.btn-lg { padding: 11px 22px; font-size: 13.5px; gap: 7px; }
  .hc-cap-cta svg { width: 14px; height: 14px; }
}
@media (max-width: 480px) {
  .hc-cap-tag-extra { display: none; }
}

/* ═══════════════════════════════════════════════
   HERO INFO STRIP — stats only
═══════════════════════════════════════════════ */
.hero-info {
  position: relative;
  background: var(--hero-grad);
  padding: clamp(32px, 4.4vw, 56px) 6vw clamp(36px, 4.6vw, 60px);
  overflow: hidden;
}
.hero-info::before {
  content: '';
  position: absolute;
  top: -25%; right: -8%;
  width: 40%; height: 160%;
  background: radial-gradient(ellipse, rgba(37,84,197,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-info::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -6%;
  width: 30%; height: 130%;
  background: radial-gradient(ellipse, rgba(217,119,6,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-info-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px clamp(40px, 6vw, 88px);
  opacity: 0;
  animation: fadeUp 0.8s 0.48s ease forwards;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.in-view { opacity: 1; transform: translateY(0); }
.stat-item:nth-child(1) { transition-delay: 0.05s; }
.stat-item:nth-child(2) { transition-delay: 0.18s; }
.stat-item:nth-child(3) { transition-delay: 0.31s; }
.stat-item:nth-child(4) { transition-delay: 0.44s; }
.stat-item:hover { transform: translateY(-3px); }
.stat-val {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: inline-block;
  padding-bottom: 6px;
  position: relative;
}
.stat-val::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 2px;
  transition: width 0.55s ease;
}
.stat-item.in-view .stat-val::after { width: 100%; }
.stat-label {
  font-size: 9.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 7px;
  font-weight: 500;
}

/* legacy — hide old hero elements */
.hero-content      { display: none; }
.hero-visual       { display: none; }
.hero-logo-wrap    { display: none; }
.hero-decoration   { display: none; }

/* ── PAGE HERO BANNER ── */
.page-hero {
  padding: 56px 5vw 52px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 16px;
}
.page-hero-tag::before, .page-hero-tag::after {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--gold-500);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero h1 span { color: var(--primary-600); }
.page-hero h1 em { color: var(--gold-500); font-style: normal; }
.page-hero p {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}
.page-hero-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
}
.page-hero-deco.left { left: -5%; }
.page-hero-deco.right { right: -5%; }
.page-hero-deco svg { width: min(30vw, 300px); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}
.breadcrumb a { color: var(--primary-600); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ── SECTION DEFAULTS ── */
section {
  padding: var(--section-pad) 5vw;
  scroll-margin-top: var(--header-h);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section-head {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.2;
}
.section-head span { color: var(--primary-600); }
.section-head em { color: var(--gold-500); font-style: normal; }
.section-sub {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 14px;
  line-height: 1.85;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,60,143,0.25); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold-500);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(180,83,9,0.25); }
.btn-gold-outline {
  background: transparent;
  color: var(--gold-500);
  border: 2px solid var(--gold-300);
}
.btn-gold-outline:hover { background: var(--gold-50); border-color: var(--gold-500); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 12.5px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-accent-top {
  position: relative;
}
.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-600), var(--gold-500));
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── PILL / TAG ── */
.pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.pill-blue { background: var(--primary-50); color: var(--primary-600); }
.pill-gold { background: var(--gold-100); color: var(--gold); }
.pill-rose { background: var(--rose-200); color: var(--rose); }
.pill-teal { background: var(--teal-50); color: var(--teal); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 5vw;
}

/* ── FOOTER ── */
footer {
  background: linear-gradient(150deg, #1e293b 0%, #0f172a 55%, #1a2542 100%);
  padding: 64px 5vw 32px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #f59e0b 40%, #f59e0b 60%, #3b82f6 100%);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .logo-row img {
  width: 68px; height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.footer-brand .logo-row strong {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.footer-social-btn:hover { background: var(--gold-500); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  max-width: var(--container);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-reg { font-size: 11px; color: rgba(255,255,255,0.55); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(26,60,143,0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { background: var(--primary-600); transform: translateY(-2px); }
.scroll-top svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════
   PREMIUM MODAL — BMWCA
══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8,14,30,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.22s ease;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #ffffff;
  border-radius: 22px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  margin: auto;
  box-shadow:
    0 48px 100px rgba(8,14,30,0.44),
    0 16px 36px rgba(8,14,30,0.24),
    0 0 0 1px rgba(255,255,255,0.06);
  animation: modalSlide 0.34s cubic-bezier(0.34,1.15,0.64,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── PREMIUM HEADER — compact horizontal ── */
.modal-header {
  background:
    radial-gradient(ellipse 80% 100% at 20% 50%, rgba(212,175,55,0.16) 0%, transparent 55%),
    linear-gradient(150deg, #0c1d6b 0%, #1a3a9f 50%, #0a1550 100%);
  padding: 16px 48px 16px 20px;  /* right padding reserves space for close btn */
  position: relative;
  display: flex; align-items: center; gap: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.modal-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2L30 16L16 30L2 16Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.modal-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(212,175,55,0.35) 40%, rgba(212,175,55,0.35) 60%, transparent 95%);
}

/* Gold ring */
.modal-header-logo-wrap {
  position: relative; flex-shrink: 0;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af37 0%, #ffe566 35%, #b8860b 65%, #d4af37 100%);
  padding: 3px;
  box-shadow:
    0 0 20px rgba(212,175,55,0.45),
    0 0 40px rgba(212,175,55,0.12),
    0 4px 14px rgba(0,0,0,0.40);
}
.modal-header-logo-wrap::before {
  content: '';
  position: absolute; inset: 3px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #1e3fa8 0%, #0a1550 100%);
  z-index: 0;
}
.modal-header-logo {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  object-fit: contain; display: block;
  filter: drop-shadow(0 0 7px rgba(212,175,55,0.5)) drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.modal-logo-fallback {
  display: none; position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  align-items: center; justify-content: center;
}
.modal-logo-fallback span {
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
  color: var(--gold-300); letter-spacing: -0.5px;
}

/* Title + subtitle — right of logo */
.modal-header-text { flex: 1; min-width: 0; text-align: left; }
.modal-header h3 {
  font-family: var(--font-head);
  font-size: clamp(16px, 4.5vw, 21px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  line-height: 1.18;
  /* Allow wrapping — never truncate "Welcome Home" */
  white-space: normal;
  overflow: visible;
}
.modal-header h3 em { font-style: normal; color: #ffd666; }
.modal-header p {
  font-size: clamp(11px, 2.5vw, 12.5px);
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.01em;
  line-height: 1.45;
}

/* Premium close button — vertically centred in header */
.modal-close {
  position: absolute;
  top: 50%; right: 13px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0; flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}
.modal-close svg { width: 13px; height: 13px; display: block; }

/* ── BODY ── */
.modal-body {
  padding: 22px 28px 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  /* Smooth scroll inertia on iOS */
  -webkit-overflow-scrolling: touch;
}

/* ── TAB SWITCHER — pill toggle ── */
.modal-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 18px;
  border: none;
  gap: 0;
}
.modal-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-head);
  color: #64748b;
  background: transparent;
  border: none; border-radius: 8px;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.01em;
}
.modal-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15,23,42,0.12), 0 1px 3px rgba(15,23,42,0.08);
}

.tab-content { display: none; flex-direction: column; gap: 13px; }
.tab-content.active { display: flex; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #64748b;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-body); font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: #ffffff;
  color: var(--text); width: 100%;
}
.form-group input::placeholder { color: #94a3b8; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,84,197,0.10);
  background: #ffffff;
}
/* Password wrapper with show/hide toggle */
.pwd-input-wrap {
  position: relative; display: flex; align-items: center;
}
.pwd-input-wrap input { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #94a3b8; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s; border-radius: 4px;
}
.pwd-toggle:hover { color: var(--primary); }
.pwd-toggle svg { width: 16px; height: 16px; display: block; }

/* Remember me — standalone row */
.login-remember-row {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; margin-top: -2px;
}
.login-remember-row input[type="checkbox"] {
  width: 15px; height: 15px; border-radius: 4px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0; margin: 0; padding: 0;
}
.login-remember-row span { font-size: 12.5px; color: #64748b; font-weight: 500; }

/* Forgot password — below submit button */
.modal-forgot-row {
  text-align: center; margin-top: 2px;
}
.modal-forgot-link {
  font-size: 12.5px; color: #64748b; font-weight: 600;
  text-decoration: none; transition: color 0.2s;
}
.modal-forgot-link:hover { color: var(--primary); }

/* Divider between forgot and register note */
.modal-divider {
  height: 1px; background: #f1f5f9;
  margin: 10px 0 6px;
}

/* Free membership hint strip */
.reg-free-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #10b981;
  background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.18);
  border-radius: 8px; padding: 7px 12px;
  letter-spacing: 0.01em;
}
.reg-free-hint svg { flex-shrink: 0; stroke: #10b981; }

/* ── PRIMARY CTA BUTTON ── */
.btn-modal-submit {
  background: linear-gradient(135deg, #1a3a9f 0%, #2563eb 60%, #1d4ed8 100%);
  color: #ffffff; border: none;
  padding: 14px; border-radius: 11px;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 4px; width: 100%;
  box-shadow: 0 4px 16px rgba(37,84,197,0.30);
}
.btn-modal-submit:hover {
  opacity: 0.92; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,84,197,0.38);
}

.modal-note { font-size: 12.5px; color: #64748b; text-align: center; margin-top: 8px; }
.modal-note a { color: var(--primary); font-weight: 600; }
.modal-note a:hover { text-decoration: underline; }

/* ── Pending contact-request action banner ──
   Shown inside the sign-in modal when someone lands on the site via an
   emailed "Approve"/"Decline" contact-request link and isn't verified on
   this device yet. Hidden by default; toggled with .show from JS. */
.pending-action-banner {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: rgba(26,60,143,0.06);
  border: 1px solid rgba(26,60,143,0.18);
  color: var(--primary);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 14px;
}
.pending-action-banner.show { display: flex; }
.pending-action-banner .pab-icon { flex-shrink: 0; margin-top: 1px; }
.pending-action-banner .pab-text { flex: 1; }
.pending-action-banner .pab-close {
  background: none; border: none; cursor: pointer; flex-shrink: 0;
  color: var(--primary); opacity: 0.55; font-size: 11px;
  line-height: 1; padding: 3px; margin: -3px -3px -3px 0;
  border-radius: 4px; transition: opacity 0.15s, background 0.15s;
}
.pending-action-banner .pab-close:hover { opacity: 1; background: rgba(26,60,143,0.10); }

/* ── REGISTRATION — Smart Location Picker ── */
.reg-loc-tabs {
  display: flex; gap: 6px; flex-wrap: nowrap; margin-top: 6px;
}
.reg-loc-tab {
  flex: 1; min-width: 0;
  padding: 9px 8px; border-radius: 10px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg); cursor: pointer;
  color: var(--text-muted); transition: all 0.18s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  white-space: nowrap; line-height: 1.2;
}
.reg-loc-tab.active {
  background: rgba(37,84,197,0.07); border-color: var(--primary-600);
  color: var(--primary); font-weight: 700;
  box-shadow: 0 0 0 3px rgba(37,84,197,0.08);
}
.reg-loc-tab:hover:not(.active) {
  border-color: var(--primary-400); color: var(--text); background: var(--white);
}
/* two-col row for location dropdown + family status */
.reg-loc-value-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start;
}
@media (max-width: 420px) {
  .reg-loc-tabs { gap: 4px; }
  .reg-loc-tab { font-size: 10.5px; padding: 8px 5px; gap: 3px; }
  .reg-loc-tab svg { display: none; }
  .reg-loc-value-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ── MULTI-STEP REGISTRATION ── */
.reg-steps {
  display: flex; align-items: flex-start;
  margin-bottom: 18px; padding: 0;
}
.reg-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex-shrink: 0; cursor: default; min-width: 70px;
}
.reg-step span {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e8edf5; color: #94a3b8;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  border: 2px solid #dde3ef;
}
.reg-step em {
  font-style: normal; font-size: 10px;
  color: #94a3b8; font-weight: 600; letter-spacing: 0.2px;
  white-space: nowrap; transition: color 0.3s; text-align: center;
}
.reg-step.active span {
  background: linear-gradient(135deg, #1a3a9f, #2563eb);
  color: #ffffff; border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37,84,197,0.35);
}
.reg-step.active em { color: var(--primary); font-weight: 700; }
.reg-step.done span {
  background: linear-gradient(135deg, #0d9488, #10b981);
  color: #ffffff; border-color: #10b981;
  box-shadow: 0 3px 10px rgba(16,185,129,0.30);
}
.reg-step.done em { color: #0d9488; font-weight: 700; }

/* Connecting line — vertically centred with the circles */
.reg-step-line {
  flex: 1; height: 2px; margin-top: 15px;
  background: #e2e8f0; border-radius: 2px;
  transition: background 0.4s;
}
.reg-step-line.done { background: linear-gradient(90deg, #10b981, #0d9488); }

.reg-panel { display: none; flex-direction: column; gap: 14px; }
.reg-panel.active { display: flex; }

/* ── Community Title Pill Picker ──
   4 mutually-exclusive options (N/A, Dakula, Ishalpa, Bamun) laid out as a
   CSS grid so every pill is exactly equal width — no flex-wrap remainder
   row, no uneven last-item stretching. Collapses to a 2×2 grid on narrow
   phones (see breakpoints below) so labels always have room to breathe. */
.comm-title-opts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.comm-title-opt {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 12.5px; font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-title-opt:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,84,197,0.05);
}
.comm-title-opt.active {
  background: linear-gradient(135deg, rgba(37,84,197,0.10) 0%, rgba(37,99,235,0.05) 100%);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,84,197,0.12), 0 2px 8px rgba(37,84,197,0.14);
}
.ct-icon {
  font-size: 9px; opacity: 0.55;
  transition: opacity 0.2s, color 0.2s;
}
.comm-title-opt.active .ct-icon {
  opacity: 1; color: #d4af37;
}
.field-opt {
  font-size: 11px; font-weight: 500;
  color: #94a3b8; letter-spacing: 0;
  font-style: normal;
}

/* ── Two-column field rows inside the single-window registration form
   (First/Last name, Password/Confirm, Family/Gender, Tier/Phone-visibility).
   Collapses to a single column on narrow phones so long select text (e.g.
   "Request Only (Recommended)") always has the full modal width to breathe
   in, instead of being squeezed into a half-width column and truncated. ── */
.reg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) {
  .reg-2col { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Section dividers inside the single-window registration form ── */
.reg-section-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary);
  margin: 4px 0 -2px;
}
.reg-section-label::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold));
  flex-shrink: 0;
}
.reg-section-label .field-opt { margin-left: -2px; }

/* Back button */
.btn-modal-back {
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  color: #64748b; padding: 11px; border-radius: 11px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%; letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-top: -2px;
}
.btn-modal-back:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,84,197,0.04); }

/* Validation */
.form-error {
  font-size: 11px; color: #ef4444;
  margin-top: 2px; display: none; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.form-error::before {
  content: '!';
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: #ef4444; color: white; font-size: 9px; font-weight: 800;
  flex-shrink: 0;
}
.form-error { display: none; }
.form-error.show { display: flex; }
.form-group.has-error input,
.form-group.has-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
.reg-success {
  display: none;
  flex-direction: column; align-items: center;
  text-align: center; padding: 8px 0 4px; gap: 12px;
  animation: fadeUp 0.5s cubic-bezier(0.34,1.1,0.64,1);
}
.reg-success.show { display: flex; }

/* SVG checkmark circle */
.reg-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2.5px solid #4ade80;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(74,222,128,0.12), 0 4px 16px rgba(16,185,129,0.22);
}
.reg-success-icon svg {
  width: 34px; height: 34px;
  stroke: #16a34a; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.reg-success h4 {
  font-family: var(--font-head); font-size: 20px;
  font-weight: 800; color: #0f172a; margin-top: 2px;
}
.reg-success > p {
  font-size: 13px; color: #64748b; line-height: 1.75; max-width: 290px;
  margin-top: -2px;
}
/* ── YOUR PROFILE HORIZONTAL CARD (members.html) ── */
.mpc-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.my-profile-header-bar { width: 3px; height: 22px; background: var(--gold-500); border-radius: 2px; flex-shrink: 0; }
.my-profile-header-label { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-500); }
#my-incomplete-notice {
  display: none; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--gold);
  background: var(--gold-50); border: 1px solid var(--gold-100);
  padding: 5px 14px; border-radius: 20px; cursor: pointer;
  transition: background 0.2s;
}
#my-incomplete-notice:hover { background: var(--gold-100); }
/* Card wrapper */
.mpc-card {
  border: 1.5px solid var(--gold-100);
  background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 20px rgba(180,83,9,0.07);
  transition: box-shadow 0.25s;
}
.mpc-card:hover { box-shadow: 0 8px 32px rgba(180,83,9,0.12); }
.mpc-card.mpc-tier-patron { border-color: #DDD6FE; background: linear-gradient(135deg, #F9F5FF 0%, #FFFFFF 100%); }
.mpc-card.mpc-tier-active { border-color: var(--primary-100); background: linear-gradient(135deg, #F0F5FF 0%, #FFFFFF 100%); }
/* Top colour banner */
.mpc-banner { height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold)); }
.mpc-banner.patron { background: linear-gradient(90deg, #7C3AED, #A855F7); }
/* Inner body — three-column flex */
.mpc-body { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
/* Avatar */
.mpc-avatar-col { flex-shrink: 0; }
.mpc-avatar { width: 64px !important; height: 64px !important; font-size: 1.5rem !important; box-shadow: 0 3px 12px rgba(180,83,9,0.18); }
/* Info column */
.mpc-info-col { flex: 1; min-width: 0; }
.mpc-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpc-profession { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.mpc-badge { margin-bottom: 10px; display: inline-flex; }
.mpc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-muted); min-height: 18px; }
.mpc-meta-item { display: none; align-items: center; gap: 5px; }
.mpc-meta-item svg { width: 12px; height: 12px; stroke: var(--text-muted); flex-shrink: 0; }
.mpc-meta-sep { font-size: 14px; color: var(--border); line-height: 1; }
/* Right column */
.mpc-right-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mpc-since { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.mpc-since strong { color: var(--primary); font-weight: 700; }
.mpc-edit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-50); color: var(--gold);
  border: 1.5px solid var(--gold-100); border-radius: 8px;
  padding: 7px 16px; font-size: 12.5px; font-weight: 600;
  font-family: var(--font-head); cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.mpc-edit-btn:hover { background: var(--gold-500); color: white; border-color: var(--gold-500); }
/* Responsive */
@media (max-width: 768px) {
  .mpc-body { gap: 14px; padding: 16px 18px; }
  .mpc-avatar { width: 52px !important; height: 52px !important; font-size: 1.2rem !important; }
  .mpc-name { font-size: 15px; }
  .mpc-right-col { flex-direction: row; align-items: center; gap: 14px; }
}
@media (max-width: 560px) {
  .mpc-body { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .mpc-info-col { min-width: calc(100% - 72px); }
  .mpc-right-col { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border-light); }
  .mpc-name { white-space: normal; }
  .mpc-profession { white-space: normal; }
}
@media (max-width: 380px) {
  .mpc-avatar { width: 44px !important; height: 44px !important; font-size: 1rem !important; }
  .mpc-edit-btn { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .reg-step em { display: none; }
  .reg-step span { width: 26px; height: 26px; font-size: 12px; }
  .reg-step-line { margin-bottom: 0; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modalSlide {
  from { transform: translateY(-24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-logo img, .nav-logo-fallback { width: 54px; height: 54px; }
  .nav-brand strong { font-size: 15px; }
  .nav-links a { padding: 7px 10px; font-size: 13px; }
  .btn-login { padding: 7px 14px; font-size: 12.5px; }
  /* Dropdown: ensure it can't escape the right viewport edge on smaller desktops */
  .nav-user-dropdown { max-width: min(280px, calc(100vw - 2rem)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  /* Tablet: stats sit a touch tighter */
  .hero-stats { gap: 22px clamp(24px, 4vw, 48px); }
  /* Page hero: tighten on tablet too */
  .page-hero { padding: 36px 5vw 30px; }
}

/* ── MID-TABLET: 769–900px — 8 nav links + pill gets very cramped ── */
@media (max-width: 900px) and (min-width: 769px) {
  :root { --nav-h: 62px; }
  .nav-logo img, .nav-logo-fallback { width: 46px; height: 46px; }
  .nav-brand strong { font-size: 14px; }
  .nav-brand span { display: none; } /* hide "Bangalore" sub-label */
  .nav-links { gap: 0; }
  .nav-links a { padding: 5px 7px; font-size: 12px; }
  .nav-actions { gap: 6px; }
  .nav-user-pill { padding: 3px 8px 3px 3px; }
  .nav-user-avatar { width: 28px; height: 28px; font-size: 10px; }
  .nav-user-chevron { width: 10px; height: 10px; }
  .nav-user-dropdown { right: 0; max-width: min(270px, calc(100vw - 1rem)); }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 58px;
    /* Tighter section padding on mobile — prevents excessive white space */
    --section-pad: clamp(36px, 7vw, 52px);
  }
  .nav-logo img, .nav-logo-fallback { width: 44px; height: 44px; }
  .nav-brand strong { font-size: 14px; }
  .nav-brand span { font-size: 9px; letter-spacing: 1.2px; }
  .btn-login { display: none !important; }
  /* On mobile: never show desktop pill */
  .nav-user-pill { display: none !important; }
  /* On mobile when logged in: show user card, hide login button li */
  body.bmwca-logged-in #navMobileUserLi { display: block !important; }
  body.bmwca-logged-in #navMobileLoginLi { display: none !important; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 5vw 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .nav-links a.active::after { bottom: 6px; }
  .hamburger { display: flex; }
  .nav-mobile-login {
    display: flex !important;
    align-items: center; justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    width: 100%;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.15s;
  }
  .nav-mobile-login:hover { background: var(--primary-600); transform: translateY(-1px); }
  .nav-mobile-login:active { transform: translateY(0); }
  /* ── Hero mobile ── */
  .hero-info { padding: 26px 5vw 30px; }
  .hero-stats { width: 100%; gap: 18px 16px; }
  /* Banner-1 caption: smaller type on mobile */
  .hc-cap-tag { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 14px; padding: 4px 12px; }
  .hc-cap-title { font-size: clamp(22px, 7vw, 32px); letter-spacing: -0.6px; }
  .hc-cap-desc { font-size: 13.5px; margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* ── Page hero: dramatically reduce wasted vertical space on mobile ── */
  .page-hero { padding: 20px 5vw 16px; }
  .page-hero h1 { font-size: clamp(22px, 6.5vw, 34px); letter-spacing: -0.5px; margin-bottom: 10px; }
  .page-hero p { font-size: 13.5px; line-height: 1.65; margin-bottom: 0; }
  .page-hero .breadcrumb { margin-top: 14px !important; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .scroll-top { bottom: 20px; right: 16px; }
}
@media (max-width: 480px) {
  :root {
    /* Even tighter section padding on very small phones */
    --section-pad: clamp(28px, 7vw, 40px);
  }
  /* Hide "· Govt. Registered" on very small phones — pill stays single-line */
  .hc-cap-tag-extra { display: none; }
  .hc-cap-tag { font-size: 8.5px; letter-spacing: 1.2px; padding: 4px 10px; }
  .hero-stats { gap: 14px 22px; }
  .stat-val { font-size: clamp(19px, 5.5vw, 26px); }
  /* Page hero: hide description on smallest screens — show content sooner */
  .page-hero { padding: 16px 5vw 12px; }
  .page-hero h1 { font-size: clamp(20px, 6vw, 28px); }
  .page-hero p { display: none; }
  .page-hero .breadcrumb { margin-top: 10px !important; font-size: 12px; }
}

/* ── UTILITY ── */
.text-center  { text-align: center; }
.text-primary { color: var(--primary-600); }
.text-gold    { color: var(--gold-500); }
.text-muted   { color: var(--text-muted); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-3 { gap: 12px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   MEMBER ID — Nav Dropdown, Mobile Nav, Success Screen
   ═══════════════════════════════════════════════════ */

/* ── Nav Dropdown Member ID ── */
.nav-user-dropdown-id {
  font-size: 9.5px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.8px; margin-top: 3px;
  font-family: 'Courier New', Courier, monospace;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: 4px; padding: 2px 6px; display: inline-block;
}

/* ── Mobile Nav Member ID ── */
.nav-mobile-member-id {
  font-size: 10px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.6px; margin-top: 2px;
  font-family: 'Courier New', Courier, monospace;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: 4px; padding: 1px 5px; display: inline-block;
}

/* ── Registration Success — Member ID Box ── */
.reg-success-id-box {
  background: linear-gradient(145deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 1.5px solid rgba(37,84,197,0.18);
  border-radius: 14px; padding: 18px 16px; margin-top: 4px; text-align: center;
  width: 100%; box-shadow: 0 4px 16px rgba(37,84,197,0.08);
}
.reg-success-id-label {
  font-size: 9.5px; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
  opacity: 0.7;
}
.reg-success-id-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px; font-weight: 700; color: #0f172a;
  letter-spacing: 2px; margin-bottom: 12px;
  background: #ffffff; border: 1.5px solid rgba(37,84,197,0.18);
  border-radius: 10px; padding: 10px 14px; display: block;
  box-shadow: inset 0 2px 4px rgba(15,23,42,0.04);
}
.reg-success-id-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #1a3a9f, #2563eb);
  color: #ffffff;
  border: none; border-radius: 9px;
  font-size: 12.5px; font-weight: 700; font-family: var(--font-head);
  cursor: pointer; transition: all 0.2s; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(37,84,197,0.28);
}
.reg-success-id-copy:hover { opacity: 0.88; transform: translateY(-1px); }
.reg-success-id-copy svg { width: 13px; height: 13px; }
.reg-success-id-note {
  font-size: 11px; color: #64748b; line-height: 1.65;
  margin: 0; padding: 0 4px;
}
.reg-success-id-note strong { color: #334155; }

/* ── Simpler registration flow (career/colleges/healthcare) — same visual
   language as .btn-modal-back / .reg-success-id-box above, scaled down for
   this flow's plainer 2-step form and single-line success ID display. ── */
.reg-back-btn {
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  color: #64748b; padding: 11px; border-radius: 11px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%; letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-bottom: 12px;
}
.reg-back-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,84,197,0.04); }
.reg-success-id-wrap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(145deg, #f0f5ff 0%, #e8f0fe 100%);
  border: 1.5px solid rgba(37,84,197,0.18); border-radius: 12px;
  padding: 12px 16px; margin-top: 10px;
}
.reg-success-id-wrap span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px; font-weight: 700; color: #0f172a; letter-spacing: 1.5px;
}
.reg-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; background: linear-gradient(135deg, #1a3a9f, #2563eb);
  color: #ffffff; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 700; font-family: var(--font-head);
  cursor: pointer; transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 3px 10px rgba(37,84,197,0.28);
}
.reg-copy-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Success → Complete Profile CTA link ── */
.reg-success-profile-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #1a3a9f 0%, #2563eb 100%);
  color: #ffffff; font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  border-radius: 11px; text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 14px rgba(37,84,197,0.30);
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}
.reg-success-profile-btn:hover { opacity: 0.90; transform: translateY(-1px); }
.reg-success-profile-btn svg { flex-shrink: 0; }

/* ── Modal breakpoints ── */
@media (max-width: 520px) {
  .modal { border-radius: 18px; max-width: 100%; }
  .modal-header { padding: 15px 44px 15px 16px; gap: 13px; }
  .modal-header-logo-wrap { width: 62px; height: 62px; }
  .modal-header-logo { width: 50px; height: 50px; }
  .modal-body { padding: 18px 20px 24px; }
  .pending-action-banner { font-size: 12px; padding: 9px 10px; margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .modal-overlay { padding: 8px; }
  .modal { border-radius: 16px; max-height: calc(100vh - 16px); }
  .modal-header { padding: 13px 42px 13px 14px; gap: 11px; }
  .modal-header-logo-wrap { width: 56px; height: 56px; }
  .modal-header-logo { width: 44px; height: 44px; }
  .comm-title-opts { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .comm-title-opt { font-size: 13px; padding: 10px 8px; gap: 5px; }
  .modal-body { padding: 14px 16px 20px; }
  .modal-tabs { margin-bottom: 12px; }
  .reg-success-id-value { font-size: 13px; letter-spacing: 1px; padding: 8px 10px; }
  .reg-success-id-box { padding: 14px 12px; }
  .pending-action-banner { font-size: 11.5px; padding: 8px 9px; gap: 6px; margin-bottom: 10px; border-radius: 9px; }
  .pending-action-banner .pab-icon { width: 14px; height: 14px; }
}
@media (max-width: 360px) {
  .modal-overlay { padding: 6px; }
  .modal-header { padding: 12px 40px 12px 12px; gap: 10px; }
  .modal-header-logo-wrap { width: 50px; height: 50px; }
  .modal-header-logo { width: 40px; height: 40px; }
  .modal-body { padding: 12px 14px 18px; }
  .reg-success-id-value { font-size: 12px; letter-spacing: 0.5px; }
  .comm-title-opts { gap: 7px; }
  .comm-title-opt { font-size: 12.5px; padding: 9px 8px; }
  .pending-action-banner { font-size: 11px; padding: 7px 8px; margin-bottom: 9px; }
  .pending-action-banner .pab-text { line-height: 1.35; }
}
