/* ============================================
   BAKKAH AUTOMOTIVE GARAGE
   Forest green + olive-gold + cream palette
   ============================================ */

/* Preloader */
@keyframes loading {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}
.animate-loading { animation: loading 1.5s ease-in-out forwards; }
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Scroll indicator */
@keyframes scroll-down {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}
.animate-scroll-down { animation: scroll-down 2s ease-in-out infinite; }

/* Float button pulses */
.whatsapp-pulse { animation: wp-pulse 2.5s ease-in-out infinite; }
@keyframes wp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.55); }
}
.phone-pulse { animation: ph-pulse 2.5s ease-in-out infinite; }
@keyframes ph-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(123, 107, 46, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(123, 107, 46, 0.5); }
}

/* Navbar scroll state */
#navbar.scrolled > div:first-child {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
#navbar.scrolled > div:first-child > div > div { height: 64px; }
#navbar.scrolled > div:nth-child(2) { display: none !important; }

/* Hamburger */
#hamburger {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#hamburger .hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    flex: 0 0 auto;
    background: #ffffff;
    border-radius: 999px;
    transform-origin: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#hamburger.active .hamburger-line {
    opacity: 1;
    transform: none;
}
@media (min-width: 1024px) {
    #hamburger {
        display: none !important;
    }
}
@media (max-width: 1023px) {
    #hamburger {
        display: flex !important;
    }
}
#mobileMenu.open { opacity: 1 !important; visibility: visible !important; }

/* Swiper gallery */
.gallery-swiper { padding-bottom: 56px; }
.gallery-swiper .swiper-pagination-bullet {
    width: 10px; height: 10px;
    background: #c4ccb8; opacity: 1;
    transition: all 0.3s ease;
}
.gallery-swiper .swiper-pagination-bullet-active {
    background: #7b6b2e; width: 28px; border-radius: 5px;
}
.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    width: 44px; height: 44px;
    background: white; border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}
.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
    background: #7b6b2e;
}
.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
    font-size: 14px; font-weight: bold; color: #1e2a1e;
}
.gallery-swiper .swiper-button-prev:hover::after,
.gallery-swiper .swiper-button-next:hover::after {
    color: white;
}

/* Select arrow */
.select-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
select.has-value { color: #1f2937; }
select option { background: white; color: #1f2937; }

/* Back to top */
#backToTop.visible { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #faf8f2; }
::-webkit-scrollbar-thumb { background: #c4ccb8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7b6b2e; }

/* Selection */
::selection { background: rgba(123, 107, 46, 0.2); color: #1e2a1e; }

/* Focus */
*:focus-visible { outline: 2px solid #8b7935; outline-offset: 2px; }

/* Hero Headlight Animation */
.headlight {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
}
.headlight-left {
    width: 400px; height: 500px;
    right: 38%; top: 15%;
    background: radial-gradient(ellipse at center,
        rgba(255, 248, 220, 0.35) 0%,
        rgba(255, 235, 170, 0.18) 25%,
        rgba(255, 220, 120, 0.08) 50%,
        transparent 70%);
    filter: blur(30px);
}
.headlight-right {
    width: 400px; height: 500px;
    right: 18%; top: 15%;
    background: radial-gradient(ellipse at center,
        rgba(255, 248, 220, 0.35) 0%,
        rgba(255, 235, 170, 0.18) 25%,
        rgba(255, 220, 120, 0.08) 50%,
        transparent 70%);
    filter: blur(30px);
}
.headlight-beam {
    position: absolute;
    right: 15%; top: 30%;
    width: 65%; height: 55%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 245, 200, 0.06) 30%,
        rgba(255, 240, 180, 0.12) 60%,
        rgba(255, 235, 160, 0.06) 80%,
        transparent 100%
    );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    filter: blur(40px);
    transform: scaleX(1.3);
}
.headlight.on {
    animation: headlightOn 2s ease-out forwards;
}
.headlight-beam.on {
    animation: beamOn 2.5s ease-out 0.5s forwards;
}
@keyframes headlightOn {
    0% { opacity: 0; transform: scale(0.3); }
    40% { opacity: 0.6; transform: scale(0.8); }
    70% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes beamOn {
    0% { opacity: 0; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
.headlight-flicker {
    animation: flicker 4s ease-in-out infinite 3s;
}
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
    75% { opacity: 0.95; }
}

/* Google Maps Review Cards */
.google-review-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}
.google-review-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.google-stars {
    color: #fbbc04;
    font-size: 14px;
    letter-spacing: 1px;
}
.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 11px;
    color: #5f6368;
    font-weight: 500;
}
.google-g {
    width: 16px; height: 16px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.review-aggregate {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-aggregate-score {
    font-size: 42px;
    font-weight: 700;
    color: #1e2a1e;
    line-height: 1;
}
.review-aggregate-stars .google-stars { font-size: 18px; }
.review-aggregate-count { font-size: 13px; color: #5f6368; }

/* Brands Infinite Marquee */
.brands-marquee-wrapper {
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.brands-marquee {
    animation: marquee-scroll 35s linear infinite;
    width: max-content;
}
.brands-marquee:hover {
    animation-play-state: paused;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brands-track img {
    filter: grayscale(100%) brightness(1.8);
    transition: all 0.4s ease;
}
.brands-track img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1 !important;
    transform: scale(1.15);
}

/* Pricing card glow on hover */
.pricing-card:hover {
    box-shadow: 0 8px 32px rgba(123, 107, 46, 0.15);
}

/* ============================================
   Professional refresh
   ============================================ */
:root {
    --ink: #101814;
    --forest-deep: #111a16;
    --forest-panel: #17231d;
    --muted: #647067;
    --line: rgba(16, 24, 20, 0.1);
    --paper: #ffffff;
    --mist: #f5f6f2;
    --gold: #a38a3d;
}

html {
    scroll-padding-top: 84px;
    overflow-x: hidden;
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(163, 138, 61, 0.08), transparent 28rem),
        linear-gradient(180deg, #fbfaf6 0%, #f4f5ef 100%);
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

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

[data-aos] {
    max-width: 100%;
}

.nav-main {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#navbar.scrolled .nav-main {
    background: rgba(17, 26, 22, 0.94);
    backdrop-filter: blur(16px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: #c7bc7e;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.hero-section {
    isolation: isolate;
}

.hero-section > .absolute.inset-0 > img {
    object-position: center;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 12rem;
    background: linear-gradient(180deg, transparent, rgba(250, 248, 242, 0.96));
    pointer-events: none;
    z-index: 3;
}

.hero-grid {
    position: relative;
    z-index: 5;
}

.hero-stats {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    border-radius: 8px;
    overflow: hidden;
}

.hero-stats > div {
    padding: 20px 22px;
    min-width: 0;
}

.hero-stats > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel-inner {
    position: relative;
    max-width: 430px;
    margin-left: auto;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(23, 35, 29, 0.92), rgba(16, 24, 20, 0.88)),
        rgba(17, 26, 22, 0.9);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-panel-inner::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    pointer-events: none;
}

.hero-panel-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.hero-panel-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-panel-row i {
    color: #c7bc7e;
}

.hero-panel-row strong {
    color: #ffffff;
    white-space: nowrap;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-mini-grid div {
    background: rgba(255, 255, 255, 0.06);
    padding: 16px 12px;
}

.hero-mini-grid span,
.hero-mini-grid small {
    display: block;
}

.hero-mini-grid span {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
}

.hero-mini-grid small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.process-section {
    position: relative;
    z-index: 6;
    border-bottom: 1px solid var(--line);
}

.process-card {
    position: relative;
    min-height: 188px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #fafaf7);
    box-shadow: 0 12px 32px rgba(16, 24, 20, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-card:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 138, 61, 0.34);
    box-shadow: 0 18px 44px rgba(16, 24, 20, 0.1);
}

.process-card > span {
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(16, 24, 20, 0.18);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.process-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--forest-panel);
}

.process-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.process-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.service-card,
.pricing-card,
.google-review-card,
form,
iframe,
section [class*="rounded-xl"],
section [class*="rounded-2xl"] {
    border-radius: 8px !important;
}

.service-card {
    border: 1px solid rgba(16, 24, 20, 0.08) !important;
    box-shadow: 0 10px 28px rgba(16, 24, 20, 0.06) !important;
}

.service-card:hover {
    border-color: rgba(163, 138, 61, 0.28) !important;
    box-shadow: 0 18px 44px rgba(16, 24, 20, 0.12) !important;
}

.pricing-card {
    box-shadow: 0 14px 36px rgba(16, 24, 20, 0.08) !important;
}

.pricing-card.scale-\[1\.04\] {
    transform: none;
}

.google-review-card {
    min-height: 100%;
}

input,
select,
textarea {
    border-radius: 8px !important;
}

input:focus,
select:focus,
textarea:focus {
    background: #ffffff !important;
}

a,
button {
    text-underline-offset: 4px;
}

.phone-pulse,
.whatsapp-pulse {
    animation: none;
}

#backToTop,
body > a.fixed {
    border-radius: 8px !important;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
    }

    .hero-grid {
        padding-top: 6.25rem;
        padding-bottom: 3.75rem;
        gap: 1.75rem;
    }

    .hero-section > .absolute.inset-0 > img {
        object-position: 64% center;
    }

    .hero-stats > div {
        padding: 14px 8px;
        text-align: center;
    }

    .hero-stats > div + div {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 0;
    }

    .hero-stats .text-3xl {
        font-size: 1.55rem !important;
        line-height: 1.05 !important;
        white-space: nowrap;
    }

    .hero-stats .text-xs {
        font-size: 0.58rem !important;
        line-height: 1.25 !important;
    }

    .hero-section h1 {
        margin-bottom: 1.1rem !important;
        font-size: clamp(2.35rem, 11.2vw, 3.6rem);
        line-height: 1.04 !important;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1.75rem !important;
    }

    .hero-grid > div:first-child > .inline-flex {
        margin-bottom: 1.5rem !important;
    }

    .hero-grid > div:first-child > .flex.flex-wrap {
        margin-bottom: 2rem !important;
    }

    .hero-grid a {
        width: 100%;
        justify-content: center;
    }

    .headlight,
    .headlight-beam {
        display: none;
    }

    .process-card {
        min-height: auto;
    }

    /* Pricing cards: remove scale on popular card for mobile */
    .pricing-card { font-size: 0.95rem; }
    .pricing-card.scale-\[1\.04\] { transform: scale(1) !important; }

    /* Mobile menu solid bg */
    #mobileMenu {
        background: #1e2a1e !important;
        backdrop-filter: none !important;
    }

    /* Section text sizing */
    .font-display { word-break: break-word; }

    /* Instagram grid */
    .grid-cols-2 { gap: 8px !important; }

    /* Google review cards stack nicely */
    .google-review-card { padding: 18px; }
}
