/* --- COLOR PALETTE & VARIABLES --- */
:root {
    --organic-cream: #F5F1E8;
    --deep-forest: #1F3D2B;
    --harvest-mustard: #D4A017;
    --pure-white: #FFFFFF;
    --text-muted: rgba(31, 61, 43, 0.8);
    --text-light: rgba(245, 241, 232, 0.8);
    --hero-overlay: rgba(15, 31, 21, 0.65); /* Keeps text legible over background photos */
}

/* --- MOBILE FIRST BASE LAYOUT (PREVENTS OVERFLOW) --- */
.em-landing-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--organic-cream);
    color: var(--deep-forest);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
}

/* Base box-sizing protection for all internal page components */
.em-landing-page *,
.em-landing-page *::before,
.em-landing-page *::after {
    box-sizing: border-box;
}

.em-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTON COMPONENT --- */
.em-btn-primary {
    display: inline-block;
    width: 100%;
    background-color: var(--harvest-mustard);
    color: var(--deep-forest);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 8px;
    letter-spacing: 0.75px;
    font-size: 1rem;
    border: none;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

/* --- FULL-WIDTH BACKGROUND HERO SECTION --- */
.em-hero-banner {
    position: relative;
    padding: 80px 0;
    text-align: center;
    /* Clean fallback color + premium Unsplash agro background */
    background: var(--deep-forest) url('../images/hero-bg1.jpg') center center / cover no-repeat;
}

/* Dark semi-transparent scrim overlay to preserve premium readability */
.em-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay);
    z-index: 1;
}

.em-hero-banner-content {
    position: relative;
    z-index: 2; /* Forces text content above background image and mask */
    max-width: 800px;
    margin: 0 auto;
}

.em-hero-banner h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: var(--organic-cream); /* Inverted text to stand out over darkness */
    letter-spacing: -0.5px;
    word-wrap: break-word;
    word-break: break-word;
}

.em-hero-banner p {
    font-size: 1.1rem;
    margin: 0 0 32px 0;
    color: var(--text-light); /* Inverted muted tone */
}

.em-hero-cta-wrapper {
    width: 100%;
    margin-bottom: 48px;
}

.em-trust-anchors {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.em-anchor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    max-width: 290px;
    color: var(--organic-cream);
}

/* --- HOW IT WORKS --- */
.em-how-it-works {
    background-color: var(--pure-white);
    padding: 64px 0;
    text-align: center;
}

.em-section-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 40px 0;
    letter-spacing: -0.5px;
    word-wrap: break-word;
}

.em-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.em-step-card {
    padding: 32px 24px;
    background: var(--organic-cream);
    border-radius: 14px;
    text-align: left;
}

.em-step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.em-step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.em-step-card p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-muted);
}

/* --- TRUST & SAFETY --- */
.em-trust-block {
    padding: 64px 0;
    background-color: var(--organic-cream);
}

.em-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.em-trust-card {
    background-color: var(--deep-forest);
    color: var(--organic-cream);
    padding: 36px 28px;
    border-radius: 14px;
}

.em-trust-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.em-trust-card p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-light);
}

.em-highlight {
    color: var(--harvest-mustard);
}

/* --- BLOG BLOCK --- */
.em-blog {
    background-color: var(--pure-white);
    padding: 64px 0;
}

.em-blog .em-section-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.em-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.em-blog-card {
    background: var(--organic-cream);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.em-blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.em-blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.em-blog-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    flex-grow: 1;
    word-wrap: break-word;
}

.em-blog-link {
    color: var(--harvest-mustard);
    font-weight: 700;
    font-size: 1rem;
}


/* --- DESKTOP BREAKOUTS (RESPONSIVE UPGRADES) --- */
@media (min-width: 768px) {
    .em-container {
        padding: 0 24px;
    }
    
    .em-btn-primary {
        width: auto;
        padding: 18px 44px;
    }

    .em-hero-banner {
        padding: 160px 0; /* Dramatic, high-end hero presence on massive windows */
    }

    .em-hero-banner h1 {
        font-size: 3.75rem;
    }

    .em-hero-banner p {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .em-hero-cta-wrapper {
        margin-bottom: 64px;
    }

    .em-trust-anchors {
        flex-direction: row;
        gap: 48px;
    }
    
    .em-anchor-item {
        width: auto;
        max-width: none;
    }

    .em-section-title {
        font-size: 2.5rem;
        margin-bottom: 56px;
    }

    .em-steps-grid,
    .em-trust-grid,
    .em-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .em-blog-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(31, 61, 43, 0.08);
    }
}
