/*
 * home.css
 * Homepage-specific styles
 * Uses generic classes from _utilities.css where possible
 * Only loaded on the homepage via functions.php
 */


/* ===========================================================
   HERO SECTION
   Full-width navy banner with centered content
   Canvas animation as background layer
   =========================================================== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 5rem 0;
    text-align: center;
    background-color: var(--bg-dark); /* Fallback if canvas fails */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas background layer */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Content layer above canvas */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-md);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.625;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .hero {
        padding: 3.75rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
}


/* ===========================================================
   WHAT WE DO SECTION
   Uses: .section-light, .cards-grid-2, .card, .card-bordered
   =========================================================== */
/* No additional styles needed - uses generic classes */


/* ===========================================================
   HOW WE WORK SECTION
   Uses: .section-white, .cards-grid-3, .card, .card-bordered
   =========================================================== */
/* No additional styles needed - uses generic classes */


/* ===========================================================
   TYPICAL OUTCOMES SECTION
   Image on left, checklist on right (stacks on mobile)
   Uses: .section-light, .feature-list, .feature-item
   =========================================================== */
.outcomes-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.outcomes-layout .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.outcomes-image img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .outcomes-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .outcomes-layout .section-title {
        text-align: center;
    }
}


/* ===========================================================
   WHY WE WIN SECTION
   Uses: .section-dark, .features-grid, .feature-item
   =========================================================== */
/* No additional styles needed - uses generic classes */


/* ===========================================================
   RESULTS SECTION
   Cards with images
   Uses: .section-white, .cards-grid-3
   =========================================================== */
.result-card {
    background-color: var(--bg-light);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.result-card img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.result-description {
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--text-dark);
}

.results-cta {
    text-align: center;
    margin-top: 3rem;
}


/* ===========================================================
   TESTIMONIALS SECTION
   Uses: .section-light
   =========================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 62.5rem;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-dots {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--color-red);
    opacity: 0.2;
}

.testimonial-dots .dot.active {
    flex: 1;
    border-radius: 0.25rem;
    opacity: 1;
}

.testimonial-quote {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--color-red);
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.testimonial-author img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-black);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.author-company {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-red);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}


/* ===========================================================
   BOTTOM CTA SECTION
   Uses: .section-dark
   =========================================================== */
.cta-container {
    text-align: center;
    max-width: var(--max-width-sm);
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.625;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 47.5rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 1.75rem;
    }
}


/* ===========================================================
   ANIMATIONS
   Subtle fade-in for cards (optional enhancement)
   =========================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.testimonial-card,
.result-card {
    animation: fadeInUp 0.6s ease-out;
}


/* ===========================================================
   FEATURE / CHECKLIST LIST
   Vertical list with icon + text rows (homepage sections)
   =========================================================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-item-content {
    flex: 1;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-text {
    font-size: 1.125rem;
    line-height: 1.556;
    color: var(--text-dark);
}


/* ===========================================================
   FEATURE GRID (2-column on desktop)
   Used in "Why We Win" section
   =========================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
