:root {
    --blue: #993300;
    --blue-dark: #7a2900;
    --blue-light: #f7ede6;
    --rust: #990066;
    --rust-light: #f7e6f2;
    --white: #ffffff;
    --bg: #ffffff;
    --gray-100: #f2f2f2;
    --gray-200: #e6e6e6;
    --gray-400: #999999;
    --gray-600: #555555;
    --text: #111111;
    --border: #e6e6e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
}



/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 100px;
    background: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--rust));
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    /* Starts dark at the top for readable text, fades to white at the bottom */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 65%, rgba(255, 255, 255, 1) 100%);
    z-index: 1;
}

/* Also, let's correct the video opacity to its actual max value */
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* <-- Changed from 1.5 to 1 */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    /* Changed to white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    /* Added shadow */
    margin-bottom: 24px;
    animation: fadeUp .5s ease both;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2db66a;
    box-shadow: 0 0 0 2px rgba(45, 182, 106, 0.25);
    animation: blink 2.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-logo {
    margin-bottom: 20px;
    animation: fadeUp .5s .05s ease both;
}

.hero-logo img {
    height: 75px;
}

h1.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    color: var(--white);
    /* Changed to white */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    /* Added shadow */
    margin-bottom: 12px;
    animation: fadeUp .5s .1s ease both;
}

h1.hero-title .accent {
    color: #ff8533;
}

.hero-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    /* Changed to light white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    animation: fadeUp .5s .15s ease both;
}

.hero-sub .sep {
    color: #ff8533;
    margin: 0 10px;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    /* Changed to nearly solid white */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    max-width: 580px;
    margin: 0 auto 32px;
    animation: fadeUp .5s .2s ease both;
}

.region-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeUp .5s .25s ease both;
}

.region-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(0, 0, 0, 0.4);
    /* Semi-transparent dark background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle white border */
    backdrop-filter: blur(4px);
    /* Frosted glass blur effect */
    border-radius: 4px;
    padding: 5px 12px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    animation: fadeUp .5s .3s ease both;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-secondary {
    background: var(--rust);
    color: var(--white);
}

.btn-secondary:hover {
    background: #770050;
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-ghost:hover {
    background: var(--blue-light);
}

.btn-white {
    background: var(--white);
    color: var(--blue);
}

.btn-white:hover {
    background: var(--gray-100);
}

.btn-ghost-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* STATS */
.stats-bar {
    background: var(--gray-100);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 5px;
}

/* SECTIONS */
.section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 40px;
}

.bg-gray {
    background: var(--gray-100);
}

.bg-blue {
    background: var(--blue);
}

.bg-white {
    background: var(--white);
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
    color: var(--text);
}

.section-desc {
    font-size: 0.98rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 580px;
}

.rule {
    width: 48px;
    height: 3px;
    background: var(--blue);
    margin: 14px 0 32px;
    border: none;
}

/* MODULE GRID */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 40px;
}

.module-card {
    background: var(--white);
    padding: 32px 28px;
    transition: background .2s;
}

.module-card:hover {
    background: var(--blue-light);
}

.module-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.module-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.module-list {
    list-style: none;
}

.module-list li {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 4px 0;
    padding-left: 12px;
    position: relative;
    line-height: 1.55;
}

.module-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-size: 0.75rem;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    border: 1px solid var(--border);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform .4s;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-cap {
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    border-top: 1px solid var(--border);
    background: var(--gray-100);
}

/* FRAMEWORK */
.framework-img-wrap {
    margin-top: 36px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.framework-img-wrap img {
    width: 100%;
    display: block;
}

/* ACCESS */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.access-card {
    border: 1px solid var(--border);
    padding: 36px 32px;
    background: var(--white);
}

.access-card-blue {
    background: var(--blue);
    border-color: var(--blue);
}

.access-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 18px;
}

.tag-public {
    background: rgba(45, 182, 106, 0.12);
    color: #1a8048;
    border: 1px solid rgba(45, 182, 106, 0.3);
}

.tag-restricted {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.access-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.access-title-white {
    color: var(--white);
}

.access-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 22px;
}

.access-desc-white {
    color: rgba(255, 255, 255, 0.8);
}

.access-features {
    list-style: none;
    margin-bottom: 28px;
}

.access-features li {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 5px 0;
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.access-features li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--blue);
}

.access-features-white li {
    color: rgba(255, 255, 255, 0.85);
}

.access-features-white li::before {
    color: rgba(255, 255, 255, 0.5);
}

.access-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* MODAL */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    background: var(--white);
    border: 1px solid var(--border);
    max-width: 520px;
    width: 100%;
    padding: 44px 40px;
    position: relative;
    animation: fadeUp .25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}

.modal-sub {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 28px;
    line-height: 1.5;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.form-req {
    color: var(--blue);
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px 13px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--blue);
}

.form-row textarea {
    resize: vertical;
    min-height: 90px;
}

.form-msg-error {
    display: none;
    color: var(--rust);
    font-size: 0.82rem;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.form-msg-success {
    display: none;
    background: var(--blue-light);
    border: 1px solid rgba(153, 51, 0, 0.2);
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: var(--blue-dark);
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    padding: 13px;
    border: none;
    background: var(--blue);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}

.form-submit:hover {
    background: var(--blue-dark);
}

/* FOOTER */
footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 48px 32px;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 48px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-row img {
    height: 65px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.footer-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
}

.footer-desc {
    font-size: 0.84rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-contact {
    font-size: 0.82rem;
    line-height: 2;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact strong {
    color: var(--white);
}

.footer-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-copyright strong {
    color: rgba(255, 255, 255, 0.65);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:768px) {
    nav {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .section {
        padding: 60px 20px;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .access-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal {
        padding: 28px 20px;
    }
}


/* GALLERY */
.gallery-wrapper {
    position: relative;
    margin-top: 40px;
}

.gallery-slider {
    width: 100%;
    overflow-x: auto;
    /* Allows horizontal scrolling */
    scroll-snap-type: x mandatory;
    /* Snaps cards into place */
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hides default scrollbar in IE/Edge */
    scrollbar-width: none;
    /* Hides default scrollbar in Firefox */
    padding-bottom: 20px;
    /* Room for card drop-shadows */
}

/* Hides default scrollbar in Chrome/Safari */
.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.gallery-item {
    width: 350px;
    /* Width of each card */
    flex-shrink: 0;
    background: var(--white);
    border-radius: 8px;
    /* Rounded corners from the screenshot */
    overflow: hidden;
    scroll-snap-align: start;
    /* Aligns smoothly when scrolling stops */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-cap {
    padding: 20px;
    background: var(--white);
    flex-grow: 1;
}

.gallery-cap h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.gallery-cap p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* GALLERY CONTROLS */
.gallery-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.gallery-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-400);
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}

.gallery-btn:hover:not(:disabled) {
    background: var(--white);
    border-color: var(--text);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-progress {
    width: 120px;
    height: 2px;
    background: var(--gray-200);
    margin-left: 12px;
}

.gallery-progress-bar {
    height: 100%;
    background: var(--text);
    /* Width and margin updated dynamically by JavaScript */
    transition: margin-left 0.3s ease;
}

.iti {
    position: relative;
    display: inline !important;
}