/* ═══════════════════════════════════════════════════════════════
   GSC CORE — shared design tokens + strict-identity shared rules
   Single source of truth for brand proportions. Extracted 2026-07-23.
   Rule of admission: a rule lives here ONLY if every page that uses
   its selector computed identically before extraction. Page-specific
   variants stay inline on their page and win by cascade order.
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Core brand */
    --navy: #003366;
    --navy-deep: #001a33;
    --navy-light: #004d99;
    --gold: #D4AF37;
    --gold-light: #e5c76b;
    --gold-muted: rgba(212, 175, 55, 0.15);

    /* Editorial calibration */
    --hairline: rgba(0, 51, 102, 0.16);
    --hairline-light: rgba(255, 255, 255, 0.18);
    --fill-shift: rgba(0, 51, 102, 0.03);
    --ghost-num: rgba(0, 51, 102, 0.07);
    --ghost-num-onnavy: rgba(212, 175, 55, 0.11);
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-400: #ced4da;
    --gray-600: #868e96;
    --gray-800: #343a40;
    --black: #0a0a0a;

    /* Typography (web system: Playfair Display + DM Sans) */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Rhythm */
    --section-padding: clamp(80px, 10vw, 140px);
    --container-max: 1280px;
    --container-padding: clamp(20px, 5vw, 60px);

    /* Page-family extras (union) */
    --cat-education: #f76707;
    --cat-market: #4263eb;
    --cat-regulatory: #ae3ec9;
    --cat-strategy: #0ca678;
    --cat-sustainable: #2a7d4f;
    --container: 1100px;
    --ghost: rgba(0,51,102,.06);
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-400: #ced4da;
    --gray-600: #868e96;
    --gray-800: #343a40;
    --green: #40c057;
    --green-muted: rgba(64, 192, 87, 0.1);
    --pad: clamp(20px,5vw,60px);
}

.nav.scrolled {
            background: rgba(0, 51, 102, 0.97);
            backdrop-filter: blur(20px);
            padding: 16px 0;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo-waves path:nth-child(1) { animation-delay: 0.1s;
}

.logo-waves path:nth-child(2) { animation-delay: 0.2s;
}

.logo-waves path:nth-child(3) { animation-delay: 0.3s;
}

.nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--gold);
            transition: width 0.3s ease;
}

.nav-links a:hover::after {
            width: 100%;
}

.nav-portal {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 14px;
            border: 1px solid rgba(212, 175, 55, 0.5);
            color: var(--gold);
            font-family: var(--font-body);
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            text-decoration: none;
            transition: all 0.3s ease;
            white-space: nowrap;
            margin-right: 8px;
}

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

.nav-portal svg {
            width: 13px;
            height: 13px;
}

.lang-switch a:hover {
            color: var(--white);
}

.btn-primary::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
            opacity: 1;
}

.btn-primary:hover .btn-arrow,
        .btn-secondary:hover .btn-arrow {
            transform: translateX(4px);
}

.section-desc {
            font-size: 1.1rem;
            color: var(--gray-600);
            line-height: 1.7;
}

.mobile-menu-btn .mm-text { line-height: 1;
}

.mobile-menu-btn .mm-icon {
            display: inline-flex;
            flex-direction: column;
            justify-content: space-between;
            width: 22px;
            height: 14px;
}

.mobile-menu-btn .mm-icon span {
            display: block;
            width: 100%;
            height: 1.5px;
            background: currentColor;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .mm-icon span:nth-child(1) {
            transform: rotate(45deg) translate(4.5px, 4.5px);
}

.mobile-menu-btn.active .mm-icon span:nth-child(2) {
            opacity: 0;
}

.mobile-menu-btn.active .mm-icon span:nth-child(3) {
            transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Backdrop scrim */
        .mobile-menu-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 21, 40, 0.55);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
}

.mobile-menu.active .mobile-menu-backdrop { opacity: 1;
}

/* Right-side drawer panel */
        .mobile-menu-drawer {
            position: absolute;
            top: 0; right: 0;
            width: min(540px, 85vw);
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 21, 40, 0.97) 0%, rgba(0, 42, 85, 0.97) 100%);
            display: flex;
            flex-direction: column;
            padding: 96px 56px 56px;
            transform: translateX(100%);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.mobile-menu.active .mobile-menu-drawer { transform: translateX(0);
}

/* Close button — top-right of drawer */
        .mobile-menu-close {
            position: absolute;
            top: 28px;
            right: 28px;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            padding: 8px;
            transition: color 0.3s ease;
            z-index: 2;
}

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

.mobile-menu-close svg { width: 22px; height: 22px; display: block;
}

/* Primary nav — large display serif, vertical stack */
        .mobile-menu-primary {
            display: flex;
            flex-direction: column;
            gap: 28px;
}

.mobile-menu-primary a {
            font-family: var(--font-display);
            font-size: clamp(26px, 3.4vw, 36px);
            font-weight: 400;
            line-height: 1.15;
            letter-spacing: -0.01em;
            color: #FFFFFF;
            text-decoration: none;
            transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-primary a:hover {
            color: var(--gold);
            transform: translateX(4px);
}

/* Secondary nav — small Inter, utility items */
        .mobile-menu-secondary {
            margin-top: auto;
            padding-top: 40px;
            border-top: 1px solid rgba(212, 175, 55, 0.22);
            display: flex;
            flex-direction: column;
            gap: 20px;
}

.mobile-menu-secondary a {
            font-family: var(--font-body);
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.04em;
            color: rgba(255, 255, 255, 0.78);
            text-decoration: none;
            transition: color 0.3s ease;
}

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

.mobile-menu-secondary .mobile-menu-cta {
            color: var(--gold);
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-size: 12px;
}

::selection {
            background: rgba(212, 175, 55, 0.85);
            color: var(--navy-deep);
}

:focus-visible {
            outline: 2px solid var(--gold);
            outline-offset: 3px;
}

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

.nav-links a:hover::after,
        .nav-links a.active::after { width: 100%;
}

/* Tactile press on primary actions */
        .btn-primary:active,
        .btn-secondary:active,
        .nav-cta:active {
            transform: translateY(1px);
}

/* Anchored sections clear the fixed nav */
        section[id] {
            scroll-margin-top: 88px;
}

.btn-primary:hover .btn-arrow {
            transform: translateX(4px);
}

@media (max-width: 1024px) {
  .footer-grid {
                  grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
  .nav-links {
                  display: none;
    }
  .nav-cta, .nav-portal {
                  display: none;
    }
  .nav-logo {
                  font-size: 1.5rem;
    }
  .nav-logo .logo-waves {
                  width: 26px;
                  height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-backdrop,
              .mobile-menu-drawer { transition: none !important;
    }
}

@media (max-width: 540px) {
  .mobile-menu-drawer { padding: 88px 32px 40px;
    }
  .mobile-menu-close { top: 22px; right: 22px;
    }
}

@media (max-width: 480px) {
  .container {
                  padding: 0 16px;
    }
}

@media (max-width: 1280px) {
  .nav-links { display: none;
    }
  .mobile-menu-btn { display: inline-flex;
    }
  .nav-cta, .nav-portal { display: none;
    }
  .lang-switch { display: none;
    }
}

@media(max-width:820px) {
  .nav-links,.lang-switch {display:none;
    }
}

@media(max-width:760px) {
  .footer-grid {grid-template-columns:1fr;gap:28px;
    }
}
