/* ========================================
   DA Auto Repair & Towing - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --trust-blue: #1B4B7F;
    --deep-navy: #0D2840;
    --veteran-gold: #C79A4F;
    --warmth-amber: #E8964E;
    --safety-red: #C73E1D;
    --success-green: #2D5F3F;
    --neutral-900: #1A1A1A;
    --neutral-800: #2D2D2D;
    --neutral-700: #4A4A4A;
    --neutral-600: #6B6B6B;
    --neutral-500: #8C8C8C;
    --neutral-400: #ADADAD;
    --neutral-300: #CECECE;
    --neutral-200: #E5E5E5;
    --neutral-100: #F8F9FA;
    --white: #FFFFFF;

    --font-primary: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

strong {
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--warmth-amber);
    color: var(--white);
}

.btn-primary:hover {
    background: #d6853d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--trust-blue);
    border-color: var(--trust-blue);
}

.btn-secondary:hover {
    background: var(--trust-blue);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: 700;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--deep-navy);
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--neutral-600);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav {
    display: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--neutral-700);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--trust-blue);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--trust-blue);
}

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

.header-phone {
    display: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--trust-blue);
}

.header-phone:hover {
    color: var(--warmth-amber);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--trust-blue);
    transition: all var(--transition-base);
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .header-phone {
        display: block;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation */
.nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--trust-blue) 50%, var(--neutral-800) 100%);
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--veteran-gold);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 16px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--warmth-amber);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 700px;
    opacity: 0.95;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.trust-badge svg {
    color: var(--veteran-gold);
    margin-bottom: 12px;
}

.trust-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    opacity: 0.7;
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    color: var(--deep-navy);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* Why DA Auto Section */
.why-section {
    background: var(--neutral-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--warmth-amber);
    transition: height var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 75, 127, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    color: var(--trust-blue);
}

.feature-title {
    font-size: 1.25rem;
    color: var(--deep-navy);
    margin-bottom: 16px;
}

.feature-description {
    color: var(--neutral-700);
    line-height: 1.7;
}

/* Services Overview */
.services-overview {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--neutral-100);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--trust-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--trust-blue);
    color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.25rem;
    color: var(--deep-navy);
    margin-bottom: 16px;
}

.service-description {
    color: var(--neutral-700);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    color: var(--trust-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-base);
}

.service-card:hover .service-link {
    gap: 12px;
}

/* Social Proof Section */
.social-proof {
    background: var(--deep-navy);
    color: var(--white);
}

.social-proof .section-title {
    color: var(--white);
}

.rating-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.rating-stars {
    display: flex;
    gap: 8px;
    color: var(--veteran-gold);
}

.rating-text {
    text-align: center;
}

.rating-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--veteran-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.rating-label {
    font-size: 1.125rem;
    color: var(--neutral-300);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.review-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.review-stars {
    color: var(--veteran-gold);
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.review-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.review-author {
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* Service Area Section */
.service-area {
    background: var(--neutral-100);
}

.service-area-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 768px) {
    .service-area-content {
        grid-template-columns: 1fr 1fr;
    }
}

.service-area-description {
    font-size: 1.125rem;
    color: var(--neutral-700);
    margin-bottom: 32px;
}

.service-area-address {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--safety-red);
}

.service-area-address svg {
    flex-shrink: 0;
    color: var(--safety-red);
}

.service-area-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--neutral-200);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--deep-navy) 100%);
    color: var(--white);
    padding: 100px 0;
}

.final-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta .section-title {
    color: var(--white);
    margin-bottom: 16px;
}

.final-cta-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--warmth-amber);
    margin-bottom: 24px;
}

.final-cta-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 48px;
    opacity: 0.95;
}

.final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--deep-navy);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 16px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--neutral-400);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(199, 154, 79, 0.15);
    border-radius: 50px;
    color: var(--veteran-gold);
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-heading {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--neutral-400);
}

.footer-links a:hover {
    color: var(--warmth-amber);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--warmth-amber);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* Mobile CTA Button */
.mobile-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--warmth-amber);
    color: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    z-index: 999;
    transition: all var(--transition-base);
}

.mobile-cta:hover {
    background: var(--trust-blue);
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .mobile-cta {
        display: none;
    }
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive Adjustments */
@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .features-grid,
    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
