/* The public website's own layer, on top of the shared design system in
   _content/Droomploeg.SportDex.Branding/sportdex.css.
 *
 * Only what the marketing pages and the administration screens need and the
 * app does not: the page wrapper, the home page's hero and its sections.
 * Anything a single screen needs stays in that screen's scoped .razor.css.
 */

/* --------------------------------------------------------------- the page -- */

/* Every screen wraps its content in this. The layout deliberately adds no
   padding of its own, so a full-bleed section can sit next to a normal one. */
.page-section {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-7) var(--space-4) var(--space-8);
}

@media (min-width: 48rem) {
    .page-section {
        padding-inline: var(--space-5);
    }
}

/* ------------------------------------------------------------------ hero -- */

.hero {
    background: var(--surface-sunken);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    gap: var(--space-7);
    align-items: center;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-8) var(--space-4) var(--space-9);
}

@media (min-width: 48rem) {
    .hero-inner {
        padding-inline: var(--space-5);
    }
}

/* The agenda card moves alongside the words once there is room for both to be
   read at a comfortable measure. */
@media (min-width: 60rem) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
        gap: var(--space-8);
    }
}

.hero h1 {
    max-width: 14ch;
    margin-bottom: var(--space-4);
    font-size: var(--text-4xl);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.hero .lede {
    margin-bottom: var(--space-6);
}

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

.section-head {
    max-width: var(--measure);
    margin-bottom: var(--space-6);
}

.section-head h2 {
    font-size: var(--text-2xl);
}

.section-head p {
    margin-bottom: 0;
    color: var(--ink-muted);
}

/* Three things the product does, set as columns of plain text with room around
   them rather than as three bordered cards. The whitespace does the separating;
   a box around each would only repeat what the gap already says. */
.feature-grid {
    display: grid;
    gap: var(--space-6) var(--space-7);
}

@media (min-width: 40rem) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.feature p {
    margin-bottom: 0;
    color: var(--ink-muted);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-control);
    background: var(--navy-700);
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .feature-icon {
        background: var(--surface-raised);
        border: 1px solid var(--line);
    }
}

/* ------------------------------------------------------------ filter bar -- */

/* Each filter is a link to its own address, so it can be bookmarked and the
   back button behaves. They read as a set of tabs because that is what they
   are; the current one is filled rather than merely underlined, since these sit
   above a table that otherwise gives no clue which selection produced it. */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 2.25rem;
    padding: 0.3125rem 0.875rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--ink-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.filter:hover {
    border-color: var(--ink-muted);
    color: var(--ink);
}

.filter[aria-current='page'] {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .filter[aria-current='page'] {
        border-color: var(--surface-raised);
        background: var(--surface-raised);
        color: var(--ink);
    }
}

/* How many are waiting, on the filter that would show them. */
.filter-count {
    padding: 0 0.375rem;
    border-radius: var(--radius-pill);
    background: var(--orange-500);
    color: var(--navy-900);
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
}

.filter[aria-current='page'] .filter-count {
    background: var(--orange-500);
    color: var(--navy-900);
}

/* ------------------------------------------------- a row under a row -- */

/* The outbox explanation that opens under a club whose provisioning is stuck.
   It belongs to the row above it, so it is tinted rather than ruled off. */
.sub-row > td {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    background: var(--surface-sunken);
}

.sub-row-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: flex-start;
    justify-content: space-between;
}

.sub-row-inner > div:first-child {
    flex: 1 1 20rem;
}

/* ------------------------------------------------------------- band, cta -- */

/* A single navy band low on the page, carrying the one thing we want a visitor
   to do. It is the only place on the site the accent sits on the brand colour. */
.cta-band {
    background: var(--surface-brand);
    color: #fff;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-7) var(--space-4);
}

@media (min-width: 48rem) {
    .cta-inner {
        padding-inline: var(--space-5);
    }
}

.cta-inner h2 {
    max-width: 20ch;
    margin-bottom: var(--space-1);
    color: #fff;
    font-size: var(--text-2xl);
}

.cta-inner p {
    max-width: 44ch;
    margin-bottom: 0;
    color: rgb(255 255 255 / 76%);
}
