/* ===================================
   BRIGHT AUTO SERVICE - MAIN STYLESHEET
   Mobile-First Responsive Design
   =================================== */

/* CSS Variables for Easy Customization */
:root {
    /* Colors */
    --primary-blue: #1E3A8A;
    --accent-orange: #FF6B35;
    --dark-gray: #1F2937;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --success-green: #10B981;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-small: 14px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Other */
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-orange);
}

ul {
    list-style: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

h1 {
    font-size: 2rem; /* 32px */
}

h2 {
    font-size: 1.75rem; /* 28px */
}

h3 {
    font-size: 1.5rem; /* 24px */
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-subtitle {
    font-size: var(--font-size-large);
    color: #6B7280;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-width: 150px;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
}

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

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 18px 36px;
    font-size: var(--font-size-large);
    min-width: 180px;
}

.btn-call {
    font-size: var(--font-size-large);
}

/* ===================================
   HEADER
   =================================== */

.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    height: 50px;
    width: auto;
}

/* Desktop Navigation - Hidden on Mobile */
.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-desktop a {
    color: var(--dark-gray);
    font-weight: 500;
    padding: var(--spacing-xs);
}

.nav-desktop a:hover {
    color: var(--accent-orange);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: var(--spacing-xs);
    min-width: 220px;
    z-index: 100;
    margin-top: 4px;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: var(--transition);
}

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

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

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

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: var(--spacing-sm) 0;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
}

.nav-mobile a {
    display: block;
    padding: var(--spacing-sm);
    color: var(--dark-gray);
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
}

.nav-mobile a:hover {
    background-color: var(--light-gray);
    color: var(--accent-orange);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(255, 107, 53, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.badge-icon {
    display: inline-block;
    background-color: var(--success-green);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

/* ===================================
   TRUST SECTION
   =================================== */

.trust-section {
    background-color: var(--light-gray);
    padding: var(--spacing-xl) 0;
}

.google-reviews {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.stars {
    color: #FBBF24;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.why-choose h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.benefits-grid {
    display: grid;
    gap: var(--spacing-md);
}

.benefit {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.benefit h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.benefit p {
    font-size: var(--font-size-small);
    color: #6B7280;
    margin: 0;
}

/* ===================================
   SERVICES PREVIEW
   =================================== */

.services-preview {
    padding: var(--spacing-xl) 0;
}

.services-preview h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.services-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-orange);
    box-shadow: var(--box-shadow);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    font-size: var(--font-size-small);
    color: #6B7280;
    margin-bottom: var(--spacing-sm);
}

.service-link {
    color: var(--accent-orange);
    font-weight: 600;
    display: inline-block;
    margin-top: var(--spacing-xs);
}

.service-link:hover {
    color: var(--primary-blue);
}

.services-cta {
    text-align: center;
}

/* ===================================
   SPECIAL OFFER
   =================================== */

.special-offer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E40AF 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.offer-content {
    max-width: 600px;
    margin: 0 auto;
}

.offer-badge {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-small);
}

.special-offer h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.offer-includes {
    text-align: left;
    margin: var(--spacing-md) auto;
    max-width: 300px;
}

.offer-includes li {
    padding: var(--spacing-xs) 0;
    font-size: var(--font-size-large);
}

.offer-note {
    font-size: var(--font-size-small);
    opacity: 0.9;
    margin: var(--spacing-md) 0;
}

/* ===================================
   HOW IT WORKS
   =================================== */

.how-it-works {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.steps {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.step {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-color: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.step h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.step p {
    color: #6B7280;
    margin: 0;
}

/* ===================================
   TESTIMONIALS
   =================================== */

.testimonials {
    padding: var(--spacing-xl) 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.testimonials-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.testimonial {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-orange);
}

.testimonial .stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: var(--font-size-small);
    margin: 0;
}

.testimonials-cta {
    text-align: center;
}

/* ===================================
   FINAL CTA
   =================================== */

.final-cta {
    background-color: var(--light-gray);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.final-cta h2 {
    margin-bottom: var(--spacing-sm);
}

.final-cta p {
    font-size: var(--font-size-large);
    color: #6B7280;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.cta-info {
    font-size: var(--font-size-small);
    color: #6B7280;
    line-height: 1.8;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.footer-col p {
    font-size: var(--font-size-small);
    margin-bottom: var(--spacing-sm);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-col a {
    color: #D1D5DB;
    font-size: var(--font-size-small);
}

.footer-col a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--font-size-small);
    color: #9CA3AF;
    margin: 0;
}

.footer-bottom a {
    color: #9CA3AF;
}

/* ===================================
   FLOATING CALL BUTTON (Mobile)
   =================================== */

.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.floating-call-btn:hover {
    background-color: #E55A26;
    transform: scale(1.1);
}

/* Hide on desktop */
@media (min-width: 768px) {
    .floating-call-btn {
        display: none;
    }
}

/* Ensure dropdown is properly hidden on mobile and only shows when active */
@media (max-width: 1023px) {
    .dropdown-menu {
        display: none !important;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        margin-top: var(--spacing-xs);
        margin-left: var(--spacing-sm);
    }
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */

@media (min-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.5rem; /* 40px */
    }
    
    h2 {
        font-size: 2rem; /* 32px */
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .trust-badges {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Grids - 2 Columns */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===================================
   RESPONSIVE DESIGN - DESKTOP
   =================================== */

@media (min-width: 1024px) {
    /* Typography */
    h1 {
        font-size: 3rem; /* 48px */
    }
    
    h2 {
        font-size: 2.25rem; /* 36px */
    }
    
    /* Header - Show Desktop Nav */
    .nav-desktop {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0;
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    /* Grids - 3+ Columns */
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Skip to Main Content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-orange);
    color: var(--white);
    padding: var(--spacing-xs);
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .header,
    .hero,
    .footer,
    .floating-call-btn,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}
