:root {
    --primary: #dd2c00;
    --secondary: #1a202c;
    --bg: #f8fafc;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body { font-family: 'Inter', sans-serif; background: var(--bg); margin: 0; color: var(--secondary); line-height: 1.5; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.hidden { display: none !important; }

/* --- NAVIGATION --- */
nav { background: white; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: #000; }
.logo span { color: var(--primary); }

/* --- THE WORKING GALLERY STYLING --- */
.gallery-wrapper { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: var(--shadow);
}

.main-viewer { 
    width: 100%;
    background: #000; /* Black background for any minor gaps */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-viewer img { 
    width: 100%; 
    height: auto; /* ALLOWS THE IMAGE TO BE FULL SIZE */
    display: block;
    object-fit: contain;
}

.thumb-row { 
    display: flex; 
    gap: 10px; 
    padding: 15px; 
    overflow-x: auto; 
    background: #fff;
    border-top: 1px solid #eee;
}

.thumb-row img { 
    width: 100px; 
    height: 70px; 
    object-fit: cover; 
    border-radius: 6px; 
    cursor: pointer; 
    border: 3px solid transparent; 
    opacity: 0.6;
    transition: 0.2s;
    flex-shrink: 0;
}

.thumb-row img:hover, .thumb-row img.active { 
    opacity: 1; 
    border-color: var(--primary); 
}

/* --- DASHBOARD & GRIDS --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-content { padding: 15px; }

/* --- UI COMPONENTS --- */
.hero { padding: 80px 20px; text-align: center; background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1920'); background-size: cover; background-position: center; border-bottom: 1px solid #e2e8f0; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 40px 0; }
.how-step { background: white; padding: 25px; border-radius: 15px; box-shadow: var(--shadow); text-align: center; }
.step-num { background: var(--primary); color: white; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; margin: 0 auto 10px; font-weight: bold; }
.problem-solution-neutral { background: #edf2f7; padding: 40px; border-radius: 20px; margin: 40px 0; text-align: center; border: 1px solid #e2e8f0; }

.btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; transition: 0.2s; text-align: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-outline { background: white; border: 2px solid var(--secondary); color: var(--secondary); }

/* --- FLYER PRINTING (VERSION 3 RED) --- */
#flyer-template { display: none; }
@media print {
    @page { margin: 0; size: portrait; }
    html, body { height: 100%; overflow: hidden; background: white; }
    body * { display: none !important; }
    #flyer-template, #flyer-template * { display: block !important; }
    #flyer-template { width: 100vw; height: 100vh; display: flex !important; justify-content: center; align-items: center; background: white; }
    .flyer-inner { width: 90%; height: 94%; border: 18px solid #1a202c; padding: 20px; text-align: center; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
    .flyer-main-title { font-size: 5.5rem; font-weight: 900; color: #dd2c00; margin: 0; line-height: 1; }
    #print-title { font-size: 3.2rem; text-transform: uppercase; font-weight: 800; color: #1a202c; margin: 10px 0; line-height: 1.1; }
    #print-price { font-size: 4.5rem; color: #1a202c; margin: 0; font-weight: 900; }
    #print-mileage { font-size: 2.2rem; color: #4a5568; font-weight: 700; margin: 0; }
    .flyer-qr-wrapper { flex-grow: 1; display: flex !important; align-items: center; justify-content: center; width: 100%; }
    .flyer-qr-wrapper canvas { display: none !important; }
    .flyer-qr-wrapper img { width: 450px !important; height: 450px !important; margin: auto; }
    .flyer-foot { width: 100%; border-top: 3px solid #eee; padding-top: 15px; font-weight: bold; font-size: 1.2rem; color: #718096; }
}

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: white; padding: 30px; border-radius: 20px; width: 400px; }
input, textarea { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-family: inherit; }