@import url(../css/main.css);

/* HOME SECTION */
#home {
    position: relative;
    height: 100vh; /* Full viewport height */
    width: 100%;
    margin: 0; /* Removes any margin around the section */
    padding: 0;
    overflow: hidden; /* Ensures no content overflows outside the section */
}

/* HERO */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(../images/Assorted\ Breads\ 2.jpg);
    background-size: cover; /* Ensures the background image covers the entire section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevents repeating the background image */
    height: 100vh; /* Full viewport height */
    width: 100%;
    padding: 0; /* Remove padding to ensure the image fills the section */
    margin: 0 auto; /* Center the content on large screens */
}

.hero h1 {
    font-size: 8em; /* Adjust this value for your desired size */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(7, 6, 6, 0.7); /* Keeps the shadow for readability */
    margin-bottom: 20px; /* Space between the h1 and the button */
}

.hero .cta {
    position: relative;
    z-index: 2;
    padding: 10px 20px;
    background-color: #ff9800;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* Smooth transition for color change */
}

.hero .cta:hover {
    background-color: #e65c00; /* Change to a different color on hover */
    color: #fff; /* Optional: Change text color on hover */
}

.hero, #about, #markets {
    max-width: 1200px;
    margin: 0 auto;
}

/* About and Markets Sections */
#about, #markets {
    padding: 30px 10px;
    background-color: #fff;
    margin: 0 auto;
    width: 70%;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#about .about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#about .about-text {
    flex: 1 1 60%;
    padding-left: 20px;
    padding-right: 20px;
}

#about .about-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

#markets .market-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#markets .market-text {
    flex: 1 1 60%;
    padding-right: 20px;
    padding-left: 20px;
}

#markets .market-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

.section-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* General styles for h2 headers to ensure they are centered */
#about h2, #markets h2 {
    text-align: center;
}

#about a, #markets a {
    color: #007bff; /* Adjust color as needed */
    text-decoration: none;
}

#about a:hover, #markets a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #home {
        height: 100vh; /* Ensure full viewport height on mobile */
    }
    
    .hero {
        padding: 60px 10px;
        background-position: center center; /* Center the background image */
        height: 100vh; /* Full viewport height on mobile */
        box-sizing: border-box; /* Include padding in height calculation */
    }

    .hero h1 {
        font-size: 4em; /* Adjust font size for better scaling */
        margin: 0;
        text-align: center;
        width: 100%;
        padding: 0 10px; /* Ensure padding around the text */
    }

    .hero h1, .hero .cta {
        margin: 0; /* Remove any margin to center content */
    }

    #about .about-content, #markets .market-content {
        flex-direction: column;
    }

    #about .about-text, #about .about-image,
    #markets .market-text, #markets .market-image {
        flex: 1 1 100%;
        padding: 10px 0;
    }
}