/* ===== M&M German Car Care — Custom Styles ===== */

/* Base styles override */
body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e6a800;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(46, 3, 21, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Hero ===== */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e6a800, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Brand Cards ===== */
.brand-card {
    position: relative;
}

.brand-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(230, 168, 0, 0), rgba(230, 168, 0, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.brand-card:hover::after {
    opacity: 1;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

/* ===== Scroll Reveal ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-on-scroll.delay-100 { transition-delay: 0.1s; }
    .reveal-on-scroll.delay-200 { transition-delay: 0.2s; }
    .reveal-on-scroll.delay-300 { transition-delay: 0.3s; }
    .reveal-on-scroll.delay-400 { transition-delay: 0.4s; }
    .reveal-on-scroll.delay-500 { transition-delay: 0.5s; }
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== Utility: gradient text ===== */
.gradient-text {
    background: linear-gradient(135deg, #e6a800, #ffdb33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Custom selection ===== */
::selection {
    background: rgba(230, 168, 0, 0.3);
    color: #fff;
}

/* ===== Form improvements ===== */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ===== Map filter override ===== */
iframe[title*="Google Maps"] {
    filter: invert(90%) hue-rotate(180deg) contrast(0.9);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ===== Print styles ===== */
@media print {
    #navbar,
    #mobile-menu,
    .reveal-on-scroll {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
    }
}
