/* ==========================================================================
   CXO GLOBAL ALLIANCE - MEMBER PROFILE STYLESHEET (member-profile.css)
   Matches Image 06. Member Profile with video hero, executive portrait card,
   contact and company information two-column card, and shared footer.
   ========================================================================== */

: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-color: #e2e8f0;

  --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 8px rgba(8, 24, 43, 0.04);
  --shadow-card: 0 4px 20px rgba(8, 24, 43, 0.06);
  --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-soft);
  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: 1140px;
  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
   -------------------------------------------------------------------------- */
.profile-hero {
  position: relative;
  padding-top: 165px;
  padding-bottom: 85px;
  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.32) 0%,
    rgba(8, 24, 43, 0.5) 50%,
    rgba(6, 19, 34, 0.9) 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: 55px;
  height: 3px;
  background-color: var(--gold-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Profile Content Section: 2 Stacked White Cards (Matches Image 06)
   -------------------------------------------------------------------------- */
.profile-content-section {
  padding: 60px 0 85px 0;
}

.profile-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Card 1: Executive Top Card (Photo + Bio & Title)
   -------------------------------------------------------------------------- */
.executive-top-card {
  padding: 40px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 45px;
  align-items: start;
}

/* Photo Column */
.profile-photo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.profile-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-social-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-social-link {
  color: var(--navy-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-social-link:hover {
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.profile-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Bio / Overview Column */
.profile-info-col {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}

.profile-designation {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.profile-company {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 28px;
}

.profile-about-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

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

.profile-about-line {
  width: 42px;
  height: 2.5px;
  background-color: var(--gold-primary);
  border-radius: 2px;
}

.profile-bio-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   Card 2: Details Card (Contact Information + Company Information)
   -------------------------------------------------------------------------- */
.executive-details-card {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
}

/* Subtle vertical divider between the two columns */
.executive-details-card::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 1px;
  background-color: var(--border-color);
}

.details-column {
  display: flex;
  flex-direction: column;
}

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

/* Left: Contact Info Rows */
.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.contact-item-icon {
  width: 20px;
  height: 20px;
  color: var(--navy-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.contact-item-val a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.contact-item-val a:hover {
  color: var(--gold-primary);
}

/* Right: Company Info List */
.company-meta-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-meta-item {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
}

.company-meta-item strong {
  color: var(--navy-dark);
  font-weight: 700;
  margin-right: 6px;
}

.company-meta-item a {
  color: var(--text-body);
  transition: color 0.2s ease;
}

.company-meta-item a:hover {
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .executive-top-card {
    grid-template-columns: 220px 1fr;
    gap: 30px;
    padding: 30px;
  }

  .executive-details-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }

  .executive-details-card::before {
    display: none;
  }
}


@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;
  }
}

@media (max-width: 650px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .executive-top-card {
    grid-template-columns: 1fr;
  }

  .profile-photo-col {
    max-width: 240px;
    margin: 0 auto 10px auto;
    align-items: center;
  }

  .profile-social-strip {
    justify-content: center;
  }

  .profile-name {
    font-size: 1.75rem;
    text-align: center;
  }

  .profile-designation,
  .profile-company {
    text-align: center;
  }

  .profile-about-title-row {
    justify-content: center;
  }
}
