/*................................. 01. GLOBAL VARIABLES & BASE STYLES .................................*/

:root {
    /* The Palette */
    --bg-color: #1c1c1c;      /* Rich Off-Black / Deep Charcoal */
    --text-color: #ffffff;    /* Pure White */
    --accent-gray: #262626;   /* Just slightly lighter than the bg for cards */
    --dim-text: #a0a0a0;      /* Muted gray for secondary info */
    --nav-bg: rgba(28, 28, 28, 0.95); /* Semi-transparent to match the background */
    
    /* Change this URL whenever you have a new release */
    --hero-image: url('images/garage_door.jpg');
}

/* Base Resets - Removes default browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Section Spacing & Layout */
.content-section {
    padding: 60px 10% 40px; 
    min-height: auto;       
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 90px; /* Adds an invisible bumper above sections so the navbar doesn't cover titles */
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px; 
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 300;
    color: var(--dim-text);
}

.widget-container {
    width: 100%;
    max-width: 1000px;
}

.placeholder-box {
    background: var(--accent-gray);
    height: 350px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #444;
    border: 1px dashed #333;
}


/*................................. 02. NAVIGATION BAR .................................*/

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row; 
    justify-content: space-between; 
    align-items: center;
    gap: 15px;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-logo {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;      
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    opacity: 0.7;           
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 1;             
}

.nav-links {
    text-align: center;
    margin-top: 16px; 
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--dim-text);
}

.social-icons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-icons img {
    width: 24px;   
    height: 24px;  
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1); /* Turns black SVGs into white */
}

.social-icons img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile Nav Adjustments */
@media (max-width: 768px) {
    .nav-spacer { display: none; }
    .navbar { flex-direction: column; gap: 15px; padding: 15px; }
    .logo-wrapper, .social-icons { justify-content: center; }
    .nav-logo { font-size: 1.2rem; }
    .nav-links a { margin: 0 8px; font-size: 0.75rem; }
}

/* Hamburger Button Base (Hidden on Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Full Screen Overlay Styling */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color); /* Matches your deep charcoal */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.mobile-nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--dim-text);
}


/*................................. 03. HERO SECTION .................................*/

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(28,28,28,1)), var(--hero-image);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;       
    padding-bottom: 80px;      
}

.hero-text-container h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.85;
    text-align: center;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 12px;
    text-transform: uppercase;
    opacity: 0.7; 
}


/*................................. 04. NEWSLETTER SIGNUP FORMS .................................*/

.email-signup {
    display: flex;
    gap: 10px; 
    border-bottom: 1px solid #333; 
    padding-bottom: 5px;
    transition: border-color 0.3s;
}

.email-signup:focus-within {
    border-color: var(--dim-text);
}

.email-signup input {
    background: none;
    border: none;
    padding: 10px 5px;
    font-size: 0.8rem;
    color: var(--text-color);
    letter-spacing: 1px;
    width: 100%;
    flex: 1; 
    min-width: 0; 
}

.email-signup button {
    background: none;
    border: none;
    color: var(--dim-text);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 10px;
    transition: color 0.3s;
}

.email-signup button:hover {
    color: white;
}


/*................................. 05. NEWS SECTION .................................*/

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.news-card {
    background-color: var(--accent-gray);
    border: 1px solid #333;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top; 
    margin-bottom: 15px;
    filter: grayscale(20%); 
}

.news-date {
    font-size: 0.75rem;
    color: var(--dim-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.news-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Hides text after 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    color: var(--dim-text);
    line-height: 1.5;
}

.news-text.expanded {
    -webkit-line-clamp: unset; /* Reveals full text when active */
    display: block;
}

/* Styling for hyperlinks injected via the news.json */
.news-text a {
    color: #b2ebf2; /* A soft, readable white-cyan */
    text-decoration: none;
    border-bottom: 1px solid rgba(178, 235, 242, 0.4); /* A subtle underline that matches his aesthetic */
    transition: all 0.3s ease;
}

.news-text a:hover {
    color: var(--text-color); /* Brightens to pure white on hover */
    border-bottom-color: var(--text-color);
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 15px;
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--dim-text);
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--dim-text);
    border-color: transparent;
}


/*................................. 06. SHOP SECTION .................................*/

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1000px;
}

.shop-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-5px);
}

.item-image {
    background: var(--accent-gray);
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 2px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.shop-item h3 {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.shop-item p {
    color: var(--dim-text);
    margin-bottom: 15px;
}

.shop-button {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.shop-button:hover {
    background: var(--text-color);
    color: var(--bg-color);
}


/*................................. 07. VIDEO SECTION .................................*/

.video-layout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    gap: 15px;
}
.video-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    flex: 1; 
    border-radius: 2px;
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-wrapper {
    flex: 0 0 100%; 
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--accent-gray);
    border: 1px solid #333;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.carousel-arrow {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.carousel-arrow:hover {
    color: var(--dim-text);
}

.carousel-arrow:disabled {
    color: #333333; 
    cursor: default;
}


/*................................. 08. CONTACT SECTION .................................*/

.contact-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.newsletter-box {
    margin-bottom: 50px;
}

.contact-divider {
    border: 0;
    border-top: 1px solid #222;
    margin: 50px 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* Base input styling for Contact form (and general inputs) */
input, textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    color: white;
    font-family: inherit;
    border-radius: 0; 
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--dim-text);
}

.form-button {
    width: 100%;
    padding: 15px;
    background: none;
    border: 1px solid var(--dim-text);
    color: var(--dim-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.form-button:hover {
    border-color: white;
    color: white;
}

/* Mobile Contact Form Adjustments */
@media (max-width: 600px) {
    .form-row { flex-direction: column; }
}


/*................................. 09. FOOTER SECTION .................................*/

.site-footer {
    padding: 80px 20px;
    background-color: #0a0a0a; 
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav {
    margin-bottom: 30px;
}

.footer-nav a {
    color: var(--dim-text);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--text-color);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.footer-socials img {
    width: 30px;   
    height: 30px;  
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s, transform 0.3s;
}

.footer-socials img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copyright {
    font-size: 0.75rem;
    color: #444; 
    letter-spacing: 2px;
    text-transform: uppercase;
}

/*................................. 10. MOBILE RESPONSIVENESS .................................*/

@media (max-width: 768px) {
    /* 1. Hide Desktop Elements */
    .nav-links, .social-icons { 
        display: none; 
    }
    
    /* 2. Show Hamburger Button */
    .hamburger { 
        display: block; 
    }

    /* 3. Keep navbar a clean row with logo on left and hamburger on right */
    .navbar { 
        flex-direction: row; 
        justify-content: space-between; 
        padding: 15px 20px; 
    }
    
    /* 4. Adjust Logo size for mobile */
    .logo-wrapper { flex: none; }
    .nav-logo { font-size: 1.2rem; }

    /* 5. Adjust Hero Section for Mobile */
    .hero {
        height: 55vh; /* Drops the height to roughly half the screen, revealing much more of the image's width */
        padding-bottom: 40px; /* Reduces the bottom padding to fit the new shorter height */
    }

    .hero-text-container h1 {
        font-size: 1.2rem; /* Shrinks the text slightly so it fits perfectly in the new banner */
        letter-spacing: 5px;
    }

    /* 6. Center and scale down section headings for mobile */
    h2 {
        text-align: center;
        font-size: 1.5rem; /* Shrinks the headings slightly from the desktop 1.8rem */
    }

    /* 7. Stack video arrows below the video */
    .video-layout-wrapper {
        flex-wrap: wrap; /* Allows the arrows to drop to a new line */
    }
    
    .video-carousel {
        order: 1; /* Forces the video to be the first item */
        flex: 0 0 100%; /* Forces the video to take up 100% of the width */
    }

    #prev-video {
        order: 2; /* Drops the left arrow to the second position */
    }

    #next-video {
        order: 3; /* Drops the right arrow to the third position */
    }
    
    

    /*................................. 11. MOBILE LANDSCAPE FIX .................................*/

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        /* This pins the focus to the top of the photo to save your head! */
        background-position: top center; 
        
        /* Optional: Keeps the banner a bit shorter so it doesn't eat the whole sideways screen */
        height: 80vh; 
        padding-bottom: 20px;
    }
}
}

/* 1. Stop the page from bleeding horizontally */
#app {
    width: 100%;
    overflow-x: hidden; 
    display: block; 
}

/* 2. Lock the fixed navbar strictly to the viewport edges */
.navbar {
    left: 0;
    right: 0;
    max-width: 100vw; 
}