/* ── BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; margin: 0; padding: 0; background: #0a0a0a; color: #ccc; font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: 'Rajdhani', sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }

:root { --red: #e31c1c; --dark: #0a0a0a; --mid: #111; --grey: #1a1a1a; }

/* ── TOP INFO BAR ────────────────────────────────────── */
.top-bar { background: #1a1a1a; padding: 7px 0; font-size: 0.78rem; border-bottom: 1px solid #242424; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; color: #777; margin-right: 22px; }
.tb-item i { color: var(--red); font-size: 0.75rem; }
.tb-item a { color: #999; text-decoration: none; transition: color 0.2s; }
.tb-item a:hover { color: #fff; }
.tb-right { text-align: right; }

/* ── NAVBAR ──────────────────────────────────────────── */
.site-nav { background: #fff; border-bottom: 3px solid var(--red); z-index: 1030; }
.site-nav .navbar-brand { padding: 6px 0; }
.site-nav .navbar-brand img { height: 76px; }
.site-nav .nav-link { font-family: 'Inter', sans-serif; color: #888 !important; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.55rem 1rem !important; transition: color 0.2s; }
.site-nav .nav-link:hover { color: #111 !important; }
.site-nav .nav-link.active { color: var(--red) !important; }
.site-nav .dropdown-menu { background: #fff; border: 1px solid #eee; border-top: 3px solid var(--red); border-radius: 0; padding: 4px 0; box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.site-nav .dropdown-item { font-family: 'Inter', sans-serif; color: #666; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 9px 20px; transition: all 0.15s; }
.site-nav .dropdown-item:hover { background: #f8f8f8; color: var(--red); padding-left: 28px; }
.site-nav .navbar-toggler { border: 1px solid #ddd !important; }
.nav-phone-badge { background: var(--red); color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; padding: 7px 18px; text-decoration: none; transition: background 0.2s; display: inline-block; }
.nav-phone-badge:hover { background: #b81414; color: #fff; }

/* ── HERO ────────────────────────────────────────────── */
/* Note: background-image set inline on the element so paths resolve from the page */
.hero { position: relative; min-height: 78vh; background: url('/assets/images/homepage_hero.jpeg') center 35% / cover no-repeat; display: flex; align-items: flex-start; }
.hero-dim { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.63) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 80px 0 40px; }
.hero-line { width: 60px; height: 4px; background: var(--red); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.5rem); color: #fff; line-height: 0.9; margin-bottom: 20px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero h1 .accent { color: var(--red); }
.hero-sub { color: #bbb; font-family: 'Inter', sans-serif; font-size: 1rem; max-width: 480px; margin-bottom: 36px; }
.btn-race-solid { display: inline-block; background: var(--red); color: #fff; padding: 12px 32px; font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%); }
.btn-race-solid:hover { background: #b81414; color: #fff; }
.btn-race-outline { display: inline-block; background: transparent; color: #fff; padding: 10px 30px; font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 2px solid rgba(255,255,255,0.4); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%); transition: all 0.2s; }
.btn-race-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* ── PHONE BAND ──────────────────────────────────────── */
.phone-band { background: #2e2e2e; padding: 24px 0; border-top: 1px solid #383838; }
.phone-band .pnum { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--red); letter-spacing: 0.02em; text-decoration: none; transition: color 0.2s; display: block; }
.phone-band .pnum:hover { color: #ff4444; }
.phone-band .pemail { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; color: #bbb; text-decoration: none; transition: color 0.2s; display: block; margin-top: 6px; }
.phone-band .pemail:hover { color: #ccc; }
.phone-band .pemail i { color: var(--red); }
.phone-band .phours { color: #bbb; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.8; }
.phone-band .phours i { color: var(--red); }

/* ── SERVICES ────────────────────────────────────────── */
#services { background: var(--mid); padding: 80px 0 70px; }
.sec-line { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sec-line::before { content: ''; width: 36px; height: 3px; background: var(--red); }
.sec-line span { font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.sec-hdg { font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 6px; }
.sec-sub { color: #888; font-size: 0.87rem; margin-bottom: 40px; }

/* Image-backed service cards */
.svc-img-link { display: block; text-decoration: none; color: inherit; }
.svc-img-card { position: relative; overflow: hidden; height: 280px; }
.svc-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-img-dim { display: none; }
.svc-img-card::after { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--red); z-index: 3; }
.svc-img-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 22px; z-index: 2; background: rgba(0,0,0,0.72); }
.svc-img-header { display: flex; align-items: center; gap: 12px; }
.svc-img-icon { font-size: 1.4rem; color: var(--red); flex-shrink: 0; line-height: 1; }
.svc-img-card h4 { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 0; line-height: 1.15; }
.svc-img-desc { font-family: 'Inter', sans-serif; color: rgba(255,255,255,0); font-size: 0.82rem; line-height: 1.55; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, color 0.3s ease, margin-top 0.3s ease; margin-top: 0; }
.svc-img-card:hover .svc-img-desc { color: rgba(255,255,255,0.72); max-height: 90px; margin-top: 8px; }

/* ── DIAGONAL SECTION ────────────────────────────────── */
.diag-section { background: #0e0e0e; padding: 80px 0 100px; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); margin: -40px 0; position: relative; z-index: 1; }
.diag-img { width: 100%; height: 380px; object-fit: cover; }
.diag-section h2 { font-size: 2.6rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.diag-section h2 em { color: var(--red); font-style: normal; }
.diag-section p { color: #666; font-size: 0.9rem; }
.check-race { list-style: none; padding: 0; margin: 0 0 28px; }
.check-race li { display: flex; align-items: flex-start; gap: 12px; color: #999; font-size: 0.88rem; margin-bottom: 8px; }
.check-race li::before { content: '\f101'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ── REMAP SECTION ───────────────────────────────────── */
.remap-section { position: relative; min-height: 360px; background: url('/assets/images/remapping-bg.jpeg') center / cover no-repeat; display: flex; align-items: center; }
.remap-dim { position: absolute; inset: 0; background: rgba(227,28,28,0.82); }
.remap-inner { position: relative; z-index: 2; padding: 60px 0; }
.remap-section h2 { font-size: 2.4rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.remap-section p { color: rgba(255,255,255,0.8); max-width: 580px; font-size: 0.95rem; }
.remap-badge { display: inline-block; margin-bottom: 14px; } .remap-badge img { height: 45px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(0,0,0,1)) drop-shadow(0 0 24px rgba(0,0,0,0.8)); }
.btn-race-white { display: inline-block; background: #fff; color: var(--red); padding: 12px 30px; font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%); transition: all 0.2s; }
.btn-race-white:hover { background: #111; color: #fff; }

/* ── CTA BAND ────────────────────────────────────────── */
.cta-band { background: #262626; border-top: 3px solid var(--red); padding: 50px 0 47px; }
.cta-band h2 { font-size: 2.2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.cta-band .hours { color: #888; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cta-band .hours i { color: var(--red); }

/* ── FOOTER ──────────────────────────────────────────── */
.footer-stripe { height: 22px; background: repeating-linear-gradient(-45deg, #d8d8d8 0px, #d8d8d8 16px, #e31c1c 16px, #e31c1c 20px, #111 20px, #111 36px); }
.site-footer { background: #060606; padding: 50px 0 0; }
.footer-about { color: #777; font-size: 0.84rem; }
.footer-hdg { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #777; font-size: 0.84rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-ci { display: flex; gap: 10px; color: #777; font-size: 0.84rem; margin-bottom: 8px; }
.footer-ci i { color: var(--red); margin-top: 3px; }
.footer-ci a { color: #777; text-decoration: none; }
.footer-ci a:hover { color: var(--red); }
.footer-logo img { height: 110px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #111; margin-top: 32px; padding: 18px 0; text-align: center; color: #2a2a2a; font-size: 0.78rem; }
.footer-bottom a { color: #333; text-decoration: none; }

/* ── FAB ─────────────────────────────────────────────── */
.fab { position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; background: var(--red); color: #fff; border: none; box-shadow: 0 4px 22px rgba(227,28,28,0.55); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: pointer; transition: transform 0.2s, background 0.2s; clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%); border-radius: 0; }
.fab:hover { transform: scale(1.08); background: #b81414; }

/* ── OFFCANVAS ───────────────────────────────────────── */
#qmCanvas { background: #0d0d0d; max-width: 380px; width: 100%; }
#qmCanvas .offcanvas-header { background: var(--red); }
#qmCanvas .offcanvas-title { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
#qmCanvas .btn-close { filter: invert(1) brightness(2); }
#qmCanvas .offcanvas-body { padding: 22px; }
.qm-lbl { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: #999; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; display: block; font-weight: 600; }
.qm-ctrl { background: #151515; border: 1px solid #222; color: #ccc; border-radius: 0; font-size: 0.9rem; font-family: 'Inter', sans-serif; }
.qm-ctrl:focus { background: #1a1a1a; border-color: var(--red); color: #fff; box-shadow: none; }
.qm-ctrl::placeholder { color: #555; }
.qm-submit { width: 100%; background: var(--red); color: #fff; border: none; padding: 12px; font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; cursor: pointer; transition: background 0.2s; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%); }
.qm-submit:hover { background: #b81414; }
.qm-foot { color: #888; font-size: 0.75rem; text-align: center; margin-top: 14px; font-family: 'Inter', sans-serif; }
.qm-foot a { color: var(--red); text-decoration: none; }

@media (min-width: 992px) {
    .hero-inner { padding-top: 140px; }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { background: #fff; padding: 12px 16px; border-top: 1px solid #eee; }
    .diag-section { clip-path: none; margin: 0; padding: 60px 0; }
}
@media (max-width: 767.98px) {
    .hero h1 { font-size: 2.6rem; }
    .diag-img { height: 240px; }
    .svc-img-card { height: 240px; }
    .svc-img-desc { color: rgba(255,255,255,0.65) !important; max-height: 80px !important; margin-top: 8px !important; }
    .fab { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.2rem; }
}
