/* =========================================
   Redline Auto Detailing — Main Stylesheet
   Precision. Performance. Preserved.
   ========================================= */

:root {
    --dark:         #111416;
    --dark-alt:     #161a1d;
    --dark-surface: #1e2226;
    --dark-border:  #2c3035;
    --red:          #e10018;
    --red-hover:    #c80015;
    --white:        #ffffff;
    --light:        #f8f9fa;
    --text-muted:   #8a8f94;
    --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    --transition:   all 0.3s ease;
    --shadow:       0 4px 24px rgba(0,0,0,0.35);
    --shadow-red:   0 4px 24px rgba(225,0,24,0.35);
    --radius:       4px;
}

/* ── Reset & Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

a { transition: color 0.2s ease; }
img { max-width: 100%; }

/* ── Navigation ─────────────────────────── */
#mainNav {
    background-color: rgba(17,20,22,0);
    padding: 1.25rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
    background-color: rgba(17,20,22,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.65rem 0;
    box-shadow: 0 2px 24px rgba(0,0,0,0.6);
    border-bottom-color: rgba(44,48,53,0.6);
}

#mainNav .navbar-brand img {
    height: 46px;
    transition: height 0.4s ease;
}

#mainNav.scrolled .navbar-brand img { height: 38px; }

#mainNav .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--white) !important;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { width: 60%; }

.navbar-toggler {
    border-color: rgba(255,255,255,0.25) !important;
    padding: 0.35rem 0.65rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991px) {
    #mainNav .navbar-collapse {
        background-color: rgba(17,20,22,0.98);
        border: 1px solid var(--dark-border);
        border-radius: var(--radius);
        padding: 0.75rem 1rem;
        margin-top: 0.5rem;
    }
    #mainNav .nav-link::after { display: none; }
    #mainNav .nav-link {
        padding: 0.65rem 0.5rem !important;
        border-bottom: 1px solid var(--dark-border);
    }
    #mainNav .nav-item:last-child .nav-link { border-bottom: none; }
    #mainNav .nav-item.ms-lg-3 { margin-top: 0.75rem; }
    #mainNav .btn-red { width: 100%; text-align: center; }
}

/* ── Buttons ────────────────────────────── */
.btn-red {
    background-color: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-red:hover, .btn-red:focus {
    background-color: var(--red-hover);
    border-color: var(--red-hover);
    color: var(--white);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-red.btn-lg { padding: 0.8rem 2.2rem; font-size: 0.85rem; }

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5) !important;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius);
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-light:hover, .btn-outline-light:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.85) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-light.btn-lg { padding: 0.8rem 2.2rem; font-size: 0.85rem; }

/* ── Sections ───────────────────────────── */
.section-dark  { background-color: var(--dark);     color: var(--white); padding: 6rem 0; }
.section-alt   { background-color: var(--dark-alt); color: var(--white); padding: 6rem 0; }
.section-light { background-color: var(--light);    color: var(--dark);  padding: 6rem 0; }

.section-header { margin-bottom: 1rem; }

.section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.65rem;
}

.section-light .section-label { color: var(--red); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.section-dark .section-title,
.section-alt .section-title  { color: var(--white); }
.section-light .section-title { color: var(--dark); }

.section-divider {
    width: 48px;
    height: 3px;
    background-color: var(--red);
    margin: 0.8rem auto 0;
}
.section-divider.align-start { margin-left: 0; }

@media (max-width: 991px) { .section-dark, .section-alt, .section-light { padding: 4.5rem 0; } }
@media (max-width: 767px) { .section-dark, .section-alt, .section-light { padding: 3.5rem 0; } }

/* ── Hero ───────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--dark);
    background-image: url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(17,20,22,0.96) 0%, rgba(17,20,22,0.88) 60%, rgba(17,20,22,0.96) 100%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    z-index: 3;
}

.hero-stripe {
    position: absolute;
    bottom: 0; right: 0;
    width: 50vw;
    height: 100%;
    background: linear-gradient(-65deg, transparent 0%, transparent 58%, rgba(225,0,24,0.03) 58%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 880px;
    width: 100%;
}

.hero-logo {
    width: min(340px, 78vw);
    margin-bottom: 2rem;
    filter: drop-shadow(0 6px 28px rgba(225,0,24,0.22));
    animation: fadeInDown 0.9s ease both;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s ease 0.25s both;
}

.hero-tagline .dot { color: var(--red); }

.hero-sub {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255,255,255,0.48);
    max-width: 560px;
    margin: 0 auto 2.8rem;
    line-height: 1.78;
    font-weight: 300;
    animation: fadeInUp 0.9s ease 0.45s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease 0.65s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.3);
    font-size: 1.35rem;
    text-decoration: none;
    transition: color 0.3s;
    animation: bounce 2.5s ease-in-out infinite;
}

.hero-scroll-indicator:hover { color: var(--red); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50%       { transform: translateX(-50%) translateY(10px); opacity: 0.7; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .hero-section { background-attachment: scroll; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }
}

/* ── Services ───────────────────────────── */
.service-card {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: rgba(225,0,24,0.35);
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: 1.25rem;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon { transform: scale(1.12); }

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.72;
}

/* ── Stats Bar ──────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, var(--red) 0%, #a8001a 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.02) 20px,
        rgba(255,255,255,0.02) 40px
    );
}

.stat-item {
    text-align: center;
    padding: 0.75rem 1rem;
    position: relative;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.72);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

/* ── Gallery ────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

@media (max-width: 992px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--dark-surface);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover { transform: scale(1.015); }

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.14);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    gap: 0.4rem;
    pointer-events: none;
}

.gallery-placeholder i { font-size: 1.8rem; color: rgba(255,255,255,0.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(225,0,24,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
    z-index: 2;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay { background: rgba(225,0,24,0.7); }
.gallery-item:hover .gallery-overlay i { opacity: 1; transform: scale(1); }

.gallery-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: #888;
}

/* ── Lightbox ───────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.9);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.lightbox-close:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.42);
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* ── Testimonials ───────────────────────── */
.testimonial-card {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(225,0,24,0.35);
    box-shadow: 0 10px 36px rgba(0,0,0,0.45);
}

.testimonial-quote {
    font-size: 3.5rem;
    color: var(--red);
    line-height: 0.6;
    font-family: Georgia, 'Times New Roman', serif;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.75;
}

.testimonial-stars {
    color: var(--red);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.testimonial-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.78;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-border);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, #8a000f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
}

.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--white); margin-bottom: 0.1rem; }
.testimonial-vehicle { font-size: 0.76rem; color: var(--text-muted); }

/* ── Contact ────────────────────────────── */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background-color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--white);
    margin-top: 0.1rem;
}

.contact-info-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--red);
    margin-bottom: 0.2rem;
}

.contact-info-value { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.55; }
.contact-info-value a { color: rgba(255,255,255,0.8); text-decoration: none; }
.contact-info-value a:hover { color: var(--red); }

.social-links { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1.5rem; }

.social-link {
    width: 42px;
    height: 42px;
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(225,0,24,0.4);
}

/* Contact Form */
.contact-form .form-control,
.contact-form .form-select {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
    color: var(--white);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: var(--dark-surface);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(225,0,24,0.18);
    outline: none;
}

.contact-form .form-control::placeholder { color: rgba(255,255,255,0.22); }

.contact-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(255,255,255,0.35)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.contact-form .form-select option { background-color: var(--dark-alt); }

.contact-form label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
    display: block;
}

.contact-form textarea.form-control { resize: vertical; min-height: 110px; }

/* ── Footer ─────────────────────────────── */
.footer-red-bar { height: 3px; background: var(--red); }

.site-footer { background-color: #0a0c0e; padding: 3rem 0 1.5rem; }

.footer-logo { height: 48px; margin-bottom: 0.85rem; }

.footer-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.footer-divider { border-color: var(--dark-border) !important; margin: 2rem 0 1.25rem; opacity: 1; }
.footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.28); margin: 0; }

.site-footer .social-links { justify-content: flex-end; margin-top: 0; }
.site-footer .social-link  { width: 38px; height: 38px; font-size: 0.95rem; }

@media (max-width: 767px) {
    .site-footer .social-links { justify-content: center; }
    .site-footer .text-md-end  { text-align: center !important; }
}

/* ── Alert Toast ────────────────────────── */
.alert-toast {
    position: fixed;
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    box-shadow: var(--shadow);
    max-width: 480px;
    width: calc(100% - 2rem);
    animation: toastIn 0.35s ease both;
}

.alert-toast-success {
    background-color: #0f2010;
    border: 1px solid rgba(60,180,60,0.3);
    color: #82e082;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0.15rem;
    opacity: 0.6;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover { opacity: 1; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Scroll Reveal ──────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ── Utilities ──────────────────────────── */
.text-red { color: var(--red) !important; }
