/* --- BLINDS PAGE DEDICATED STYLES --- */
/* Prevent horizontal scrolling and white space on the side */
html, body {
    width: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden; 
}

/* Ensure the header doesn't push the page out */
.header {
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1000;
}
:root {
    --brand-red: #cc0000;
    --dark-bg: #111;
    --white: #ffffff;
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; background: #f4f4f4; }

/* Bold Red Hero */
.blinds-hero {
    height: 80vh;
    background: linear-gradient(135deg, var(--brand-red) 0%, #800000 100%);
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text h1 { font-size: 4rem; text-transform: uppercase; line-height: 0.9; }
.hero-text h1 span { color: #333; }

/* Interactive Stage Scaling */
.toggle-interactive-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}
/* --- FIXED TOGGLE LAYERING --- */
#day-night-bg {
    width: 500px;
    height: 500px;
    border-radius: 20px;
    background-image: url('/Imaging/Day\ Mode.png');
    background-size: cover;
    background-position: center;
    border: 8px solid white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: background-image 0.5s ease;
    position: relative; /* Keep this relative for children */
}

/* The Blue/Dark Blue Pill Track */
#day, #night {
    width: 240px;
    height: 110px;
    position: absolute;
    z-index: 5; /* Lower than SVG */
    cursor: pointer;
    border-radius: 100px;
    opacity: 1; /* Make it visible so people see the track */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1s ease;
}

#day {
    background: #9cd6ef;
    border: 6px solid #65c0e7;
}

#night {
    background: #224f6d;
    border: 6px solid #cad4d8;
    opacity: 0; /* Hidden initially, JS will fade this in */
}

/* The Sun and Moon Icons */
#darkmode {
    position: relative;
    z-index: 10; /* Higher than the track */
    pointer-events: none; /* Let clicks pass through to the #day/#night divs */
}

.toggle-ui {
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%) scale(0.6);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Add a subtle glow to the track when the user hovers over it */
.toggle-ui:hover #day, 
.toggle-ui:hover #night {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    filter: brightness(1.1);
}
/* Filtering Section */
.product-selection { padding: 5rem 0; }

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 1rem 2.5rem;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
}

/* Grid & Cards */
.blinds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blind-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.blind-card:hover { transform: translateY(-10px); }

.card-img img { width: 100%; height: 250px; object-fit: cover; }

.card-content { padding: 2rem; text-align: center; }

.card-cta {
    display: block;
    margin-top: 1.5rem;
    background: #333;
    color: white;
    padding: 0.8rem;
    text-decoration: none;
    border-radius: 5px;
}
/* Header */
.header {
  background-color: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 150px;
}

.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-right: 1rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%; /* Sits off-screen */
        top: 0;
        visibility: hidden; /* ADD THIS: Stops the 'white line' jiggle */
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: 100vh;
        transition: 0.3s;
        z-index: 1000;
        /* ... existing styles ... */
    }

    .nav-links.active {
        left: 0;
        visibility: visible; /* Show it when the hamburger is clicked */
    }
}

.cta-button {
  background-color: #ff6600;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.cta-button:hover {
  background-color: #e65c00;
}
/* Footer */
.footer {
  padding: 2rem 0;
  background-color: #333;
  color: white;
  text-align: center;
}
/* Footer Logo Adjustment */
.footer-logo img {
  height: 200px; /* Adjust this value to your liking */
  width: auto;  /* Maintains aspect ratio */
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
/* --- NEW DROPDOWN NAVIGATION --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 4px;
  top: 100%; /* Sits right below the parent */
}

.dropdown-content li a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
}

.dropdown-content li a:hover {
  background-color: #f1f1f1;
  color: #ff6600; /* Matches your brand orange */
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  cursor: pointer;
}
/* --- BOTTOM NAVIGATION BUTTONS --- */
.bottom-nav {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.nav-buttons-flex {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-primary-btn, .nav-secondary-btn {
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: 0.3s;
}

/* Red "Looking for Shades" Button */
.nav-primary-btn {
    background: var(--brand-red);
    color: white;
    border: 2px solid var(--brand-red);
}

.nav-primary-btn:hover {
    background: #800000;
    transform: translateX(10px);
}

/* Black "Back to Home" Button */
.nav-secondary-btn {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.nav-secondary-btn:hover {
    background: #333;
    color: white;
}

@media(max-width: 768px) {
    .nav-buttons-flex {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 768px) {
    /* Stack the text and the toggle stage */
    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }

    /* Make the text readable on small screens */
    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* Shrink the 500px stage so it doesn't bleed off the screen */
    #day-night-bg {
        width: 320px;
        height: 320px;
    }

    /* Adjust the toggle buttons inside the smaller stage */
    .toggle-ui {
        transform: translateX(-50%) scale(0.45);
        bottom: 10px;
    }
    
    .blinds-hero, .shades-hero {
        height: auto;
        padding-bottom: 4rem;
    }
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        margin-right: 0;
    }

    .logo img {
        height: 100px; /* Smaller logo for mobile */
    }
}
@media (max-width: 480px) {
    .filter-controls {
        flex-wrap: wrap; /* Let buttons wrap to the next line */
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        flex: 1 1 40%; /* Two buttons per row */
    }
}
/* --- MOBILE NAVIGATION LOGIC --- */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

/* Hidden by default in the mobile menu, shown on desktop */
.mobile-only-cta { display: none; }

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .desktop-cta { display: none; } /* Hide the floating button on mobile */
    .mobile-only-cta { display: block; } /* Show button inside the menu */

    .nav-links {
        position: fixed;
        left: -100%; /* Sits off-screen */
        top: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        z-index: 1000;
        padding-top: 100px;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
    }

    .nav-links.active { left: 0; } /* Slides in when active */
    .nav-links li { margin: 1.5rem 0; }

    /* X Animation for Hamburger */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 600px) {
    #day-night-bg {
        width: 90vw; /* Use Viewport Width to ensure it fits any phone */
        height: 90vw;
        max-width: 350px;
        max-height: 350px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        padding: 0 10px;
    }
}
/* This forces every element to stay inside the screen width */
* {
    max-width: 100vw;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* The 500px stage is likely pushing the page to the side */
    #toggle-stage, #day-night-bg {
        width: 320px !important; /* Force the shrink */
        height: 320px !important;
        margin: 0 auto;
    }
    
    .hero-overlay, .hero-flex {
        width: 100% !important;
        padding: 0 15px;
        margin: 0;
    }
}
/* Final safety check for mobile overflow */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* Keep the side-scroll blocked on phones */
    }

    .blinds-hero, .shades-hero, .hero-overlay, .nav-container, .header {
        max-width: 100vw !important;
        overflow-x: hidden !important; /* ONLY hide side-to-side, not up-and-down */
    }
}