/* ==========================================================================
   CXO GLOBAL ALLIANCE - MEMBERSHIP PAGE STYLESHEET (membership.css)
   Matches Image 03. Membership with live video hero and authentic data
   ========================================================================== */

:root {
  --navy-darker: #061322;
  --navy-dark: #08182b;
  --navy-primary: #0b1a2d;
  --navy-card: #0e223d;

  --gold-primary: #e5a83b;
  --gold-light: #f5be5d;
  --gold-dark: #c98e29;
  --gold-subtle: rgba(229, 168, 59, 0.12);

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --border-light: #e2e8f0;
  --border-card: #e5e9f0;

  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 10px rgba(8, 24, 43, 0.05);
  --shadow-hover: 0 14px 32px rgba(8, 24, 43, 0.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header & Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--navy-dark);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.site-header .container.header-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 36px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);

  flex-shrink: 0;
}

.logo-icon-svg {
  width: 38px;
  height: 38px;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-white);
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold-primary);
  border-radius: 2px;
}

.btn-join-alliance {
  background-color: var(--gold-primary);
  color: var(--navy-darker);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(229, 168, 59, 0.3);
  transition: var(--transition);

  white-space: nowrap;
  flex-shrink: 0;
}

.btn-join-alliance:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 168, 59, 0.45);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero Section with YouTube Background Video
   -------------------------------------------------------------------------- */
.membership-hero {
  position: relative;
  padding-top: 170px;
  padding-bottom: 95px;
  text-align: center;
  overflow: hidden;
  background-color: var(--navy-darker);
}

.video-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.video-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: none;
  opacity: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 24, 43, 0.3) 0%,
    rgba(8, 24, 43, 0.45) 50%,
    rgba(6, 19, 34, 0.85) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-divider {
  width: 50px;
  height: 3px;
  background-color: var(--gold-primary);
  margin: 0 auto 16px auto;
  border-radius: 2px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Section 1: Who Can Join (4 Cards Grid)
   -------------------------------------------------------------------------- */
.who-section {
  padding: 85px 0 75px 0;
  background-color: var(--bg-white);
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gold-dash {
  width: 44px;
  height: 3px;
  background-color: var(--gold-primary);
  margin: 0 auto;
  border-radius: 2px;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.who-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 38px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.who-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
}

.who-icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  margin-bottom: 22px;
  transition: var(--transition);
}

.who-card:hover .who-icon-box {
  transform: scale(1.1);
  color: var(--gold-primary);
}

.who-icon-box svg {
  width: 44px;
  height: 44px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.who-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.who-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Section 2: Membership Benefits (Dark Navy Banner)
   -------------------------------------------------------------------------- */
.benefits-section {
  padding: 85px 0 90px 0;
  background-color: var(--navy-dark);
  color: var(--text-white);
  text-align: center;
}

.benefits-title {
  color: var(--text-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 35px;
  margin-top: 60px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.benefit-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.benefit-item:hover .benefit-icon-circle {
  background-color: var(--gold-primary);
  color: var(--navy-darker);
  transform: scale(1.08);
}

.benefit-icon-circle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 6px;
}

.benefit-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   Section 3: Membership Categories (4 Tier Cards)
   -------------------------------------------------------------------------- */
.categories-section {
  padding: 85px 0 65px 0;
  background-color: var(--bg-white);
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.category-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px 20px 30px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
}

.category-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #fff9ed;
  border: 1px solid rgba(229, 168, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.category-card:hover .category-icon-wrapper {
  background-color: var(--gold-primary);
  color: var(--navy-darker);
}

.category-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.category-fee {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.category-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 26px;
  flex-grow: 1;
}

.btn-apply-category {
  width: 100%;
  background-color: var(--navy-dark);
  color: var(--text-white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: var(--transition);
}

.btn-apply-category:hover {
  background-color: var(--gold-primary);
  color: var(--navy-darker);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 168, 59, 0.35);
}

/* --------------------------------------------------------------------------
   Section 4: Bottom Callout Banner
   -------------------------------------------------------------------------- */
.callout-section {
  padding: 20px 0 85px 0;
  background-color: var(--bg-white);
}

.callout-card {
  background-color: #fffbf2;
  border: 1px solid rgba(229, 168, 59, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(229, 168, 59, 0.08);
}

.callout-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.callout-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(229, 168, 59, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.callout-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.callout-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 3px;
}

.callout-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn-callout-join {
  background-color: var(--gold-primary);
  color: var(--navy-darker);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(229, 168, 59, 0.3);
  transition: var(--transition);
}

.btn-callout-join:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 168, 59, 0.45);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .who-grid,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 1320px) {
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.78rem;
    letter-spacing: 0.3px;
  }
  .btn-join-alliance {
    padding: 9px 15px;
    font-size: 0.78rem;
  }
}

@media (max-width: 1080px) {
  .nav-menu,
  .site-header .btn-join-alliance {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header.mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--navy-darker);
    padding: 24px;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    gap: 16px;
    align-items: flex-start;
  }

  .site-header.mobile-open .btn-join-alliance {
    display: inline-flex;
    width: 100%;
    margin-top: 10px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .callout-card {
    flex-direction: column;
    text-align: center;
  }

  .callout-left {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .who-grid,
  .categories-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .btn-callout-join {
    width: 100%;
  }
}
