/* ========================================
Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* ========================================
Navbar
======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #222;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    color: #fff;
    height: 600px;
    width: 600px;
    margin-left: 10%
}

.nav-links {
    list-style: none;
    display: none;
    flex-direction: column;
    background-color: #222;
    position: absolute;
    top: 60px;
    right: 1rem;
    width: 200px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    z-index: 999;
}

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        color: #FF8228;
        transition: color 0.3s, transform 0.3s;
        padding: 0.75rem 1rem;
        display: block;
    }

        .nav-links li a:hover {
            color: #dfcfbc;
            transform: scale(1.1);
        }

.hamburger {
    display: block;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    right: 1rem;
}

/* ========================================
Hero Section
======================================== */
.hero-section {
    position: relative; /* Ensures ::before stays anchored inside this section */
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 7rem;
    background-image: url('images/Past work/background option 1.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1; /* Puts content above the overlay */
    color: #ffffff; /* Default text color to white */
}


    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: black; /* Dark overlay for contrast */
        opacity: 0.4; /* Adjust as needed for legibility */
        z-index: 0; /* Ensures it sits below the actual content */
    }


    .hero-section p {
        font-size: 2.5rem;
        color: #ffffff; /* Stands out on dark overlay */
        position: relative; /* Keeps text above overlay */
        z-index: 1;
    }

.content-wrapper-hero,
.content-wrapper-about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border: 3px solid #FF8228;
    position: relative; /* Inherits z-index layering */
    z-index: 1;
    flex-wrap: wrap;
    padding: 1rem;
}

.left-section-hero,
.right-section-hero {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 1;
    min-width: 250px;
    text-align: center;
}

.company-name {
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.1rem;
    color: #000000; /* Black might be hard to see on dark overlay, consider switching to white or light gray */
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 100%;
    height: auto;
}

.WDivider {
    border: 1px solid #ffffff;
    margin: 1rem auto;
    max-width: 200px;
}
/* ========================================
About Section
======================================== */
.about-section {
    padding: 2rem;
    background-color: #555;
}

.images-section-about,
.text-section-about {
    flex: 1;
    padding: 2rem;
}

.images-section-about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.about-image {
    width: 200px;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
}

.about-description {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.6;
}

/* ========================================
Creations Section
======================================== */
.creations-section {
    padding-top: 7rem;
}

.creations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: space-between;
}

.hidden {
    display: none;
}

.product-card {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
}

.image-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    flex: 1;
    max-height: 400px;
    overflow: hidden;
}
.creations-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    font-size: 2rem;
    margin: 2rem;
}
    .creations-menu a{
        color: black
    }

.text-column {
    text-align: center;
}
    .text-column h2 {
        font-size: 1.5rem;
        color: #FF8228;
        margin-bottom: 1rem;
    }


.image-column img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
Wood Selection/Payment Section
======================================== */
.wood-section {
    background-color: #ffffff;
    text-align: center;
    padding: 2rem;
}

.wood-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    margin: 0 auto;
}

.wood-item {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.wood-img {
    max-width: 100px;
    max-height: 100px;
    border: 2px solid black;
}

.wood-section p {
    margin-left: 1rem;
    font-size: 1.25rem;
    color: #000000;
}

.wood-section h2 {
    color: #272727;
    margin-bottom: 2rem;
}


/* ========================================
Contact/Shipping/Payment Section
======================================== */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    padding: 2rem 4rem 2rem;
    background-color: #555;
    color: #fff;
    font-family: Arial, sans-serif;
    justify-content: space-evenly;
    text-align: left;
}

.contact-column {
    flex: 1;
    min-width: 250px;
}

.contact-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FF8228;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    height: 30px;
    width: 30px;
}

.large-icon {
    height: 40px;
    width: 40px;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

    .contact-item a:hover {
        text-decoration: underline;
    }

/* ========================================
Responsive Design
======================================== */

/* Small screens: phones and small devices */

@media (max-width: 768px) {
    .content-wrapper-hero,
    .content-wrapper-about,
    .product-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-wrapper-hero {
        height: auto;
        min-height: unset;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .hero-section {
        height: auto;
        min-height: 100dvh;
        padding-top: 7rem;
    }

    .left-section-hero,
    .right-section-hero {
        min-width: 0;
        width: 100%;
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        font-size: 1.2rem;
        color: #ffffff;
        margin: 0.5rem 0;
        word-wrap: break-word;
    }

    .WDivider {
        width: 60%;
        height: 2px;
        background-color: #ffffff;
        margin: 0.5rem 0;
    }

    .product-card {
        flex: 0 0 100%;
        padding: 1rem;
        gap: 1rem;
        scroll-snap-align: start;
    }

    .image-column {
        grid-template-columns: repeat(3, 1fr);
        max-height: none;
    }

    .creations {
        grid-template-columns: repeat(1, 1fr);
    }
    .creations-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 1.5rem;
    }
        .creations-menu a {
            padding: 10px;
            margin: 1rem;
            font-size: 1.5rem;
            color: black; 
        }

    .image-column img {
        height: auto;
    }

    .nav-links {
        position: static;
        width: 100%;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .about-image {
        max-width: 100%;
    }

    .text-column h2 {
        font-size: 1.4rem;
    }

    .text-column p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 1rem;
        width: 200px;
        background-color: #222;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }

        .nav-links.active {
            display: flex;
        }

    .logo {
        height: 300px;
        width: 300px;
        margin-left: 0%;
        margin-top: 10%;
        height: auto;
    }

    .hero-section p {
        font-size: 1.5rem;
        color: #ffffff;
        position: relative;
        z-index: 1;
    }

    .contact-section {
        display: flex;
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .images-section-about {
        display: flex;
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        max-width: 200px;
        height: 200px;
        border-radius: 8px;
        align-items: center;
    }

    .wood-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .wood-section {
        padding: 2rem 1rem;
    }

    .wood-img {
        max-width: 75px;
        max-height: 75px;
        border: 2px solid black;
    }

    .wood-section p {
        margin-left: 1rem;
        font-size: 0.75rem;
    }
}

/* Medium screens: tablets and small laptops */
@media (min-width: 481px) and (max-width: 1024px) {
    .logo {
        height: 300px;
        width: 300px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 5%;
    }

    .hero-section p {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .text-column h2 {
        font-size: 1.6rem;
    }

    .text-column p {
        font-size: 1.2rem;
        padding: 0 2rem;
    }

    .wood-img {
        max-width: 100px;
        max-height: 100px;
    }

    .wood-section p {
        font-size: 0.9rem;
    }

    .product-card {
        flex: 0 0 60vw;
        padding: 1.5rem;
    }

    .creations {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens: desktops and beyond */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        width: auto;
    }
}
