/* ============================================
   JAYS AUTO LOCKOUT SERVICE - CUSTOM STYLES
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-burgundy-50: #fdf2f4;
    --color-burgundy-950: #3a0a1a;
    --color-blush-50: #fff8f6;
    --color-cream: #FAF8F6;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Selection */
::selection {
    background: #d4355e;
    color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    background: rgba(250, 248, 246, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(105, 22, 52, 0.08);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-menu.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu.active .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(0px, 0px);
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #691634;
    color: white;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #96153a;
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 22, 52, 0.3);
}

.btn-primary .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 14px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #691634;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #691634;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #691634;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.section-label {
    font-family: var(--font-sans);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 300;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-badge {
    display: inline-flex;
}

.hero-headline {
    font-weight: 300;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 48px; }
    50% { opacity: 1; height: 64px; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .service-card {
        padding: 40px;
        border: 1px solid rgba(105, 22, 52, 0.1);
        position: relative;
        transition: all 0.4s ease;
    }
    
    .service-card:nth-child(2),
    .service-card:nth-child(3) {
        border-left: none;
    }
    
    .service-card:nth-child(1),
    .service-card:nth-child(4) {
        border-top: none;
    }
    
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4),
    .service-card:nth-child(5),
    .service-card:nth-child(6) {
        border-top: none;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card:nth-child(3) {
        border-left: none;
    }
    
    .service-card:nth-child(1),
    .service-card:nth-child(4) {
        border-top: none;
    }
    
    .service-card:nth-child(2),
    .service-card:nth-child(3) {
        border-left: none;
    }
    
    .service-card:nth-child(4),
    .service-card:nth-child(5),
    .service-card:nth-child(6) {
        border-top: none;
    }
}

.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    background: white;
    box-shadow: 0 20px 60px rgba(105, 22, 52, 0.08);
    z-index: 2;
}

.service-card:hover .service-number {
    color: #e86a8a;
}

.service-icon {
    color: #691634;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image-wrapper {
    position: relative;
}

.about-feature {
    transition: transform 0.3s ease;
}

.about-feature:hover {
    transform: translateX(8px);
}

/* ============================================
   SERVICE AREAS
   ============================================ */
.area-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(105, 22, 52, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.area-item:hover {
    padding-left: 12px;
    border-bottom-color: #d4355e;
}

.area-item:hover span:first-child {
    color: #d4355e;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #691634;
    margin-bottom: 8px;
    font-family: var(--font-sans);
}

.form-input {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
    font-size: 15px;
    font-family: var(--font-sans);
    color: #1a1a1a;
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: #bbb;
}

.form-input:focus {
    border-bottom-color: #691634;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23691634' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 32px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
footer a {
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .services-grid {
        gap: 0;
    }
    
    .service-card {
        padding: 32px 0;
        border-bottom: 1px solid rgba(105, 22, 52, 0.1);
    }
    
    .service-card:first-child {
        border-top: 1px solid rgba(105, 22, 52, 0.1);
    }
    
    .hero-headline {
        font-size: 3rem;
    }
    
    @media (min-width: 640px) {
        .hero-headline {
            font-size: 4rem;
        }
    }
    
    .about-image-wrapper img {
        height: 350px;
    }
    
    .contact-item:hover {
        transform: none;
    }
}

@media (min-width: 1024px) {
    .hero-image-wrapper img {
        height: 600px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #691634;
    outline-offset: 2px;
}
