/* ============================================
   J & J's Auto Sales — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 78, 38, 0.08);
}

.nav-height {
    height: 72px;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7c42;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2d4e26;
    color: #FAFAF5;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #386130;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(45, 78, 38, 0.3);
}

/* Hero Buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FAFAF5;
    color: #1f351a;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: #e3eddf;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #FAFAF5;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1.5px solid rgba(250, 250, 245, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    border-color: rgba(250, 250, 245, 0.7);
    background: rgba(250, 250, 245, 0.08);
    transform: translateY(-2px);
}

/* ============================================
   Form Inputs
   ============================================ */
.input-field {
    background: #fff;
    border: 1.5px solid #c5d9be;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1f351a;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #9abc93;
}

.input-field:focus {
    border-color: #4a7c42;
    box-shadow: 0 0 0 3px rgba(74, 124, 66, 0.15);
}

.input-field:hover:not(:focus) {
    border-color: #6d9b64;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 1;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   Geometric Background Decorations
   ============================================ */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-1 {
    top: 15%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(74, 124, 66, 0.06);
    border: 2px solid rgba(74, 124, 66, 0.08);
}

.circle-2 {
    top: 45%;
    left: 3%;
    width: 80px;
    height: 80px;
    background: rgba(74, 124, 66, 0.04);
    border: 2px solid rgba(74, 124, 66, 0.06);
}

.circle-3 {
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: rgba(74, 124, 66, 0.05);
    border: 2px solid rgba(74, 124, 66, 0.07);
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.square-1 {
    top: 60%;
    left: 8%;
    width: 50px;
    height: 50px;
    background: rgba(74, 124, 66, 0.05);
    border: 2px solid rgba(74, 124, 66, 0.08);
    transform: rotate(45deg);
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.triangle-1 {
    top: 30%;
    left: 12%;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(74, 124, 66, 0.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
}

.menu-line {
    display: block;
}

/* Hamburger animation */
.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
    margin: 0;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .geo-circle,
    .geo-square,
    .geo-triangle {
        animation: none;
    }
    
    .btn-primary,
    .btn-hero-primary,
    .btn-hero-secondary {
        transition: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .nav-height {
        height: 64px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    @media (min-width: 400px) {
        h1 {
            font-size: 3.25rem;
        }
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 5.5rem;
    }
}
