/* 
    JTM Motors - Design System 
    Modern, Premium, and High-Performance Aesthetic
*/

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

:root {
    /* Color Palette */
    --primary: #1A1A1B;      /* Deep Charcoal */
    --secondary: #E1E1E1;    /* Premium Silver */
    --accent: #D32F2F;       /* Performance Red */
    --accent-hover: #B71C1C;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --bg-dark: #0F0F10;
    --card-bg: #242426;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Spacing & Transitions */
    --section-padding: 100px 5%;
    --container-max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Layout Utility --- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 90%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* --- Header --- */
.minimal-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    pointer-events: none;
    transition: var(--transition);
}

.minimal-header .nav-container, .minimal-header .logo-placeholder {
    pointer-events: none;
}

.minimal-header a, .minimal-header .menu-btn {
    pointer-events: auto;
}

/* Fade corner logo + menu button while scrolled so they don't obscure content. */
.minimal-header.scrolled #logo-slot,
.minimal-header.scrolled #menu-btn {
    opacity: 0.4;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimal-header.scrolled #logo-slot:hover,
.minimal-header.scrolled #menu-btn:hover,
.minimal-header.scrolled #menu-btn.open {
    opacity: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    z-index: 1001;
}

header .logo-placeholder img {
    transform: scale(1.8);
    transform-origin: left center;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 1001;
    pointer-events: auto;
}

.menu-btn span {
    width: 40px;
    height: 3px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 16, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.full-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.full-nav-links a {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.fullscreen-menu.active .full-nav-links a {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-menu.active .full-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.active .full-nav-links a:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-menu.active .full-nav-links a:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu.active .full-nav-links a:nth-child(4) { transition-delay: 0.4s; }
.fullscreen-menu.active .full-nav-links a:nth-child(5) { transition-delay: 0.5s; }

.full-nav-links a:hover {
    color: var(--text-main);
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .full-nav-links a {
        font-size: 2rem;
    }
}

/* --- Footer --- */
footer {
    background: var(--primary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-col p, .footer-col li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 0.75rem;
    transition: var(--transition);
}

.admin-link svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.admin-link:hover {
    color: var(--accent);
    opacity: 1;
    border-color: rgba(211, 47, 47, 0.35);
    background: rgba(211, 47, 47, 0.08);
    transform: translateY(-1px);
}

/* --- Enquiry form success message --- */
.enquiry-success {
    margin-top: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: rgba(122, 211, 122, 0.1);
    border: 1px solid rgba(122, 211, 122, 0.35);
    color: var(--text-main);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.enquiry-success.fading {
    opacity: 0;
    transform: translateY(-6px);
}

.enquiry-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #7ad37a;
    stroke-width: 2.5;
    fill: none;
    margin-top: 2px;
}

.enquiry-success strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9fe29f;
    margin-bottom: 0.25rem;
}

.enquiry-success p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Enquiry form error message --- */
.enquiry-error {
    margin-top: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: rgba(211, 122, 122, 0.1);
    border: 1px solid rgba(211, 122, 122, 0.35);
    color: var(--text-main);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.enquiry-error.fading {
    opacity: 0;
    transform: translateY(-6px);
}

.enquiry-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #e29f9f;
    stroke-width: 2.5;
    fill: none;
    margin-top: 2px;
}

.enquiry-error strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e29f9f;
    margin-bottom: 0.25rem;
}

.enquiry-error p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Listing page: Key Specification boxes --- */
.spec-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.spec-box {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    background: rgba(36, 36, 38, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    animation: specBoxReveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.spec-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0.7;
}

.spec-box:hover {
    border-color: rgba(211, 47, 47, 0.35);
    transform: translateY(-4px);
    background: rgba(36, 36, 38, 0.85);
}

.spec-box-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(211, 47, 47, 0.12);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    line-height: 1;
    flex-shrink: 0;
}

.spec-box-text {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-main);
    word-break: break-word;
    padding-top: 0.15rem;
}

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

@media (max-width: 600px) {
    .spec-box-grid { grid-template-columns: 1fr; }
    .spec-box { padding: 1.25rem; }
}

/* --- Sidebar Key Specifications (right column of detail page) --- */
.sidebar-key-specs {
    margin: 2.5rem 0;
    padding: 1.5rem 1.4rem;
    background: rgba(211, 47, 47, 0.05);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.sidebar-key-specs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
}

.sidebar-key-specs-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-key-specs-eyebrow {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.sidebar-key-specs h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--text-main);
    text-transform: uppercase;
    margin: 0;
}

.sidebar-key-specs-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 0.55rem;
    background: var(--accent);
    color: white;
    border-radius: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.35);
}

.sidebar-key-specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sidebar-key-specs-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0.85rem;
    background: rgba(10, 10, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    opacity: 0;
    transform: translateX(-8px);
    animation: keySpecReveal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.sidebar-key-specs-list li:hover {
    border-color: rgba(211, 47, 47, 0.3);
    background: rgba(10, 10, 11, 0.6);
}

.sidebar-key-specs-list .ks-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
    line-height: 1;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.sidebar-key-specs-list .ks-text {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-main);
    word-break: break-word;
}

@keyframes keySpecReveal {
    0% { opacity: 0; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* --- Compact sidebar Inquire card (sits under the gallery) --- */
.detail-form-card {
    padding: 1.5rem 1.4rem 1.4rem;
}

.detail-form-card h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: 2px;
}

.detail-form-card .form-group-p {
    margin-bottom: 0.9rem;
}

.detail-form-card .form-group-p label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.detail-form-card input,
.detail-form-card textarea {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.detail-form-card input:focus,
.detail-form-card textarea:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.detail-form-card textarea {
    min-height: 80px;
    line-height: 1.5;
    resize: vertical;
}

.detail-form-card .btn {
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* --- Status pill (listing page spec grid) --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    border: 1px solid;
    line-height: 1.2;
    white-space: nowrap;
}

.status-pill::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 0.55rem;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.status-available {
    color: #7ad37a;
    border-color: rgba(122, 211, 122, 0.45);
    background: rgba(122, 211, 122, 0.1);
}

.status-booked {
    color: #f5c442;
    border-color: rgba(245, 196, 66, 0.45);
    background: rgba(245, 196, 66, 0.1);
}

.status-sold {
    color: #ff5a5a;
    border-color: rgba(255, 90, 90, 0.5);
    background: rgba(255, 90, 90, 0.1);
}

/* Available status keeps its "breathing" pulse to signal livenress */
.status-available::before {
    animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.88); }
}

/* --- Common Components --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Team Profile Cards --- */
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.2);
}

.team-card:hover img {
    transform: scale(1.05);
}

/* --- Responsive Layouts --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu logic to be added */
    }
    
    header {
        padding: 1rem 0;
    }
}

/* --- Scroll Arrows --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: var(--accent);
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

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

.scroll-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.scroll-top-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
    border-color: var(--accent);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Premium Filter Bar --- */
.filter-bar {
    background: rgba(36, 36, 38, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.filter-group select, 
.filter-group input {
    width: 100%;
    background: rgba(15, 15, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-group select:focus, 
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.2);
    background: rgba(15, 15, 16, 1);
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' 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;
    cursor: pointer;
}

.btn-filter {
    background: var(--accent);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

.btn-filter:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(211, 47, 47, 0.4);
}

/* --- About Page Specifics --- */
.about-hero {
    height: 80vh; /* Increased for more dramatic entrance */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('../assets/showroom_new.png') no-repeat center/cover;
    text-align: center;
    padding-top: 120px; /* Increased to clear fixed header with breathing room */
    margin-bottom: 2rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem; /* Increased for professional "magazine" spacing */
    align-items: center;
    padding: 4rem 0;
}

@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-hero {
        height: 60vh;
        padding-top: 100px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem !important;
    }
}

.story-image-stack {
    position: relative;
}

.story-image-stack img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.story-image-stack::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--accent);
    border-left: 5px solid var(--accent);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    width: 100%;
}

.value-card {
    background: rgba(36, 36, 38, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    background: rgba(36, 36, 38, 0.6);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    line-height: 1.3;
}

.timeline-v {
    position: relative;
    max-width: 800px;
    margin: 5rem auto;
}

.timeline-item {
    padding: 2rem 3rem;
    border-left: 2px solid var(--accent);
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 2.2rem;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-item h4 {
    color: var(--text-main);
    font-family: 'Orbitron';
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.qa-section {
    background: linear-gradient(rgba(15, 15, 16, 0.9), rgba(15, 15, 16, 0.9)), url('../assets/inspection_detail.png') no-repeat center/cover;
    background-attachment: fixed;
    padding: var(--section-padding);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem 3rem;
    width: 100%;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.feature-item h3::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* --- Premium Inventory Card --- */
.car-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .card-image-box img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 15, 16, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-family: 'Orbitron';
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    border-radius: 4px;
    z-index: 2;
}

.card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.card-title-row h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.card-price {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
}

.card-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.spec-item svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    opacity: 0.8;
}

.card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-card {
    padding: 0.75rem;
    font-size: 0.75rem;
    text-align: center;
    font-family: 'Orbitron';
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-card-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-card-outline:hover {
    background: var(--text-main);
    color: var(--primary);
    border-color: var(--text-main);
}

.btn-card-solid {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

/* --- Vehicle Detail Page --- */
.detail-header {
    padding: 140px 0 60px;
    background: linear-gradient(to bottom, #111, var(--bg-dark));
}

.breadcrumbs {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.detail-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: start;
}

.detail-gallery {
    display: grid;
    gap: 1.5rem;
}

.main-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: block;
}

.main-img-wrap {
    position: relative;
    line-height: 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 15, 16, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.main-img-wrap:hover .gallery-nav,
.gallery-nav:focus-visible {
    opacity: 1;
}

.gallery-nav:hover {
    background: rgba(211, 47, 47, 0.85);
    border-color: var(--accent);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.94);
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }

.gallery-nav:disabled {
    cursor: not-allowed;
}

.main-img-wrap:hover .gallery-nav:disabled,
.gallery-nav:disabled:focus-visible {
    opacity: 0.35;
}

.gallery-nav:disabled:hover {
    background: rgba(15, 15, 16, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .gallery-nav { opacity: 1; width: 38px; height: 38px; }
    .gallery-nav svg { width: 16px; height: 16px; }
    .gallery-nav:disabled { opacity: 0.35; }
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-thumbs img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.detail-info {
    position: sticky;
    top: 120px;
}

.detail-title-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.detail-title-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.detail-price {
    font-family: 'Montserrat';
    font-size: 2rem;
    color: var(--accent);
    font-weight: 800;
}

.spec-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.spec-p-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-p-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.spec-p-item strong {
    font-size: 1.1rem;
    font-family: 'Orbitron';
    color: var(--text-main);
}

.detail-form-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.detail-form-card h3 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-form-card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
}

.form-group-p {
    margin-bottom: 1.5rem;
}

.form-group-p label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group-p input, .form-group-p textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 6px;
    color: white;
}

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

@media (max-width: 992px) {
    .detail-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .detail-info {
        position: static;
    }
}

/* --- Featured Inventory Slider --- */
.slider-wrapper {
    position: relative;
    padding: 20px 0;
}

.slider-container {
    overflow: hidden;
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
}

.slider-track {
    display: flex;
    gap: 2.5rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 20px 0;
}

.slider-track .car-card {
    flex: 0 0 calc(33.333% - 1.67rem);
    min-width: 320px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: rgba(15, 15, 16, 0.9);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.4);
}

.slider-btn svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.slider-btn.prev { left: -32px; }
.slider-btn.next { right: -32px; }

@media (max-width: 1200px) {
    .slider-track .car-card {
        flex: 0 0 calc(50% - 1.25rem);
    }
    .slider-btn.prev { left: -10px; }
    .slider-btn.next { right: -10px; }
}

@media (max-width: 768px) {
    .slider-track .car-card {
        flex: 0 0 100%;
    }
    .slider-btn {
        width: 50px;
        height: 50px;
    }
    .slider-btn.prev { left: -5px; }
    .slider-btn.next { right: -5px; }
}

/* --- Dynamic Tyre Splash Screen --- */
.welcome-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutSplash 0.5s ease 3.3s forwards;
}

.animation-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tyre-wrapper {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    margin-top: -60px;
    left: 50%;
    margin-left: -60px;
    animation: tyreDrive 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    z-index: 2;
}

.tyre-svg {
    width: 100%;
    height: 100%;
    animation: tyreSpin 0.5s linear infinite;
}

.tyre-glow {
    position: absolute;
    bottom: -15px;
    left: 10px;
    width: 140px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(211, 47, 47, 0.4) 0%, transparent 70%);
    opacity: 0;
    animation: burnoutSmoke 0.6s ease 0.6s forwards;
    z-index: -1;
}

.skid-mark {
    position: absolute;
    top: 50%;
    left: 0;
    width: 50%;
    height: 8px;
    margin-top: 56px;
    background: linear-gradient(90deg, transparent, #050505 80%, #111 100%);
    opacity: 0;
    transform-origin: right;
    animation: skidReveal 2s ease forwards;
    z-index: 1;
}

.splash-logo {
    position: absolute;
    height: 300px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.5);
    z-index: 3;
    animation: logoReveal 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s forwards;
}

@keyframes tyreDrive {
    0% { transform: translateX(-100vw); }
    30% { transform: translateX(0); }
    55% { transform: translateX(0); }
    100% { transform: translateX(100vw); opacity: 0; }
}

@keyframes tyreSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes burnoutSmoke {
    0% { opacity: 0; transform: scale(1) translateX(0); }
    50% { opacity: 1; transform: scale(1.5) translateX(-20px); filter: blur(4px); }
    100% { opacity: 0; transform: scale(2) translateX(-40px); filter: blur(8px); }
}

@keyframes skidReveal {
    0% { opacity: 0; transform: scaleX(0); }
    30% { opacity: 1; transform: scaleX(1); }
    55% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1); }
}

@keyframes logoReveal {
    0% { transform: scale(0.5); opacity: 0; filter: drop-shadow(0 0 0 rgba(211,47,47,0)); }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px rgba(211,47,47,0.6)); }
    100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 30px rgba(211,47,47,0.8)); }
}

@keyframes fadeOutSplash {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* --- Brands Section --- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.brand-box {
    background: rgba(15, 15, 16, 0.8);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    aspect-ratio: 1 / 1;
}

.brand-box:hover {
    background: rgba(30, 30, 32, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.brand-box img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.06));
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.brand-box:hover img {
    opacity: 1;
}


.brand-box:hover .brand-chrome {
    opacity: 1;
}

@media (max-width: 1100px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    .brand-box {
        padding: 1rem;
    }
    .brand-box img {
        max-height: 36px;
    }
}

/* ==================================================================
   MOBILE OPTIMIZATION — Professional, touch-friendly mobile layout
   Consolidated breakpoints for a coherent small-screen experience.
   ================================================================== */

/* Tablet / small laptop polish (<= 992px) */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px 5%;
    }

    .container {
        width: 92%;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Shrink the oversized header logo on tablets */
    header .logo-placeholder img {
        transform: scale(1.4);
    }

    /* Director page: stack and keep badge in-flow */
    .director-hero .director-grid {
        gap: 3rem !important;
    }
    .director-hero .director-badge {
        right: 1rem !important;
        bottom: -24px !important;
        padding: 1.4rem !important;
    }
}

/* Primary mobile breakpoint (<= 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 5%;
    }

    /* Prevent 1px-over scrollbars */
    html, body {
        overflow-x: hidden;
    }

    img, svg, video {
        max-width: 100%;
        height: auto;
    }

    .container {
        width: 92%;
    }

    /* --- Type scale --- */
    .section-title {
        font-size: 1.65rem;
        margin-bottom: 1.75rem;
        padding-bottom: 0.75rem;
    }
    .section-title::after {
        width: 44px;
        height: 3px;
    }

    /* --- Header (tighter, less obstructive) --- */
    .minimal-header {
        padding: 1rem 0;
    }
    .minimal-header .nav-container {
        padding: 0 5%;
    }
    header .logo-placeholder img {
        transform: scale(1.1) !important;
        height: 38px !important;
    }
    .menu-btn {
        gap: 6px;
    }
    .menu-btn span {
        width: 30px;
        height: 2.5px;
    }
    .menu-btn.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .menu-btn.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    /* --- Fullscreen nav --- */
    .full-nav-links {
        gap: 1.75rem;
    }
    .full-nav-links a {
        font-size: 1.85rem;
        letter-spacing: 1.5px;
    }

    /* --- Buttons: larger touch targets --- */
    .btn {
        padding: 0.9rem 1.75rem;
        font-size: 0.8rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* --- Hero (index) --- */
    .hero {
        height: auto !important;
        min-height: 88vh;
        padding: 120px 5% 80px !important;
    }
    .hero .hero-title {
        font-size: 2.35rem !important;
        letter-spacing: 1.5px;
        margin-bottom: 1.1rem !important;
    }
    .hero .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
    }
    .hero .hero-cta-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center;
    }
    .hero .hero-cta-row .btn,
    .hero .hero-cta-row .btn-secondary {
        width: 100%;
        max-width: 320px;
    }
    .scroll-indicator {
        bottom: 20px;
    }
    .scroll-indicator svg {
        width: 26px;
        height: 26px;
    }

    /* --- Stats section (index) --- */
    .stats-section {
        padding: 40px 0 !important;
    }
    .stats-section .stats-grid {
        gap: 1.75rem !important;
        grid-template-columns: 1fr 1fr !important;
    }
    .stats-section .stats-grid > div:first-child {
        grid-column: 1 / -1;
    }
    .stats-section .stats-grid > div[style*="padding-top"] {
        padding-top: 0 !important;
    }

    /* --- Import Specialties Banner --- */
    .import-banner {
        height: 280px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* --- Generic CTA section --- */
    .cta-section {
        padding: 70px 0 !important;
    }
    .cta-section .cta-title {
        font-size: 1.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2;
    }
    .cta-section .cta-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.75rem !important;
    }
    .cta-section .cta-btn-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center;
    }
    .cta-section .cta-btn-row .btn,
    .cta-section .cta-btn-row .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    /* --- Generic page banner (inventory/contact) --- */
    .page-banner {
        padding: 110px 0 30px !important;
    }
    .page-banner .page-banner-title {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }
    .page-banner p {
        font-size: 0.9rem;
    }

    /* --- Featured Inventory slider --- */
    .slider-wrapper {
        padding: 10px 0;
    }
    .slider-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    .slider-track {
        gap: 1.25rem;
    }
    .slider-track .car-card {
        flex: 0 0 100%;
        min-width: 0;
    }
    .slider-btn {
        width: 42px;
        height: 42px;
    }
    .slider-btn svg {
        width: 20px;
        height: 20px;
    }
    .slider-btn.prev { left: 0; }
    .slider-btn.next { right: 0; }

    /* --- Car card --- */
    .card-image-box {
        height: 200px;
    }
    .card-body {
        padding: 1.35rem;
    }
    .card-title-row {
        margin-bottom: 1.1rem;
    }
    .card-title-row h3 {
        font-size: 1rem;
    }
    .card-price {
        font-size: 1rem;
    }
    .card-specs {
        padding-top: 1.1rem;
        margin-bottom: 1.35rem;
        gap: 0.75rem;
    }
    .spec-item {
        font-size: 0.75rem;
    }
    .btn-card {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .card-footer {
        gap: 0.6rem;
    }

    /* --- Inventory grid --- */
    .inventory-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* --- Filter bar --- */
    .filter-bar {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 10px;
    }
    .filter-group {
        gap: 0.5rem;
    }
    .filter-group label {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }
    .filter-group select,
    .filter-group input {
        padding: 0.8rem 0.75rem;
        font-size: 16px; /* prevents iOS auto-zoom on focus */
        border-radius: 6px;
    }
    .btn-filter {
        grid-column: 1 / -1;
        padding: 0.95rem;
        font-size: 0.8rem;
        min-height: 46px;
    }

    /* --- About page --- */
    .about-hero {
        padding: 110px 5% 50px !important;
        height: auto !important;
        min-height: 50vh;
    }
    .about-hero .about-hero-eyebrow {
        font-size: 0.7rem !important;
        letter-spacing: 2.5px !important;
        margin-bottom: 0.9rem !important;
    }
    .about-hero .about-hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.15;
    }
    .about-hero .about-hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    .story-grid {
        padding: 1.5rem 0 !important;
    }
    .story-image-stack::after {
        width: 60px;
        height: 60px;
        top: -16px;
        left: -16px;
        border-width: 3px;
    }
    .value-grid {
        gap: 1.25rem !important;
        margin-top: 2rem !important;
    }
    .value-card {
        padding: 1.75rem 1.5rem !important;
    }
    .value-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.9rem;
    }
    .timeline-v {
        margin: 1.5rem auto !important;
    }
    .timeline-item {
        padding: 1.1rem 1.25rem !important;
        margin-bottom: 0.85rem !important;
    }
    .timeline-item span {
        font-size: 0.7rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 0.35rem !important;
    }
    .timeline-item h4 {
        font-size: 1rem !important;
    }
    .timeline-item p {
        font-size: 0.85rem !important;
    }
    .feature-grid {
        gap: 2rem !important;
        grid-template-columns: 1fr !important;
    }
    .feature-item h3 {
        font-size: 0.95rem;
    }
    .qa-section {
        background-attachment: scroll !important;
    }

    /* --- Director page --- */
    .director-hero {
        padding: 110px 0 70px !important;
    }
    .director-hero .director-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .director-hero .director-photo {
        aspect-ratio: 3/4 !important;
        max-width: 340px;
        margin: 0 auto;
    }
    .director-hero .director-badge {
        position: static !important;
        display: inline-block;
        margin: 1rem auto 0;
        padding: 1rem 1.5rem !important;
    }
    .director-hero .director-media {
        text-align: center;
    }
    .director-hero .director-badge-num {
        font-size: 1.5rem !important;
    }
    .director-hero .director-title {
        font-size: 2.2rem !important;
        margin: 0.75rem 0 1rem !important;
        line-height: 1.1;
    }
    .director-hero .director-role {
        font-size: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    .director-hero .director-eyebrow {
        font-size: 0.75rem !important;
        letter-spacing: 2px !important;
    }

    /* --- Contact page --- */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .contact-form-card {
        padding: 1.75rem 1.35rem !important;
        border-radius: 10px !important;
    }
    .contact-form-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem !important;
    }
    .contact-form-card input,
    .contact-form-card select,
    .contact-form-card textarea {
        font-size: 16px !important; /* prevents iOS auto-zoom */
        padding: 0.9rem !important;
    }
    .contact-form-card .btn {
        padding: 1rem !important;
        min-height: 48px;
    }

    /* --- Detail pages --- */
    .detail-header {
        padding: 100px 0 40px;
    }
    .breadcrumbs {
        font-size: 0.7rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }
    .detail-main {
        gap: 2rem;
    }
    .detail-title-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    .detail-title-section h1 {
        font-size: 1.9rem;
    }
    .detail-price {
        font-size: 1.6rem;
    }
    .spec-grid-premium {
        gap: 1.1rem 1.25rem;
        margin-bottom: 2.25rem;
    }
    .spec-p-item span {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
    .spec-p-item strong {
        font-size: 0.95rem;
    }
    .gallery-thumbs {
        gap: 0.5rem;
    }
    .main-img {
        border-radius: 8px;
    }
    .form-group-p input,
    .form-group-p textarea {
        font-size: 16px; /* prevents iOS auto-zoom */
    }

    /* --- Brands: 4 cols on tablet, handled at <=600px & <=480px elsewhere --- */
    .brands-grid {
        gap: 0.8rem;
    }

    /* --- Welcome splash (smaller on mobile) --- */
    .animation-container {
        height: 280px;
    }
    .splash-logo {
        height: 190px;
    }
    .tyre-wrapper {
        width: 90px;
        height: 90px;
        margin-top: -45px;
        margin-left: -45px;
    }
    .tyre-glow {
        width: 110px;
        height: 32px;
        bottom: -10px;
        left: 5px;
    }

    /* --- Footer (stacked, clean dividers) --- */
    footer {
        padding: 50px 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 40px;
    }
    .footer-col {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-col h4 {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    .footer-col p,
    .footer-col li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    .footer-bottom {
        padding-top: 24px;
        font-size: 0.72rem;
        line-height: 1.7;
    }
    .footer-bottom p {
        margin-bottom: 0.5rem;
    }
    .admin-link {
        padding: 0.45rem 0.8rem;
        font-size: 0.62rem;
    }
}

/* Small phones (<= 480px) — tighter typography */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px 5%;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .hero .hero-title {
        font-size: 1.95rem !important;
        letter-spacing: 1px;
    }

    .cta-section .cta-title {
        font-size: 1.55rem !important;
    }

    .about-hero .about-hero-title {
        font-size: 1.9rem !important;
    }

    .director-hero .director-title {
        font-size: 1.9rem !important;
    }

    .page-banner .page-banner-title {
        font-size: 1.7rem !important;
    }

    .detail-title-section h1 {
        font-size: 1.6rem;
    }
    .detail-price {
        font-size: 1.35rem;
    }

    .card-image-box {
        height: 185px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn {
        padding: 0.85rem 1.35rem;
        font-size: 0.75rem;
    }

    .full-nav-links a {
        font-size: 1.55rem;
    }

    /* Stats: keep readable in a single column on very narrow screens */
    .stats-section .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .stats-section .stats-grid > div:first-child {
        grid-column: auto;
    }
}

/* Landscape phones: compact the splash & hero so content is reachable */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 90px 5% 40px !important;
    }
    .splash-logo {
        height: 140px;
    }
    .animation-container {
        height: 200px;
    }
}

/* --- Social Media Links --- */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-link.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
    color: #fff;
}

.social-link.tiktok:hover {
    background: #010101;
    border-color: #69C9D0;
    color: #69C9D0;
    box-shadow: 0 8px 20px rgba(105, 201, 208, 0.3);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float-btn {
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.whatsapp-float-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    display: block;
}

/* Pulse ring */
.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: waPulse 2.2s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.45); opacity: 0;  }
    100% { transform: scale(1.45); opacity: 0;  }
}

.whatsapp-tooltip {
    background: #fff;
    color: #111;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    order: -1;  /* sits to the left of the button */
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float:hover .whatsapp-float-btn {
    transform: scale(1.1);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
}

/* Entrance animation */
.whatsapp-float {
    animation: waSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}

@keyframes waSlideIn {
    from { transform: translateY(80px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 18px;
    }
    .whatsapp-float-btn {
        width: 52px;
        height: 52px;
    }
    .whatsapp-tooltip { display: none; }
}
