/* ================================================================
   HOME PAGE STYLES
   Moringa Essentials - Homepage Specific Styles
   ================================================================ */

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(90px + var(--space-16)) 0 var(--space-16);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('../imgs/products/moringa-leaves-real.jpg') center/cover no-repeat;
    z-index: -2;
    animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(30, 132, 73, 0.7) 0%,
        rgba(39, 174, 96, 0.6) 40%,
        rgba(46, 204, 113, 0.5) 100%
    );
}

/* Light rays effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(241, 196, 15, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content h1 {
    font-size: var(--text-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Hero Trust Card */
.hero-trust {
    position: relative;
}

.trust-card {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #f1c40f, #a8e063);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(46, 204, 113, 0.15);
}

.trust-item:last-of-type {
    border-bottom: none;
}

.trust-item svg {
    color: #27ae60;
    flex-shrink: 0;
}

.trust-item > div {
    display: flex;
    flex-direction: column;
}

.trust-label {
    font-size: var(--text-xs);
    color: #4a7c59;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-value {
    font-weight: var(--font-semibold);
    color: #1b5e20;
}

.trust-badges-hero {
    display: flex;
    gap: var(--space-4);
    padding-top: var(--space-6);
    margin-top: var(--space-4);
    border-top: 1px solid rgba(46, 204, 113, 0.2);
}

.trust-badges-hero img {
    height: 48px;
    width: auto;
    filter: grayscale(0.2);
    transition: filter var(--transition-fast);
}

.trust-badges-hero img:hover {
    filter: grayscale(0);
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-12)) 0 var(--space-12);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .hero-content h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-trust {
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* ================================================================
   WHO WE SERVE SECTION
   ================================================================ */
.who-we-serve {
    background: linear-gradient(180deg, #27ae60 0%, #2ecc71 50%, #58d68d 100%);
    position: relative;
}

.who-we-serve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.serve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.serve-card {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.serve-card:hover {
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 1);
}

.serve-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.serve-icon svg {
    color: #1b5e20;
}

.serve-card h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: #1b5e20;
    margin: 0;
}

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

@media (max-width: 640px) {
    .serve-grid {
        grid-template-columns: 1fr;
    }
    
    .serve-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--space-4);
        padding: var(--space-6);
    }
    
    .serve-icon {
        margin: 0;
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }
    
    .serve-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ================================================================
   PRODUCTS PREVIEW SECTION
   ================================================================ */
.products-preview {
    position: relative;
    background-color: var(--primary-green);
    padding: var(--space-20) 0;
}

.products-preview .section-header p {
    color: #388e3c;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: #f1c40f;
    color: #1b5e20;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: #ffffff;
}

.product-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: #1b5e20;
}

.product-features {
    margin-bottom: var(--space-4);
}

.product-features li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: #2e7d32;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
}

.product-card p {
    flex: 1;
    font-size: var(--text-sm);
    color: #4a7c59;
}

.product-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
}

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

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* ================================================================
   WHY US SECTION
   ================================================================ */
.why-us {
    background: linear-gradient(180deg, #27ae60 0%, #2ecc71 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
}

.why-card {
    text-align: center;
    padding: var(--space-6);
}

.why-icon {
    margin-bottom: var(--space-4);
}

.why-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.why-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: var(--space-4);
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .why-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .why-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* ================================================================
   TIMELINE SECTION
   ================================================================ */
.timeline-section {
    background: linear-gradient(180deg, #27ae60 0%, #2ecc71 50%, #58d68d 100%);;
    overflow-x: auto;
}

.timeline-section .section-header p {
    opacity: 0.8;
}

.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: var(--space-8) 0;
    min-width: max-content;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.timeline-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: 50%;
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.4);
    position: relative;
    z-index: 2;
}

.timeline-icon svg {
    color: var(--white);
}

.timeline-icon.highlight {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.timeline-icon.highlight svg {
    color: var(--black);
}

.timeline-label {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: var(--white);
    margin-bottom: var(--space-1);
}

.timeline-desc {
    font-size: var(--text-xs);
    color: var(--metallic-silver);
}

.timeline-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    margin-top: 27px;
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--accent-gold);
}

@media (max-width: 1200px) {
    .timeline {
        justify-content: flex-start;
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (max-width: 768px) {
    .timeline-section {
        padding: var(--space-12) 0;
    }
    
    .timeline {
        flex-direction: column;
        align-items: center;
        min-width: auto;
    }
    
    .timeline-item {
        flex-direction: row;
        text-align: left;
        gap: var(--space-4);
        width: 100%;
        max-width: 300px;
    }
    
    .timeline-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .timeline-connector {
        width: 2px;
        height: 40px;
        margin-top: 0;
        margin-left: 27px;
    }
    
    .timeline-connector::after {
        right: auto;
        bottom: -4px;
        top: auto;
        left: -3px;
        border-top: 6px solid var(--accent-gold);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: none;
    }
}

/* ================================================================
   FINAL CTA SECTION
   ================================================================ */
.cta-section {
    background: var(--bg-dark);
}

.cta-card {
    background: var(--bg-card);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
}

.cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.cta-content p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-10);
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ================================================================
   STICKY CTA BAR (Optional - for mobile)
   ================================================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: var(--space-4) var(--space-6);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: var(--z-sticky);
    display: none;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .sticky-cta {
        display: block;
    }
    
    .footer {
        padding-bottom: calc(var(--space-8) + 70px);
    }
}
