:root {
    --color-primary: #e63946;
    --color-primary-dark: #c1121f;
    --color-dark: #0f1419;
    --color-dark-soft: #1a2332;
    --color-muted: #5c6b7a;
    --color-surface: #f8fafc;
    --color-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 20, 25, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 20, 25, 0.1);
    --shadow-lg: 0 20px 50px rgba(15, 20, 25, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-display: "DM Sans", "Poppins", sans-serif;
    --font-brand: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
    --section-py: 5.5rem;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
    margin: 0;
    position: relative;
}

/* Stop Bootstrap grid / cards from stretching wider than the screen */
.navbar,
header,
section,
footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.container {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.container > .row {
    max-width: 100%;
}

[class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.card {
    max-width: 100%;
    min-width: 0;
}

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

h1, h2, h3, h4, h5, h6,
.section-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar-modern {
    background: rgba(15, 20, 25, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    transition: box-shadow 0.3s ease;
}

.navbar-modern.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    max-width: calc(100% - 3.25rem);
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.navbar-brand img,
.navbar-brand .brand-logo {
    max-height: 48px;
    width: auto;
    flex-shrink: 0;
    margin-right: 0;
}

.navbar-brand .brand-text {
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: var(--color-white);
    line-height: 1.25;
    min-width: 0;
    border-left: 2px solid rgba(230, 57, 70, 0.65);
    padding-inline-start: 1rem;
}

.navbar-modern .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link:focus {
    color: var(--color-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-modern .social-icon {
    font-size: 1.15rem;
    padding: 0.4rem 0.6rem !important;
}

.navbar-modern .social-icon:hover {
    color: var(--color-primary) !important;
}

.btn-primary-custom {
    background: var(--color-primary);
    border: none;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(15, 20, 25, 0.82) 0%, rgba(15, 20, 25, 0.55) 50%, rgba(193, 18, 31, 0.25) 100%),
        url("garage.png") center / cover no-repeat;
    padding: 6rem 1.5rem 4rem;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-white), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    text-align: center;
    animation: fadeInUp 0.9s ease forwards;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.35);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary {
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
}

.btn-hero-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--color-white);
    background: transparent;
}

.btn-hero-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

/* Sections */
.section-block {
    padding: var(--section-py) 0;
}

.section-block--muted {
    background: var(--color-surface);
}

.section-block--dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: inherit;
}

.section-lead {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.section-block--dark .section-lead {
    color: rgba(255, 255, 255, 0.65);
}

.text-accent {
    color: var(--color-primary);
}

/* About */
.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid rgba(230, 57, 70, 0.4);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 1;
    margin: 12px;
}

.about-image-wrap img {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(15, 20, 25, 0.06);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    color: var(--color-primary);
    border-radius: 10px;
    font-size: 1rem;
}

.contact-details {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Service cards (dark section sets white text — cards stay white with dark text) */
.section-block--dark .service-card {
    color: var(--color-dark);
}

.service-card {
    border: 1px solid rgba(15, 20, 25, 0.06);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    color: var(--color-dark);
    padding: 2rem 1.5rem !important;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-color: rgba(230, 57, 70, 0.2);
    }

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

    .gallery-card:hover .gallery-img {
        transform: scale(1.04);
    }

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

    .contact-card:hover {
        transform: translateY(-4px);
    }
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(230, 57, 70, 0.04));
    border-radius: 16px;
    color: var(--color-primary);
    font-size: 1.75rem;
}

.section-block--dark .service-card h5,
.service-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.service-card p {
    color: var(--color-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Gallery */
.gallery-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
    background: var(--color-white);
}

.gallery-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-card .card-body {
    padding: 1.5rem;
}

.gallery-card .card-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.promo-card {
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--color-white);
    padding: 2rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    box-shadow: var(--shadow-md);
}

.promo-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.promo-card .btn {
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Brands */
.brands-strip {
    padding: 3.5rem 0;
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.brand-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Why choose */
.why-card {
    background: var(--color-white);
    border: 1px solid rgba(15, 20, 25, 0.06);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.why-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--color-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Hours table */
.hours-wrap {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.hours-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.hours-table {
    width: 100%;
    table-layout: fixed;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: none;
    margin-bottom: 0;
}

.hours-table thead {
    background: var(--color-dark);
    color: var(--color-white);
}

.hours-table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 1.25rem;
    border: none;
}

.hours-table tbody td {
    padding: 0.9rem 1.25rem;
    vertical-align: middle;
    border-color: rgba(15, 20, 25, 0.06);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.hours-table tbody td:last-child {
    font-size: 0.9rem;
}

.hours-table tbody tr:hover {
    background: rgba(230, 57, 70, 0.04);
}

.hours-table tbody tr:last-child td {
    color: var(--color-muted);
    font-style: italic;
}

/* Map */
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
    max-width: 100%;
    width: 100%;
}

.btn-directions {
    margin-top: 1.5rem;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    background: var(--color-dark);
    border: none;
}

.btn-directions:hover {
    background: var(--color-dark-soft);
}

/* Contact */
.contact-section {
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
}

.contact-section .section-lead,
.contact-section .section-eyebrow {
    color: rgba(255, 255, 255, 0.65);
}

.contact-section .section-eyebrow {
    color: #f4a6ad;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem !important;
    height: 100%;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

@media (hover: hover) {
    .contact-card:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(230, 57, 70, 0.35);
    }
}

.contact-card i {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--color-primary);
}

.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: var(--color-white) !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-fab:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    color: var(--color-white) !important;
}

/* Footer */
.site-footer {
    background: #080b0e;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
    margin: 0;
}

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

@media (max-width: 768px) {
    :root {
        --section-py: 4rem;
    }

    .container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        max-width: 100%;
    }

    .container > .row {
        --bs-gutter-x: 1rem;
    }

    .hero {
        min-height: 85vh;
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 0.25rem;
    }

    .hero-eyebrow {
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .navbar-brand {
        gap: 0.75rem;
    }

    .navbar-brand img,
    .navbar-brand .brand-logo {
        max-height: 40px;
    }

    .navbar-brand .brand-text {
        font-size: 0.95rem;
        padding-inline-start: 0.75rem;
        margin-inline-start: 0;
    }

    .contact-card {
        margin-bottom: 0;
    }

    .whatsapp-fab {
        bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
        right: max(1rem, env(safe-area-inset-right, 0px) + 0.5rem);
    }

    .whatsapp-fab span {
        display: none;
    }

    .whatsapp-fab {
        padding: 0.85rem;
        border-radius: 50%;
    }

    /* Stack hours — long text was forcing page wider than screen */
    .hours-table-scroll {
        overflow: visible;
    }

    .hours-table {
        table-layout: auto;
        box-shadow: none;
    }

    .hours-table thead {
        display: none;
    }

    .hours-table,
    .hours-table tbody,
    .hours-table tr,
    .hours-table td {
        display: block;
        width: 100%;
    }

    .hours-table tbody tr {
        background: var(--color-white);
        border-radius: var(--radius);
        margin-bottom: 0.65rem;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .hours-table tbody tr:hover {
        background: var(--color-white);
    }

    .hours-table tbody td {
        padding: 0.65rem 1rem;
        border: none;
    }

    .hours-table tbody td:first-child {
        font-weight: 700;
        background: var(--color-dark);
        color: var(--color-white);
        padding: 0.75rem 1rem;
    }

    .hours-table tbody td:last-child {
        font-size: 0.88rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .navbar-brand {
        gap: 0.6rem;
    }

    .navbar-brand .brand-text {
        font-size: 0.8rem;
        padding-inline-start: 0.6rem;
        letter-spacing: 0.01em;
    }
}
