/* --- BRAND VARIABLES (RACE READY THEME) --- */
:root {
    /* Colors */
    --brand-red: #E60000;
    --brand-red-dark: #b30000;
    --brand-black: #050505;
    --brand-surface: #121212;
    --brand-border: #2a2a2a;

    /* Text */
    --text-white: #ffffff;
    --text-grey: #b0b0b0;

    /* Fonts & Shapes */
    --font-main: 'Montserrat', sans-serif;
    --corner-radius: 12px;
    --btn-radius: 4px;
}

/* --- RESET & GLOBAL NATIVE SMOOTH SCROLL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Modern, native smooth scrolling! */
}

body {
    background-color: var(--brand-black);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- IMAGE HANDLING --- */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    padding: 10px;
}

.card:hover .img-cover,
.card:hover .img-contain,
.about-card:hover .img-cover,
.service-card:hover .img-cover {
    transform: scale(1.05);
}

.image-surface, .card-image, .service-image {
    overflow: hidden;
    border-radius: inherit;
    background-color: #222;
}

/* --- HEADER --- */
header {
    background: rgba(5, 5, 5, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--brand-border);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 45px; width: auto; vertical-align: middle; }

nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}
nav ul li a:hover { color: var(--brand-red); }

/* --- HERO SECTION --- */
#hero {
    height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000 30%, #4a0000 100%);
    position: relative;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; max-width: 700px; }

.chip {
    display: inline-block;
    border: 1px solid var(--brand-red);
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--brand-red);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 24px;
    background: rgba(230, 0, 0, 0.1);
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -2px;
    text-shadow: 2px 2px 0px #000;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-grey);
    max-width: 500px;
    font-weight: 500;
}

.hero-actions { display: flex; gap: 16px; }

/* --- BUTTONS (RACE STYLE) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 35px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-filled { background-color: var(--brand-red); color: white; }
.btn-filled:hover { background-color: var(--brand-red-dark); transform: skew(-10deg); }

.btn-outlined { background-color: transparent; border-color: white; color: white; }
.btn-outlined:hover { background-color: white; color: black; transform: skew(-10deg); }

.btn-tonal { background-color: #222; color: white; font-size: 0.8rem; padding: 0 20px; height: 40px; }
.btn-tonal:hover { background-color: var(--brand-red); }

.full-width { width: 100%; }

/* --- SECTIONS --- */
section {
    padding: 100px 0;
    scroll-margin-top: 90px; /* Perfect spacing for the slim desktop header */
}
.section-header { margin-bottom: 50px; }

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -1px;
    border-left: 6px solid var(--brand-red);
    padding-left: 20px;
}

/* --- CARDS (High Contrast) --- */
.card, .about-card, .service-card, .contact-card {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--corner-radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover, .about-card:hover, .service-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-5px);
}

/* --- ABOUT LAYOUT --- */
.about-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}
.about-content { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.about-content h3 { font-size: 2rem; margin-bottom: 20px; font-weight: 800; text-transform: uppercase; font-style: italic; }
.image-surface { height: 100%; width: 100%; position: relative; }
#extra-story p { color: var(--text-grey); font-size: 1rem; line-height: 1.6; }

/* --- PRODUCT GRID --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card-image { height: 260px; width: 100%; position: relative; border-bottom: 1px solid var(--brand-border); }
.card-content { padding: 30px; }
.card-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.subhead { color: var(--text-grey); font-size: 0.95rem; margin-bottom: 25px; min-height: 45px;}
.card-actions { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--brand-red); }

/* --- SERVICES SECTION --- */
.service-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 450px; }
.service-image { position: relative; height: 100%; min-height: 300px; }
.service-content { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.service-content h3 { font-size: 2rem; margin-bottom: 15px; text-transform: uppercase; font-style: italic; font-weight: 800; }
.service-desc { color: var(--text-grey); margin-bottom: 24px; font-size: 1.1rem; }
.service-list { list-style: none; margin-bottom: 30px; color: white; }
.service-list li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.1rem; font-weight: 500; }
.service-list li span { color: var(--brand-red); margin-right: 15px; font-weight: 900; font-size: 1.2rem; }

.service-extras {
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--brand-red);
    border-radius: 4px;
}
.service-extras h4 { color: white; font-size: 0.95rem; text-transform: uppercase; margin-bottom: 15px; font-weight: 700; letter-spacing: 0.5px; }
.extra-list { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.extra-list li { font-size: 0.9rem; color: var(--text-grey); display: flex; align-items: center; font-weight: 500; }
.extra-list .plus { color: var(--brand-red); font-weight: 800; margin-right: 8px; font-size: 1.2rem; }

/* --- CONTACT FORM --- */
.contact-card { padding: 50px; max-width: 700px; margin: 0 auto; }
.input-group { margin-bottom: 24px; }
.input-group label { display: block; margin-bottom: 10px; font-size: 0.9rem; color: var(--text-grey); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
input, textarea { width: 100%; padding: 18px; background-color: #000; border: 1px solid var(--brand-border); border-radius: 4px; color: white; font-size: 1rem; font-family: var(--font-main); transition: border-color 0.3s; }
input:focus, textarea:focus { outline: none; border-color: var(--brand-red); }
textarea { height: 140px; resize: none; }

/* --- FOOTER --- */
footer { background-color: #000000; border-top: 1px solid var(--brand-border); padding: 80px 0 30px; color: var(--text-grey); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 50px; gap: 30px; }
.footer-brand h3 { color: white; font-size: 1.8rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; font-style: italic; font-weight: 800; }
.social-section { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.social-links { display: flex; gap: 15px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background-color: #222; color: white; text-decoration: none; transition: all 0.3s ease; border: 1px solid #333; }
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { background-color: var(--brand-red); border-color: var(--brand-red); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(230, 0, 0, 0.4); }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid #222; font-size: 0.8rem; opacity: 0.5; }

/* --- CUSTOM NOTIFICATION POPUP (TOAST) --- */
#notification {
    visibility: hidden;
    min-width: 300px;
    background-color: var(--brand-surface);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    border: 1px solid var(--brand-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s ease-in-out;
    font-weight: 500;
    font-size: 0.95rem;
}
#notification.show { visibility: visible; opacity: 1; bottom: 50px; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Larger gap for the taller stacked mobile header */
    section {
        padding: 50px 0;
        scroll-margin-top: 150px;
    }
    .section-header { margin-bottom: 30px; }

    /* --- THE MENU FIX (SWIPEABLE) --- */
    .nav-wrapper { flex-direction: column; gap: 15px; align-items: center; }
    nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    nav::-webkit-scrollbar { display: none; }
    nav ul {
        display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 25px; padding: 0 10px; width: max-content; margin: 0 auto;
    }
    nav ul li a { font-size: 0.9rem; white-space: nowrap; }

    #hero h1 { font-size: 3rem; }
    #hero { height: auto; padding: 100px 0 50px; }
    .about-card, .service-card { grid-template-columns: 1fr; min-height: auto; }
    .image-surface, .service-image { height: 250px; order: -1; }
    .about-content, .service-content { padding: 30px; }
    .container { padding: 0 20px; }
    .contact-card { padding: 30px; }
    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .social-section { align-items: center; }
}