/* 
 * PLATE OF AFRICA - SUSTAINABILITY PAGE STYLES
 * Consolidated from multiple stylesheets with improvements
 * Includes: Global styles, Hero section, Content sections, Animations
 */

/* ---------- GLOBAL STYLES ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: rgba(15, 15, 15, 1);
    color: rgba(255, 255, 255, 1);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    background-image: url(../images/ApproachBlackBackground.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main {
    padding-top: 100px;
    margin-top: 0;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

/* ---------- HERO SECTION ---------- */
#title-area {
    background-image: url(../images/ApproachBackgroundImage.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

#title-area h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1.2s ease-out;
    z-index: 2;
}

#rectangle-header {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #E3D582 0%, #E6B035 100%);
    margin: 0 auto 2rem auto;
    animation: expandWidth 1.5s ease-out;
    z-index: 2;
}

/* ---------- CONTENT SECTIONS ---------- */
.approachfullbackground-box {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sustainability Intro Section */
.whereItAllStarted {
    margin-top: 3rem;
    margin-bottom: 5rem;
    text-align: center;
}

.whereItAllStarted h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #E6B035;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sustainabilityIntro-textContainer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Farm to Table Section */
.farmToTable {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5rem;
    gap: 2rem;
}

.farmImage {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.farmImage img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.farmImage:hover img {
    transform: scale(1.03);
}

.farmToTable-text {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.farmToTable-text h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #E6B035;
    text-transform: uppercase;
}

/* Nourishment Section */
.nourishment {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    margin-bottom: 5rem;
}

.nourishment-text {
    grid-column: span 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.nourishment-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #E6B035;
    text-transform: uppercase;
}

.nourishmentImage1, .nourishmentImage2 {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.nourishmentImage1:hover, .nourishmentImage2:hover {
    transform: translateY(-10px);
}

.nourishment img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- ANIMATIONS ---------- */
.slide-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* ---------- SCROLL TO TOP BUTTON ---------- */
#scrolltotop-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
}

#scrolltotop-button:hover {
    transform: translateY(-5px);
}

#scrolltotop-button img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 1200px) {
    #title-area h1 {
        font-size: 3rem;
    }
    
    .whereItAllStarted h1,
    .farmToTable-text h1,
    .nourishment-text h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    .farmToTable {
        flex-direction: column;
    }
    
    .farmImage {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .farmToTable-text {
        order: 2;
        text-align: center;
    }
    
    .nourishment {
        grid-template-columns: 1fr;
    }
    
    .nourishment-text {
        grid-column: 1;
    }
    
    .nourishmentImage1, .nourishmentImage2 {
        margin: 0 auto;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    #title-area {
        height: 80vh;
    }
    
    #title-area h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }
    
    .whereItAllStarted h1,
    .farmToTable-text h1,
    .nourishment-text h1 {
        font-size: 1.5rem;
    }
    
    .approachfullbackground-box {
        padding: 1rem 5%;
    }
    
    .whereItAllStarted {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }
    
    .farmToTable, .nourishment {
        margin-bottom: 3rem;
    }
    
    #scrolltotop-button {
        bottom: 20px;
        right: 20px;
    }
    
    #scrolltotop-button img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    #title-area h1 {
        font-size: 1.8rem;
    }
    
    .rectangle-header {
        width: 80px;
        height: 4px;
    }
    
    .whereItAllStarted h1,
    .farmToTable-text h1,
    .nourishment-text h1 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.9rem;
    }
}

