/* ============================================
   GALA GLITTERATI GROUP — SHARED STYLESHEET
   Royal Purple + Glitter Silver
   ============================================ */

:root {
  --bg: #15082b;
  --bg-soft: #1d0b3d;
  --text: #ffffff;
  --muted: #e6dcf5;
  --muted-dim: #b8aed0;

  --primary: #4b1d8a;
  --primary-dark: #2e0f5c;
  --primary-light: #7a3dcc;

  --accent: #d9d9d9;
  --accent-bright: #ffffff;

  --card: rgba(255,255,255,0.06);
  --card-hover: rgba(255,255,255,0.10);
  --border: rgba(217,217,217,0.18);
  --border-strong: rgba(217,217,217,0.35);

  --max: 1200px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(0,0,0,0.36);
  --shadow-glow: 0 22px 50px rgba(122, 61, 204, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: radial-gradient(ellipse at top, #3a1a6b 0%, #15082b 55%, #0c0420 100%) fixed;
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; border-radius: 12px; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(122, 61, 204, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(217,217,217,0.18), rgba(217,217,217,0.06));
  border: 1px solid rgba(217,217,217,0.32);
  color: #fff;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(217,217,217,0.28), rgba(217,217,217,0.12));
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ============================================
   TYPOGRAPHY / SECTIONS
   ============================================ */
.section { padding: 84px 0; position: relative; }

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 0 14px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(217,217,217,0.5);
}

.centered { text-align: center; }
.centered p.lead { margin-left: auto; margin-right: auto; }

.soft-bg {
  background: linear-gradient(135deg, rgba(46, 15, 92, 0.4) 0%, rgba(21, 8, 43, 0.2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================
   HEADER + MEGA MENU
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 8, 43, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217,217,217,0.14);
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 35%, var(--primary-light) 70%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(122,61,204,0.5), inset 0 2px 6px rgba(255,255,255,0.3);
  border: 2px solid rgba(217,217,217,0.4);
  flex-shrink: 0;
}
.brand-logo span {
  font-family: 'Georgia', serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(217,217,217,0.28);
  background: rgba(217,217,217,0.1);
  color: #fff;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links > a, .nav-links > .mega-toggle {
  font-weight: 600;
  color: #f0e9fc;
  font-size: 0.94rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 2px;
  font-family: inherit;
}
.nav-links > a:hover, .nav-links > .mega-toggle:hover { color: var(--accent-bright); }
.nav-links > a.current { color: var(--accent-bright); }

/* Mega menu — click-to-open, stays open until click-outside */
.mega { position: relative; }
.mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}
.mega-toggle:hover, .mega.open .mega-toggle {
  background: linear-gradient(135deg, rgba(122, 61, 204, 0.35) 0%, rgba(75, 29, 138, 0.35) 100%);
  color: var(--accent-bright);
}
.mega-toggle::after {
  content: "▾";
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  opacity: 0.85;
}
.mega.open .mega-toggle::after { transform: rotate(180deg); }

/* The "bridge" — invisible padding between toggle and panel so cursor can travel */
.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(920px, calc(100vw - 40px));
  background: linear-gradient(180deg, rgba(32, 14, 64, 0.99) 0%, rgba(21, 8, 43, 0.99) 100%);
  border: 1px solid rgba(217,217,217,0.25);
  border-radius: 18px;
  padding: 28px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.65), 0 0 40px rgba(122, 61, 204, 0.15);
  z-index: 1200;
}
.mega-panel::before {
  /* Invisible bridge so cursor can move from toggle to panel without closing */
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
/* Click-to-open: panel shows when .open class is set (any breakpoint) */
.mega.open .mega-panel { display: grid; }

.mega-col h4 {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(217,217,217,0.22);
  padding-bottom: 10px;
  text-shadow: 0 0 12px rgba(217,217,217,0.4);
}
.mega-col a {
  display: block;
  color: #f0e9fc;
  font-size: 0.93rem;
  padding: 10px 12px;
  margin: 2px -8px;
  border-radius: 10px;
  transition: 0.2s ease;
  border: 1px solid transparent;
}
.mega-col a:hover {
  background: linear-gradient(135deg, rgba(122, 61, 204, 0.25) 0%, rgba(75, 29, 138, 0.18) 100%);
  border-color: rgba(217,217,217,0.2);
  color: var(--accent-bright);
  transform: translateX(2px);
}
.mega-col a strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.mega-col a span {
  display: block;
  color: var(--muted-dim);
  font-size: 0.8rem;
  line-height: 1.4;
}
.mega-col a:hover span { color: var(--muted); }

/* ============================================
   HEROES
   ============================================ */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(21,8,43,0.78) 0%, rgba(75,29,138,0.55) 50%, rgba(21,8,43,0.78) 100%),
    radial-gradient(ellipse at center, #4b1d8a 0%, #2a1547 60%, #15082b 100%);
}
.hero.compact { min-height: 540px; }

/* When a hero has a real background image: dark overlay keeps text readable */
.hero.has-image {
  /* per-layer rules: gradient and image both fill the box, neither tiles */
  background-size: cover, cover !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-attachment: scroll, scroll;
  min-height: clamp(440px, 56vh, 720px);
  position: relative;
}
.hero.has-image.compact {
  min-height: clamp(380px, 48vh, 560px);
}
/* Dark overlay div sits between image and content (backup; inline gradient is primary) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 4, 24, 0.35) 0%,
    rgba(26, 10, 38, 0.25) 50%,
    rgba(26, 10, 38, 0.40) 100%
  );
  z-index: 1;
  pointer-events: none;
}
/* GGG (pink theme) gets a pink-tinted overlay */
body.ggg-theme .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(20, 6, 28, 0.35) 0%,
    rgba(74, 26, 63, 0.25) 50%,
    rgba(26, 10, 38, 0.42) 100%
  );
}
.hero.has-image::before {
  /* soften the sparkle layer so it doesn't compete with the photo */
  opacity: 0.4;
  z-index: 2; /* sparkle layer above overlay */
}
.hero.has-image .hero-content {
  position: relative;
  z-index: 3; /* text sits above both overlay and sparkle */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

/* ============================================
   MOBILE: STACKED HERO LAYOUT
   On screens ≤900px, image and text are SEPARATE
   stacked elements. No more trying to crop a wide
   image into a narrow box. Image shows at natural
   aspect ratio; text sits cleanly below it on the
   page's dark background.
   ============================================ */
@media (max-width: 900px) {
  .hero.has-image {
    /* Strip the background image entirely on mobile */
    background-image: none !important;
    background: linear-gradient(180deg, rgba(21,8,43,0.95) 0%, rgba(26,10,38,1) 100%) !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  /* The overlay and sparkle layers are not needed when there's no background image */
  .hero.has-image .hero-overlay,
  .hero.has-image::before {
    display: none !important;
  }
  /* The mobile-only image element shows above the content */
  .hero-mobile-image {
    display: block !important;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center center;
    /* subtle bottom fade so the image blends into the text section below */
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0.85) 100%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0.85) 100%);
  }
  /* GGG-themed pages get a slightly different aspect to feel more editorial */
  body.ggg-theme .hero-mobile-image {
    aspect-ratio: 4 / 3;
  }
  /* Text content section sits cleanly below the image */
  .hero.has-image .hero-content {
    text-shadow: none !important;
    padding: 30px 0 50px !important;
    max-width: none;
  }
  /* Hero crown stays centered above the text */
  .hero.has-image .hero-crown {
    margin-top: -52px;            /* overlap the image bottom slightly */
    margin-left: auto;
    margin-right: auto;
    width: 96px;
    height: 96px;
    z-index: 5;
    position: relative;
    box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  }
}

/* Desktop default: hide the mobile-only image element */
.hero-mobile-image { display: none; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(217,217,217,0.9), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(217,217,217,0.8), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 15% 60%, rgba(217,217,217,0.7), transparent);
  background-size: 200px 200px, 150px 150px, 180px 180px, 220px 220px, 170px 170px, 190px 190px;
  pointer-events: none;
  z-index: 1;
  animation: sparkle 8s ease-in-out infinite alternate;
}
@keyframes sparkle { from { opacity: 0.55; } to { opacity: 1; } }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 80px 0;
}
.hero-crown {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 35%, var(--primary-light) 70%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(122,61,204,0.5);
  border: 3px solid rgba(217,217,217,0.5);
  margin-bottom: 22px;
  font-size: 2.4rem;
  overflow: hidden;
}
/* When hero-crown contains an image, fill it cleanly */
.hero-crown.has-image {
  background: transparent;
  padding: 0;
}
.hero-crown.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 14px;
  max-width: 720px;
}
.hero .punch {
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 1.12rem;
  margin-top: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--muted-dim);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-bright); }
.breadcrumbs .sep { margin: 0 8px; color: var(--primary-light); }
.breadcrumbs .current { color: var(--accent-bright); font-weight: 600; }

/* ============================================
   LAYOUT BLOCKS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
}
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: linear-gradient(180deg, rgba(217,217,217,0.06) 0%, rgba(75,29,138,0.18) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.card-visual {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #4b1d8a 0%, #7a3dcc 50%, #2e0f5c 100%);
  position: relative;
  overflow: hidden;
}
.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 25% 25%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(217,217,217,0.8), transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 85% 30%, rgba(255,255,255,0.6), transparent);
}
.card-icon { position: relative; z-index: 2; filter: drop-shadow(0 4px 16px rgba(255,255,255,0.4)); }

/* When .card-visual contains a real image instead of an emoji */
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-visual.has-image::after {
  /* dim the sparkle overlay so the photo shows through */
  opacity: 0.35;
  z-index: 2;
}

.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 10px; font-size: 1.22rem; color: var(--accent-bright); }
.card-body p { color: var(--muted); margin: 0 0 14px; font-size: 0.97rem; }
.card-link { margin-top: auto; color: var(--accent-bright); font-weight: 700; }
.card-link::after { content: " →"; }

.visual-card {
  background: linear-gradient(180deg, rgba(217,217,217,0.06) 0%, rgba(75,29,138,0.18) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
/* visual-card with a real image fills the frame */
.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lists */
.bullet-list, .serve-list, .link-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}
.bullet-list li, .serve-list li, .link-list a {
  background: linear-gradient(135deg, rgba(217,217,217,0.08) 0%, rgba(75,29,138,0.18) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  color: #f0e9fc;
  font-weight: 600;
}
.bullet-list li { position: relative; padding-left: 36px; }
.bullet-list li::before {
  content: "✦"; position: absolute; left: 14px; top: 13px;
  color: var(--accent-bright);
  text-shadow: 0 0 8px rgba(217,217,217,0.6);
}
.link-list a {
  display: flex; align-items: center; justify-content: space-between;
  transition: 0.2s ease;
}
.link-list a::after { content: "→"; color: var(--accent-bright); }
.link-list a:hover { border-color: var(--border-strong); transform: translateX(4px); }

/* Ladder steps */
.ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.ladder-step {
  background: linear-gradient(180deg, rgba(217,217,217,0.08) 0%, rgba(75,29,138,0.18) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
}
.ladder-step .step-num {
  display: inline-block;
  width: 30px; height: 30px; line-height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.ladder-step strong { display: block; color: var(--accent-bright); font-size: 0.95rem; margin-bottom: 4px; }
.ladder-step span { color: var(--muted); font-size: 0.85rem; }

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.stat {
  background: linear-gradient(180deg, rgba(217,217,217,0.08) 0%, rgba(75,29,138,0.2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.stat .num {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
  position: relative;
  background:
    linear-gradient(135deg, rgba(46, 15, 92, 0.85) 0%, rgba(21, 8, 43, 0.85) 100%),
    radial-gradient(ellipse at center, #4b1d8a 0%, #15082b 100%);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-section .container { max-width: 920px; }
.cta-section p.lead { margin: 0 auto 14px; }
.cta-section .btn-row { justify-content: center; }
.cta-crown {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 35%, var(--primary-light) 70%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(122,61,204,0.5);
  border: 3px solid rgba(217,217,217,0.5);
  margin: 0 auto 22px;
  font-size: 2.4rem;
  overflow: hidden;
}
.cta-crown.has-image {
  background: transparent;
  padding: 0;
}
.cta-crown.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 70px 0 28px;
  background: #0c0420;
  border-top: 1px solid rgba(217,217,217,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-grid h4 { margin: 0 0 12px; font-size: 0.95rem; color: var(--accent-bright); }
.footer-grid p, .footer-grid a, .footer-grid div {
  color: var(--muted); font-size: 0.92rem; margin: 0 0 8px;
}
.footer-grid a:hover { color: var(--accent-bright); }
.footer-brand-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 35%, var(--primary-light) 70%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(217,217,217,0.4);
  margin-bottom: 14px;
}
.footer-brand-logo span {
  font-family: 'Georgia', serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--primary-dark);
}
/* Image variant of the footer brand logo (used on Uplift pages) */
.footer-brand-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(247, 215, 122, 0.5);
  margin-bottom: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(122, 61, 204, 0.45);
  /* Fallback gradient shows if image fails to load — broken icon won't appear */
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 35%, var(--primary-light) 70%, var(--primary-dark) 100%);
}

/* Fallback gradients on all circle containers so they look styled even if
   the image inside fails to load. The img sits on top when it loads. */
.hero-crown.has-image,
.cta-crown.has-image {
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 35%, var(--primary-light) 70%, var(--primary-dark) 100%);
}

/* Hide alt text and broken-image icon — let the fallback gradient show through.
   This applies only to the brand logo and circle images, NOT to hero photos. */
.brand img,
.hero-crown.has-image img,
.cta-crown.has-image img,
.footer-brand-logo-img {
  /* If image fails, show empty space (the parent's gradient) instead of broken icon */
  color: transparent;
  font-size: 0;
}
.copyright {
  border-top: 1px solid rgba(217,217,217,0.12);
  padding-top: 18px;
  color: #c0b3d8;
  font-size: 0.88rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-cluster {
  background: linear-gradient(180deg, rgba(217,217,217,0.06) 0%, rgba(75,29,138,0.12) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}
.form-cluster h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(21, 8, 43, 0.6);
  border: 1px solid rgba(217,217,217,0.2);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(21, 8, 43, 0.9);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-dim); }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(21, 8, 43, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}
.check-item input { margin-top: 3px; accent-color: var(--primary-light); }
.check-item span { font-size: 0.93rem; color: #f0e9fc; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-2, .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav { flex-wrap: nowrap; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-logo span { font-size: 1.15rem; }
  .brand-sub { font-size: 0.76rem; }

  .nav-links {
    position: fixed;
    top: var(--mobile-nav-top, 64px);  /* fallback if JS hasn't measured header yet */
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: rgba(21, 8, 43, 0.99);
    border-top: 1px solid rgba(217,217,217,0.14);
    border-bottom: 1px solid rgba(217,217,217,0.14);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
    z-index: 99;
    /* Failsafe: nothing should ever push this off-screen */
    transform: none;
    box-sizing: border-box;
  }
  .nav-links.open {
    max-height: calc(100vh - var(--mobile-nav-top, 64px));
    overflow-y: auto;
    padding: 12px 0 18px;
  }
  .nav-links > a, .nav-links > .mega-toggle { width: 100%; padding: 14px 20px; text-align: left; }

  .mega { width: 100%; }
  .mega-panel {
    position: static;
    width: 100%;
    background: rgba(12, 4, 32, 0.6);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 1fr;
    padding: 0 20px 12px;
    gap: 16px;
  }
  .mega:not(.open) .mega-panel { display: none; }
  .mega.open .mega-panel { display: grid; }
  .nav-links .btn { margin: 10px 20px 0; text-align: center; }

  .hero { min-height: 580px; }
  .hero-content { padding: 60px 0; text-align: center; margin: 0 auto; }
  .hero-crown { margin-left: auto; margin-right: auto; }
  .section, .section h2, .section p.lead, .eyebrow,
  .card-body, .bullet-list li, .serve-list li {
    text-align: center;
  }
  .bullet-list li { padding-left: 18px; }
  .bullet-list li::before { position: static; margin-right: 6px; }
  .btn-row { justify-content: center; }
  .ladder { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .section { padding: 64px 0; }
  .footer-grid, .stats { grid-template-columns: 1fr; }
  .card-visual { height: 200px; }
  .hero { min-height: 520px; }
  .brand-sub { display: none; }
  .form-cluster { padding: 20px; }
}

/* ============================================
   ACCESSIBILITY + AUDIT FIXES
   ============================================ */

/* Skip-to-content link for keyboard/screen-reader users.
   Visually hidden off-screen until keyboard-focused.
   Using fixed positioning so it's hidden relative to the viewport,
   not relative to any random positioned ancestor. */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  background: var(--accent-bright);
  color: var(--primary-dark);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
  /* Belt-and-suspenders: also clip the element so even if positioning fails,
     it stays invisible until focused. */
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Active nav link */
.nav-links > a.current {
  color: var(--accent-bright);
  position: relative;
}
.nav-links > a.current::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
}

/* Email signup polish */
.email-signup input:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(21,8,43,0.9) !important;
}

/* Form check items — better hover/focus */
.check-item:hover {
  border-color: var(--border-strong);
  background: rgba(122, 61, 204, 0.12);
}
.check-item:has(input:checked) {
  background: linear-gradient(135deg, rgba(122, 61, 204, 0.22) 0%, rgba(75, 29, 138, 0.12) 100%);
  border-color: var(--border-strong);
}
