/* ============================================
   Goodyear Tire & Auto Repair - Custom Styles
   ============================================ */

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Geometric Hero Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border: 3px solid white;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid white;
    top: 25%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin-slow 25s linear infinite;
}

.shape-square {
    width: 100px;
    height: 100px;
    border: 3px solid white;
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

.shape-ring {
    width: 160px;
    height: 160px;
    border: 4px solid white;
    border-radius: 50%;
    top: 15%;
    right: 20%;
    animation: spin-slow 18s linear infinite reverse;
}

.shape-dots {
    background-image: radial-gradient(circle, white 2px, transparent 2px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    bottom: 25%;
    right: 30%;
    opacity: 0.15;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   Gated behind JS for safety; content visible by default
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(45, 80, 35, 0.08);
}

/* ============================================
   Service Card Hover (enhanced)
   ============================================ */
.service-card {
    will-change: transform;
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #52843e;
    outline-offset: 2px;
}

/* ============================================
   Mobile Menu Transition
   ============================================ */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #c6dbb8;
    color: #1e3518;
}

/* ============================================
   Utility: Hide scrollbar but keep functionality
   ============================================ */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
