/* Custom styles for Tony's Complete Auto Care */

:root {
    --color-navy-900: #0a192f;
    --color-navy-800: #112240;
    --color-gold-400: #fbbf24;
    --color-gold-500: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Geometric decorative elements */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle {
    border-radius: 50%;
}

.geo-square {
    border-radius: 1rem;
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-400);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-gold-400);
    outline-offset: 2px;
}

/* Ensure all text has proper contrast */
.text-navy-900 { color: #0a192f; }
.text-navy-800 { color: #112240; }
.text-navy-700 { color: #1a365d; }
.text-navy-600 { color: #2d4a6f; }
.text-navy-500 { color: #4a6fa5; }
.text-navy-100 { color: #e2e8f0; }

.text-gold-400 { color: #fbbf24; }
.text-gold-500 { color: #f59e0b; }
.text-gold-600 { color: #d97706; }

.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/10 { color: rgba(255, 255, 255, 0.1); }
.text-white\/20 { color: rgba(255, 255, 255, 0.2); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }

/* Ensure hero text is readable */
#hero h1,
#hero p,
#hero a {
    color: inherit;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease-in-out;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
