/* 
  NEXUM Leadership - Cinematic & Organic Design System
*/

:root {
    /* Color Palette */
    --moss: #2E4036;
    --clay: #CC5833;
    --cream: #F2F0E9;
    --charcoal: #1A1A1A;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-drama: 'Cormorant Garamond', serif;
    --font-mono: 'Space Mono', monospace;

    /* Structural */
    --radius-huge: 3rem;
    --radius-large: 2rem;
    --radius-pill: 100px;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.3s ease;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.dramatic-italic {
    font-family: var(--font-drama);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.micro-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    /* Opacity set dynamically depending on background */
}

/* Utility Classes */
.bg-charcoal {
    background-color: var(--charcoal);
}

.bg-cream {
    background-color: var(--cream);
}

.bg-moss {
    background-color: var(--moss);
}

.bg-clay {
    background-color: var(--clay);
}

.text-cream {
    color: var(--cream);
}

.text-charcoal {
    color: var(--charcoal);
}

.text-center {
    text-align: center;
}

.clay-accent {
    color: var(--clay);
}

.moss-accent {
    color: var(--moss);
}

.opacity-50 {
    opacity: 0.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

section {
    padding: 8vw 0;
    position: relative;
}

/* Telemetry Elements */
.telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 6px 16px;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: var(--radius-pill);
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clay);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(204, 88, 51, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(204, 88, 51, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(204, 88, 51, 0);
    }
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2vh 5vw;
    z-index: 90;
    transition: var(--transition-slow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
    color: var(--charcoal);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-top: 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-solid,
.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-slow);
    text-decoration: none;
}

.btn-solid {
    background-color: var(--charcoal);
    color: var(--cream);
    border: none;
}

.btn-solid:hover {
    background-color: var(--clay);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid rgba(26, 26, 26, 0.2);
}

.btn-outline:hover {
    border-color: var(--charcoal);
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(242, 240, 233, 0.2);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-slow);
}

.btn-circle:hover {
    background: var(--cream);
    color: var(--charcoal);
    transform: rotate(-45deg);
    /* Arrow points up-right on hover */
}

/* Base Formats for dramatic text */
.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10vh;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    padding: 0 5vw;
}

.dramatic-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    color: var(--moss);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
    color: rgba(26, 26, 26, 0.7);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Story / Context Section */
.story-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5vw;
    border-radius: var(--radius-huge);
    background-color: var(--charcoal);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    margin-top: 5rem;
    align-items: center;
}

.story-text p {
    color: var(--cream);
    opacity: 0.8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.story-text .dramatic-italic {
    font-size: 1.5rem;
    color: var(--cream);
    opacity: 1;
}

/* Telemetry Panel UI in Story */
.telemetry-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-large);
    padding: 3rem;
    font-family: var(--font-mono);
}

.data-row {
    margin-bottom: 2rem;
}

.data-row:last-child {
    margin-bottom: 0;
}

.data-label {
    display: block;
    color: var(--cream);
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.data-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.data-bar .fill {
    height: 100%;
}

.clay-fill {
    background-color: var(--clay);
}

.green-fill {
    background-color: var(--moss);
}

.data-val {
    color: var(--cream);
    font-size: 1.5rem;
}

/* Lab / Bento Grid Section */
.section-intro {
    max-width: 700px;
    margin: 0 auto 5rem auto;
    font-size: 1.25rem;
    color: rgba(26, 26, 26, 0.7);
}

.cards-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-box {
    border-radius: var(--radius-large);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    transition: var(--transition-slow);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gradient block to ensure text readability */
.bento-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.1) 0%, rgba(26, 26, 26, 0.85) 100%);
    z-index: -1;
    transition: var(--transition-slow);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-box:hover {
    transform: scale(0.98);
}

.bento-box:hover::before {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0.95) 100%);
}

.tall-box {
    grid-row: span 2;
}

.dark-bento {
    background-color: var(--charcoal);
    color: var(--cream);
    background-image: url('cognitive.png');
}

.clay-bento {
    background-color: var(--clay);
    color: var(--cream);
    background-image: url('emotional.png');
}

.moss-bento {
    background-color: var(--moss);
    color: var(--cream);
    background-image: url('physical.png');
}

.telemetry-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.5;
    position: absolute;
    top: 2rem;
    left: 3rem;
}

.bento-icon {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 1.5rem;
    opacity: 0.2;
}

.bento-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bento-box p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Curriculum Section */

.curriculum-section .container {
    padding-top: 5vw;
    padding-bottom: 5vw;
}

.curriculum-header {
    margin-bottom: 5rem;
}

.program-list {
    display: flex;
    flex-direction: column;
}

.organic-divider {
    border: none;
    height: 1px;
    background: rgba(242, 240, 233, 0.1);
    margin: 2rem 0;
}

.program-row {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
    transition: var(--transition-medium);
}

.program-row:hover {
    opacity: 0.8;
}

.program-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: var(--font-mono);
}

.program-tier {
    color: var(--clay);
    font-size: 0.8rem;
    font-weight: 700;
}

.program-duration {
    font-size: 0.7rem;
    opacity: 0.5;
}

.program-details h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.program-details p {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
}

/* Booking CTA */
.booking-section {
    padding-bottom: 0;
    /* Footer touches directly */
}

.booking-container {
    background-color: var(--moss);
    /* Primary brand color here */
    border-radius: var(--radius-huge) var(--radius-huge) 0 0;
    padding: 8vw 5vw;
    color: var(--cream);
}

.booking-card {
    max-width: 1000px;
    margin: 0 auto;
}

.booking-card .section-title {
    color: var(--cream);
}

.booking-card .moss-accent {
    color: rgba(242, 240, 233, 0.5);
    /* override accent to fit dark background */
}

.booking-intro {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    opacity: 0.8;
}

.elegant-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.elegant-form input,
.elegant-form select {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid rgba(242, 240, 233, 0.3);
    border-radius: var(--radius-pill);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-medium);
}

.elegant-form input::placeholder {
    color: rgba(242, 240, 233, 0.5);
}

.elegant-form input:focus,
.elegant-form select:focus {
    outline: none;
    border-color: var(--clay);
    background: rgba(255, 255, 255, 0.05);
}

.elegant-form select option {
    background-color: var(--moss);
    color: var(--cream);
}

.form-submit {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.form-submit .btn-solid {
    background-color: var(--cream);
    color: var(--moss);
}

.form-submit .btn-solid:hover {
    background-color: var(--clay);
    color: var(--cream);
}

.form-msg {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Footer */
footer {
    padding: 4vw 5vw;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-brand .logo {
    color: var(--cream);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .program-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .program-action {
        display: none;
    }
}

@media (max-width: 768px) {
    .cards-bento {
        grid-template-columns: 1fr;
    }

    .tall-box {
        grid-row: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .logo {
        color: var(--charcoal);
    }

    /* Adjust navbar colors for mobile if needed */
    .nav-right {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }

    .dramatic-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}