/* ======================
   Reset & Base
====================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.5;
}
img, video, iframe { max-width: 100%; height: auto; }

/* ======================
   Header & Navigation
====================== */
header {
  background: linear-gradient(90deg, #2d0036, #4b006e);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo h2 { margin: 0; color: #fff; }

/* Hamburger toggle */
.nav-toggle { display: none; }
.hamburger {
  display: none; cursor: pointer;
  width: 40px; height: 34px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  gap: 6px; padding: 6px 8px;
  border: 2px solid rgba(255,255,255,.35);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Nav list */
nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
nav ul li { position: relative; }
nav ul li a {
  color: white; text-decoration: none; font-weight: bold;
  padding: 10px 8px; display: block; border-radius: 6px;
}
nav ul li:hover > a { background: rgba(255,255,255,0.2); }

/* Dropdowns */
nav ul ul {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #4b006e; padding: 10px 0;
  border-radius: 8px; min-width: 220px; z-index: 10;
}
nav ul ul li a { padding: 8px 14px; }
nav ul li:hover > ul { display: block; }        /* Desktop hover */
nav ul li:focus-within > ul { display: block; } /* Mobile tap */

/* ======================
   Hero
====================== */
.hero {
  background: linear-gradient(90deg, #2d0036, #4b006e);
  color: white; text-align: center;
  padding: 80px 20px 60px;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 10px; }
.hero p  { margin: 8px auto 18px; max-width: 850px; opacity: .95; }

.hero-media.gallery {
  display:flex; gap:14px; justify-content:center;
  flex-wrap:wrap; padding:10px;
}
.hero-media.gallery img {
  flex: 1 1 280px; max-width: 32%;
  height: auto; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  object-fit: cover;
}

/* Pill steps */
.pill-steps { display:grid; gap:10px; justify-items:center; margin: 24px 0 12px; }
.pill {
  background:#f6f2fb;
  border:1px solid rgba(75,0,110,.12);
  padding:10px 14px;
  border-radius:999px;
  font-weight:600;
  color:#4b006e;
}

/* ======================
   Sections & Split
====================== */
.section {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 40px; padding: 60px 20px;
}
.section h2 { font-size: 2em; color: #2d0036; margin: 0 0 8px; }
.section img {
  max-width: 420px; width: 100%;
  border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.split {
  display:grid; gap:20px;
  grid-template-columns: 1.1fr .9fr;
  align-items:center; padding: 40px 0;
}
.split .media {
  width: 100%; background:#e8def7;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(75,0,110,.12);
  padding: 8px;
}
.split .media img {
  display:block; width:100%; height:auto;
  object-fit: contain;
  border-radius: 8px;
  max-width: 600px; margin: 0 auto;
}

/* ======================
   Cards, Tiles & Helpers
====================== */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.btn {
  display:inline-block; padding:12px 18px;
  border-radius:8px; text-decoration:none; font-weight:700;
  background:#4b006e; color:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}
.btn.alt { background:#2d0036; }
.btn.light { background:#fff; color:#4b006e; }
.btn:hover { filter: brightness(1.05); }
.cta-row { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-top: 16px; }

.eyebrow { text-transform:uppercase; letter-spacing:.06em; font-size:.75rem; color:#6b6b6b; margin-bottom:6px; }
.section-title { color:#2d0036; margin: 0 0 6px; }

.card-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.card { background:#f9f9f9; border-radius:12px; padding:18px; box-shadow:0 3px 10px rgba(0,0,0,.08); }
.card h3 { margin:0 0 6px; color:#4b006e; }
.kicker { font-weight:700; color:#a855f7; margin-bottom:6px; display:inline-block; }

.tiles { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.tile { background:#fff; border-radius:10px; padding:14px; box-shadow:0 2px 6px rgba(0,0,0,.06); text-align:center; }
.tile a { text-decoration:none; color:#2d0036; font-weight:700; }
.tile a:hover { text-decoration: underline; }

/* Footer */
footer { padding: 30px 20px; text-align:center; color:#666; }

/* ======================
   Responsive
====================== */

/* Tablets */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.1rem; }
  .section { padding: 40px 16px; gap: 24px; }
  .split { grid-template-columns: 1fr; text-align: center; }
  .split .media img { max-width: 520px; }
  nav ul { gap: 12px; }
  nav ul ul {
    position: static;
    background: #3b0057;
    margin-top: 4px;
  }
}

/* Phones */
@media (max-width: 640px) {
  /* show burger */
  .hamburger { display: inline-flex; }
  header { justify-content: space-between; }

  .logo { flex: 0 0 auto; }
  nav { flex: 1 0 100%; }

  /* hide nav by default */
  nav { display: none; width: 100%; }
  .nav-toggle:checked + .hamburger + nav { 
    display: block;
    margin-top: 10px;
    animation: navSlideDown .18s ease-out;
  }

  /* vertical links */
  nav ul {
    display: flex; flex-direction: column;
    align-items: stretch; gap: 6px;
    width: 100%; margin: 0 auto;
  }
  nav ul > li > a {
    text-align: center; padding: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
  }
  nav ul ul {
    position: static; background: #3b0057;
    width: 100%; margin-top: 4px; border-radius: 8px;
    padding: 6px 0;
  }
  nav ul ul li a { text-align: center; }

  /* burger to X animation */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .hamburger span { transition: transform .18s ease, opacity .18s ease; }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* hero + sections */
  .hero { padding: 54px 16px 40px; }
  .hero h1 { font-size: 1.7rem; }
  .cta-row { gap: 10px; }
  .btn { padding: 10px 14px; font-weight: 700; }

  /* gallery collapse */
  .preview-gallery img { width: 100%; height: auto; }
  .hero-media.gallery img { max-width: 100%; }

  /* cards single column */
  .card-grid { grid-template-columns: 1fr; }

  /* images */
  .section img { max-width: 100%; }
  .split .media img { max-width: 100%; }
}

/* Hide the hidden checkbox everywhere */
.nav-toggle {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0; margin: 0;
}

/* Ensure desktop never shows burger/checkbox, and nav is visible */
@media (min-width: 641px) {
  .nav-toggle,
  .hamburger { display: none !important; }
  header nav { display: block !important; }
}

/* Parent labels that are not links */
.has-submenu > .menu-label {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: bold;
  padding: 10px 8px;
  border-radius: 6px;
  display: block;
  cursor: pointer;              /* shows it's interactive */
}
.has-submenu:hover > .menu-label,
.has-submenu:focus-within > .menu-label {
  background: rgba(255,255,255,0.2);
}

/* Keep existing dropdown behavior: show on hover (desktop) and focus (mobile) */
nav ul li:hover > ul { display: block; }
nav ul li:focus-within > ul { display: block; }

/* Mobile polish so parent labels fill width like links */
@media (max-width: 640px) {
  nav ul > li > .menu-label {
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.06);
  }
}

/* === Make top-level links and button labels look identical === */
nav ul > li > a,
nav ul > li > .menu-label {
  color: #fff;
  font-weight: bold;
  padding: 10px 8px;
  display: block;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.2;
}

/* Remove default button look (fixes white rectangles) */
.menu-label {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Hover/Focus states unified */
nav ul > li:hover > a,
nav ul > li:focus-within > a,
nav ul > li:hover > .menu-label,
nav ul > li:focus-within > .menu-label {
  background: rgba(255,255,255,0.2);
}

/* Mobile: keep items clean and centered, no white blocks */
@media (max-width: 640px) {
  nav ul > li > a,
  nav ul > li > .menu-label {
    background: transparent;        /* remove any residual blocks */
    text-align: center;
    padding: 12px;
  }

  /* Submenu container styling stays, but not overly heavy */
  nav ul ul {
    background: #3b0057;
    border-radius: 8px;
    padding: 6px 0;
  }

  nav ul ul li a {
    background: transparent;        /* ensure submenu links are clean too */
    padding: 8px 12px;
  }
}
