/* ==========================================================================
   KSP Mobility - Master Bundled Stylesheet & Interactive Mechanics
   Architecture: Mobile-First, WCAG 2.2 AAA Compliant, Zero-CLS Layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & NATIVE VARS
   -------------------------------------------------------------------------- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --brand-navy: #1a365d;
    --brand-blue: #2563eb;
    --brand-blue-hover: #1d4ed8;
    --focus-ring: #f59e0b;
    --border-color: #cbd5e1;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --text-primary: #f8fafc;
        --text-muted: #cbd5e1;
        --brand-navy: #93c5fd;
        --brand-blue: #60a5fa;
        --brand-blue-hover: #93c5fd;
        --border-color: #334155;
        --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-stack);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. ACCESSIBILITY & UTILITIES
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--brand-navy);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 4px solid var(--focus-ring);
}

:focus-visible {
    outline: 4px solid var(--focus-ring) !important;
    outline-offset: 3px !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Responsive Fluid Images */
img, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border-color, #cbd5e1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 70px;
    padding: 0.5rem 2rem; /* Adds nice breathing room from screen edges */
    gap: 1rem;
    max-width: 100% !important; /* Overrides the 1200px limit to stretch wide */
}

/* Left-aligned items container */
.brand-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.brand-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-navy, #1a365d);
    text-decoration: none;
    white-space: nowrap;
}

.header-phone {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-blue, #2563eb);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    background-color: var(--bg-secondary, #f8fafc);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.header-phone:hover, .header-phone:focus {
    text-decoration: underline;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, #475569);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
}

.facebook-link .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.facebook-link:hover, .facebook-link:focus {
    color: var(--brand-blue, #2563eb);
}

/* Hide wording on smaller mobile screens (<640px) */
.facebook-link .fb-text {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #1a202c;
    border-radius: 2px;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    padding: 1rem 0;
}

.nav-menu.active {
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-list a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1a202c;
    text-decoration: none;
    font-weight: 500;
}

/* Tablet & Responsive Breakpoints */
@media (min-width: 640px) {
    .brand-group {
        gap: 1.25rem;
    }
    .facebook-link .fb-text {
        display: inline; /* Reveal full wording on tablet & desktop */
    }
}

/* Desktop Alignment Breakpoint */
@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: block !important;
        position: static !important;
        width: auto !important;
        border: none !important;
        padding: 0 !important;
        margin-left: auto !important; /* Anchors navigation links to the far right */
    }

    .nav-list {
        flex-direction: row !important;
        gap: 1.25rem !important;
    }
} /* <--- THIS CLOSING BRACE WAS MISSING */
/* --------------------------------------------------------------------------
   4. SCENE 1: HERO & VIDEO OVERLAY
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000000;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    padding: 2rem 1.5rem;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    opacity: 0.95;
}

.scroll-indicator {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --------------------------------------------------------------------------
   5. SECTIONS & SHOWROOM GRID
   -------------------------------------------------------------------------- */
.intro-section {
    padding: 5rem 0;
    background-color: var(--bg-primary);
    text-align: center;
}

.intro-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1.25rem;
    color: var(--brand-navy);
}

.intro-section p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-muted);
}

.showroom-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    text-align: center;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .showroom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .showroom-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image-wrapper img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.75rem;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.35rem;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   6. SCENE 3: SERVICE SPLIT SCREEN
   -------------------------------------------------------------------------- */
.services-section {
    background-color: var(--bg-primary);
}

.services-container {
    display: flex;
    flex-direction: column;
}

.services-left {
    width: 100%;
    height: 300px;
    position: relative;
}

.services-left picture, .services-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-right {
    padding: 4rem 1.5rem;
}

.services-main-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--brand-navy);
    margin-bottom: 2.5rem;
}

.service-block {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.service-block h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

@media (min-width: 769px) {
    .services-container {
        flex-direction: row;
    }
    
    .services-left {
        flex: 1 1 50%;
        height: auto;
        min-height: 100vh;
    }
    
    .sticky-image-container {
        position: sticky;
        top: 70px;
        height: calc(100vh - 70px);
        width: 100%;
    }
    
    .services-right {
        flex: 1 1 50%;
        padding: 5rem 6%;
    }
}

/* --------------------------------------------------------------------------
   7. FOOTER, MAP & CLICKABLE PHONE
   -------------------------------------------------------------------------- */
.footer-section {
    padding: 5rem 0 3rem 0;
    background-color: #0f172a;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

.footer-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-info .address {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.footer-info .phone-wrapper {
    margin-top: 1.5rem;
}

.phone-link {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #60a5fa;
    text-decoration: none;
    padding: 0.5rem 0;
    min-height: 44px;
}

.phone-link:hover, .phone-link:focus {
    color: #93c5fd;
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #334155);
    background-color: #1e293b;
    box-shadow: var(--card-shadow);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 48px;
    height: 48px;
    background-color: var(--brand-navy);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 990;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
/* --- OPENING HOURS STYLES --- */
.opening-hours {
    margin: 1.25rem 0;
    padding: 1rem;
    background-color: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
}

.opening-hours h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.hours-closed {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #94a3b8;
}
/* --- SUB-FOOTER LEGAL & COPYRIGHT BAR --- */
.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.footer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.footer-copy {
    font-weight: 500;
    color: #cbd5e1;
}

.footer-links,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #60a5fa;
    text-decoration: underline;
}

.footer-sep {
    color: #475569;
    user-select: none;
}

/* Tablet & Desktop Horizontal Row */
@media (min-width: 769px) {
    .footer-block {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
/* Forced High Contrast Mode (Windows High Contrast) */
@media (forced-colors: active) {
    :focus-visible {
        outline: 3px solid Highlight !important;
    }
    .product-card, .menu-toggle, .map-placeholder {
        border: 2px solid CanvasText;
    }
}