﻿/* ============================================================
   AVALTREN INSURANCE — DESIGN SYSTEM
   Organised: tokens → reset → layout → components → pages → responsive
   ============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
    /* Brand palette */
    --gold: #d4af37;
    --gold-light: #f0d98c;
    --gold-dark: #a67d21;
    --dark: #272328;
    --dark-mid: #383839;
    --neutral: #dbdcdd;
    --muted: #9ea0a2;
    --surface: #f5f8fa;
    --white: #ffffff;
    /* Typography */
    --font-body: "Segoe UI", Tahoma, sans-serif;
    --font-heading: "Segoe UI", Tahoma, sans-serif;
    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 60px;
    --space-2xl: 100px;
    /* Layout */
    --max-width: 1200px;
    --header-h: 64px;
    /* Effects */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
    --transition: 0.25s ease;
    /* Gold gradient used throughout */
    --gold-gradient: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
}


/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark);
    background: var(--neutral);
    margin: 0;
}

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

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

ul, ol {
    list-style: none;
    padding: 0;
}

/* Allow text selection everywhere except where explicitly locked */
* {
    user-select: text;
}

main {
    padding-bottom: 0;
}


/* ── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}


/* ── 4. LAYOUT UTILITIES ───────────────────────────────────── */
.container {
    width: min(var(--max-width), 100% - 2rem);
    margin-inline: auto;
}

.section {
    padding: var(--space-xl) 0;
    width: min(var(--max-width), 100% - 2rem);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    color: var(--dark);
}

.section--row {
    flex-direction: row;
    align-items: center;
}

.section--center {
    align-items: center;
    text-align: center;
}


/* ── 5. HEADER / NAV ───────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: var(--dark-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

    /* Logo */
    header .logo {
        position: absolute;
        left: var(--space-md);
        height: 100%;
        width: 160px;
        background: url('../images/logo-no-bottom.png') no-repeat center / 70%;
        cursor: pointer;
    }

/* Nav */
#navMenu {
    display: flex;
    align-items: center;
    gap: 0;
    /* Links carry their own padding; separators sit flush between them */
}

    #navMenu a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 var(--space-md);
        color: #f5f5f5;
        font-size: 0.875rem;
        font-weight: 400;
        letter-spacing: 0.3px;
        transition: color var(--transition);
        white-space: nowrap;
    }

        #navMenu a:hover {
            color: var(--gold);
        }

    #navMenu .separator {
        display: block;
        width: 1px;
        height: 18px;
        background: rgba(255,255,255,0.2);
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

/* Hamburger */
.hamburger {
    display: none;
    position: absolute;
    right: var(--space-md);
    font-size: 26px;
    cursor: pointer;
    color: var(--white);
    background: none;
    border: none;
    line-height: 1;
}

/* Language switcher */
header #langForm {
    position: absolute;
    right: var(--space-md);
}

    header #langForm select {
        border-radius: 20px;
        padding: 3px 8px;
        background: var(--neutral);
        border: none;
        font-size: 0.8rem;
        cursor: pointer;
    }


/* ── 6. BUTTONS ────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--gold-gradient);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(212,175,55,0.35);
}

    .btn-primary:hover {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212,175,55,0.5);
        color: var(--dark);
    }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    background: transparent;
    color: var(--gold);
    font-weight: 700;
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

    .btn-outline:hover {
        background: var(--gold);
        color: var(--dark);
    }


/* ── 7. HERO ───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 70vh;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* Dark overlay */
    /*    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, rgba(39,35,40,0.75) 0%, rgba(39,35,40,0.45) 100%);
        z-index: 1;
    }*/

    .hero > * {
        position: relative;
        z-index: 2;
        max-width: 800px;
        padding: 0 var(--space-md);
    }

    .hero h1 {
        color: var(--gold);
        margin-bottom: var(--space-sm);
        text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }

    .hero p {
        font-size: 1.05rem;
        color: rgba(255,255,255,0.9);
        max-width: 600px;
    }

/* Glass pill for hero text (keep existing pattern but improve it) */
.bg-glass {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Hero variants */
.hero.landing {
    background-image: url('../images/sandton.jpeg');
    background-position: center 60%;
}

.hero.short-term {
    background-image: url('../images/shortterm-landing.jpg');
    background-position: center 40%;
}

.hero.commercial-term {
    background-image: url('../images/commercial-landing.jpg');
    background-position: center 40%;
}

.hero.faq {
    background-image: url('../images/faq.jpg');
}

.hero.long-term {
    background-image: url('../images/longTerm-landing.jpg');
}

.hero.short-term.about {
    background-image: url('../images/about.jpeg');
    background-position: center 30%;
}


/* ── 8. SERVICES / SPLIT LAYOUT ────────────────────────────── */
.services {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.service-box-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.service-box-img {
    flex: 1;
    min-height: 360px;
    border-radius: var(--radius-md);
    background: url('../images/faq.jpg') center / cover no-repeat;
    box-shadow: var(--shadow-md);
}

/* Card grid */
.service-box {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

    .service-box:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .service-box h3 {
        margin: 0;
    }

    .service-box ul {
        padding-left: var(--space-md);
        list-style: disc;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }


/* ── 9. GALLERY SECTIONS (Short-term / Commercial) ─────────── */
.shortTerm-gallery,
.comm-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.image-section {
    position: relative;
    height: 80vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .image-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .image-section::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    }

    .image-section .content {
        position: relative;
        z-index: 2;
        background: rgba(255,255,255,0.12);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.2);
        color: var(--white);
        text-align: center;
        padding: 2.5rem 3rem;
        border-radius: var(--radius-lg);
        max-width: 680px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }

        .image-section .content h2 {
            color: var(--gold);
            margin-bottom: var(--space-sm);
        }

        .image-section .content ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-top: var(--space-sm);
        }

            .image-section .content ul li::before {
                content: "✓ ";
                color: var(--gold);
                font-weight: 700;
            }

.comm-gallery .image-section .content p {
    width: unset;
}


/* ── 10. CTA BAND ──────────────────────────────────────────── */
.cta {
    text-align: center;
    background: var(--dark);
    padding: var(--space-xl) var(--space-md);
    color: var(--neutral);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    border-bottom: solid 1px rgba(255, 255, 255, 0.2);
}

    .cta h2 {
        color: var(--gold);
    }

    .cta p {
        max-width: 560px;
        color: var(--muted);
    }

    .cta .btn-primary {
        min-width: 220px;
        height: 56px;
        font-size: 1rem;
    }


/* ── 11. FAQ ───────────────────────────────────────────────── */
.section.faq {
    flex-direction: column;
}

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

.faq-item {
    border: 1px solid rgba(39,35,40,0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--dark-mid);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .faq-question::after {
        content: "+";
        font-size: 1.4rem;
        font-weight: 300;
        color: var(--gold);
        transition: transform var(--transition);
    }

.faq-item.active .faq-question {
    background: var(--dark);
}

    .faq-item.active .faq-question::after {
        transform: rotate(45deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--surface);
    color: var(--dark);
    padding: 0 var(--space-lg);
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: var(--space-md) var(--space-lg);
}


/* ── 12. CONTACT ───────────────────────────────────────────── */
.section.contact {
    width: 100%;
    padding: 0;
    background-image: url('../images/contact-landing.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-single {
    max-width: 600px;
    width: 90%;
    margin: var(--space-xl) auto;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    background: rgba(245,248,250,0.96);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

    .contact-card-single h1 {
        color: var(--dark);
        font-size: 1.8rem;
    }

    .contact-card-single p {
        color: #555;
        font-size: 0.95rem;
    }

.contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

    .contact-info p {
        color: #333;
        font-size: 0.95rem;
    }

.map-container {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--space-sm);
}


/* ── 13. ABOUT PAGE ────────────────────────────────────────── */
.section.about {
    flex-direction: row;
}

    .section.about.info {
        flex-direction: column;
        margin-top: var(--space-lg);
    }

.mission-container,
.vission-container {
    display: flex;
    gap: var(--space-lg);
}

.vission-container {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.mission-container .mission {
    flex: 1;
}

.mission-statements {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    flex: 1;
    justify-content: space-around;
}

.mission-sub {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

#mission-indicator,
#vission-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--dark-mid);
    color: var(--white);
    padding: 8px var(--space-md);
    border-radius: 30px;
    font-size: 0.85rem;
    width: fit-content;
    margin-bottom: var(--space-sm);
}

#vission-img {
    background: url('../images/relation.jpg') center / cover no-repeat;
    width: 50%;
    height: 280px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}


/* ── 14. PARTNERS LOGO BANNER ──────────────────────────────── */
.section.partners {
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: var(--space-xl);
}

.logo-banner {
    width: 100%;
    overflow: hidden;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll 24s linear infinite;
    align-items: center;
}

.logo-banner:hover .logo-track {
    animation-play-state: paused;
}

.logo-container {
    height: 80px;
    min-width: 120px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin: 0 10px;
    box-shadow: var(--shadow-sm);
}

    .logo-container img {
        height: 100%;
        width: auto;
        object-fit: contain;
        border-radius: var(--radius-sm);
    }

    .logo-container.garagesure {
        background: #0c3150;
    }

    /* Hero logo box */
    .logo-container.bg-glass {
        height: 200px;
        width: 100%;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(6px);
        margin: 0;
        border: 1px solid rgba(255,255,255,0.1);
    }

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* ── 15. FOOTER ────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: var(--neutral);
    padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    max-width: var(--max-width);
    margin-inline: auto;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: var(--space-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-section li,
.footer-section p,
.footer-section a {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.8;
    transition: color var(--transition);
}

    .footer-section a:hover {
        color: var(--gold-light);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--muted);
    max-width: var(--max-width);
    margin-inline: auto;
}


/* ── 16. POPUP / MODAL ─────────────────────────────────────── */
.popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    padding: var(--space-md);
}

.popup-content {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    color: var(--dark);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    animation: fadeInUp 0.3s ease;
}

    .popup-content::-webkit-scrollbar {
        width: 4px;
    }

    .popup-content::-webkit-scrollbar-thumb {
        background: var(--muted);
        border-radius: 2px;
    }

    .popup-content .close-btn {
        position: absolute;
        top: 12px;
        right: 16px;
        font-size: 1.4rem;
        cursor: pointer;
        color: var(--muted);
        transition: color var(--transition);
        line-height: 1;
        background: none;
        border: none;
    }

        .popup-content .close-btn:hover {
            color: var(--dark);
        }

    .popup-content form {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .popup-content input,
    .popup-content select,
    .popup-content textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
        border: 1.5px solid #e0e0e0;
        border-radius: var(--radius-sm);
        width: 100%;
        transition: border-color var(--transition);
        font-family: var(--font-body);
    }

        .popup-content input:focus,
        .popup-content select:focus,
        .popup-content textarea:focus {
            outline: none;
            border-color: var(--gold);
        }

#submit-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

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


/* ── 17. SCROLL TO TOP ─────────────────────────────────────── */
#scrollToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--gold-gradient);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(212,175,55,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 150;
}

    #scrollToTop.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #scrollToTop img {
        width: 20px;
        height: 20px;
        filter: brightness(0);
    }


/* ── 18. FORM FEEDBACK ─────────────────────────────────────── */
.form-message {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .form-message.success {
        color: #1a9940;
        opacity: 1;
    }

    .form-message.error {
        color: #d9363e;
        opacity: 1;
    }

.loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}


/* ── 19. SECTION-SPECIFIC BACKGROUNDS ─────────────────────── */
/* Service split images */
#home-mining {
    background: url('../images/home-mining.jpg') center / cover no-repeat;
}

/* Short-term service images */
.image-section[style*="vehicle.jpg"] {
    background-position: center 60%;
}

.image-section[style*="house.jpg"] {
    background-position: center 50%;
}

/* About page images */
.section-box-img-corp {
    background: url('../images/communal.jpg') center / cover no-repeat;
}

.section-box-img-mine {
    background: url('../images/mining.jpg') center / cover no-repeat;
}

.section-box-img-trans {
    background: url('../images/transportation.jpg') center / cover no-repeat;
}


/* ── 20. PAGE-LEVEL SECTION OVERRIDES ─────────────────────── */

/* Short-term & Commercial full-width sections */
.section.shortTerm,
.section.commercial {
    width: 100%;
    max-width: 100%;
    padding: var(--space-xl) 0;
    flex-direction: column;
    align-items: center;
}

    .section.shortTerm h2,
    .section.commercial h2 {
        text-align: center;
        margin-bottom: var(--space-lg);
    }

    .section.commercial > p {
        max-width: 800px;
        text-align: center;
        color: var(--dark);
    }

    /* Short-term subheading intro */
    .section.shortTerm.subheading {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        .section.shortTerm.subheading p {
            max-width: 680px;
        }

/* About info blocks */
.section.about.info.team {
    text-align: center;
}

/* Team */
.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.team-member {
    width: calc(33.333% - var(--space-lg));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member-img {
    width: 280px;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

#member1 {
    background-image: url('../images/Team/member1.jpg');
}

#member2 {
    background-image: url('../images/Team/member2.jpg');
}

#member3 {
    background-image: url('../images/Team/member3.jpg');
}

#member4 {
    background-image: url('../images/Team/member4.jpg');
}

/* Slider (legacy – kept in case used) */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

.slide {
    padding: var(--space-md);
    text-align: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Section box */
.section-box {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

    .section-box:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

/* Logo hero box */
.logo {
    background: url('../images/logo.png') center / cover no-repeat;
    height: 220px;
    width: 100%;
}

/* AOS-style scroll reveal for sections */
section:not([data-aos]) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── 21. RESPONSIVE ────────────────────────────────────────── */

/* ── 1024px ── */
@media (max-width: 1024px) {
    .section {
        width: min(var(--max-width), 100% - 3rem);
    }
}

/* ── 900px ── */
@media (max-width: 900px) {
    .services {
        flex-direction: column;
    }

    .service-box-img {
        width: 100%;
        min-height: 260px;
    }

    .service-box-content {
        width: 100%;
    }

    .section.about {
        flex-direction: column;
    }

    .mission-container,
    .vission-container {
        flex-direction: column;
    }

        .mission-container .mission {
            width: 100%;
        }

    .section.contact {
        background-size: 250%;
    }
}

/* ── 768px ── */
@media (max-width: 768px) {
    /* Nav collapse */
    #navMenu {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--header-h);
        right: 0;
        left: 0;
        background: #1a1a1a;
        padding: var(--space-sm) 0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease;
        gap: 0;
    }

        #navMenu.active {
            max-height: 500px;
            opacity: 1;
            visibility: visible;
        }

        #navMenu a {
            width: 100%;
            padding: 12px var(--space-lg);
            font-size: 0.95rem;
        }

        #navMenu .separator {
            width: 80%;
            height: 1px;
            margin: 0 var(--space-lg);
        }

    .hamburger {
        display: block;
    }

    header #langForm {
        right: 52px;
    }

    /* Hero */
    .hero {
        height: 380px;
        background-size: 250% !important;
    }

        .hero h1 {
            font-size: 1.6rem;
            padding: 0 var(--space-md);
        }

        .hero p {
            font-size: 0.9rem;
            padding: 0 var(--space-md);
        }

    /* Sections */
    .section {
        width: 100%;
        padding: var(--space-lg) var(--space-md);
    }

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

    /* Gallery */
    .image-section {
        height: 60vh;
        min-height: 320px;
    }

        .image-section .content {
            padding: 1.5rem var(--space-md);
            margin: var(--space-md);
        }

    /* Contact */
    .section.contact {
        background-size: 400%;
    }

    .contact-card-single {
        width: 94%;
        margin: var(--space-lg) auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    /* Team */
    .team-member {
        width: 100%;
    }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .hero {
        background-size: 350% !important;
    }

        .hero h1 {
            font-size: 1.4rem;
        }

    .section.shortTerm,
    .section.commercial {
        padding: var(--space-md) 0;
    }

    .image-section {
        height: 70vh;
    }

        .image-section .content {
            padding: 1rem;
            max-width: 92vw;
        }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta .btn-primary {
        width: 100%;
        max-width: 280px;
    }

    .contact-card-single {
        padding: var(--space-md);
    }

        .contact-card-single h1 {
            font-size: 1.4rem;
        }

    .logo-container {
        height: 60px;
        min-width: 90px;
    }
}










/* ====================== 768px ====================== */
/* =========================================================
   📱 MOBILE & RESPONSIVE STYLING (Organized by Breakpoints)
   ========================================================= */

/* ====================== 980px ====================== */
@media (max-width: 980px) {
    /* Smaller nav separators */
    #navMenu a + a::before {
        height: 18px;
        margin-right: 10px;
        margin-left: 10px;
    }

    .section.contact {
        background-size: 450%;
    }

    .section.about {
        display: flex;
        flex-direction: column;
    }

    header .logo {
        width: 180px;
    }
}

/* ====================== 800–768px ====================== */
@media (max-width: 800px) {

    /* ===== NAVIGATION ===== */
    nav {
        display: none; /* hidden by default */
        border: 1px solid #ccc;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    header #langForm {
        right: 56px !important;
    }

    #nav-get-qoute {
        display: none;
    }

    header nav a {
        color: black;
    }

    /* ===== HERO ===== */
    .hero > * {
        max-width: 340px;
    }

    .hero h1 {
        padding: 20px !important;
        font-size: 2rem;
    }

    .hero p {
        padding: 20px 20px 20px 20px;
        font-size: 1rem;
        max-width: 340px;
    }

    /* ===== POPUP ===== */
    .popup-content {
        width: 80%;
    }

    /* ===== SECTION LAYOUT ===== */
    .section {
        padding: 10px 0px;
        width: 90%;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        box-sizing: border-box;
    }

        .section.shortTerm .container,
        .section.commercial .container {
            grid-template-columns: 1fr; /* stack items */
        }

            .section.shortTerm .container .img {
                height: 170px !important;
            }

        .section.commercial #build,
        .section.commercial #custom,
        .section.commercial #trans,
        .section.commercial #mine,
        .section.commercial #corp {
            background-repeat: no-repeat;
            background-size: 100%;
            width: 100%;
            height: 180px;
        }

    /* ===== SERVICE BOXES ===== */
    .services {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .service-box-content {
        text-align: left;
        width: 100% !important;
        padding-bottom: 30px;
    }

    .section-box-content {
        width: 100% !important;
        text-align: center;
    }

    .service-box-img {
        width: 100%;
    }


    .logo-container.bg-glass {
        height: 130px;
    }

    .section.shortTerm.subheading p {
        padding: 4px;
    }
}

/* ====================== 768px ====================== */
@media (max-width: 768px) {
    /* ===== NAV MENU (modern dropdown style) ===== */
    #navMenu {
      
        border-radius: 00px 00px 10px 10px;
        
    }

    .image-section .content {
        padding: 2rem 1rem;
        margin: 18px;
        height: 70vh;
    }

    .image-section {
        height: 90vh;
    }

    .hero {
        height: 400px;
    }

        .hero.landing,
        .hero.commercial-term,
        .hero.short-term,
        .hero.short-term.about {
            background-size: 300% !important;
        }

/*        .hero.faq {
            background-size: 150% !important;
        }*/

    .logo {
        height: 80%;
    }

    .section.about.info .mission-container, .section.about.info .vission-container {
        flex-direction: column;
    }
}

/* ====================== 480px ====================== */
@media (max-width: 480px) {
    .contact-card-single {
        padding: 30px 20px;
    }

        .contact-card-single h1 {
            font-size: 1.6rem;
        }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}
