:root {
    --primary: #2563eb;
    --dark: #1e365c;
    --accent: #10b981;
    --light: #f8fafc;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--light); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto;}

/* Preloader */
body.page-hidden { overflow: hidden; height: 100vh; }
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); z-index: 9999; display: flex; align-items: center; justify-content: center;
    flex-direction: column; transition: opacity 0.5s ease;
}
.loader-logo { font-size: 2rem; font-weight: 800; }
.loader-logo span { color: var(--primary); }
.loader-line-bg { width: 200px; height: 3px; background: #eee; margin-top: 15px; border-radius: 10px; overflow: hidden; }
.loader-line { width: 0; height: 100%; background: var(--primary); transition: width 1s ease; }

/* Header */
.main-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom:1px solid #e2e8f0; position:sticky; top:0; z-index:1000;}
.nav-container { height:70px; display:flex; align-items:center; justify-content:space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-size:1.5rem; font-weight:800; color:var(--dark); text-decoration: none; }
.logo span { color: var(--primary); }
.nav-menu { display:flex; list-style:none; gap:25px; align-items: center; }
.nav-menu a { text-decoration:none; color:var(--dark); font-weight:500; font-size:0.95rem; transition: 0.3s; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta-btn { background: var(--dark); color:white; padding:10px 20px; border-radius:5px; font-weight:600; font-size:0.9rem; text-decoration:none; transition: 0.3s; }
.nav-cta-btn:hover { background: var(--primary); }

/* Hamburger */
.hamburger { display:none; cursor:pointer; flex-direction:column; gap:5px; }
.hamburger span { display:block; width:25px; height:3px; background:var(--dark); transition:0.3s; border-radius:2px; }
.hamburger.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Hero Section */
.hero { padding:100px 0; background:white; overflow: hidden; }
.hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.top-badge { color:var(--primary); font-weight:bold; font-size:0.8rem; text-transform:uppercase; letter-spacing:1px; display: block; margin-bottom: 10px; }
.hero-content h1 { font-size:3.5rem; line-height:1.1; margin-bottom:20px; }
.hero-content h1 span { color: var(--primary); }
.hero-content h3 { font-size:1.2rem; font-weight:600; color:#334155; margin-bottom:15px; }
.hero-content p { margin-bottom:35px; font-size:1.1rem; color:#64748b; max-width: 500px; }
.hero-image { position:relative; }
.hero-image img { width:100%; border-radius:20px; box-shadow:0 25px 50px -12px rgba(0,0,0,0.1); display: block; }

/* Fixed Animation Alignment */
.floating-stat { 
    position:absolute; bottom: -40px; 
    background:var(--white); padding:15px 20px; border-radius:12px; 
    box-shadow:0 10px 25px rgba(0,0,0,0.15); display:flex; 
    align-items:center; gap:12px; font-weight:600; 
    border-left:5px solid var(--accent); 
    animation: floatY 4s ease-in-out infinite; 
    z-index: 5; width: 100%; justify-content: center;
}

/* Buttons */
.btn { padding:14px 28px; border-radius:6px; text-decoration:none; font-weight:bold; display:inline-block; transition:0.3s; }
.btn-primary { background:var(--primary); color:white; border: 1px solid var(--primary); }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background:var(--dark); color:white; margin-left:10px; border: 1px solid var(--dark); }
.btn-secondary:hover { background: #000; }
.btn-white { background:white; color:var(--primary); }
.btn-outline-white { border:2px solid white; color:white; }

/* Services */
.services { padding:100px 0; }
.section-header { text-align:center; margin-bottom:50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.service-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:25px; margin-bottom:50px; }
.service-item { background:white; padding:40px 20px; border-radius:15px; text-align:center; border:1px solid #e2e8f0; transition:all .35s ease; }
.service-item:hover { transform:translateY(-10px); box-shadow:0 20px 40px rgba(0,0,0,0.05); border-color: var(--primary); }
.service-item i { font-size:2.5rem; color:var(--primary); margin-bottom:15px; display:block; }
.service-item span{ font-weight:700; font-size: 1.1rem; }

.issue-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; list-style:none; }
.issue-list li { background:white; padding:15px 25px; border-radius:10px; font-weight:500; display:flex; align-items:center; gap:15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.issue-list i{ color:var(--primary); font-size: 1.2rem; width: 25px; text-align: center; }

/* How It Works */
.how-it-works{ padding:100px 0; background:var(--dark); color:white; }
.steps-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:40px; margin-top:50px; }
.step{text-align:center; position: relative;}
.step-icon{ width:60px; height:60px; background:var(--primary); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; font-weight:800; font-size:1.5rem; }

/* Why Us */
.why-us{ padding:100px 0; background:white; }
.grid-4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:30px; }
.why-card{ padding:40px 30px; border-radius:15px; background:var(--light); transition:all .35s ease; border: 1px solid transparent; }
.why-card:hover{ transform:translateY(-8px); background: white; border-color: #e2e8f0; box-shadow:0 20px 40px rgba(0,0,0,0.05); }
.why-card i{ font-size:2.5rem; color:var(--primary); margin-bottom:20px; }
.why-card h4 { margin-bottom: 10px; font-size: 1.2rem; }

/* Info Split */
.info-split{ padding:60px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pricing-card, .area-card{ background:white; padding:45px; border-radius:20px; border:1px solid #e2e8f0; height: 100%; }
.diagnostic-box{ margin-top:25px; padding:18px; background:#fff1f2; color:#be123c; border-radius:8px; font-weight:bold; text-align: center; border: 1px dashed #fda4af; }

/* Final CTA */
.final-cta{ padding:100px 0; background:var(--primary); color:white; text-align:center; }
.cta-button-group{ margin-top:40px; display:flex; justify-content:center; gap:20px; flex-wrap:wrap; }

/* Footer */
.footer{ padding:80px 0 30px; background:#1e365c; color:#94a3b8; }
.footer-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:50px; margin-bottom:50px; }
.footer h4{ color:white; margin-bottom:25px; font-size: 1.1rem; }
.social-icons{ display:flex; gap:20px; margin-top:20px; }
.social-icons a{ color:#94a3b8; font-size:1.5rem; transition: 0.3s; }
.social-icons a:hover { color: white; }
.footer-bottom{text-align:center; padding-top:30px; border-top:1px solid #1e293b; font-size:0.9rem; }

/* Animations */
@keyframes floatY{ 0%{transform:translateY(0);} 50%{transform:translateY(-15px);} 100%{transform:translateY(0);} }

.reveal{ opacity:0; transform:translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active{ opacity:1; transform:translateY(0); }

/* Mobile Adjustments */
@media(max-width:992px) {
    .hero-grid, .info-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .floating-stat { left: 50%; transform: translateX(-50%); bottom: -10px; width: 100%; }
    @keyframes floatY{ 0%{transform:translate(-50%, 0);} 50%{transform:translate(-50%, -10px);} 100%{transform:translate(-50%, 0);} }
}

@media(max-width:768px){
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: white; flex-direction: column; padding: 40px 20px; transition: 0.4s;
        align-items: center; border-top: 1px solid #eee;
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .desktop-only { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn-secondary { margin-left: 0; }
    .issue-list { grid-template-columns: 1fr; }
}
.logo-img{
    max-width: 175px;
    margin-top: 10px;
}
/* --- Mobile Responsive Fixes --- */

@media (max-width: 992px) {
    /* Hero section adjustments */
    .hero { padding: 60px 0; }
    .hero-grid { gap: 30px; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { display: flex; flex-direction: row; gap: 10px; align-items: center; }
    .btn-primary { width: 50%; text-align: center;}
    .btn-white { width: 70%; text-align: center;}
    .btn-dark { width: 70%; text-align: center;}
    .btn-secondary { width: 50%; margin-left: 0; text-align: center;}
    
    /* Services & Info Grids */
    .service-grid, .grid-4, .info-grid { grid-template-columns: 1fr; }
    
    /* How it works */
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-container { margin-top: 30px; }
}

@media (max-width: 768px) {
    /* Container padding for better mobile margins */
    .container { padding: 0 20px; }
    
    /* Header/Nav mobile adjustment */
    .nav-container { padding: 0 15px; }
    
    /* Quote section - fix for mobile screen width */
    .quote-section { padding: 50px 0; }
    .quote-grid-layout { gap: 20px; }
    .quote-main-card { padding: 20px; }
    
    /* Ensure scrollable grid fits small screens */
    .grid-select-scroll { 
        grid-template-columns: repeat(2, 1fr); 
        max-height: 300px;
    }
    
    .select-card img { height: 50px; }
    
    /* Fix Footer mobile layout */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .social-icons { justify-content: center; }
    .reveal.active{ text-align: left;}
}

/* Ensure images don't overflow */
img { max-width: 100%; height: auto; }

/* Adjust floating stat for very small screens */
@media (max-width: 480px) {
    .floating-stat { font-size: 0.8rem; padding: 10px; }
}

/* Quote Section Styles */
/* Quote Section Styles */
.quote-section { padding: 100px 0; background: var(--white); }
.quote-container { 
    max-width: 800px; 
    margin: 0 auto; 
    background: var(--light); 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.quote-step { display: none; }
.quote-step.active { display: block; animation: fadeIn 0.5s ease; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--dark); }

.grid-select { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 15px; 
    margin-bottom: 20px;
}
.select-card {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.select-card i { font-size: 1.5rem; margin-bottom: 10px; color: #64748b; display: block; }
.select-card span { font-size: 0.9rem; font-weight: 600; }
.select-card.selected { border-color: var(--primary); background: #fff; }
.select-card.selected i { color: var(--primary); }

.text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
}
.text-input:focus { outline: none; border-color: var(--primary); }

.contact-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}
.method-card {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background: white;
}
.method-card.selected { background: var(--primary); color: white; border-color: var(--primary); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Quote Wizard Enhancements */
.quote-grid-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-top: 40px; }
.quote-main-card { background: var(--white); padding: 40px; border-radius: 20px; border: 1px solid #e2e8f0; min-height: 450px; }
.summary-sidebar { background: var(--dark); color: white; padding: 30px; border-radius: 20px; height: fit-content; position: sticky; top: 100px; }

.summary-item { margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.summary-label { font-size: 0.75rem; text-transform: uppercase; color: var(--primary); font-weight: 800; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.summary-value { font-size: 1.1rem; font-weight: 600; display: block; }

/* Numbered Steps */
.step-indicator { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 40px; 
    position: relative;
}
/* Connecting line between numbers */
.step-indicator::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-number { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    background: white;
    border: 2px solid #e2e8f0;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800;
    color: #64748b;
    z-index: 2;
    transition: 0.3s;
}

.step-number.active { 
    background: var(--primary); 
    border-color: var(--primary);
    color: white; 
}

.usp-list { list-style: none; margin-top: 20px; }
.usp-list li { font-size: 0.85rem; margin-bottom: 8px; color: #94a3b8; display: flex; align-items: center; gap: 10px; }
.usp-list i { color: var(--accent); }

@media(max-width: 850px) {
    .quote-grid-layout { grid-template-columns: 1fr; }
    .summary-sidebar { order: 0; }
/*    .summary-sidebar { background: var(--dark); color: white; padding: 30px; border-radius: 20px; height: fit-content; position: sticky; top: 100px; }*/
}
.select-card img {
    width: auto;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.select-card:hover img {
    transform: scale(1.1);
}
/* Ensure the grid looks good for many models */
.grid-select-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 15px;
}

.how-it-works { 
    padding: 100px 0; 
    background: var(--dark); 
    color: white; 
    position: relative;
    overflow: hidden;
}

.process-container {
    position: relative;
    margin-top: 60px;
}

/* The connecting line (Desktop only) */
.process-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(37, 99, 235, 0.3);
    border-top: 2px dashed var(--primary);
    z-index: 1;
}

.steps-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 30px; 
    position: relative;
    z-index: 2;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.step-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.step-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: 0.3s;
}

.step-card:hover .step-icon-wrap {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.step-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: white;
}

.step-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .process-line { display: none; }
    .step-card { padding: 30px 20px; }
}
@media (max-width: 375px) {
    .btn-primary {
        width: 55%;
    }
}

.color-white{
    color: #94a3b8 !important;
    text-decoration: none !important;
}