/* ================================================================
   RESET & VARIABLES
   ================================================================ */
:root {
    --clr-bg: #F8FAFC;
    --clr-surface: #FFFFFF;
    --clr-card: #FFFFFF;
    --clr-text: #334155;
    --clr-heading: #0F172A;
    --clr-accent: #3B82F6;
    --clr-accent-glow: rgba(59, 130, 246, 0.5);
    --clr-border: #E2E8F0;
    --clr-blue: #EFF6FF;
    --clr-dark: #0A1A2A;
    --clr-white: #FFFFFF;
    --clr-red: #EF4444;

    /* Font Families */
    --font-body: 'IBM Plex Mono', monospace;
    --font-logo: 'Montserrat', sans-serif;

    --header-h: 110px;
    /* Increased for larger logo */
    --radius: 12px;
    --container: 1160px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--clr-dark);
    border-bottom: 1px solid var(--clr-border);
    transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

/* Fonts */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/IBMPlexMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    padding-top: var(--header-h);
    /* Prevent content from hiding behind fixed header */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--clr-accent);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.site-header.scrolled {
    height: 80px;
    /* Shrink on scroll */
    background: rgba(10, 26, 42, .96);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    font-family: var(--font-logo);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--clr-heading);
    display: flex;
    gap: 1px;
}

.logo:hover {
    color: var(--clr-heading);
}

.logo-img {
    height: 80px;
    /* Increased from 56px */
    width: auto;
    object-fit: contain;
    transition: height var(--transition);
}

.site-header.scrolled .logo-img {
    height: 60px;
    /* Increased from 46px */
}

@media (max-width: 767px) {
    .logo-img {
        height: 48px;
        /* Slightly smaller for mobile */
        width: auto;
    }
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--clr-white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--clr-white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-family: var(--font-body);
    font-size: 13px;
}

.lang-link {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    transition: color 0.2s;
}

.lang-link:hover {
    color: var(--clr-white);
}

.lang-link.active {
    color: var(--clr-white);
    font-weight: 700;
}

.lang-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

/* Contact dropdown */
.nav-contact-dropdown {
    position: relative;
}

.contact-flyout {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    list-style: none;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    min-width: 190px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.contact-flyout.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-flyout li {
    padding: 0;
}

.contact-flyout a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--clr-text);
    transition: background var(--transition), color var(--transition);
}

.contact-flyout a:hover {
    background: var(--clr-bg);
    color: var(--clr-accent);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 12px;
    background: rgba(59, 130, 246, .1);
    padding: 6px 14px;
    border-radius: 100px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

.section-label.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-family: var(--font-logo);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--clr-heading);
    letter-spacing: -.5px;
    line-height: 1.2;
}

/* Placeholders */
.placeholder-img {
    background: #E2E8F0;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 500;
    border: 2px dashed #CBD5E1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.placeholder-img.revealed {
    opacity: 1;
    transform: translateY(0);
}

.placeholder-hero {
    width: 100%;
    aspect-ratio: 4/3;
    max-width: 480px;
    margin-left: auto;
}

.placeholder-bg {
    width: 100%;
    aspect-ratio: 4/3;
}

.placeholder-privacy {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/7;
    margin-top: 40px;
}

/* Feature Images (Replaces placeholders) */
.feature-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    /* Reveal animation base */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease, box-shadow var(--transition);
}

.feature-img.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feature-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:focus-visible {
    outline: 2px solid var(--clr-accent-glow);
    outline-offset: 3px;
}

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

.btn-primary:hover {
    background: #2563EB;
    box-shadow: 0 4px 24px rgba(59, 130, 246, .35);
    transform: translateY(-1px);
    color: var(--clr-white);
}

.btn-outline {
    background: transparent;
    color: var(--clr-accent-glow);
    border: 1.5px solid var(--clr-accent);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, .1);
    color: var(--clr-white);
    border-color: var(--clr-accent-glow);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 14px;
}

/* ================================================================
   STATEMENT BANNER
   ================================================================ */
.statement-banner {
    background: var(--clr-blue);
    padding: 42px 0;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, .15);
    border-bottom: 1px solid rgba(59, 130, 246, .15);
}

.statement-text {
    font-family: var(--font-logo);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--clr-heading);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================================================
   SERVICES GRID
   ================================================================ */
.services {
    background: var(--clr-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    opacity: 0;
    transform: translateY(24px);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--clr-accent);
    box-shadow: 0 8px 32px rgba(59, 130, 246, .15);
}

.card-icon {
    color: var(--clr-accent);
    margin-bottom: 18px;
}

.service-card h3 {
    font-family: var(--font-logo);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-heading);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13.5px;
    line-height: 1.75;
}

/* ================================================================
   BACKGROUND
   ================================================================ */
.background {
    background: var(--clr-surface);
}

.background-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .background-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .background-grid .background-text {
        order: 1;
    }

    .background-grid .background-visual {
        order: 2;
    }
}

.background-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.process-steps {
    display: flex;
    gap: 28px;
    margin-top: 36px;
}

.step {
    flex: 1;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 24px 20px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

.step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.step:nth-child(2) {
    transition-delay: .1s;
}

.step:nth-child(3) {
    transition-delay: .2s;
}

.step-num {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(59, 130, 246, .2);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.step h3 {
    font-family: var(--font-logo);
    font-size: .95rem;
    font-weight: 600;
    color: var(--clr-heading);
    margin-bottom: 6px;
}

.step p {
    font-size: 13px;
    line-height: 1.7;
}

/* ================================================================
   TOOLS / APPROACH
   ================================================================ */
.tools {
    background: var(--clr-dark);
}

.tools-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.tool-badge {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 14px 28px;
    font-family: var(--font-logo);
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-heading);
    letter-spacing: .3px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease, border-color var(--transition), box-shadow var(--transition);
}

.tool-badge.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tool-badge:nth-child(2) {
    transition-delay: .08s;
}

.tool-badge:nth-child(3) {
    transition-delay: .16s;
}

.tool-badge:nth-child(4) {
    transition-delay: .24s;
}

.tool-badge:hover {
    border-color: var(--clr-accent);
    box-shadow: 0 4px 20px rgba(59, 130, 246, .12);
}

/* ================================================================
   PRIVACY
   ================================================================ */
.privacy {
    background: var(--clr-surface);
}

.privacy-inner p {
    max-width: 700px;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--clr-dark) 0%, var(--clr-blue) 100%);
}

.cta-inner h2 {
    font-family: var(--font-logo);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--clr-heading);
    margin-bottom: 20px;
    letter-spacing: -.5px;
}

.cta-inner p {
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 1.1rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: #0A1A2A;
    position: relative;
    padding: 40px 0;
    border-top: 1px solid var(--clr-border);
    color: #94A3B8;
    font-size: 13px;
    overflow: hidden;
}

/* Subtle grid texture (matches sister SafeOffice sites) */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.footer-left p {
    font-size: 13px;
    color: #94A3B8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 25px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}

.footer-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(59, 130, 246, .12);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), background var(--transition), transform var(--transition), border-color var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 767px) {
    .footer-container {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* ================================================================
   INFO PAGES (legal / privacy / contact)
   ================================================================ */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-heading);
    letter-spacing: -.5px;
    margin-bottom: 1.25rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--clr-accent);
}

.legal-content h2 {
    font-family: var(--font-logo);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-heading);
    margin: 2rem 0 1rem;
}

.legal-content h3 {
    font-family: var(--font-logo);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-heading);
    margin: 1.6rem 0 .6rem;
}

.legal-content p {
    margin-bottom: 1.15rem;
    line-height: 1.8;
}

.legal-content a {
    color: var(--clr-accent);
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--clr-heading);
}

/* Contact page — grouped channel cards (dark, teal accents) */
.contact-section {
    background: #0A1A2A;
}

.contact-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 44px;
}

.contact-title {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.5px;
    color: #fff;
    margin-bottom: 12px;
}

.contact-intro {
    color: #94A3B8;
    line-height: 1.8;
}

.contact-grid {
    max-width: 620px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(15, 212, 168, .1);
    color: #0FD4A8;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.contact-icon-box svg {
    width: 22px;
    height: 22px;
}

.contact-info-wrap {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0FD4A8;
    margin-bottom: 12px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 6px 0;
    font-size: 14px;
    color: inherit;
}

.contact-row span:first-child {
    color: #94A3B8;
}

.contact-row span:last-child {
    color: #fff;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

a.contact-row:hover span:last-child {
    color: #0FD4A8;
}

.contact-row--email {
    align-items: center;
}

.contact-row--email span:first-child {
    color: #0FD4A8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
}

@media (max-width: 575px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .contact-row {
        font-size: 13px;
    }
}

/* ================================================================
   LOGIN MODAL
   ================================================================ */
.modal {
    display: none;
    opacity: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    font-family: var(--font-logo);
    color: var(--clr-heading);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--clr-text);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    font-family: var(--font-body);
    transition: border-color 0.2s, outline 0.2s;
}

.form-group input:focus {
    border-color: var(--clr-accent);
    outline: none;
}

.login-form button {
    width: 100%;
    margin-top: 10px;
}

.error-msg {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ================================================================
   UTILITIES
   ================================================================ */
.bg-white {
    background-color: var(--clr-white);
}

/* Mobile Fix */
@media (max-width: 767px) {

    /* Header: two-row layout */
    .site-header {
        height: auto;
        padding: 8px 0 0;
    }

    .site-header.scrolled {
        height: auto;
        padding: 6px 0 0;
    }

    /* header-inner: row 1 = logo + lang, row 2 = nav links */
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        padding: 0 16px;
        gap: 0;
    }

    /* Row 1 left: logo */
    .logo {
        flex: 1 1 auto;
        order: 1;
    }

    .logo-img {
        height: 36px;
        width: auto;
    }

    .site-header.scrolled .logo-img {
        height: 32px;
    }

    /* Row 1 right: lang switcher */
    .lang-switch {
        order: 2;
        flex: 0 0 auto;
        margin-left: 0;
        gap: 6px;
        font-size: 12px;
    }

    /* Row 2: nav full width */
    .primary-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 6px;
        padding: 6px 0 8px;
    }

    .nav-list {
        justify-content: center;
        gap: 24px;
    }

    .nav-link {
        font-size: 12px;
        white-space: nowrap;
    }

    /* Main content below the two-row header */
    body {
        padding-top: 0;
    }

    #main-content {
        padding-top: 85px;
    }

    /* Hero section: reduce excess whitespace */
    .section {
        padding: 40px 0;
    }
}

/* ================================================================
   LIGHTBOX (IMAGE ZOOM)
   ================================================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox.open {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Make image clickable */
.feature-img {
    cursor: pointer;
}