/**
 * NORTHVILLE MOBILE DETAILING
 * Family Business Rescue Mission - CSS
 * Mobile-First Responsive Design
 */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #007acc;
    --primary-dark: #005a99;
    --secondary-color: #28a745;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
    overflow-x: hidden;
    max-width: 100%;
}

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

picture {
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left picture {
    width: 250px;
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--primary-dark);
    font-weight: 700;
}

.nav-cta {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

.mobile-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-logo picture {
    width: 200px;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger picture {
    width: 30px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow);
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 99;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.mobile-menu a:hover {
    background: var(--bg-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.hero picture {
    width: 100%;
    height: 100%;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 15px;
    max-width: 90%;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    background: var(--primary-color);
    color: #fff !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-section h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.features picture {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.features-list p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

/* Trust Section */
.trust-section {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 3rem;
}

.trust-section p:first-child {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Divider */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

/* Services CTA */
.services-cta {
    text-align: center;
    margin: 3rem 0;
}

.btn-large {
    display: inline-block;
    background: var(--primary-color);
    color: #fff !important;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Contact Section */
.contact-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.contact-section picture {
    margin: 3rem auto;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 3rem;
    margin: 1rem 0;
}

.contact-info h2 a {
    color: #fff;
}

.contact-info h2 a:hover {
    color: #f0f0f0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content picture {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-closing {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin: 2rem auto;
    max-width: 900px;
}

.signature {
    text-align: center;
    font-style: italic;
    color: var(--primary-color);
    margin-top: 2rem;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Image Slider */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slider picture {
    min-width: 100%;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Service Details */
.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.service-block {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.service-block h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-block ul {
    list-style: none;
}

.service-block li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-block li:last-child {
    border-bottom: none;
}

.service-block li::before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Pricing Section */
.pricing-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.pricing-section picture {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-card {
    background: var(--primary-color);
    color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.pricing-group h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.2rem;
}

.price-row strong {
    font-size: 1.5rem;
}

.pricing-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
}

.pricing-notes {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    line-height: 1.8;
}

.services-contact {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.services-contact h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.services-contact h2 a {
    color: var(--primary-color);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-item picture {
    width: 80px;
    margin: 0 auto 1rem;
}

.contact-phone,
.contact-email {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-top: 1rem;
}

.contact-service-area {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.contact-highlight {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    max-width: 900px;
}

.legal-page h1 {
    color: var(--primary-color);
}

.legal-page h2 {
    color: var(--primary-dark);
    margin-top: 2rem;
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
    text-align: center;
    padding: 5rem 1.5rem;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark) !important;
}

.btn-secondary:hover {
    background: var(--border-color);
}

.error-contact h3 {
    font-size: 2rem;
}

.error-contact h3 a {
    color: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #fff;
}

.footer-links a:hover {
    color: #f0f0f0;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
#backToTop,
#accessibilityBtn {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#backToTop {
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    display: none;
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

#accessibilityBtn {
    left: 30px;
    background: var(--secondary-color);
    color: #fff;
}

#accessibilityBtn:hover {
    background: #218838;
    transform: translateY(-3px);
}

/* ============================================
   ACCESSIBILITY MODAL
   ============================================ */
.accessibility-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.accessibility-content {
    background: #fff;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.accessibility-content h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.accessibility-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.accessibility-close:hover {
    color: var(--primary-color);
}

.accessibility-option {
    padding: 1.5rem;
    margin: 1rem 0;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-option span {
    font-weight: 700;
}

.accessibility-option button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.accessibility-option button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   ACCESSIBILITY FEATURES
   ============================================ */
body.large-text {
    font-size: 1.3em !important;
}

body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast .nav,
body.high-contrast .footer,
body.high-contrast .mobile-nav-bar {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast a {
    color: #00ffff !important;
}

body.high-contrast .accessibility-content {
    background: #222 !important;
    color: #fff !important;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Navigation */
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    /* Hero */
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Layout adjustments */
    .features,
    .about-content,
    .service-details,
    .pricing-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .error-links {
        flex-direction: column;
    }

    /* Text sizes */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Buttons */
    #backToTop,
    #accessibilityBtn {
        width: 45px;
        height: 45px;
        bottom: 20px;
    }

    #backToTop {
        right: 20px;
    }

    #accessibilityBtn {
        left: 20px;
    }

    .accessibility-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .accessibility-option {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .nav,
    .mobile-nav,
    .footer,
    #backToTop,
    #accessibilityBtn,
    .accessibility-modal {
        display: none !important;
    }
}
