/* ============================================
   Front Page Styles
   ============================================ */

/* Override site-content constraints on front page */
.home .site-content {
    max-width: none;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--color-text-inverse);
    padding: 120px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Hero Tagline */
.hero-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-tagline__word {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-tagline__separator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-green);
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button-primary {
    background-color: var(--color-blue);
    color: white;
}

.button-primary:hover {
    background-color: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-primary:visited {
    color: white;
}

/* On dark/colored backgrounds, use a white outline style */
.hero-section .button-primary {
    background-color: white;
    color: var(--color-blue-dark);
    border-color: white;
}

.hero-section .button-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.hero-section .button-primary:visited {
    color: var(--color-blue-dark);
}

.hero-section .button-primary:hover:visited {
    color: white;
}

.button-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.button-secondary:hover {
    background-color: white;
    color: var(--color-blue);
}

.button-cta {
    background-color: white;
    color: var(--color-green-dark);
    font-size: 1.125rem;
    padding: 16px 40px;
    border-color: white;
}

.button-cta:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.button-cta:visited {
    color: var(--color-green-dark);
}

.button-cta:hover:visited {
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-text-primary);
}

/* How It Works Section */
.how-section {
    background-color: var(--color-bg-secondary);
}

.how-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -1.5rem auto 3rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

/* Connector line between steps */
.how-steps::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: calc(16.66% + 1.25rem);
    right: calc(16.66% + 1.25rem);
    height: 2px;
    background: var(--color-border-primary);
    z-index: 0;
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.how-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
}

.how-step__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.how-step__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--color-bg-primary);
}

.benefits-title {
    margin-bottom: 2.5rem;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.benefits-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-secondary);
    opacity: 0.35;
    transition: opacity 0.1s ease;
}

/* Odd count: let last item span full width if alone */
.benefits-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
}

.benefits-item.is-active {
    opacity: 1;
}

.benefits-item__check {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-green);
    color: white;
    margin-top: 0.1rem;
}

.benefits-item__check svg {
    width: 1rem;
    height: 1rem;
}

.benefits-item__text {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.about-image img,
.placeholder-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.placeholder-image {
    background-color: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: var(--color-gray);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .button {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        gap: 0.5rem;
    }

    .hero-tagline__word {
        font-size: 0.9375rem;
        letter-spacing: 0.1em;
    }

    .hero-tagline__separator {
        width: 5px;
        height: 5px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 80px 20px;
    }

    .how-subtitle {
        margin-bottom: 2rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .benefits-item:last-child:nth-child(odd) {
        max-width: none;
    }

    .benefits-item {
        padding: 1rem;
    }

    .benefits-item__text {
        font-size: 1rem;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .how-steps::before {
        display: none;
    }

    .how-step__number {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
}
