/* =========================================
   SEMANTIC VARIABLES
   ========================================= */
:root {
    --color-brand-primary: #d32f2f; /* Red */
    --color-brand-secondary: #1976d2; /* Blue */
    --color-bg-base: #fcfbf8; /* Very Light Cream */
    --color-bg-surface: #ffffff; /* Pure White for sections/cards */
    --color-text-main: #222222; /* Dark Charcoal for readability */
    --color-text-muted: #555555; /* Medium Gray */
    
    --shadow-neon-primary: 0 0 8px var(--color-brand-primary), 0 0 15px var(--color-brand-primary);
    --shadow-neon-secondary: 0 0 8px var(--color-brand-secondary), 0 0 15px var(--color-brand-secondary);
    
    --transition-speed-standard: 0.3s;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(252, 251, 248, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 2px solid var(--color-brand-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px; 
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: bold;
    transition: color var(--transition-speed-standard) ease;
}

.nav-links a:hover {
    color: var(--color-brand-secondary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-bg-surface);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%;
    border-top: 2px solid var(--color-brand-secondary);
    border-radius: 0 0 5px 5px;
}

.dropdown-content li {
    border-bottom: 1px solid #eaeaea;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content li a {
    padding: 12px 16px;
    display: block;
    color: var(--color-text-main);
    text-decoration: none;
    transition: background-color var(--transition-speed-standard) ease;
}

.dropdown-content li a:hover {
    background-color: #f5f5f5;
    color: var(--color-brand-secondary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Neon Button */
.btn-neon {
    background: transparent;
    color: var(--color-text-main) !important;
    border: 2px solid var(--color-brand-secondary);
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-neon-secondary);
    transition: all var(--transition-speed-standard) ease;
    display: inline-block;
}

.btn-neon:hover {
    background: var(--color-brand-secondary);
    color: #ffffff !important;
    box-shadow: 0 0 20px var(--color-brand-secondary), 0 0 40px var(--color-brand-secondary);
}

/* =========================================
   HERO SECTIONS
   ========================================= */
.hero, .service-hero {
    padding-top: 100px; 
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-text-main);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* =========================================
   GENERAL SECTIONS
   ========================================= */
section {
    padding: 4rem 5%;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem auto;
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-brand-primary);
    padding-bottom: 10px;
    width: fit-content;
    display: block;
}

/* =========================================
   SERVICES GRID (HOME PAGE)
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #ddd; 
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #eaeaea;
    transition: transform var(--transition-speed-standard) ease, border-color var(--transition-speed-standard) ease;
}

.service-card:hover {
    transform: scale(1.02);
    border-color: var(--color-brand-primary);
    box-shadow: var(--shadow-neon-primary);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 1rem;
    box-sizing: border-box;
    transition: height var(--transition-speed-standard) ease;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.card-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    white-space: nowrap;
}

.service-card:hover .card-overlay {
    height: 100%;
    justify-content: center;
}

.hover-desc {
    opacity: 0;
    transition: opacity var(--transition-speed-standard) ease;
    margin-top: 15px;
    font-size: 0.95rem;
}

.service-card:hover .hover-desc {
    opacity: 1;
}

/* =========================================
   PROCESS, REVIEWS & FAQ
   ========================================= */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.step {
    background: var(--color-bg-surface);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1 1 200px;
    border-bottom: 3px solid var(--color-brand-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step span {
    display: block;
    font-size: 2rem;
    color: var(--color-brand-primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.review-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.review-box {
    background: var(--color-bg-surface);
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    color: var(--color-text-main);
    text-decoration: none;
    border-left: 4px solid var(--color-brand-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed-standard) ease;
}

.review-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon-secondary);
}

details {
    background: var(--color-bg-surface);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid var(--color-brand-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}

details p {
    margin-top: 10px;
    color: var(--color-text-muted);
}

/* =========================================
   ABOUT PAGE SPECIFICS
   ========================================= */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1 1 500px;
}

.about-image {
    flex: 1 1 400px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--color-brand-secondary);
    box-shadow: var(--shadow-neon-secondary);
}

.why-us-detailed {
    background-color: var(--color-bg-surface);
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.why-us-detailed .grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.why-us-detailed .why-card {
    flex: 1 1 300px;
    max-width: 350px;
}

.why-card {
    background: var(--color-bg-base);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--color-brand-primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.about-cta {
    text-align: center;
}

/* =========================================
   FORMS & PROMOTIONS
   ========================================= */
.promo-banner {
    background: linear-gradient(45deg, var(--color-brand-primary), var(--color-brand-secondary));
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 5%;
    color: white;
    box-shadow: var(--shadow-neon-secondary);
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-surface);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--color-brand-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    background: var(--color-bg-base);
    border: 1px solid #cccccc;
    color: var(--color-text-main);
    border-radius: 5px;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-brand-secondary);
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.3);
}

#form-response {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

/* =========================================
   PHOTO GALLERY (SERVICE PAGES)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-brand-secondary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-speed-standard) ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    border: 1px solid var(--color-brand-primary);
}

/* =========================================
   MODAL (POP-UP) STYLES
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-bg-surface);
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-neon-secondary);
    border-top: 4px solid var(--color-brand-secondary);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--color-text-main);
}

.modal-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 10px; 
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

/* =========================================
   SQUEEGEE BEFORE/AFTER COMPARISON SLIDER
   ========================================= */
.comparison-section {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--color-brand-secondary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    user-select: none;
    cursor: ew-resize;
    touch-action: none; /* Prevents mobile page scrolling while dragging */
}

.comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Starts clipped at 50% */
.before-img {
    clip-path: inset(0 0 0 50%); /* Starts at 50% split */
}

.comp-slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--color-brand-primary);
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
}

/* Custom Squeegee Handle Design */
.squeegee-handle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--color-brand-secondary);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.squeegee-handle-icon::after {
    content: '';
    width: 24px;
    height: 6px;
    background: #ffffff;
    border-radius: 3px;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 1024px) and (min-width: 769px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #main-header {
        position: static;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links a {
        white-space: nowrap;
        font-size: 0.95rem;
    }
    
    .nav-links li:last-child {
        flex-basis: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-links li:last-child .btn-neon {
        display: block;
        width: 80%;
        max-width: 280px;
        padding: 10px 15px;
        font-size: 0.95rem;
        text-align: center;
        margin: 0 auto;
    }
    
    .btn-neon {
        padding: 8px 15px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    .hero, .service-hero {
        padding-top: 40px;
        min-height: 40vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 2.5rem 5%;
    }
    
    section h2 {
        font-size: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: 200px;
    }
    
    .contact-section form {
        padding: 20px;
    }
    
    input, select, textarea {
        font-size: 16px;
    }

    .comparison-slider-container {
        height: 300px;
    }
}

/* =========================================
   SUB-FOOTER / SITE CREDIT
   ========================================= */
.site-credit {
    background-color: var(--color-bg-base);
    border-top: 1px solid #eaeaea;
    padding: 20px 5%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.site-credit p {
    margin: 0;
}

.site-credit a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed-standard) ease;
}

.site-credit a:hover {
    color: var(--color-brand-secondary);
    text-decoration: underline;
}