/* 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;
    --brand-slate: #2c3e50;
    --light-gray: #f9f9f9;
}

body { font-family: 'Segoe UI', sans-serif; background: #eee; margin: 0; }

.quote-container {
    padding: 5rem 1rem;
    display: flex;
    justify-content: center;
}

.form-card {
    background: white;
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.form-card h2 { text-transform: uppercase; margin-bottom: 0.5rem; color: #333; }
.form-card p { color: #666; margin-bottom: 2rem; }

/* Visual Selector */
.product-selector label {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: left;
}

.selection-grid {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.select-box {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.select-box img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.select-box span { font-weight: bold; display: block; }

.select-box:hover { border-color: var(--brand-red); }
.select-box.active {
    border-color: var(--brand-red);
    background: #fff5f5;
    transform: scale(1.05);
}

#jotform-target {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    min-height: 400px;
}
/* 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;
}

.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;
}
/* --- 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;
}
@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: 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 */
    }
}
/* 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 */
    }
}