/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* =========================================
   HEADER STYLES (SHARED)
   ========================================= */
.header {
    background-color: #0056b3;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    color: #0056b3;
    font-size: 28px;
    border: 3px solid white;
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
}

.logo-text span {
    color: #7ed321;
}

.tagline {
    font-size: 11px;
    color: #7ed321;
    margin-top: -5px;
    letter-spacing: 2px;
    text-transform: lowercase;
}

/* =========================================
   DESKTOP NAVIGATION
   ========================================= */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.desktop-nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.desktop-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Desktop Dropdown */
.desktop-nav .nav-dropdown {
    position: relative;
}

.desktop-nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0056b3;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1000;
    padding: 10px 0;
}

.desktop-nav .nav-dropdown:hover .dropdown-content {
    display: block;
}

.desktop-nav .dropdown-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}

.desktop-nav .dropdown-link:last-child {
    border-bottom: none;
}

.desktop-nav .dropdown-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* =========================================
   MOBILE MENU BUTTON
   ========================================= */
.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =========================================
   MOBILE NAVIGATION
   ========================================= */
.mobile-nav {
    display: none;
    background-color: #0056b3;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-dropdown {
    position: relative;
}

.mobile-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-dropdown .dropdown-content.active + .dropdown-toggle .arrow,
.mobile-dropdown .dropdown-content.active ~ .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.mobile-dropdown .dropdown-content {
    display: none;
    background-color: #004a9e;
    padding-left: 20px;
}

.mobile-dropdown .dropdown-content.active {
    display: block;
}

.mobile-dropdown .dropdown-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.mobile-dropdown .dropdown-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 768px) {
    /* Hide desktop nav, show mobile */
    .desktop-nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .mobile-nav.active {
        display: flex;
    }
}

@media (min-width: 769px) {
    /* Hide mobile elements on desktop */
    .menu-btn {
        display: none;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .desktop-nav {
        display: flex;
    }
}

/* =========================================
   ORIGINAL DOOR PAGE STYLES (PRESERVED)
   ========================================= */

/* Hero Section */
.hero {
    background-color: #0066cc;
    padding: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-left {
    flex: 1;
    position: relative;
}

.hero-left img {
    width: 100%;
    border-radius: 5px;
}

.hero-text {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: #7cb342;
    color: white;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
}

.hero-right {
    flex: 1;
    display: flex;
    gap: 10px;
    background-color: #7cb342;
    padding: 10px;
    border-radius: 5px;
}

.hero-right img {
    width: 30%;
    object-fit: cover;
    border-radius: 3px;
}

/* Description Section */
.description {
    background-color: white;
    padding: 30px 20px;
    text-align: center;
}

.description p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Door Showcase */
.door-showcase {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    background-color: white;
    flex-wrap: wrap;
}

.door-item {
    width: 30%;
    max-width: 200px;
    transition: transform 0.3s;
    text-decoration: none;
}

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

.door-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Category Headers */
.category-header {
    background-color: #0000ff;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
}

.category-header:hover {
    background-color: #0000cc;
}

.arrow {
    font-size: 24px;
}

/* Flush Doors Section */
.flush-doors {
    background-color: white;
    padding: 20px;
}

.flush-gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.flush-gallery a {
    width: 30%;
    max-width: 180px;
    text-decoration: none;
}

.flush-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

/* Moulded Doors Section */
.moulded-doors {
    background-color: white;
}

.moulded-gallery {
    display: flex;
    gap: 10px;
    padding: 20px;
    justify-content: center;
}

.moulded-gallery a {
    width: 100%;
    max-width: 600px;
    text-decoration: none;
}

.moulded-gallery img {
    width: 100%;
    border-radius: 5px;
}

/* Hardwood Doors Section */
.hardwood-doors {
    background-color: white;
}

.hardwood-gallery {
    display: flex;
    gap: 5px;
    padding: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hardwood-gallery a {
    width: 13%;
    min-width: 80px;
    text-decoration: none;
}

.hardwood-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Sustainable Banner */
.sustainable-banner {
    background-image: url('../images/forest-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    min-height: 80px;
}

.sustainable-text {
    font-size: 12px;
    max-width: 60%;
    line-height: 1.5;
}

.sustainable-logo {
    width: 80px;
    height: 80px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.footer {
    background-color: #0056b3;
    color: white;
    padding: 40px 20px 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    transform: scale(1.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: white;
    transition: all 0.3s ease;
}

.social-icon:hover svg {
    fill: #0056b3;
    stroke: #0056b3;
}

.sitemap {
    max-width: 1200px;
    margin: 0 auto;
}

.sitemap-title {
    color: #7ed321;
    font-size: 28px;
    margin-bottom: 30px;
    font-style: italic;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sitemap-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sitemap-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.sitemap-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .door-item {
        width: 45%;
    }

    .flush-gallery a,
    .hardwood-gallery a {
        width: 45%;
    }

    .footer-logo-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .sustainable-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .sustainable-text {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .door-item {
        width: 100%;
    }

    .flush-gallery a,
    .hardwood-gallery a {
        width: 100%;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 30px 15px 15px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}