:root {
    --primary-color: #386641;
    /* Hunter Green */
    --secondary-color: #6A994E;
    /* Sage Green */
    --accent-color: #BC4749;
    /* Blushed Brick */
    --background-color: #f1f1f1fc;
    /* Light Grey with Stipple Base */
    --background-alt: #A7C957;
    /* Yellow Green */
    --vanilla-cream: #F2E8CF;
    /* Vanilla Cream */
    --text-color: #333333;
    --light-text: #ffffff;
    --font-heading: 'Cardo', serif;
    --font-body: 'Noto Sans', sans-serif;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body Background Update */
body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    /* Brighter version of original concept */
    background-image: url('../images/background_main_brighter.png');
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: normal;
    /* Reset blend mode */
    color: var(--text-color);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Boxed Layout Wrapper - 5% Grey */
.boxed-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background-color: #f2f2f2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ... */

/* Hero Section */
.hero {
    position: relative;
    height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Blend with body background */
    background-color: var(--background-color);
    /* Lighter version using specific image */
    background-image: url('../images/background_title_lighter.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: normal;
    box-shadow: 0 10px 10px -10px var(--primary-color);
    z-index: 10;
}

/* ... existing code ... */

/* Service Card - 5% Grey */
.service-card {
    background: #f2f2f2;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ... existing code ... */

/* Product Card - 5% Grey */
.product-card {
    background: #f2f2f2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ... existing code ... */

/* Sidebar - 5% Grey */
.sidebar {
    flex: 1;
    background-color: #f2f2f2;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

h4,
h5,
h6 {
    font-weight: 400;
    font-size: 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #a33b3d;
    transform: translateY(-2px);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    min-height: 6rem;
}

.logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    cursor: pointer;
    text-decoration: none;
}

/* Right Side: Contact & Nav */
.header-right {
    display: none;
}

@media (min-width: 992px) {
    .header-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}

/* Contact Bar */
.contact-bar {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--accent-color);
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-body);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(188, 71, 73, 0.3);
}

.nav-item svg {
    transition: stroke 0.3s ease;
}

.nav-item:hover svg,
.nav-item.active svg {
    stroke: #ffffff;
}

/* Ensure active/hover state applies to dropdown trigger properly when child is active */
.dropdown-trigger {
    height: auto;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Dropdown menu styling */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Invisible bridge to prevent gap */
.dropdown::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    transform: translateY(100%);
}



.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 14rem;
    background-color: var(--background-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    overflow: hidden;
    z-index: 50;
    transform-origin: top;
    transition: all 0.3s ease;
    margin-top: 10px;
    padding-top: 5px;
}

/* Show dropdown on hover of parent .dropdown */
.dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(56, 102, 65, 0.1);
    transition: all 0.2s ease;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: #E5DCC3;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: calc(0.75rem - 1px);
    color: var(--primary-color);
}

.dropdown-item.view-all {
    font-weight: 700;
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--background-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 4px;
}

.mobile-nav-item:hover {
    background-color: rgba(56, 102, 65, 0.1);
}

.mobile-nav-item.btn-quote {
    background-color: var(--accent-color);
    color: white;
    margin-top: 1rem;
    text-align: center;
}

.mobile-nav-item.btn-quote:hover {
    background-color: #a33b3d;
}

@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
}




.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('../images/hero_living_room_blinds.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* Mask to fade into the background */
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
}

/* Hero Blinds Animation */
.hero-blinds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.hero-blinds span {
    flex: 1;
    background-color: var(--background-alt);
    height: 100%;
    transform-origin: left;
    animation: blindOpen 3s ease-out forwards;
}

@keyframes blindOpen {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--primary-color);
    opacity: 0;
    animation: textFadeIn 1.5s ease-out 1s forwards;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    max-width: 50%;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    color: var(--text-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: #f2f2f2;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    padding: var(--spacing-md);
    text-align: center;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

/* Product Section (Restored) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #f2f2f2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Product Gallery (for individual pages) */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    background-color: var(--background-alt);
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-column h4 {
    color: var(--light-text);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
    font-family: var(--font-heading);
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Sidebar (for product pages) */
.page-layout {
    display: flex;
    gap: var(--spacing-xl);
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
    background-color: #f2f2f2;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: var(--spacing-lg);
}

/* Quick Links styling */
.sidebar-widget:has(.sidebar-links) {
    background-color: rgba(242, 232, 207, 0.3);
    border-radius: var(--border-radius);
    padding: 10px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.sidebar-links a {
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom-color: var(--accent-color);
    padding-left: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-bg {
        width: 100%;
        position: relative;
        height: 300px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero-content {
        width: 100%;
        padding: var(--spacing-lg);
        text-align: left;
        /* Changed from center to left */
    }

    .hero-content p {
        margin-left: 0;
        /* Reset margins */
        margin-right: 0;
        max-width: 100%;
        /* Ensure width constraint applies here too */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .page-layout {
        flex-direction: column;
    }

    /* Mobile Hero Adjustments */
    .hero-bg {
        display: none;
    }

    .hero {
        height: auto !important;
        padding-top: 6rem;
        /* Account for fixed header */
        padding-bottom: 4rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0 1rem;
        text-align: left;
        opacity: 1;
        /* Ensure text is visible immediately on mobile if animation lags */
        animation: none;
        /* Optional: remove animation for better performance/instant visibility */
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        /* Ensure text block fits within screen width */
    }
}