/* Home Page Styles */

/* Hero with image */
.hero {
    position: relative;
    z-index: 5;
    min-height: 800px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-6rem);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 650;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    white-space: normal;
    background: rgba(255, 255, 255, 0);
    padding: 1rem 1rem;
    display: block;
    border-radius: 8px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
}

.hero p {
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0);
    padding: 0.5rem 1.5rem;
    display: inline-block;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Feature cards at bottom of hero */
.hero-features {
    position: relative;
    margin-top: -7.5rem;
    margin-bottom: -7.5rem;
    padding: 0 2rem 0;
    z-index: 10;
    transform: translateY(0);
}

/* Home page section spacing */
.section {
    padding-top: 2rem;
}

.section + .section {
    margin-top: 4rem;
}

.hero-features .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-features .card {
    background: rgba(45, 106, 79, 0.9);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid white;
    border-radius: 8px;
}

.hero-features .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 106, 79, 0.3);
    background: rgba(45, 106, 79, 0.9);
}

.hero-features .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-features .card h3 {
    color: #e8f5e9;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-features .card p {
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .hero-features .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .hero-features .cards {
        grid-template-columns: 1fr;
    }
    .hero-features {
        margin-top: -3rem;
        margin-bottom: -1.5rem;
        padding-bottom: 1.5rem;
    }
    .choose-path-section {
        margin-top: -1.5rem;
        padding-top: 3rem;
    }
}

/* Choose Your Path section with background */
.choose-path-section {
    background: url('/static/images/hero_background_container.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 820px;
    padding: 13rem 2rem 4rem 2rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.choose-path-section .section-title {
    background: rgba(255, 255, 255, 0.95);
    color: #2d6a4f;
    padding: 1rem 3rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 2rem;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.choose-path-section .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.choose-path-section .card {
    display: flex;
    flex-direction: column;
    min-height: 350px;
    background: rgba(255, 255, 255, 0.8);
}

.choose-path-section .card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #2d6a4f;
    font-weight: 600;
}

.choose-path-section .card p {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
}

/* What We Do section with background */
.what-we-do-section {
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 4rem 0 !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
}

.what-we-do-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/lettuce_farm_w_robot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.what-we-do-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.what-we-do-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.what-we-do-section .section-title {
    background: rgba(255, 255, 255, 0.95);
    color: #2d6a4f;
    padding: 1rem 3rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 3rem;
    text-shadow: none;
}

.what-we-do-section .card {
    background: rgba(255, 255, 255, 0.7);
}

.what-we-do-section .card h3 {
    color: #2d6a4f;
    font-weight: 600;
}

.what-we-do-section .card p {
    color: #1a1a1a;
}

/* Built for High-Value Crops section with background */
.crops-section {
    position: relative;
    background: url('/static/images/vertical.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 700px;
    padding: 4rem 0 2rem 0;
    margin-bottom: 0;
    margin-top: 0 !important;
    width: 100vw;
    overflow: hidden;
}

.crops-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.crops-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.crops-section .trust-signals {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0 auto;
    padding-top: 150px;
    max-width: 1200px;
}

.crops-section .trust-item {
    text-align: center;
    background: rgba(45, 106, 79, 0.9);
    padding: 0.375rem 1.5rem;
    border-radius: 10px;
    border: 3px solid white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.crops-section .trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 106, 79, 0.3);
}

.crops-section .trust-item span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.crops-section .trust-item p {
    color: #e8f5e9;
    margin: 0;
}

.crops-section .trust-item strong {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.crops-section .section-title {
    background: rgba(255, 255, 255, 0.9);
    color: #2d6a4f;
    padding: 1rem 3rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 2rem;
    text-shadow: none;
}

/* CTA Section */
.cta-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #1b4332;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}
