/* --- Pre-loader Styles --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212; /* Matches your Sigma dark theme */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Higher than everything else */
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content { text-align: center; color: #fff; }

.sigma-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top: 5px solid #c1121f; /* Your Primary Red */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Class to hide the loader */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}


/* --- Global Reset & Variables --- */
:root {
    --primary: #c1121f; 
    --primary-hover: #a00e18;
    --dark: #121212;
    --light: #f8f9fa;
    --white: #ffffff;
    --gold: #ffb400;
    --border: #e0e0e0;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    background: var(--white); 
    scroll-behavior: smooth; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header & Navigation --- */
header { 
    padding: 15px 0; 
    background: var(--white); 
    border-bottom: 1px solid #eee; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 22px; 
    font-weight: 800; 
    color: var(--primary); 
    text-decoration: none; 
    letter-spacing: -1px; 
}

.contact-top { 
    font-weight: 700; 
    color: var(--dark); 
    text-decoration: none; 
    background: #eee; 
    padding: 8px 15px; 
    border-radius: 5px; 
}

/* --- Hero Section --- */
.hero { 
    padding: 120px 0; 
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../app/direct-auto-glass.webp'); 
    background-size: cover; 
    background-position: center; 
    color: var(--white); 
    text-align: center; 
}

.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero p { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.9; max-width: 800px; margin: 0 auto 35px; }

.btn { 
    display: inline-block; 
    padding: 18px 35px; 
    border-radius: 6px; 
    font-weight: 700; 
    text-decoration: none; 
    transition: 0.3s; 
    cursor: pointer; 
    border: none; 
}

.btn-main { background: var(--primary); color: white; margin-right: 15px; box-shadow: 0 5px 15px rgba(193, 18, 31, 0.4); }
.btn-main:hover { transform: translateY(-3px); background: var(--primary-hover); }

/* --- Trust Bar --- */
.trust-bar { background: var(--light); padding: 30px 0; border-bottom: 1px solid #ddd; }
.trust-flex { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; gap: 20px; }
.trust-item span { color: var(--primary); font-size: 1.1rem; font-weight: bold; }

/* --- Services Grid --- */
.services { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 10px; }

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.card { 
    background: var(--white); 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: var(--shadow); 
    border: 1px solid #eee; 
    transition: 0.3s; 
}
.card:hover { transform: translateY(-10px); border-color: var(--primary); }
.card h3 { margin-bottom: 15px; color: var(--primary); }

/* --- SEO Content --- */
.seo-content { padding: 80px 0; background: var(--light); }
.seo-flex { display: flex; gap: 50px; align-items: center; flex-wrap: wrap; }
.seo-text { flex: 1; min-width: 300px; }

/* --- Testimonials --- */
.testimonials { padding: 100px 0; }
.testi-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 25px; 
}
.testi-card { background: var(--light); padding: 30px; border-radius: 12px; border: 1px solid #efefef; }
.stars { color: var(--gold); margin-bottom: 15px; font-size: 1.2rem; }
.customer { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.customer-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #ccc; }

/* --- FAQ Accordion --- */
.faq-section { padding: 80px 0; background: var(--light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }

.faq-question { 
    width: 100%; padding: 20px; text-align: left; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.1rem; font-weight: 600; cursor: pointer;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 20px 20px; color: #555; }
.faq-item.active .faq-answer { max-height: 500px; }

/* --- Location Section --- */
.location-section { padding: 80px 0; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.loc-card { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: var(--shadow); }
.contact-row { margin-bottom: 10px; font-size: 1.1rem; }
.btn-xl { 
    display: inline-block; padding: 15px 30px; background: var(--primary); 
    color: white; text-decoration: none; font-weight: bold; border-radius: 5px; 
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-flex { flex-direction: column; gap: 15px; }
    .loc-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; margin: 10px 0; text-align: center; }
}