/* ==========================================================================
   0. THEME VARIABLES (Locked to Dark Mode)
   ========================================================================== */
   :root {
    --bg-main: #121212;
    --bg-header: #0a0a0a;
    --bg-box: #1a1a1a;
    --bg-input: #121212;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --input-border: #444444;
    --nav-link: #ffffff;
}

/* ==========================================================================
   1. RESET & UNIVERSAL BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    transition: color 0.2s ease, border-color 0.2s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. AUTOMATIC UTILITY LAYOUTS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (Desktop Default Baseline)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-header);
    border-bottom: 2px solid #ff3333;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff3333;
}

/* ==========================================================================
   4. HARLOW JAP AUTOS STYLE HERO LAYOUT 
   ========================================================================== */
#welcome-hero {
    position: relative;
    min-height: 100vh !important; /* Forces layout to bleed to viewport bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 !important; 
    padding: 0 5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out; /* Smooth image crossfade asset swap */
}

/* Elegant shadow shading mask overlay layer */
#welcome-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-text-wrapper {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

/* ==========================================================================
   5. CONTACT & SHOWROOM ELEMENTS
   ========================================================================== */
.content-box {
    background-color: var(--bg-box);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-input);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: 4px;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #ff3333;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #ff3333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   6. GLOBAL MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */
@media screen and (max-width: 768px) {
    #menu-toggle {
        display: block !important;
    }

    /* Fixed top overlay design layout configuration */
    .nav-group {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        background-color: #0a0a0a !important; /* Hardcodes matching dark hex frame background values */
        padding-top: 130px; 
        box-sizing: border-box;
        z-index: 999;
    }

    .nav-group.active {
        display: flex !important;
    }

    .nav-group nav {
        flex-direction: column;
        align-items: center;
        gap: 30px !important;
    }

    nav a {
        font-size: 24px;
        font-weight: 700;
    }

    .header-socials {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 40px;
    }

    .hero-text-wrapper h1 {
        font-size: 34px !important; 
    }
    
    .hero-text-wrapper p {
        font-size: 16px !important;
    }

    .content-box {
        padding: 20px; 
    }
}