/* ═══════════════════════════════════════════════════
   Prestige Protect — Luxury Automotive Car Care
   styles.css · Custom effects & animations
   ═══════════════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Header ─── */
.site-header {
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
    background: rgba(8, 12, 18, 0.94) !important;
    box-shadow:
        0 1px 0 rgba(109, 184, 217, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.5);
}
.header-glow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 5%,
        rgba(109, 184, 217, 0.15) 25%,
        rgba(109, 184, 217, 0.4) 50%,
        rgba(109, 184, 217, 0.15) 75%,
        transparent 95%
    );
    pointer-events: none;
}

/* ─── Nav Links ─── */
.nav-link {
    position: relative;
    transition: color 0.25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #6DB8D9;
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
    left: 0;
}
.nav-link:hover {
    color: #8dcbe0;
}
.nav-link.is-active {
    color: #6DB8D9;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    color: #fff;
    background: #6DB8D9;
    border: 1px solid rgba(141, 203, 224, 0.45);
    box-shadow:
        0 4px 16px rgba(109, 184, 217, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(109, 184, 217, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    border-color: rgba(141, 203, 224, 0.65);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}
.btn-ghost:hover {
    border-color: rgba(109, 184, 217, 0.45);
    background: rgba(109, 184, 217, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(109, 184, 217, 0.12);
}

/* ─── Service Cards ─── */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 2.25rem;
    background: linear-gradient(165deg, rgba(16, 24, 34, 0.92), rgba(10, 16, 24, 0.96));
    border: 1px solid rgba(109, 184, 217, 0.07);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% -10%, rgba(109, 184, 217, 0.05), transparent 55%);
    transition: all 0.45s ease;
    pointer-events: none;
}
.service-card:hover {
    border-color: rgba(109, 184, 217, 0.22);
    transform: translateY(-7px);
    box-shadow:
        0 20px 50px rgba(109, 184, 217, 0.08),
        0 0 0 1px rgba(109, 184, 217, 0.06);
}
.service-card:hover::before {
    background: radial-gradient(ellipse at 15% -10%, rgba(109, 184, 217, 0.12), transparent 55%);
}
.service-card .icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(109, 184, 217, 0.07);
    border: 1px solid rgba(109, 184, 217, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.35s ease;
    color: #6DB8D9;
}
.service-card:hover .icon-wrap {
    background: rgba(109, 184, 217, 0.13);
    border-color: rgba(109, 184, 217, 0.25);
    box-shadow: 0 0 24px rgba(109, 184, 217, 0.12);
}

/* ─── USP Cards ─── */
.usp-item {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    background: rgba(14, 20, 28, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.35s ease;
}
.usp-item:hover {
    border-color: rgba(109, 184, 217, 0.15);
    background: rgba(14, 20, 28, 0.65);
    transform: translateY(-3px);
}

/* ─── Gallery ─── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.35s ease;
}
.gallery-item:hover {
    border-color: rgba(109, 184, 217, 0.25);
    box-shadow: 0 8px 32px rgba(109, 184, 217, 0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
    transform: scale(1.07);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 12, 18, 0.75) 0%, transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ─── Lightbox ─── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.lightbox-image {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.625rem;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-overlay.is-open .lightbox-image {
    opacity: 1;
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    padding: 0.625rem;
    border-radius: 0.625rem;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0.875rem;
    border-radius: 9999px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-close:hover,
.lightbox-arrow:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(109, 184, 217, 0.35);
}

/* ─── Mobile Menu ─── */
.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mobile-menu-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}
.mobile-menu-overlay.is-open .mobile-menu-content {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav-link {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu-overlay.is-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Hero Badge Pulse ─── */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(109, 184, 217, 0.18); }
    50% { box-shadow: 0 0 0 12px rgba(109, 184, 217, 0); }
}
.hero-badge {
    animation: badgePulse 3.5s ease-in-out infinite;
}

/* ─── Section Glow Divider ─── */
.section-glow {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 5%,
        rgba(109, 184, 217, 0.12) 30%,
        rgba(109, 184, 217, 0.22) 50%,
        rgba(109, 184, 217, 0.12) 70%,
        transparent 95%
    );
}

/* ─── Accent Bar ─── */
.accent-bar {
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6DB8D9, #8dcbe0);
    margin-top: 0.875rem;
}
.accent-bar-center {
    margin-left: auto;
    margin-right: auto;
}

/* ─── Stat Numbers ─── */
.stat-number {
    background: linear-gradient(135deg, #6DB8D9 0%, #8dcbe0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Service Decorative Image Fade ─── */
.service-image-fade {
    mask-image:
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 35%, rgba(0,0,0,1) 65%, rgba(0,0,0,0.4) 80%, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 20%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,1) 65%, rgba(0,0,0,0.4) 80%, transparent 100%);
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 35%, rgba(0,0,0,1) 65%, rgba(0,0,0,0.4) 80%, transparent 100%),
        linear-gradient(to right, transparent 0%, transparent 20%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,1) 65%, rgba(0,0,0,0.4) 80%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* ─── Coverage Map ─── */
.coverage-map {
    width: 100%;
    height: 400px;
    border-radius: 1.25rem;
    border: 1px solid rgba(109, 184, 217, 0.12);
    box-shadow: 0 0 40px rgba(109, 184, 217, 0.06);
    overflow: hidden;
}
@media (min-width: 1024px) {
    .coverage-map { height: 460px; }
}
.coverage-map .leaflet-control-attribution {
    background: rgba(8, 12, 18, 0.7) !important;
    color: #6b7280 !important;
    font-size: 0.625rem;
    border-radius: 0.375rem 0 0 0;
}
.coverage-map .leaflet-control-attribution a {
    color: #6DB8D9 !important;
}

/* ─── Area Tags ─── */
.area-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #c7e5f0;
    background: rgba(109, 184, 217, 0.07);
    border: 1px solid rgba(109, 184, 217, 0.12);
    transition: all 0.25s ease;
}
.area-tag:hover {
    background: rgba(109, 184, 217, 0.14);
    border-color: rgba(109, 184, 217, 0.3);
}

/* ─── Nav Dropdown ─── */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.nav-dropdown-inner {
    background: rgba(12, 18, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.dropdown-link {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.dropdown-link:hover {
    color: #6DB8D9;
    background: rgba(109, 184, 217, 0.08);
}

/* ─── Mobile Services Submenu ─── */
.mobile-services-submenu {
    display: none;
    padding-left: 1rem;
}
.mobile-services-submenu.is-open {
    display: block;
}
.mobile-submenu-link {
    display: block;
    padding: 0.625rem 0;
    font-size: 1rem;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: color 0.2s ease;
}
.mobile-submenu-link:hover {
    color: #6DB8D9;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    color: #6b7280;
}
.breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: #6DB8D9;
}
.breadcrumb span.separator {
    margin: 0 0.5rem;
    color: #4b5563;
}
.breadcrumb span.current {
    color: #d1d5db;
}

/* ─── Content Prose ─── */
.prose-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose-content p {
    color: #d1d5db;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.prose-content ul, .prose-content ol {
    color: #d1d5db;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.prose-content li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
}
.prose-content a {
    color: #6DB8D9;
    text-decoration: none;
    transition: color 0.2s ease;
}
.prose-content a:hover {
    color: #8dcbe0;
}

/* ─── FAQ Accordion ─── */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.875rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: rgba(14, 20, 28, 0.35);
    transition: border-color 0.25s ease;
}
.faq-item:hover {
    border-color: rgba(109, 184, 217, 0.15);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
}
.faq-question:hover {
    color: #6DB8D9;
}
.faq-question .faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #6DB8D9;
    transition: transform 0.3s ease;
}
.faq-item.is-open .faq-question .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: #9ca3af;
    line-height: 1.7;
}

/* ─── Responsive ─── */
@media (max-width: 639px) {
    .btn-primary,
    .btn-ghost {
        padding: 12px 28px;
        font-size: 0.8125rem;
    }
}
