/* ===== NAVI ENGINEERS - BRAND THEME ===== */
:root {
    /* Brand Colors (extracted from logo) */
    --navy-primary: #0F2A5C;      /* Deep navy from logo text */
    --navy-dark: #081A3D;          /* Darker navy for depth */
    --navy-light: #1E3D7A;         /* Lighter navy for hover */
    --amber: #E8873A;              /* Lighthouse lantern orange */
    --amber-light: #F5A05A;        /* Amber hover state */
    --sky-blue: #4A90C2;           /* Lighthouse glass accent */
    --cream: #F7F5F0;              /* Background cream */
    --concrete: #ECEAE4;           /* Card/border neutral */
    --text-dark: #0F2A5C;          /* Body text uses navy */
    --text-muted: #4A5568;         /* Muted navy-gray */
    --border-color: #E0DDD6;

    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

h1, h2, h3, h4, .heading-font {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container { max-width: 1280px; }
.section-padding { padding: 80px 0; }
.bg-light-custom { background: #EFEDE7; }

.text-accent { color: var(--amber) !important; }
.text-navy { color: var(--navy-primary) !important; }

.text-muted-custom {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-muted-small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.link-accent {
    color: var(--amber);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.link-accent:hover { color: var(--amber-light); text-decoration: underline; }

/* ===== TYPOGRAPHY ===== */
.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 12px;
}
.section-title span { color: var(--amber); }

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--amber);
    border: none;
    padding: 14px 38px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 24px rgba(232, 135, 58, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.btn-primary-custom:hover {
    background: var(--amber-light);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(232, 135, 58, 0.4);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--navy-primary);
    padding: 12px 34px;
    border-radius: 60px;
    font-weight: 600;
    color: var(--navy-primary);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-outline-custom:hover {
    background: var(--navy-primary);
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    border: none;
}
.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.btn-call {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}
.btn-call:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.btn-nav-cta {
    background: var(--amber);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}
.btn-nav-cta:hover {
    background: var(--amber-light);
    color: #fff !important;
    transform: scale(1.02);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(15, 42, 92, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand img {
    height: 52px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.brand-text strong {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.brand-text small {
    font-weight: 400;
    font-size: 0.68rem;
    color: #B8C5DC;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: #D6DEEC !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--amber);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.15);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(214, 222, 236, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--navy-dark);
    margin-top: -80px;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        transparent 20%,
        transparent 70%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Only darken the left side — right side stays clear */
    background: linear-gradient(
        to right,
        rgba(8, 26, 61, 0.55) 0%,
        rgba(8, 26, 61, 0.35) 35%,
        rgba(8, 26, 61, 0.10) 60%,
        rgba(8, 26, 61, 0) 85%
    );
    z-index: 1;
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    color: #fff;
    animation: fadeUp 0.9s ease forwards;
}

.slide-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.slide-content h1 span {
    color: var(--amber);
    border-bottom: 4px solid var(--amber);
    padding-bottom: 2px;
}
.slide-content p {
    font-size: 1.2rem;
    color: #D6DEEC;
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Slider controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 18px;
    align-items: center;
}
.slider-dots { display: flex; gap: 12px; }
.dot {
    width: 14px; height: 14px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}
.dot.active { background: var(--amber); width: 38px; }

.slider-arrow {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover {
    background: rgba(232, 135, 58, 0.35);
    border-color: var(--amber);
}

.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounceDown 2s infinite;
}
.scroll-indicator i { font-size: 1.2rem; }

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-slide {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}
.scroll-slide.slide-left { transform: translateX(-80px); }
.scroll-slide.slide-right { transform: translateX(80px); }
.scroll-slide.slide-top { transform: translateY(-80px); }
.scroll-slide.slide-bottom { transform: translateY(80px); }
.scroll-slide.visible { opacity: 1; transform: translate(0, 0); }

/* ===== STATS ===== */
.stats-section { padding-top: 40px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--navy-primary);
    padding: 50px 40px;
    border-radius: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-grid::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(232, 135, 58, 0.15), transparent 70%);
    pointer-events: none;
}

.stat-item { text-align: center; position: relative; z-index: 1; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--amber);
    letter-spacing: -0.02em;
}
.stat-label {
    color: #B8C5DC;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== QUOTE BLOCK ===== */
.quote-block {
    background: var(--concrete);
    border-radius: 40px;
    padding: 40px;
    position: relative;
}
.quote-icon {
    font-size: 2.5rem;
    color: var(--amber);
    opacity: 0.4;
}
.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--navy-primary);
    margin-top: 10px;
    line-height: 1.6;
}
.quote-author { font-weight: 600; margin-top: 16px; color: var(--navy-primary); }
.quote-project { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: 0 8px 28px rgba(15, 42, 92, 0.04);
    border: 1px solid var(--concrete);
    transition: 0.25s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(15, 42, 92, 0.12);
    border-color: #D6CFC2;
}
.card-icon {
    font-size: 2.6rem;
    color: var(--amber);
    margin-bottom: 16px;
}
.card-title { font-size: 1.3rem; margin-bottom: 10px; color: var(--navy-primary); }
.card-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== PROJECT CARDS ===== */
.project-card {
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: 0.2s;
    height: 100%;
}
.project-card:hover {
    box-shadow: 0 20px 32px -12px rgba(15, 42, 92, 0.12);
    transform: translateY(-4px);
}
.project-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.project-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--amber);
    color: #fff;
    padding: 4px 16px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.75rem;
}
.project-info { padding: 24px; }
.project-info h4 { font-size: 1.2rem; margin-bottom: 4px; color: var(--navy-primary); }
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 12px;
}
.project-meta i { color: var(--amber); width: 18px; }
.project-info p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== PROCESS STEPS ===== */
.process-step {
    background: #fff;
    border-radius: 24px;
    padding: 24px 20px;
    border-top: 6px solid var(--amber);
    box-shadow: 0 4px 12px rgba(15, 42, 92, 0.04);
    text-align: center;
    height: 100%;
}
.step-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #C9D2E0;
    margin-bottom: 4px;
}
.process-step h4 { font-size: 1.1rem; color: var(--navy-primary); }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== TESTIMONIALS ===== */
.testimonial {
    background: #fff;
    border-radius: 28px;
    padding: 28px 24px;
    border: 1px solid var(--concrete);
}
.testimonial i {
    color: var(--amber);
    font-size: 1.6rem;
    opacity: 0.4;
    margin-bottom: 12px;
}
.testimonial .author {
    margin-top: 18px;
    font-weight: 600;
    border-top: 1px solid var(--concrete);
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-primary);
}
.author-avatar {
    width: 44px; height: 44px;
    background: var(--navy-primary);
    color: #fff;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--navy-primary);
    border-radius: 40px;
    padding: 60px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    bottom: -40%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232, 135, 58, 0.2), transparent 70%);
}
.cta-section h2 {
    color: #fff;
    font-size: 2.2rem;
    max-width: 500px;
    position: relative;
    z-index: 1;
}
.cta-section h2 span { color: var(--amber); }
.cta-section > div { position: relative; z-index: 1; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.contact-info-item i {
    color: var(--amber);
    font-size: 1.3rem;
    width: 28px;
    margin-top: 4px;
}
.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--navy-primary);
}
.contact-info-item p { color: var(--text-muted); }

.contact-form input,
.contact-form textarea,
.contact-form select,
.quote-form input,
.quote-form textarea,
.quote-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--cream);
    transition: 0.2s;
    margin-bottom: 16px;
    color: var(--navy-primary);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(232, 135, 58, 0.12);
}
.contact-form textarea,
.quote-form textarea { height: 120px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== QUOTE FORM ===== */
.quote-form {
    background: #fff;
    border-radius: 40px;
    padding: 50px;
    border: 1px solid var(--border-color);
}
.file-upload {
    border: 2px dashed #C9D2E0;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 16px;
}
.file-upload:hover {
    border-color: var(--amber);
    background: var(--cream);
}
.file-upload i {
    font-size: 2rem;
    color: var(--amber);
    display: block;
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0 24px;
    border-top: 1px solid #D6CFC2;
    color: var(--text-muted);
    background: var(--cream);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--navy-primary);
    padding: 140px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232, 135, 58, 0.15), transparent 70%);
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.page-header p {
    color: #B8C5DC;
    font-size: 1.1rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .slide-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .hero-slider {
        height: 100vh;
        min-height: 500px;
        margin-top: -70px;
    }
    .slide-content h1 { font-size: 2.4rem; }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    .contact-grid { grid-template-columns: 1fr; padding: 24px; }
    .quote-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .cta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 40px 24px;
    }
    .slider-arrow { width: 40px; height: 40px; font-size: 1rem; }
    .scroll-indicator { bottom: 80px; }
    .page-header h1 { font-size: 2.2rem; }
    .page-header { padding: 110px 0 40px; }
    .hero-buttons .btn-whatsapp,
    .hero-buttons .btn-call { padding: 12px 24px; font-size: 0.9rem; }
    .navbar-brand img { height: 42px; }
    .brand-text strong { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .slide-content h1 { font-size: 2rem; }
    .cta-section h2 { font-size: 1.6rem; }
}

.brand-tagline-badge {
    display: inline-block;
    background: rgba(232, 135, 58, 0.15);
    border: 1px solid rgba(232, 135, 58, 0.4);
    color: var(--amber);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.stat-number {
    color: #ffffff !important;
}

/* =========================================
   MODERN ENGINEERING FOOTER
========================================= */

.footer {
    background: #0b2236;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* -----------------------------------------
   BRAND
----------------------------------------- */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-company {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.15px;
}

.footer-copy {
    margin-top: 2px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
}

/* -----------------------------------------
   SOCIAL ICONS
----------------------------------------- */

.footer-social {
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-social a {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.035);

    font-size: 11px;
    text-decoration: none;

    transition: 0.25s ease;
}

.footer-social a:hover {
    color: #ffffff;
    background: #159fe3;
    border-color: #159fe3;
    transform: translateY(-2px);
}

/* -----------------------------------------
   TAGLINE
----------------------------------------- */

.footer-tagline {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.footer-tagline b {
    color: #ff9d1c;
    font-size: 14px;
    font-weight: 400;
}

/* -----------------------------------------
   MOBILE
----------------------------------------- */

@media (max-width: 768px) {

    .footer-inner {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 25px;
    }

    .footer-brand {
        width: 100%;
        justify-content: center;
    }

    .footer-social {
        order: 2;
    }

    .footer-tagline {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .footer-inner {
        gap: 8px;
    }

    .footer-logo {
        width: 28px;
        height: 28px;
    }

    .footer-company {
        font-size: 12px;
    }

    .footer-tagline {
        font-size: 10px;
    }
}

/* ===== MOBILE NAV FIXES ===== */

/* Give collapsed menu its own solid background so links are visible immediately */
@media (max-width: 991.98px) {
    .navbar {
        z-index: 1030; /* Bootstrap fixed-top default, ensure it's above hero */
    }

    .navbar-collapse {
        background: var(--navy-dark);          /* solid navy panel */
        margin-top: 12px;
        padding: 16px 20px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        /* Prevent clipping issues */
        overflow: visible;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    /* Remove the underline-border look on mobile, use left border instead */
    .navbar-nav .nav-link {
        padding: 12px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-left: 3px solid transparent;
        transition: 0.2s;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
        border-left-color: var(--amber);
        padding-left: 12px;
        color: #fff !important;
    }

    /* CTA button inside collapsed menu should be full-width */
    .navbar-nav .btn-nav-cta {
        display: block;
        text-align: center;
        margin-top: 8px;
        padding: 12px 24px;
    }

    /* Prevent backdrop-filter from creating stacking issues on iOS */
    .navbar {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

/* Smooth slide-down animation for the collapsed menu */
.navbar-collapse.collapsing {
    transition: height 0.3s ease;
}


/* ===== VIDEO SLIDE ===== */
.slide.slide-video {
    padding: 0;                     /* full-bleed video */
    background: #000;
    overflow: hidden;
    position: relative;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* ===== VIDEO OVERLAY (much lighter) ===== */
.video-overlay {
    position: absolute;
    inset: 0;
    background:
        /* Left-side gradient for text readability */
        linear-gradient(
            to right,
            rgba(8, 26, 61, 0.60) 0%,
            rgba(8, 26, 61, 0.35) 40%,
            rgba(8, 26, 61, 0.10) 65%,
            rgba(8, 26, 61, 0) 85%
        ),
        /* Barely-there global darkening so bright whites don't glare */
        rgba(0, 0, 0, 0.10);
    z-index: 1;
    pointer-events: none;
}

/* Content sits above video */
.slide.slide-video .slide-content {
    position: relative;
    z-index: 2;
    padding: 0 8%;
    margin: 0;
    max-width: 780px;
}

/* Video pause/play control (bottom-right of slide) */
.video-control {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

.video-control:hover {
    background: var(--amber);
    border-color: var(--amber);
    transform: scale(1.08);
}

/* On smaller screens, place video control above the slider arrows */
@media (max-width: 768px) {
    .video-control {
        bottom: 130px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Fallback: if video doesn't load, poster image shows */
.hero-video:not([data-loaded="true"]) {
    opacity: 0.9;
}


/* ===== TEXT READABILITY (works with light overlay) ===== */
.slide-content h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.slide-content p {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Alternative: soft dark backdrop behind the text block only */
.slide.slide-video .slide-content::before {
    content: '';
    position: absolute;
    inset: -20px -40px;
    background: radial-gradient(
        ellipse at left center,
        rgba(8, 26, 61, 0.4) 0%,
        transparent 70%
    );
    z-index: -1;
    pointer-events: none;
}