/* ═══════════════════════════════════════════════════════════
   iMEx Theme — Lamaro Ripples-Inspired Design
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
    --black:        #1a2332;
    --black-deep:   #0f1720;
    --black-card:   #1e2d3e;
    --navy:         #28364b;
    --navy-light:   #334564;
    --white:        #ffffff;
    --white-off:    #e8ecf0;
    --grey:         #8b98a8;
    --grey-light:   #b0bcc8;
    --accent:       #e9922e;
    --accent-hover: #f0a54a;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body:    'IBM Plex Sans', sans-serif;
    --container:    1200px;
    --header-h:     90px;
    --transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--white-off);
    background: var(--black-deep);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
}

h1 { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: clamp(17px, 2vw, 22px); font-weight: 400; color: var(--grey-light); }

p {
    margin-bottom: 1em;
    color: var(--grey-light);
}

strong { color: var(--white); font-weight: 600; }

/* ─── Heading Underline (Lamaro-style) ───────────────────── */
.heading-underline {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 20px 0 30px;
    border-radius: 2px;
}

.heading-underline-center {
    margin-left: auto;
    margin-right: auto;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 40px;
    border: 2px solid var(--accent);
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:hover, .btn:focus {
    background: var(--accent);
    color: var(--black);
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-hover);
    color: var(--black);
    border-color: var(--accent-hover);
}

.btn-large {
    padding: 20px 52px;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVBAR — Transparent overlaying hero
   ═══════════════════════════════════════════════════════════ */
.imex-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 35, 50, 0);
    transition: background var(--transition), box-shadow var(--transition);
    height: var(--header-h);
}

.imex-header.scrolled {
    background: rgba(26, 35, 50, 0.95);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.header-logo .logo-img {
    max-height: 66px;
    width: auto;
    transition: max-height var(--transition);
}

.imex-header.scrolled .logo-img {
    max-height: 54px;
}

/* ─── Nav Menu ───────────────────────────────────────────── */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item .nav-link {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
    opacity: 0.85;
}

.nav-item .nav-link:hover,
.nav-item.current-menu-item .nav-link {
    color: var(--accent);
    opacity: 1;
}

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1010;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 1px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.imex-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 32, 0.82) 0%,
        rgba(26, 35, 50, 0.65) 50%,
        rgba(40, 54, 75, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
    max-width: var(--container);
    margin: 0 auto;
    text-align: left;
}

/* Hero 2-column row */
.hero-row {
    display: flex;
    gap: 48px;
    align-items: center;
}

.hero-col-text {
    flex: 1;
}

.hero-col-video {
    flex: 1;
}

.hero-iframe-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-heading {
    margin-bottom: 14px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    font-size: clamp(30px, 4.2vw, 56px); /* 30% smaller */
}

.hero-subheading {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: clamp(14px, 1.8vw, 17px); /* 30% smaller */
}

.hero-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40%  { transform: rotate(45deg) translateY(8px); }
    60%  { transform: rotate(45deg) translateY(4px); }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS — Alternating dark backgrounds (Lamaro-style)
   ═══════════════════════════════════════════════════════════ */
.imex-section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--black);
}

.section-darker {
    background: var(--black-deep);
}

.section-highlight {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    text-align: center;
    padding: 120px 0;
}

.section-cta {
    background: var(--black-deep);
    text-align: center;
    padding: 120px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-body p {
    font-size: 18px;
    max-width: 800px;
}

/* ─── Row flex (2-col) ───────────────────────────────────── */
.row-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.row-flex .col-text {
    flex: 1.1;
}

.row-flex .col-list,
.row-flex .col-media {
    flex: 1;
}

.row-reverse {
    flex-direction: row-reverse;
}

.section-sub {
    margin-bottom: 24px;
}

/* SAS logo in Success Accelerator section */
.sas-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 28px;
}

.vip-code {
    font-size: 17px;
    color: var(--accent);
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════
   FOCUS AREA CARDS
   ═══════════════════════════════════════════════════════════ */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.focus-card {
    background: var(--black-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 36px 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 146, 46, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.focus-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent);
    line-height: 1;
}

.focus-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.focus-desc {
    font-size: 15px;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   CHECKLIST / AUDIENCE LIST
   ═══════════════════════════════════════════════════════════ */
.check-list,
.audience-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
}

.check-list li,
.audience-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--grey-light);
    line-height: 1.6;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.audience-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.result-line {
    margin-top: 12px;
    font-size: 17px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION — 2 columns (text + porthole)
   ═══════════════════════════════════════════════════════════ */
.about-row {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-col-text {
    flex: 1;
}

.about-col-porthole {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   PORTHOLE (Boat Window) around rotate.mp4
   ═══════════════════════════════════════════════════════════ */
.porthole {
    position: relative;
    width: 380px;
    height: 380px;
}

/* Outer ring — dark navy */
.porthole-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a2840 0%, #0d1622 60%, #1e3050 100%);
    box-shadow:
        0 0 0 6px #0b1018,
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.05);
}

/* Inner ring — slightly lighter border */
.porthole-inner-ring {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #243550 0%, #1a2a42 100%);
    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.04);
}

/* Glass area — where the video shows */
.porthole-glass {
    position: absolute;
    inset: 44px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.porthole-glass video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Glass reflection overlay */
.porthole-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 35% 30%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Bolts around the porthole */
.porthole-bolt {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 40% 35%, #4a5c78 0%, #1a2840 80%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 8 bolt positions around the ring */
.porthole-bolt:nth-child(1) { top: 8px;   left: 50%;  transform: translateX(-50%); }
.porthole-bolt:nth-child(2) { top: 50%;   right: 8px; transform: translateY(-50%); }
.porthole-bolt:nth-child(3) { bottom: 8px; left: 50%; transform: translateX(-50%); }
.porthole-bolt:nth-child(4) { top: 50%;   left: 8px;  transform: translateY(-50%); }
.porthole-bolt:nth-child(5) { top: 52px;  right: 52px; }
.porthole-bolt:nth-child(6) { bottom: 52px; right: 52px; }
.porthole-bolt:nth-child(7) { bottom: 52px; left: 52px; }
.porthole-bolt:nth-child(8) { top: 52px;  left: 52px; }

/* ═══════════════════════════════════════════════════════════
   VIDEO DIVIDER SECTION (mari.mp4)
   ═══════════════════════════════════════════════════════════ */
.video-divider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.video-divider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-divider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 32, 0.3) 0%,
        rgba(15, 23, 32, 0.1) 50%,
        rgba(15, 23, 32, 0.3) 100%
    );
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   ROTATING VIDEO (Training section — also porthole)
   ═══════════════════════════════════════════════════════════ */
.rotate-video-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow:
        0 0 0 4px rgba(233, 146, 46, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.rotate-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   HIGHLIGHT / EXCELLENCE SECTION
   ═══════════════════════════════════════════════════════════ */
.highlight-content {
    max-width: 800px;
    margin: 0 auto;
}

.highlight-content p {
    font-size: 18px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   APPROACH STEPS (4 columns)
   ═══════════════════════════════════════════════════════════ */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.approach-step {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    color: rgba(233, 146, 46, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
}

.step-desc {
    font-size: 15px;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.cta-content {
    max-width: 750px;
    margin: 0 auto;
}

.cta-content h4 {
    color: var(--accent);
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 500;
}

.cta-content .btn {
    margin-top: 30px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.imex-footer {
    background: var(--black-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 0;
}

.footer-inner {
    text-align: center;
}

.footer-logo-img {
    max-height: 44px;
    margin: 0 auto 12px;
    opacity: 0.7;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 13px;
    color: var(--grey);
    opacity: 0.6;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.imex-sr {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.imex-sr.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

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

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

    .row-flex {
        flex-direction: column;
        gap: 40px;
    }

    .row-reverse {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-row {
        flex-direction: column;
        gap: 32px;
    }

    .about-row {
        flex-direction: column;
        gap: 40px;
    }

    .porthole {
        width: 320px;
        height: 320px;
    }

    .video-divider {
        height: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 23, 32, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        z-index: 1005;
        overflow-y: auto;
    }

    .header-nav.open {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-item .nav-link {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        width: 100%;
    }

    .imex-section {
        padding: 70px 0;
    }

    .section-highlight,
    .section-cta {
        padding: 80px 0;
    }

    .focus-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .approach-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .focus-card {
        padding: 28px 22px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .rotate-video-wrap {
        max-width: 280px;
    }

    .porthole {
        width: 260px;
        height: 260px;
    }

    .porthole-inner-ring { inset: 20px; }
    .porthole-glass { inset: 32px; }
    .porthole-bolt { width: 10px; height: 10px; }
    .porthole-bolt:nth-child(5) { top: 38px; right: 38px; }
    .porthole-bolt:nth-child(6) { bottom: 38px; right: 38px; }
    .porthole-bolt:nth-child(7) { bottom: 38px; left: 38px; }
    .porthole-bolt:nth-child(8) { top: 38px; left: 38px; }

    .video-divider { height: 200px; }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 13px;
    }

    .btn-large {
        padding: 16px 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .step-num {
        font-size: 48px;
    }

    .section-header {
        margin-bottom: 36px;
    }
}

/* ─── Prefers Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .imex-sr {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-arrow {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}