@import '../components/group-card.css';

/* --- Hero ---------------------------------------------------- */

.hero {
    background-image: url("/images/header-banner.webp");
    background-size: cover;
    background-position: center center;
    padding: 5rem 0 4.5rem;
    text-align: center;
    position: relative;
}

.hero .container {
    z-index: 3;
    position: relative;
}

.hero::after {
    content: "";
    z-index: 2;
    background: rgba(242, 237, 227, 0.62);
    backdrop-filter: blur(3px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero__headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--color-forest-deep);
    margin-bottom: 1.1rem;
}

.hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--color-stone);
    max-width: 560px;
    margin: 0 auto 2.25rem;
    font-style: italic;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* --- How it works -------------------------------------------- */

.how-it-works {
    padding: 4.5rem 0;
    background: var(--color-parchment);
}

.section-title {
    font-size: 1.625rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--color-forest-deep);
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 0 1rem;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-moss);
    color: var(--color-paper);
    font-family: "Shippori Mincho B1", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(61, 92, 53, 0.25);
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-stone);
    font-size: 0.9375rem;
    font-style: italic;
}

/* --- Features ------------------------------------------------ */

.features {
    background: var(--color-paper);
    padding: 4.5rem 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-fog);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 6px rgba(26, 40, 24, 0.05);
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(26, 40, 24, 0.1);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 0.85rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-stone);
    font-size: 0.9375rem;
    font-style: italic;
}

/* --- CTA band ------------------------------------------------ */

.cta-band {
    background: var(--color-forest);
    color: var(--color-paper);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 40, 24, 0.55) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.cta-band .container {
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    font-size: 1.875rem;
    margin-bottom: 0.6rem;
    color: var(--color-paper);
}

.cta-band p {
    color: var(--color-sage-light);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    font-style: italic;
}

.cta-band .btn--primary {
    background: var(--color-paper);
    color: var(--color-forest);
    border-color: var(--color-paper);
    font-weight: 700;
}

.cta-band .btn--primary:hover {
    background: var(--color-parchment);
    border-color: var(--color-parchment);
    color: var(--color-forest-deep);
}

/* --- Explore section ----------------------------------------- */

.explore-section {
    background: rgba(61, 92, 53, 0.05);
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.explore-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.explore-section__header h2 {
    font-size: 1.375rem;
}

.explore-section__footer {
    margin-top: 1.5rem;
    text-align: center;
}

.explore-groups {
    min-height: 2rem;
}

.explore-groups__empty {
    font-size: 0.9375rem;
    color: var(--color-stone);
    padding: 1.5rem 0;
    font-style: italic;
}
