@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --clr-bg: #09111b;
    --clr-surface: #121c2a;
    --clr-primary: #d4af37;
    --clr-secondary: #00a8e8;
    --clr-text: #ffffff;
    --clr-text-muted: #abb8c3;
    --clr-accent: #f78da7;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ── Light Mode ── */
[data-theme="light"] {
    --clr-bg: #f5f6fa;
    --clr-surface: #ffffff;
    --clr-primary: #b08d27;
    --clr-text: #1b1f2e;
    --clr-text-muted: #5a6170;
    --clr-accent: #c95d7e;
    --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #8a6e1a, #2c2f3e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Light: Header & Nav ── */
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .top-bar {
    background: #f0f1f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .top-bar a {
    color: #5a6170;
}

[data-theme="light"] nav ul li a {
    color: #2c2f3e;
    opacity: 0.85;
}

[data-theme="light"] nav ul li a:hover {
    color: var(--clr-primary);
    opacity: 1;
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mega-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mega-col:first-child {
    border-right-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dropdown-menu a {
    color: #3a3f50;
}

[data-theme="light"] .dropdown-menu a:hover {
    color: var(--clr-primary);
}

/* ── Light: Buttons ── */
[data-theme="light"] .btn {
    color: #fff;
    box-shadow: 0 2px 8px rgba(176, 141, 39, 0.2);
}

[data-theme="light"] .btn-outline {
    color: var(--clr-primary);
    background: transparent;
    box-shadow: none;
}

[data-theme="light"] .btn-outline:hover {
    color: #fff;
}

/* ── Light: Service Hero ── */
[data-theme="light"] .service-hero::before {
    background: linear-gradient(to bottom,
        rgba(245, 246, 250, 0.2) 0%,
        rgba(245, 246, 250, 0.5) 60%,
        var(--clr-bg) 100%);
}

/* ── Light: Footer ── */
[data-theme="light"] footer {
    background: #1b1f2e;
    color: #ffffff;
}

[data-theme="light"] footer .text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), #e8d48b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] footer h2,
[data-theme="light"] footer h3 {
    color: #ffffff;
}

[data-theme="light"] footer p {
    color: #abb8c3;
}

[data-theme="light"] footer .contact-form input,
[data-theme="light"] footer .contact-form select,
[data-theme="light"] footer .contact-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

[data-theme="light"] footer .footer-copyright {
    color: #abb8c3;
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .footer-video-bg {
    opacity: 0.2;
}

[data-theme="light"] footer::before {
    background: rgba(27, 31, 46, 0.75);
}

[data-theme="light"] footer .social-links a {
    color: #ffffff;
}

/* ── Light: Mobile Nav ── */
@media (max-width: 768px) {
    [data-theme="light"] #main-nav {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.06);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] #main-nav > li {
        border-bottom-color: rgba(0, 0, 0, 0.04);
    }

    [data-theme="light"] .glass {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ── Theme Toggle ── */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    padding: 0 3px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--clr-primary);
}

.theme-toggle-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--clr-primary);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-thumb i {
    font-size: 9px;
    color: #09111b;
    transition: transform 0.35s ease;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(19px);
}

[data-theme="light"] .theme-toggle-thumb i {
    transform: rotate(360deg);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    will-change: backdrop-filter;
}

/* Optimize glass effect for mobile */
@media (max-width: 768px) {
    .glass {
        background: rgba(18, 28, 42, 0.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-text));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--clr-primary);
    color: var(--clr-bg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-bg);
}

.btn-primary:hover {
    background: #e6c041;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* ─── Header & Nav ─── */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #09111b;
    /* Solid premium dark background */
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.top-bar {
    background: rgba(9, 17, 27, 0.95);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.45rem 0;
    font-size: 0.78rem;
    backdrop-filter: blur(10px);
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.top-bar a {
    color: var(--clr-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-bar a:hover {
    color: var(--clr-primary);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

header.scrolled {
    background: #09111b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header.scrolled .nav-wrapper {
    padding: 0.75rem 0;
}

.logo img {
    height: 70px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

nav ul li {
    position: relative;
    padding: var(--space-sm) 0;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--clr-primary);
}

/* Dropdown */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--clr-surface);
    min-width: 250px;
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.mega-menu {
    width: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 1.5rem 0;
}

.mega-col {
    padding: 0 1.5rem;
}

.mega-col:first-child {
    border-right: 1px solid var(--glass-border);
}

nav ul li:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-title {
    color: var(--clr-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-title i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.dropdown-menu ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.45rem 0;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: var(--clr-text-muted);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    color: var(--clr-primary);
    padding-left: 6px;
}

/* ─── Service Page Hero ─── */
.gif-container {
    transform: translateZ(0);
    will-change: transform;
}

.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
    will-change: transform;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--clr-bg) 0%, rgba(9, 17, 27, 0.7) 40%, rgba(9, 17, 27, 0.3) 100%);
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 0;
    font-weight: 800;
}

/* ─── Service Content ─── */
.service-content {
    padding: var(--space-xl) 0;
}

.service-content .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.service-main h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

.service-main h3 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

.service-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.service-main .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-main .benefits-list li {
    font-size: 1.05rem;
    padding: 0.85rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--clr-text);
    border-bottom: 1px solid var(--glass-border);
    line-height: 1.6;
}

.service-main .benefits-list li:last-child {
    border-bottom: none;
}

.service-main .benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--clr-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

/* ─── Sidebar ─── */
.service-sidebar {
    position: sticky;
    top: 140px;
}

.sidebar-card {
    background: var(--clr-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: var(--clr-primary);
    padding-left: 0.5rem;
}

.sidebar-cta {
    text-align: center;
}

.sidebar-cta p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sidebar-cta .btn {
    width: 100%;
    text-align: center;
}

/* ─── CTA Section ─── */
.service-cta {
    padding: var(--space-lg) 0 var(--space-xl);
}

.cta-box {
    background: var(--clr-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}



/* ─── Flightline Command Services Grid ─── */
.command-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.command-service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.command-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.command-service-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(180deg, rgba(9, 17, 27, 0.4) 0%, transparent 100%);
}

.command-service-card h4 {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--clr-primary);
}

.command-service-card p {
    padding: 0 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    flex: 1;
}

@media (max-width: 576px) {
    .command-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Hamburger ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--clr-primary);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.25s ease;
}

.hamburger span:nth-child(1) {
    top: 13px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 29px;
}

.hamburger.is-active span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .service-content .content-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.4rem 0;
    }

    .top-bar-content {
        justify-content: center;
        gap: 1.25rem;
        font-size: 0.72rem;
    }

    .top-bar a {
        gap: 0.3rem;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    nav {
        width: 100%;
        order: 3;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 55px;
    }



    /* Mobile dropdown toggle */
    .has-dropdown>.dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .has-dropdown>.dropdown-toggle .dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .has-dropdown.open>.dropdown-toggle .dropdown-arrow {
        transform: rotate(180deg);
    }

    .has-dropdown.open>.dropdown-toggle {
        color: var(--clr-primary);
        background: rgba(212, 175, 55, 0.05);
    }



    .has-dropdown.open>.dropdown-menu {
        max-height: 800px !important;
        overflow: visible !important;
    }

    .service-hero {
        min-height: 45vh;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .service-hero h1 {
        font-size: 1.8rem;
    }

    .service-content {
        padding: var(--space-lg) 0;
    }

    .service-main p {
        font-size: 1rem;
    }

    .service-main .benefits-list li {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        padding-left: 1.75rem;
    }

    .cta-box {
        padding: var(--space-md);
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .btn {
        padding: 0.9rem 2rem;
        min-height: 48px;
    }
}

@media (max-width: 576px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.2rem;
        align-items: center;
        font-size: 0.68rem;
    }

    .service-hero {
        min-height: 40vh;
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .service-hero h1 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .service-main h2 {
        font-size: 1.5rem;
    }

    .service-main p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .service-main .benefits-list li {
        font-size: 0.9rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ─── Footer ─── */
footer {
    padding: 80px 0 8px;
    background: var(--clr-bg);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Footer video background */
.footer-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    z-index: 0;
    pointer-events: none;
}

footer>.container,
footer>.footer-video-bg~* {
    position: relative;
    z-index: 1;
}

/* Dark overlay on top of the video */
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 0;
    pointer-events: none;
}

footer>.container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 8px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 80px;
}

.veteran-badge {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
    color: var(--clr-text-muted);
    margin: 0;
}

.footer-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--clr-surface);
    border: 1px solid var(--glass-border);
    color: var(--clr-text);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: var(--clr-text);
}

.social-links a:hover {
    background: var(--clr-accent);
    transform: translateY(-3px);
    color: var(--clr-bg);
}

.social-links i {
    font-size: 20px;
}

/* Social Section Headings */
.social-section {
    text-align: center;
}

.social-subtitle {
    color: var(--clr-accent);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.social-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

/* Contact Form Select Styling */
.contact-form select {
    padding: 1rem;
    background: var(--clr-surface);
    border: 1px solid var(--glass-border);
    color: var(--clr-text);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 3rem;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.contact-form select option {
    background: var(--clr-surface);
    color: var(--clr-text);
    padding: 0.5rem;
}

.contact-form select optgroup {
    background: var(--clr-bg);
    color: var(--clr-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Submit button with animated paper plane icon */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: visible;
}
.submit-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.submit-btn__svg {
    overflow: visible;
}
.submit-btn__plane {
    transform-origin: center;
    transform: translate(0, 0) scale(1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.submit-btn:hover .submit-btn__plane,
.submit-btn:focus-visible .submit-btn__plane {
    transform: translate(3px, -3px) scale(0.8);
}
.submit-btn__line {
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.submit-btn:hover .submit-btn__line--1,
.submit-btn:focus-visible .submit-btn__line--1 {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 0.1s;
}
.submit-btn:hover .submit-btn__line--2,
.submit-btn:focus-visible .submit-btn__line--2 {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 0.2s;
}
.submit-btn:hover .submit-btn__line--3,
.submit-btn:focus-visible .submit-btn__line--3 {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 0.3s;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

    /* Footer bottom: social icons + veteran badge on one row, copyright below */
    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
        padding: 12px 16px;
    }
    .footer-bottom-left {
        display: contents;
    }
    .footer-bottom-right {
        display: contents;
    }
    .footer-bottom .social-links {
        order: 1;
        flex: 0 0 auto;
        justify-content: center;
        gap: 0.75rem;
    }
    .footer-bottom .veteran-badge {
        order: 2;
        flex: 0 0 auto;
        width: 48px;
        height: auto;
    }
    .footer-divider {
        display: none;
    }
    .footer-bottom .footer-copyright {
        order: 3;
        flex: 0 0 100%;
        text-align: center;
        margin: 4px 0 0;
    }

    .footer-content,
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    .footer-content {
        padding: 0 15px;
    }

    .contact-container>div {
        text-align: center;
    }

    .contact-container h2 {
        font-size: 2rem;
    }

    .footer-logo {
        max-width: 100px;
        margin-bottom: 1rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100%;
        font-size: 16px;
        margin-bottom: 0.25rem;
    }

    .contact-form .btn {
        width: 100%;
        text-align: center;
        min-height: 48px;
    }

    .section-padding {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 40px 0 16px;
    }

    .contact-container h2 {
        font-size: 1.6rem;
    }

    .footer-logo {
        max-width: 70px;
    }

    .veteran-badge {
        width: 50px;
        height: auto;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-title {
        font-size: 1.4rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
        padding: 0.85rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .service-hero {
        min-height: 35vh;
        padding-top: 80px;
        padding-bottom: 25px;
    }

    .service-hero h1 {
        font-size: 1.25rem;
    }

    .service-main h2 {
        font-size: 1.3rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .cta-box h2 {
        font-size: 1.2rem;
    }

    .sidebar-card {
        padding: 1.25rem;
    }

    .logo img {
        height: 50px;
    }
}

/* ─── Utility: Touch-friendly targets ─── */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .sidebar-nav li a {
        padding: 0.85rem 0;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    nav ul li a {
        padding: 0.75rem 0;
    }
}

/* On mobile, fix the header when nav is open so the panel overlays the page */
@media (max-width: 768px) {
    body.nav-open #main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }
    .dock-pill-wrap.nav-open {
        padding-top: 100px;
    }
}

@media (max-width: 576px) {
    .dock-pill-wrap.nav-open {
        padding-top: 126px; /* top-bar stacks to 2 lines at this breakpoint */
    }
}

/* ─── Reduce motion for accessibility ─── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.section-padding {
    padding: var(--space-xl) 0;
}
/* ======================================================================
   LIQUID GOLD NAVIGATION DOCK -- Shared by index.css and service.css
   ====================================================================== */

/* Hidden SVG filter element */
.dock-goo-svg {
    position: absolute;
    height: 0;
    width: 0;
    visibility: hidden;
    pointer-events: none;
}

/* -- Header overrides ------------------------------------------------- */
#main-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
}
#main-header.scrolled {
    background: transparent !important;
}

/* -- Dock nav row ------------------------------------------------------ */
.dock-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.75rem 2rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Logo — absolute left on desktop */
.dock-logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    text-decoration: none;
}
.dock-logo img {
    height: 54px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s ease;
}
.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---- Pill wrapper ---------------------------------------------------- */
.dock-pill-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.02);
    padding: 6px;
    transition: box-shadow 0.35s ease;
}
.dock-pill-wrap:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(212, 175, 55, 0.25),
                0 0 24px rgba(212, 175, 55, 0.12);
}

/* ── Sliding Golden Ring Indicator ───────────────────────────── */
.dock-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 62px;
    height: 62px;
    left: 6px;
    z-index: 1;
    pointer-events: none;
    transition: left 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
                opacity 0.3s ease;
}

/* Layer 1: Glow — blurred warm gold behind the ring */
.dock-ind-glow {
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    background: #e8af48;
    opacity: 0.15;
    filter: blur(14px);
}

/* Layer 2: Clip container */
.dock-ind-clip {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
}

/* Layer 3: Rotating conic-gradient — gold-dominant, 2 white hotspots, subtle pink/blue iridescence */
.dock-ind-ring {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #533517 0%,
        #c49746 7%,
        #feeaa5 14%,
        #ffffff 21%, #ffffff 24%,
        #ffc0cb 25%, #ffc0cb 26.5%,
        #7eb8da 27%, #7eb8da 28.5%,
        #feeaa5 30%,
        #c49746 37%,
        #533517 44%,
        #ffffff 47%, #ffffff 50%,
        #533517 50%,
        #c49746 57%,
        #feeaa5 64%,
        #ffffff 71%, #ffffff 74%,
        #ffc0cb 75%, #ffc0cb 76.5%,
        #7eb8da 77%, #7eb8da 78.5%,
        #feeaa5 80%,
        #c49746 87%,
        #533517 94%,
        #ffffff 97%, #ffffff 100%
    );
    animation: dock-ring-spin 4.5s linear infinite;
}
@keyframes dock-ring-spin {
    to { transform: rotate(360deg); }
}

/* Layer 4: Inner plate — inset 2px, only 2px of ring visible */
.dock-ind-plate {
    position: absolute;
    inset: 2px;
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.92);
}

/* ── Film grain noise overlay ──────────────────────────────── */
.dock-grain {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Radial ambient glow ───────────────────────────────────── */
.dock-ambient {
    position: absolute;
    inset: -24px;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
}

.dock-pill-items {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.dock-sep {
    display: list-item;
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    align-self: center;
    list-style: none;
    pointer-events: none;
}

.dock-item {
    position: relative;
    list-style: none;
    padding: 0;
}

.dock-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 70px;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0;
    opacity: 1;
    color: inherit;
    font-size: inherit;
    letter-spacing: normal;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-family: inherit;
}

/* -- Icons & labels ---------------------------------------------------- */
.dock-btn > i {
    position: relative;
    z-index: 30;
    font-size: 19px;
    color: #555555;
    line-height: 1;
    translate: var(--dock-mx, 0px) var(--dock-my, 0px);
    transition: color 0.3s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                translate 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.3s ease;
}
.dock-item.active .dock-btn > i {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
    transform: scale(1.12) translateY(-1px);
}
.dock-item:not(.active) .dock-btn:hover > i {
    color: #d4af37;
    transform: scale(1.22) translateY(-3px);
}

.dock-label {
    position: relative;
    z-index: 30;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #4a4a4a;
    line-height: 1;
    margin-top: 4px;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.dock-label .dropdown-arrow {
    font-size: 5.5px;
    margin-left: 2px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}
.dock-item.active .dock-label {
    color: #ffffff;
}
.dock-item:not(.active) .dock-btn:hover .dock-label {
    color: #d4af37;
}

.dock-item.has-dropdown:hover .dropdown-arrow,
.dock-item.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dock-item .dropdown-menu {
    top: calc(100% + 10px);
}

/* Hover bridge — fills the gap between the dock button and the dropdown so
   moving the cursor downward never loses :hover and prematurely closes the menu */
.dock-item.has-dropdown {
    position: relative;
}
.dock-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 16px; /* matches top: calc(100% + 10px) gap + buffer */
}

/* CTA (Quote) special colours */
.dock-cta-item:not(.active) .dock-btn > i  { color: #9a7820; }
.dock-cta-item:not(.active) .dock-label    { color: #9a7820; }
.dock-cta-item:not(.active) .dock-btn:hover > i  { color: #d4af37; }
.dock-cta-item:not(.active) .dock-btn:hover .dock-label { color: #d4af37; }

/* -- Theme toggle item ------------------------------------------------- */
.dock-theme-item .theme-toggle {
    width: 72px !important;
    height: 70px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* Crossfade icon container */
.theme-toggle-icons {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}
.theme-icon-dark,
.theme-icon-light {
    position: absolute;
    font-size: 19px;
    line-height: 1;
    color: #555555;
    transition: opacity 0.35s ease,
                transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
                color 0.3s ease;
    translate: var(--dock-mx, 0px) var(--dock-my, 0px);
}

/* Dark mode default: moon visible, sun hidden */
.theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.theme-icon-light {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Light mode: sun visible, moon hidden */
[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.dock-theme-item .theme-toggle:hover .theme-icon-dark,
.dock-theme-item .theme-toggle:hover .theme-icon-light {
    color: #d4af37;
}

.dock-theme-item .dock-label { margin-top: 4px; }

/* -- Theme bounce animation ------------------------------------------- */
@keyframes dock-theme-bounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.theme-toggle.is-bouncing .theme-toggle-icons {
    animation: dock-theme-bounce 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* -- Light theme overrides -------------------------------------------- */
[data-theme="light"] .dock-pill-wrap {
    background: rgba(255,255,255,0.65);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .dock-ind-plate  { background: rgba(255,255,255,0.92); }
[data-theme="light"] .dock-btn > i     { color: #1b1f2e; }
[data-theme="light"] .dock-label       { color: #1b1f2e; }
[data-theme="light"] .dock-sep         { background: rgba(0,0,0,0.1); }
[data-theme="light"] .dock-item.active .dock-btn > i    { color: #1b1f2e; }
[data-theme="light"] .dock-item.active .dock-label       { color: #1b1f2e; }
[data-theme="light"] .dock-cta-item:not(.active) .dock-btn > i,
[data-theme="light"] .dock-cta-item:not(.active) .dock-label { color: #b8930a; }
[data-theme="light"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light { color: #1a1a1a; }
[data-theme="light"] .dock-theme-item .theme-toggle:hover .theme-icon-dark,
[data-theme="light"] .dock-theme-item .theme-toggle:hover .theme-icon-light { color: #d4af37; }

/* -- Dropdown menus ---------------------------------------------------- */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: #111111;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1rem;
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
    transform: translateX(-50%) translateY(-6px);
}
.dock-item:hover .dropdown-menu,
.dock-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(0);
}
.mega-menu {
    display: flex;
    gap: 0;
    min-width: 480px;
}
.mega-col {
    flex: 1;
    padding: 0.25rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.mega-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #d4af37;
    margin: 0 0 0.65rem 0;
}
.mega-title i { margin-right: 5px; opacity: 0.8; }
.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mega-col ul li a {
    display: block;
    padding: 0.3rem 0.5rem;
    font-size: 11.5px;
    color: #cccccc;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.mega-col ul li a:hover {
    background: rgba(212,175,55,0.12);
    color: #d4af37;
}
[data-theme="light"] .dropdown-menu {
    background: rgba(255,255,255,0.98);
    border-color: rgba(212,175,55,0.25);
}
[data-theme="light"] .mega-col ul li a { color: #555555; }
[data-theme="light"] .mega-col ul li a:hover { background: rgba(212,175,55,0.1); color: #9a7820; }


/* ---- Mobile (max-width 768px) --------------------------------------- */
@media (max-width: 768px) {
    .dock-nav-row {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.7rem 1rem;
    }
    .dock-logo {
        position: relative;
        transform: none;
        order: 1;
        z-index: 1000;
    }
    .dock-logo img { height: 44px; }
    .hamburger {
        display: flex;
        order: 2;
        position: relative;
        z-index: 1000;
    }
    .dock-pill-wrap {
        display: none;
        order: 3;
        width: 100%;
        border-radius: 16px;
        padding: 0;
        background: #111111;
        transform: none !important;
    }
    .dock-pill-wrap:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02); }
    .dock-indicator { display: none; }
    .dock-grain { display: none; }
    .dock-ambient { display: none; }
    .dock-pill-items {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }
    .dock-pill-wrap.nav-open  { display: block; position: fixed; top: 0; left: 0; right: 0; padding-top: 100px; max-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 0 0 16px 16px; z-index: 999; }
    .dock-pill-items.nav-open { display: flex; }
    .dock-sep { display: none; }
    .dock-item {
        width: 100%;
    }
    .dock-btn {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.9rem 1.5rem;
        gap: 0.75rem;
    }
    .dock-btn > i {
        font-size: 16px;
        translate: 0px 0px !important;
    }
    .dock-label {
        font-size: 0.88rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: none;
        color: var(--clr-text, #fff);
        margin-top: 0;
    }
    .dock-item.active .dock-btn > i    { color: var(--clr-primary, #d4af37); filter: none; transform: none; }
    .dock-item.active .dock-label      { color: var(--clr-primary, #d4af37); }
    .dock-theme-item .theme-toggle {
        height: auto !important;
        width: 100% !important;
        padding: 0.9rem 1.5rem !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 0.75rem !important;
    }
    .dock-theme-item .theme-toggle-icons { width: auto; height: auto; }
    .theme-icon-dark, .theme-icon-light { font-size: 15px; position: relative; }
    .theme-icon-light { display: none; }
    [data-theme="light"] .theme-icon-dark { display: none; opacity: 1; transform: none; }
    [data-theme="light"] .theme-icon-light { display: block; opacity: 1; transform: none; }

    /* Mobile dropdown accordion */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border: none;
        border-radius: 0;
        background: rgba(255,255,255,0.04);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s cubic-bezier(0.23,1,0.32,1), opacity 0.3s ease;
    }
    .dock-item.open .dropdown-menu {
        max-height: 600px;
        transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1);
    }
    /* Prevent touch :hover from applying desktop position/transform side-effects */
    .dock-item:hover .dropdown-menu,
    .dock-item.open .dropdown-menu {
        transform: none;
        position: static;
    }
    /* Hide hover bridge on mobile — not needed */
    .dock-item.has-dropdown::after {
        display: none;
    }
    .mega-menu {
        flex-direction: column;
        min-width: unset;
    }
    .mega-col {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 0.5rem 1.5rem;
    }
    .mega-col ul li a {
        padding: 0.45rem 0.5rem;
        font-size: 12.5px;
    }
}

/* Taller top-bar at 576px (stacks to 2 lines) needs more padding-top on the overlay panel */
@media (max-width: 576px) {
    .dock-pill-wrap.nav-open {
        padding-top: 126px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MERCURY DRAWER
   Slides in from the left on ≤ 768px. Desktop dock untouched.
═══════════════════════════════════════════════════════════════ */

.mobile-goo-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    visibility: hidden;
}

#mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

#mobile-drawer-backdrop.mdr-backdrop-on { opacity: 1; pointer-events: auto; }

#mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 90vw);
    height: 100dvh;
    background: #05070a;
    z-index: 1200;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    box-shadow: 6px 0 48px rgba(0, 0, 0, 0.7);
}

#mobile-drawer.mdr-open { transform: translateX(0); }

.mdr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    z-index: 20;
    background: #05070a;
}

.mdr-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    gap: 0.65rem;
}

.mdr-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.92;
}

.mdr-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    gap: 1px;
}

.mdr-brand-name {
    color: #3b82f6;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mdr-brand-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.32em;
    opacity: 0.42;
    color: #fff;
    text-transform: uppercase;
}

.mdr-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mdr-close:hover { color: #fff; }

.mdr-nav {
    display: block;
}

.mdr-goo-zone {
    position: relative;
    padding: 0.6rem 0.6rem 0.3rem;
}

.mdr-pill {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    height: 52px;
    top: 0.6rem;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
    z-index: 0;
    overflow: hidden;
    transition:
        top    0.48s cubic-bezier(0.34, 1.56, 0.64, 1),
        height 0.48s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease;
    pointer-events: none;
    opacity: 0;
}

.mdr-pill-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.35), transparent);
    width: 50%;
    transform: skewX(-12deg);
    animation: mdr-shimmer 2.8s linear infinite;
}

@keyframes mdr-shimmer {
    from { left: -55%; }
    to   { left: 155%; }
}

.mdr-pill-edge {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f59e0b;
    border-radius: 14px 0 0 14px;
}

.mdr-item { position: relative; }

.mdr-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: none;
    border: none;
    text-decoration: none;
    color: rgba(161, 161, 170, 1);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    border-radius: 14px;
    transition: color 0.18s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    background: transparent;
}

.mdr-btn > i:first-child {
    font-size: 1.05rem;
    width: 20px;
    flex-shrink: 0;
    color: rgba(113, 113, 122, 1);
    transition: color 0.18s;
}

.mdr-btn > span { flex: 1; }

.mdr-chevron {
    font-size: 0.65rem;
    margin-left: auto;
    transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.mdr-item.mdr-active > .mdr-btn,
.mdr-item.mdr-active > .mdr-btn > i:first-child { color: #111 !important; }

.mdr-item.mdr-sub-open > .mdr-btn .mdr-chevron { transform: rotate(180deg); }

.mdr-sub-zone { flex-shrink: 0; }

.mdr-submenu {
    display: none;
    padding: 0.4rem 1rem 0.5rem 2.75rem;
    position: relative;
    z-index: 10;
}

.mdr-submenu.mdr-sub-open {
    display: block;
}

.mdr-sub-title-gap {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mdr-sub-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mdr-sub-title i { font-size: 0.68rem; opacity: 0.85; }

.mdr-submenu > a {
    display: block;
    padding: 0.32rem 0;
    font-size: 0.81rem;
    color: rgba(113, 113, 122, 1);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s, padding-left 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.mdr-submenu > a:hover,
.mdr-submenu > a:active { color: #d4af37; padding-left: 5px; }

.mdr-footer {
    padding: 0.85rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mdr-theme-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: none;
    border: none;
    color: rgba(113, 113, 122, 1);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s;
}

.mdr-theme-btn:hover { color: #fff; }
.mdr-theme-btn .theme-icon-dark,
.mdr-theme-btn .theme-icon-light { font-size: 1.05rem; }

[data-theme="light"] #mobile-drawer        { background: #f4f4f5; }
[data-theme="light"] .mdr-header           { background: #f4f4f5; border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .mdr-brand-name       { color: #2563eb; }
[data-theme="light"] .mdr-brand-sub        { color: #333; }
[data-theme="light"] .mdr-close            { color: rgba(0,0,0,0.45); }
[data-theme="light"] .mdr-close:hover      { color: #000; }
[data-theme="light"] .mdr-btn              { color: rgba(63, 63, 70, 1); }
[data-theme="light"] .mdr-btn > i:first-child { color: rgba(113,113,122,1); }
[data-theme="light"] .mdr-pill             { background: #18181b; box-shadow: 0 0 24px rgba(0,0,0,0.2); }
[data-theme="light"] .mdr-item.mdr-active > .mdr-btn,
[data-theme="light"] .mdr-item.mdr-active > .mdr-btn > i:first-child { color: #fff !important; }
[data-theme="light"] .mdr-submenu > a        { color: rgba(100,100,100,1); }
[data-theme="light"] .mdr-footer           { border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .mdr-theme-btn        { color: rgba(100,100,100,1); }
[data-theme="light"] .mdr-theme-btn:hover  { color: #000; }

@media (max-width: 768px) {
    #mobile-drawer          { display: block; }
    #mobile-drawer-backdrop { display: block; }
}
