/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F8FFE5;
    color: #404E5C;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "slnt" 0;
}

.name {
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-weight: 900;
font-style: normal;
font-variation-settings:
    "slnt" 0;
color: #f15a29; 
font-size: 4rem;
}

header {

    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 120px;
    margin-right: 10px;
}

.logo h1 {
    margin-left: 10px;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

.logo-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent */
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem;
    color: #404E5C;
}

main {
    padding: 20px;
}

footer {
    text-align: center;
    padding: 20px;
}

/* Add this CSS to your buildcon.css file */
.hidden {
    display: none;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    font-size: 1.5rem;
}

.contact-branch {
    margin-bottom: 20px;
    text-align: center;
}

.contact h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

ul {
    list-style-type: none; /* Remove bullet points */
    padding-left: 0; /* Remove default padding */
}

.contact ul li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-branch {
        width: 100%;
    }
}

/* Add this CSS to your buildcon.css file */

#product-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 75%;
    margin: 0 auto;
}

.category {
    margin: 20px;
    text-align: center;
}

.category img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.category h2 {
    margin-top: 10px;
}

.category .btn {
    display: block;
    margin-top: 10px;
    padding: 10px 20px;
    text-decoration: none;
    background-color: #f15a29;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.category .btn:hover {
    background-color: #d9440d;
}

.product-title {
    text-align: center;
    padding: 40px 0 20px;
}

.product-title h2 {
    font-size: 2.5rem;
    color: #f15a29;
}

.product-grid.text-only {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 250px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    transition: box-shadow 0.2s ease;
}

.product-card h3 {
    font-size: 1.3rem;
    color: #404E5C;
    font-weight: 600;
    word-break: break-word;
}

.product-card.empty {
    background: none;
    box-shadow: none;
    pointer-events: none;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 20px;
}

.contact-branch {
    flex: 1 1 400px;
    max-width: 500px;
}

.map-wrapper {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 20px;
    align-items: flex-start; /* ensures map aligns top if needed */
}

.contact-branch {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 400px;
    max-width: 500px;
    min-height: 500px; /* ensures both branches take same height */
}

.contact-details {
    margin-bottom: 20px;
}

.map-wrapper {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Keep it above all other elements */
    padding: 10px 20px;
    background-color: #F8FFE5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}

/* Optional: to ensure the main content doesn’t get hidden under the header */
main {
    padding-top: 150px; /* Adjust according to header height */
}

.brand-ribbon {
    text-align: center;
    margin: 40px auto 20px;
    padding-bottom: 100px;
}

.brand-ribbon h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 100px;
    align-items: center;
    flex-wrap: wrap;
}

.brand-logos img {
    height: 150px; /* Adjust based on your image size */
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.category-heading h1 {
  font-size: 3rem;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* ========================================= */
/* ===== MOBILE RESPONSIVE HEADER STYLES ===== */
/* ========================================= */

/* Hide hamburger on desktop */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above the nav menu */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #404E5C;
    transition: all 0.3s ease-in-out;
}


/* Floating Action Button for Contact */
.contact-fab {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #f15a29; /* Use brand color */
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    /* Increased shadow for better separation */
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    z-index: 999;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-fab:hover {
    background-color: #d9440d; /* Darker shade on hover */
}

.contact-fab svg {
    width: 28px;
    height: 28px;
}


/* Media query for mobile devices */
@media (max-width: 768px) {

    /* ======================================== */
    /* ===== 1. GLOBAL & TYPOGRAPHY STYLES ===== */
    /* ======================================== */

    main {
        padding-top: 25px;
    }
    
    /* Show the floating contact button on mobile */
    .contact-fab {
        display: flex;
    }

    /* FIX 4: Standardizing page titles to be slightly larger than the header logo */
    .category-heading h1,
    .contact-details h2 {
        font-size: 2.2rem; /* Reduced from 3rem and standardized */
    }


    /* ======================================== */
    /* ===== 2. HEADER ===== */
    /* ======================================== */

    header {
        padding: 10px 15px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        height: 60px;
        position: relative;
        z-index: 2;
    }

    .name {
        font-size: 2rem;
        position: static; /* Removes absolute positioning */
        transform: none;  /* Resets the transform property */
        z-index: 1;
        white-space: nowrap;
    }

    /* Navigation Menu */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #F8FFE5;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    nav ul.nav-active {
        display: flex;
    }

    nav ul li {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        font-size: 1.5rem;
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }

    /* Hamburger Icon */
    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* ======================================== */
    /* ===== 3. HOMEPAGE (Product Categories) ===== */
    /* ======================================== */

    #product-categories {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 20px;
    }

    .category {
        margin: 0;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .category img {
        width: 100%;
        height: 150px;
        object-fit: contain;
    }

    .category h2 {
        font-size: 1.25rem;
        margin-top: auto;
        padding-top: 10px;
    }

    .category .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        /* Prevents the button text from wrapping to a new line */
        white-space: nowrap;
    }


    /* ======================================== */
    /* ===== 4. PRODUCT PAGES (Plywoods, etc.) ===== */
    /* ======================================== */
    
    /* FIX 2: Reducing the large space below the brand logos */
    .brand-ribbon {
        padding-bottom: 40px; /* Reduced from 100px */
        margin-top: 0;
    }

    .brand-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
        gap: 20px;                             /* Sets space between logos */
        align-items: center;                   /* Vertically centers the logos in the row */
        padding: 0 15px 10px;
    }

    .brand-logos img {
        width: 100%;        /* Image will fill its column */
        height: auto;         /* Height will adjust automatically */
        max-height: 60px;     /* Prevents tall logos from becoming too large */
        object-fit: contain;  /* Ensures the logo scales correctly */
    }

    .product-grid.text-only {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px 40px;
    }

    .product-card {
        width: 100%;
        height: auto;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* FIX 4: Standardizing product card title typography */
    .product-card h3 {
        font-size: 1.1rem;
        line-height: 1.5;
    }


    /* ======================================== */
    /* ===== 5. CONTACT PAGE ===== */
    /* ======================================== */

    .contact-page main {
        padding-top: 40px;
    }
    
    .contact-wrapper {
        padding-top: 0;
    }

    .contact-details ul {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .contact-branch {
        min-height: 0;
        justify-content: flex-start;
    }

    .contact-branch:last-child {
        margin-bottom: 0;
    }
}

