/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* ============================================
   HERO SECTION - Green Gradient
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-light) 100%);
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
    color: var(--color-white-text);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
    opacity: 0.95;
}

.hero-cta-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

/* White primary button on green hero */
.hero .btn-primary {
    background-color: var(--color-white);
    color: var(--color-green-primary);
    border-color: var(--color-white);
}

.hero .btn-primary:hover {
    background-color: var(--color-cream);
    border-color: var(--color-cream);
    color: var(--color-green-dark);
}

/* Outlined button on green hero */
.hero .btn-secondary {
    background-color: transparent;
    color: var(--color-white-text);
    border: 2px solid var(--color-white);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Trust Stats*/
.trust-stats {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-stat-item {
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-white-text);
}

.stat-label {
    font-size: 14px;
    color: var(--color-white);
    font-weight: 500;
    opacity: 0.9;
}

/* ============================================
   PRESS/TRUST BADGES - Muted Stone
   ============================================ */

.press-section {
    background-color: var(--color-stone);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.press-label {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.press-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.press-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    color: var(--color-text-primary);
    font-weight: 500;
}

.press-badge svg {
    color: var(--color-green-medium);
}

/* ============================================
   PRODUCT COMPARISON - Base White
   ============================================ */

.product-comparison {
    background-color: var(--color-white);
    padding: var(--spacing-xxl) 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto var(--spacing-lg) auto;
}

.product-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-green-medium);
}

.product-card-featured {
    border-color: var(--color-green-primary);
    border-width: 3px;
    background: linear-gradient(180deg, var(--color-green-pale) 0%, var(--color-white) 100%);
}

.product-card-featured:hover {
    transform: translateY(-4px);
    border-color: var(--color-brass);
}

.product-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-medium) 100%);
    color: var(--color-white-text);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-green);
}

.product-header {
    margin-bottom: var(--spacing-md);
}

.product-header h3 {
    margin-bottom: var(--spacing-xs);
}

.product-tagline {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.product-description {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.product-description p {
    font-size: 16px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
    flex-grow: 1;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    font-size: 16px;
    color: var(--color-text-primary);
}

.checkmark {
    flex-shrink: 0;
    color: var(--color-success);
    margin-top: 2px;
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.product-card-footer .link-subtle {
    order: 1;
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
}

.product-card-footer .btn {
    order: 2;
}

.comparison-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ============================================
   HOW IT WORKS - Cream Background
   ============================================ */

.how-it-works {
    background-color: var(--color-cream);
    padding: var(--spacing-xxl) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: stretch;
}

.step-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 4 / 5;
    max-height: 340px;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-green-medium);
}

.step-number {
    width: 56px;
    height: 56px;
    color: var(--color-white-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* Alternating green and brass */
.step-card:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-medium) 100%);
}

.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--color-brass) 0%, var(--color-brass-light) 100%);
}

.step-card:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--color-green-medium) 0%, var(--color-green-light) 100%);
}

.step-card:nth-child(4) .step-number {
    background: linear-gradient(135deg, var(--color-brass-light) 0%, var(--color-brass-pale) 100%);
}

.step-card h3 {
    margin-bottom: var(--spacing-sm);
    min-height: 56px;
}

.step-card p {
    font-size: 16px;
    margin: 0;
    color: var(--color-text-muted);
}

/* ============================================
   TESTIMONIALS - Base White
   ============================================ */

.testimonials-section {
    background-color: var(--color-white);
    padding: var(--spacing-xxl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 2px solid var(--color-border);
    border-top-width: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Alternating green and brass borders */
.testimonial-card:nth-child(odd) {
    border-top-color: var(--color-green-primary);
}

.testimonial-card:nth-child(even) {
    border-top-color: var(--color-brass);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--color-star);
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    color: var(--color-white-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* Matching gradient avatars */
.testimonial-card:nth-child(odd) .author-avatar {
    background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-medium) 100%);
}

.testimonial-card:nth-child(even) .author-avatar {
    background: linear-gradient(135deg, var(--color-brass) 0%, var(--color-brass-light) 100%);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1.2;
}

.author-location {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.2;
}
/* ============================================
   BENEFITS - Pale Green Background
   ============================================ */

.benefits-section {
    background-color: var(--color-green-pale);
    padding: var(--spacing-xxl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-md) auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white-text);
    font-size: 32px;
}

/* Alternating green and brass icons */
.benefit-item:nth-child(odd) .benefit-icon {
    background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-medium) 100%);
}

.benefit-item:nth-child(even) .benefit-icon {
    background: linear-gradient(135deg, var(--color-brass) 0%, var(--color-brass-light) 100%);
}

.benefit-item h3 {
    margin-bottom: var(--spacing-sm);
    line-height: 1.25;
    min-height: calc(1.25em * 3);
}

.benefit-item p {
    font-size: 16px;
    color: var(--color-text-muted);
}

/* ============================================
   FAQ - Base White
   ============================================ */

.faq-section {
    background-color: var(--color-white);
    padding: var(--spacing-xxl) 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border);
    border-left-width: 4px;
    border-left-color: var(--color-green-medium);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: var(--color-brass);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--color-white); ;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    outline: none;
}

.faq-question:hover {
    background: var(--color-cream);
    color: var(--color-green-primary);
}

.faq-question:focus {
    outline: none;
    outline-offset: 2px;
}

.faq-icon {
    font-size: 28px;
    font-weight: 300;
    color: var(--color-green-primary);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-brass);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 28px 24px 28px; 
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    color: var(--color-text-muted);
}

/* ============================================
   FINAL CTA - Brass Gradient
   ============================================ */

.final-cta {
    background: linear-gradient(135deg, var(--color-brass) 0%, var(--color-cream) 100%);
    padding: var(--spacing-xxl) 0;
}

.final-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.final-cta-content p {
    font-size: 20px;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .hero-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        min-height: auto;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
        
    .step-card {
        aspect-ratio: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .trust-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .trust-stat-item {
        text-align: center;
    }
    
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .press-badges {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .trust-stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 13px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.faq-item.active .faq-answer {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
