/* ==================================================
   RCS Toolkit v1.07
   Veilige helper-classes voor Rugby Club Spakenburg
   Geen styling op standaard <button> of plugin-elementen.
   ================================================== */

.rcs-section,
.rcs-card,
.rcs-cta,
.rcs-hero,
.rcs-button,
.rcs-badge,
.rcs-mobile-bar {
    font-family: var(--rcs-font, inherit);
    box-sizing: border-box;
}

.rcs-section *,
.rcs-card *,
.rcs-cta *,
.rcs-hero *,
.rcs-mobile-bar * {
    box-sizing: border-box;
}

/* Secties
================================================== */
.rcs-section {
    width: 100%;
    padding: 30px 0;
}

.rcs-section--compact {
    padding: 18px 0;
}

.rcs-section--large {
    padding: 55px 0;
}

.rcs-section--light {
    background: var(--rcs-light-bg, #f4f8fb);
    border-radius: var(--rcs-radius, 5px);
    padding: 24px;
}

.rcs-section--blue {
    background: var(--rcs-blue, #005599);
    color: var(--rcs-white, #ffffff);
    border-radius: var(--rcs-radius, 5px);
    padding: 28px;
}

/* Uitlijning
================================================== */
.rcs-align-left { text-align: left; }
.rcs-align-center { text-align: center; }
.rcs-align-right { text-align: right; }

/* Knoppen
================================================== */
.rcs-button-wrap {
    margin: 12px 0;
}

.rcs-button,
a.rcs-button,
.rcs-card a.rcs-button,
.rcs-cta a.rcs-button,
.rcs-hero a.rcs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--rcs-radius, 5px);
    font-size: var(--rcs-block-button-font-size, 16px);
    font-weight: var(--rcs-block-button-font-weight, 800);
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.rcs-button:hover,
a.rcs-button:hover,
.rcs-card a.rcs-button:hover,
.rcs-cta a.rcs-button:hover,
.rcs-hero a.rcs-button:hover {
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 85, 153, .16);
}

.rcs-button--primary,
a.rcs-button--primary {
    background: var(--rcs-block-button-bg, var(--rcs-blue, #005599));
    color: var(--rcs-block-button-color, var(--rcs-white, #ffffff)) !important;
    border-color: var(--rcs-block-button-bg, var(--rcs-blue, #005599));
}

.rcs-button--primary:hover,
a.rcs-button--primary:hover {
    background: #00477f;
    border-color: #00477f;
    color: var(--rcs-block-button-color, var(--rcs-white, #ffffff)) !important;
}

.rcs-button--light,
a.rcs-button--light {
    background: var(--rcs-light-blue, #66ccff);
    color: var(--rcs-blue, #005599) !important;
    border-color: var(--rcs-light-blue, #66ccff);
}

.rcs-button--light:hover,
a.rcs-button--light:hover {
    background: #8cdbff;
    color: var(--rcs-blue, #005599) !important;
}

.rcs-button--outline,
a.rcs-button--outline {
    background: transparent;
    color: var(--rcs-blue, #005599) !important;
    border-color: var(--rcs-blue, #005599);
}

.rcs-button--outline:hover,
a.rcs-button--outline:hover {
    background: var(--rcs-blue, #005599);
    color: var(--rcs-white, #ffffff) !important;
}

.rcs-button--outline-white,
a.rcs-button--outline-white {
    background: transparent;
    color: var(--rcs-white, #ffffff) !important;
    border-color: rgba(255,255,255,.85);
}

.rcs-button--outline-white:hover,
a.rcs-button--outline-white:hover {
    background: var(--rcs-white, #ffffff);
    color: var(--rcs-blue, #005599) !important;
}

.rcs-button--white,
a.rcs-button--white {
    background: var(--rcs-white, #ffffff);
    color: var(--rcs-blue, #005599) !important;
    border-color: var(--rcs-white, #ffffff);
}

.rcs-button--orange,
a.rcs-button--orange {
    background: var(--rcs-orange, #ff8000);
    color: var(--rcs-white, #ffffff) !important;
    border-color: var(--rcs-orange, #ff8000);
}


.rcs-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 1em;
    color: currentColor;
}

.rcs-button__text {
    display: inline-block;
}

/* Badges - tekst altijd exact gecentreerd
================================================== */
.rcs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.rcs-badge--blue {
    background: var(--rcs-blue, #005599);
    color: var(--rcs-block-hero-text-color, var(--rcs-white, #ffffff));
}

.rcs-badge--light {
    background: var(--rcs-light-blue, #66ccff);
    color: var(--rcs-blue, #005599);
}

.rcs-badge--orange {
    background: var(--rcs-orange, #ff8000);
    color: var(--rcs-white, #ffffff);
}

.rcs-badge--white {
    background: var(--rcs-white, #ffffff);
    color: var(--rcs-blue, #005599);
    border: 1px solid rgba(0,85,153,.25);
}

/* Kaarten
================================================== */
.rcs-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.rcs-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rcs-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rcs-card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rcs-card {
    position: relative;
    background: var(--rcs-block-card-bg, var(--rcs-white, #ffffff));
    border: 1px solid rgba(0, 85, 153, .35);
    border-radius: var(--rcs-radius, 5px);
    padding: 20px;
    box-shadow: var(--rcs-shadow, 0 8px 20px rgba(0,85,153,.12));
    color: var(--rcs-block-card-text-color, #1f2a35);
    font-size: var(--rcs-block-card-text-size, 16px);
    font-weight: var(--rcs-block-card-text-weight, 400);
}

.rcs-card--light {
    background: var(--rcs-block-card-bg, var(--rcs-light-bg, #f4f8fb));
}

.rcs-card--blue {
    background: var(--rcs-blue, #005599);
    border-color: var(--rcs-blue, #005599);
    color: var(--rcs-white, #ffffff);
}

.rcs-card--blue .rcs-card__title,
.rcs-card--blue .rcs-card__subtitle,
.rcs-card--blue p,
.rcs-card--blue li {
    color: var(--rcs-white, #ffffff);
}

.rcs-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rcs-block-card-icon-bg, var(--rcs-blue, #005599));
    color: var(--rcs-block-card-icon-color, var(--rcs-white, #ffffff));
    border-radius: var(--rcs-radius, 5px);
    margin-bottom: 14px;
    font-size: 22px;
}

.rcs-card--blue .rcs-card__icon {
    background: var(--rcs-block-card-icon-bg, var(--rcs-light-blue, #66ccff));
    color: var(--rcs-block-card-icon-color, var(--rcs-blue, #005599));
}

.rcs-card__icon > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: currentColor;
}

.rcs-card__title {
    margin: 0 0 8px 0;
    color: var(--rcs-block-card-title-color, var(--rcs-blue, #005599));
    font-size: var(--rcs-block-card-title-size, 22px);
    line-height: 1.2;
    font-weight: var(--rcs-block-card-title-weight, 900);
}

.rcs-card__subtitle {
    margin: 0 0 12px 0;
    color: var(--rcs-block-card-text-color, #52606d);
    font-weight: var(--rcs-block-card-text-weight, 700);
}

.rcs-card__content {
    color: var(--rcs-block-card-text-color, #1f2a35);
    font-size: var(--rcs-block-card-text-size, 16px);
    font-weight: var(--rcs-block-card-text-weight, 400);
}

.rcs-card > .rcs-button {
    margin-top: var(--rcs-block-card-button-gap, 16px);
}

.rcs-card > .rcs-button--primary,
.rcs-card a.rcs-button--primary {
    background: var(--rcs-block-card-button-bg, var(--rcs-block-button-bg, var(--rcs-blue, #005599)));
    color: var(--rcs-block-card-button-color, var(--rcs-block-button-color, var(--rcs-white, #ffffff))) !important;
    border-color: var(--rcs-block-card-button-border, var(--rcs-block-button-bg, var(--rcs-blue, #005599)));
}

.rcs-card > .rcs-button--primary:hover,
.rcs-card a.rcs-button--primary:hover {
    background: var(--rcs-block-card-button-bg, var(--rcs-block-button-bg, var(--rcs-blue, #005599)));
    color: var(--rcs-block-card-button-color, var(--rcs-block-button-color, var(--rcs-white, #ffffff))) !important;
    border-color: var(--rcs-block-card-button-border, var(--rcs-block-button-bg, var(--rcs-blue, #005599)));
    filter: brightness(.96);
}

.rcs-card__content > :last-child,
.rcs-card > :last-child {
    margin-bottom: 0;
}

/* CTA
================================================== */
.rcs-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    border-radius: var(--rcs-radius, 5px);
    box-shadow: var(--rcs-shadow, 0 8px 20px rgba(0,85,153,.12));
}

.rcs-cta--blue {
    background: var(--rcs-block-cta-bg, var(--rcs-blue, #005599));
    color: var(--rcs-block-cta-text-color, var(--rcs-white, #ffffff));
}

.rcs-cta--light {
    background: var(--rcs-block-cta-bg, var(--rcs-light-bg, #f4f8fb));
    border: 1px solid rgba(0,85,153,.25);
    color: var(--rcs-block-cta-text-color, #1f2a35);
}

.rcs-cta__title {
    margin: 0 0 6px 0;
    color: var(--rcs-block-cta-title-color, inherit);
    font-size: var(--rcs-block-cta-title-size, 28px);
    line-height: 1.15;
    font-weight: var(--rcs-block-cta-title-weight, 900);
}

.rcs-cta--blue .rcs-cta__title {
    color: var(--rcs-block-cta-title-color, var(--rcs-white, #ffffff));
}

.rcs-cta--blue .rcs-cta__text,
.rcs-cta--blue p {
    color: var(--rcs-block-cta-text-color, var(--rcs-white, #ffffff));
}

.rcs-cta__text {
    color: var(--rcs-block-cta-text-color, inherit);
    font-size: var(--rcs-block-cta-text-size, 16px);
    font-weight: var(--rcs-block-cta-text-weight, 400);
}

.rcs-cta__text p,
.rcs-cta__text li {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.rcs-cta__text > :last-child {
    margin-bottom: 0;
}

.rcs-cta__button {
    flex: 0 0 auto;
}

.rcs-cta .rcs-button--white,
.rcs-cta a.rcs-button--white {
    background: var(--rcs-block-cta-button-bg, var(--rcs-white, #ffffff));
    color: var(--rcs-block-cta-button-color, var(--rcs-blue, #005599)) !important;
    border-color: var(--rcs-block-cta-button-border, var(--rcs-white, #ffffff));
}

.rcs-cta .rcs-button--white:hover,
.rcs-cta a.rcs-button--white:hover {
    background: var(--rcs-block-cta-button-bg, var(--rcs-white, #ffffff));
    color: var(--rcs-block-cta-button-color, var(--rcs-blue, #005599)) !important;
    border-color: var(--rcs-block-cta-button-border, var(--rcs-white, #ffffff));
    filter: brightness(.96);
}

/* Hero
================================================== */
.rcs-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--rcs-blue, #005599), #003f73);
    color: var(--rcs-white, #ffffff);
    border-radius: var(--rcs-radius, 5px);
    background-size: cover;
    background-position: center;
    padding: 48px 28px;
}

.rcs-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -100px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(102, 204, 255, .22);
    pointer-events: none;
}

.rcs-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.rcs-hero__eyebrow {
    margin-bottom: 10px;
    color: var(--rcs-light-blue, #66ccff);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.rcs-hero__title {
    margin: 0 0 12px 0;
    color: var(--rcs-block-hero-title-color, var(--rcs-white, #ffffff));
    font-size: clamp(34px, 5vw, var(--rcs-block-hero-title-size, 58px));
    line-height: 1.05;
    font-weight: var(--rcs-block-hero-title-weight, 900);
}

.rcs-hero__text {
    max-width: 680px;
    color: var(--rcs-block-hero-text-color, var(--rcs-white, #ffffff));
    font-size: var(--rcs-block-hero-text-size, 19px);
    line-height: 1.55;
    font-weight: var(--rcs-block-hero-text-weight, 400);
}

.rcs-hero__text,
.rcs-hero__text p {
    color: var(--rcs-block-hero-text-color, var(--rcs-white, #ffffff));
}

.rcs-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* Tabellen
================================================== */
.rcs-table,
.rcs-table table,
table.rcs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rcs-blue, #005599);
    border-radius: var(--rcs-radius, 5px);
    overflow: hidden;
}

.rcs-table th,
.rcs-table thead th,
table.rcs-table th,
table.rcs-table thead th {
    background: var(--rcs-blue, #005599);
    color: var(--rcs-white, #ffffff);
    font-weight: 900;
}

.rcs-table th,
.rcs-table td,
table.rcs-table th,
table.rcs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,85,153,.16);
}

.rcs-table tr:nth-child(even) td,
table.rcs-table tr:nth-child(even) td {
    background: var(--rcs-light-bg, #f4f8fb);
}

.rcs-table tr:last-child td,
table.rcs-table tr:last-child td {
    border-bottom: 0;
}

/* Mobiele onderbalk
================================================== */
.rcs-mobile-bar {
    display: none;
}

@media (max-width: 768px) {
    body.rcs-toolkit-has-mobile-bar {
        padding-bottom: 72px;
    }

    .rcs-mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: var(--rcs-blue, #005599);
        border-top: 3px solid var(--rcs-light-blue, #66ccff);
        box-shadow: 0 -8px 22px rgba(0,0,0,.18);
    }

    .rcs-mobile-bar__item,
    .rcs-mobile-bar a.rcs-mobile-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 64px;
        padding: 7px 4px;
        color: var(--rcs-white, #ffffff) !important;
        text-decoration: none !important;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.1;
        text-align: center;
    }

    .rcs-mobile-bar__item:hover,
    .rcs-mobile-bar a.rcs-mobile-bar__item:hover {
        background: rgba(102, 204, 255, .18);
        color: var(--rcs-white, #ffffff) !important;
        text-decoration: none !important;
    }

    .rcs-mobile-bar__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        min-height: 20px;
        color: currentColor;
        font-size: 18px;
        line-height: 1;
    }

    .rcs-card-grid,
    .rcs-card-grid--2,
    .rcs-card-grid--3,
    .rcs-card-grid--4 {
        grid-template-columns: 1fr;
    }

    .rcs-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .rcs-cta__button {
        width: 100%;
    }

    .rcs-cta__button .rcs-button {
        width: 100%;
    }

    .rcs-hero {
        min-height: 320px;
        padding: 38px 22px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rcs-card-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* CTA-light gebruikt automatisch een donkere knop voor genoeg contrast */
.rcs-cta--light .rcs-button--white,
.rcs-cta--light a.rcs-button--white {
    background: var(--rcs-blue, #005599);
    color: var(--rcs-white, #ffffff) !important;
    border-color: var(--rcs-blue, #005599);
}
