/* ═══════════════════════════════════════════════════════════════════════════
   NEXAGH LAYOUT
   Header, footer, navigation, grids, and page structure
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ HEADER / NAVIGATION ═══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5vw;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(8,15,30,0.95), transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,149,42,0.12);
  transition: background var(--transition-medium);
}

nav.scrolled {
  background: rgba(8,15,30,0.97);
  border-bottom-color: rgba(201,149,42,0.25);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-text .wt {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cream);
}

.nav-logo-text .wb {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--gold);
  margin-top: 2px;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

/* Nav CTA Buttons */
.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.nav-cta-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-color: transparent;
  margin-left: 8px;
}

.nav-cta-primary:hover {
  opacity: 0.9;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  display: block;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,15,30,0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--cream);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 5vw;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--cream);
  cursor: pointer;
}

/* ═══ HERO SECTION ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5vw 80px;
  position: relative;
  overflow: hidden;
}

.hero-home {
  background:
    linear-gradient(135deg, rgba(8,15,30,0.88) 0%, rgba(13,27,51,0.75) 50%, rgba(8,15,30,0.82) 100%),
    url('https://images.unsplash.com/photo-1583417319070-4a69db38a482?w=1800&q=80&fit=crop') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(201,149,42,0.1) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 20%, rgba(14,143,168,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Page Hero (smaller) */
.hero-page {
  min-height: 50vh;
  padding: 140px 5vw 80px;
  background: var(--navy);
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(201,149,42,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Globe Background */
.hero-bg-globe {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: min(60vw, 650px);
  height: min(60vw, 650px);
  opacity: 0.06;
  animation: slowRotate 70s linear infinite;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 94px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--cream);
  max-width: 780px;
  margin-bottom: 24px;
  animation: fadeUp 0.9s ease 0.2s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(247,243,236,0.78);
  max-width: 520px;
  margin-bottom: 44px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.4s both;
  margin-bottom: 64px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.5s both;
}

.hero-trust-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ═══ CONTACT LAYOUT ═══ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  padding-top: 8px;
}

.contact-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.contact-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.contact-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.contact-form-wrap {
  background: var(--navy-mid);
  border: 1px solid rgba(201,149,42,0.15);
  padding: 52px 44px;
}

.form-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 36px;
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201,149,42,0.12);
  padding: 52px 5vw 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .wt {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cream);
}

.footer-brand .wb {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--gold);
  margin-top: 3px;
  display: block;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══ PAGE WRAPPER ═══ */
.page-wrapper {
  padding-top: 72px; /* Account for fixed nav */
}

/* ═══ CONTAINER ═══ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ═══ GRID SYSTEMS ═══ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ═══ BREADCRUMBS ═══ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--cream);
}

/* ═══ ASSESSMENT MODAL ═══ */
.assess-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.92);
  z-index: 200;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 40px 20px;
}

.assess-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.assess-modal {
  background: var(--navy-mid);
  border: 1px solid rgba(201,149,42,0.25);
  width: 100%;
  max-width: 680px;
  position: relative;
  margin: auto;
  animation: slideUp 0.4s ease;
}

.assess-header {
  padding: 40px 44px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.assess-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.assess-close:hover {
  color: var(--cream);
}

.assess-step-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 8px;
}

.assess-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
}

.assess-progress {
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin: 0 44px;
}

.assess-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transition: width 0.4s ease;
}

.assess-body {
  padding: 36px 44px 44px;
}

.assess-question {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 28px;
  line-height: 1.4;
}

.assess-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assess-option {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  color: var(--cream-dark);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  text-align: left;
  font-family: var(--sans);
}

.assess-option:hover {
  background: rgba(201,149,42,0.1);
  border-color: rgba(201,149,42,0.4);
  color: var(--cream);
}

.assess-option.selected {
  background: rgba(201,149,42,0.15);
  border-color: var(--gold);
  color: var(--cream);
}

.assess-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.assess-btn-back {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.assess-btn-back:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.assess-btn-next {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.assess-btn-next:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.assess-btn-next:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Assessment Results */
.assess-result {
  padding: 40px 44px;
  text-align: center;
}

.result-score-ring {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.result-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.result-heading {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 14px;
}

.result-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.result-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.result-breakdown {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 24px 28px;
  margin-bottom: 32px;
  text-align: left;
}

.result-breakdown h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--cream);
  margin-bottom: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row .rk {
  color: var(--text-muted);
}

.result-row .rv {
  color: var(--gold-light);
  font-weight: 500;
}

.result-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .assess-header,
  .assess-body,
  .assess-result {
    padding-left: 24px;
    padding-right: 24px;
  }

  .assess-progress {
    margin: 0 24px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }
}
