/* =========================================================
   Global links
   ========================================================= */

a {
    color: inherit;
}


/* =========================================================
   Site header
   ========================================================= */

.site-header {
    min-height: 100px;
    height: auto;
    padding: 12px 4%;
    display: flex;
    align-items: center;
    gap: 35px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 74px;
    object-fit: contain;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-navigation a {
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
    color: #d71920;
}


/* =========================================================
   Homepage registration hero
   ========================================================= */

.clubhero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #070707;
}

.clubhero-banner {
    display: block;
    width: 100%;
    height: auto;
}

.clubhero-overlay {
    position: absolute;
    z-index: 2;
    top: 52%;
    left: 43%;
    width: min(28vw, 350px);
    transform: translateY(-50%);
}

.clubhero-intro {
    max-width: 330px;
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 1.95vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.7px;
    text-shadow: 0 2px 10px rgb(0 0 0 / 30%);
}

.clubhero-register {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 26px;
    padding: 16px 52px 16px 22px;
    color: #fff;
    text-decoration: none;
    background: #e31b23;
    border-radius: 7px;
    box-shadow:
        0 14px 30px rgb(0 0 0 / 32%),
        0 0 24px rgb(227 27 35 / 20%);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.clubhero-register::after {
    content: "↗";
    position: absolute;
    right: 22px;
    top: 50%;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%);
}

.clubhero-register strong,
.clubhero-register span {
    display: block;
}

.clubhero-register strong {
    font-size: clamp(17px, 1.25vw, 22px);
    line-height: 1.2;
}

.clubhero-register span {
    margin-top: 5px;
    color: rgb(255 255 255 / 84%);
    font-size: clamp(12px, .85vw, 15px);
    font-weight: 400;
}

.clubhero-register:hover,
.clubhero-register:focus-visible {
    color: #fff;
    background: #c9151c;
    box-shadow:
        0 18px 36px rgb(0 0 0 / 38%),
        0 0 30px rgb(227 27 35 / 28%);
    transform: translateY(-5px);
}

@media (max-width: 1050px) {
    .clubhero-overlay {
        top: 52%;
        left: 41.5%;
        width: min(32vw, 340px);
    }

    .clubhero-intro {
        max-width: 300px;
        font-size: clamp(20px, 2.2vw, 28px);
    }

    .clubhero-register {
        margin-top: 22px;
        padding: 14px 44px 14px 17px;
    }
}

@media (max-width: 760px) {
    .clubhero-overlay {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        padding: 28px 20px 32px;
        transform: none;
        background: #070707;
    }

    .clubhero-intro {
        max-width: 560px;
        margin: 0;
        font-size: 22px;
        line-height: 1.18;
    }

    .clubhero-register {
        max-width: 520px;
        margin-top: 20px;
    }
}

/* =========================================================
   Homepage and content cards
   ========================================================= */

.homecards,
.contentcards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 35px 7% 60px;
}

.homecards a,
.contentcards article {
    padding: 28px;
    background: #fff;
    border: 1px solid #d8d2cb;
    border-radius: 14px;
    text-decoration: none;
}

.homecards a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.homecard-icon {
    display: grid;
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    place-items: center;
    color: #e31b23;
}

.homecard-icon svg {
    display: block;
    width: 58px;
    height: 58px;
}

.homecard-copy {
    min-width: 0;
}

.homecards a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d71920;
    opacity: 0;
    transition: opacity .2s ease;
}

.homecards a:hover,
.homecards a:focus-visible {
    border-color: #d71920;
    box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
    transform: translateY(-2px);
}

.homecards a:hover::before,
.homecards a:focus-visible::before {
    opacity: 1;
}

.homecards b {
    display: block;
    margin-bottom: 10px;
    color: #111;
    font-size: 22px;
}

.homecard-copy > span {
    color: #555;
}


/* =========================================================
   Standard page hero
   ========================================================= */

.pagehero {
    min-height: 340px;
    padding: 70px 7%;
    background: linear-gradient(
        120deg,
        #f5f2ee,
        #fff
    );
}

.pagehero p {
    color: #565961;
    font-size: 19px;
}

/* =========================================================
   Site Admin layout
   ========================================================= */

.admin-content {
    display: block;
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 35px 0 60px;
}

.admin-content > .card {
    width: 100%;
    max-width: none;
    margin: 0 0 30px;
}

.admin-content > .tablewrap {
    width: 100%;
    margin: 0;
}

.admin-content .success,
.admin-content .errors {
    margin-bottom: 24px;
}

.admin-content .tablewrap table {
    width: 100%;
}

.admin-content td form {
    margin: 0;
}

.admin-content td input[type="password"] {
    min-width: 180px;
    margin-bottom: 8px;
}

.admin-content td button {
    width: auto;
}

@media (max-width: 700px) {
    .admin-content {
        width: min(100% - 24px, 1400px);
        padding-top: 24px;
    }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1000px) {
    .site-navigation {
        display: none;
    }

    .brand-logo {
        height: 62px;
    }
}

@media (max-width: 900px) {
    .homecards,
    .contentcards {
        grid-template-columns: 1fr;
    }

    .pagehero h1 {
        font-size: 48px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 560px) {
    .site-header {
        min-height: 76px;
        padding: 10px 16px;
        gap: 12px;
    }

    .brand-logo {
        width: auto;
        max-width: 145px;
        height: 54px;
    }

    .site-header > .navbtn {
        flex-shrink: 0;
        width: auto;
        min-width: 0;
        height: auto;
        padding: 11px 14px;
        overflow: visible;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .pagehero {
        min-height: 0;
        padding: 46px 20px;
    }

    .pagehero h1 {
        margin-top: 10px;
        font-size: 39px;
        line-height: 1.05;
    }

    .homecards,
    .contentcards {
        padding: 25px 16px 40px;
    }

    .homecards a,
    .contentcards article {
        padding: 22px;
    }

    .homecards a {
        gap: 16px;
    }

    .homecard-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .homecard-icon svg {
        width: 46px;
        height: 46px;
    }
}

/* =========================================================
   Homepage cards — refreshed
   ========================================================= */

.homecards a {
    min-height: 180px;
}

.homecard-icon {
    border-radius: 50%;
    background: #fbecee;
}

.homecard-copy {
    display: grid;
    gap: 10px;
}

.homecards b {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.15;
}

.homecard-copy > span:not(.homecard-cta) {
    color: #555;
    line-height: 1.5;
}

.homecard-cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    padding: 8px 13px;
    color: #b9141a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    border: 1px solid #e31b23;
    border-radius: 7px;
}

.homecards a:hover .homecard-cta,
.homecards a:focus-visible .homecard-cta {
    color: #fff;
    background: #e31b23;
}

/* =========================================================
   Site footer — branded card
   ========================================================= */

.site-footer {
    padding: 0 7% 60px;
}

.site-footer-card {
    position: relative;
    overflow: hidden;
    padding: 30px 36px;
    background:
        radial-gradient(circle at top center, rgb(255 255 255 / 4%), transparent 45%),
        linear-gradient(180deg, #111, #060606);
    border: 1px solid #181818;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgb(0 0 0 / 14%);
}

.site-footer-details {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 22px;
    max-width: 560px;
}

.site-footer-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.site-footer-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #e31b23;
}

.site-footer-icon svg {
    display: block;
    width: 27px;
    height: 27px;
}

.site-footer-copy b,
.site-footer-copy strong,
.site-footer-copy a {
    color: #fff;
}

.site-footer-copy b {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.site-footer-copy span {
    display: block;
    color: rgb(255 255 255 / 78%);
    font-size: 16px;
    line-height: 1.45;
}

.site-footer-copy a {
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-watermark {
    position: absolute;
    right: 18px;
    bottom: -42px;
    z-index: 1;
    width: 210px;
    height: auto;
    opacity: .25;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 560px) {
    .homecards a {
        min-height: 0;
    }

    .homecard-copy {
        gap: 8px;
    }

    .homecards b {
        font-size: 21px;
    }

    .homecard-cta {
        margin-top: 3px;
    }

    .site-footer {
        padding: 0 16px 40px;
    }

    .site-footer-card {
        padding: 24px 22px;
        border-radius: 16px;
    }

    .site-footer-details {
        gap: 20px;
        max-width: calc(100% - 58px);
    }

    .site-footer-row {
        gap: 13px;
    }

    .site-footer-copy b {
        font-size: 17px;
    }

    .site-footer-copy span,
    .site-footer-copy a {
        font-size: 15px;
    }

    .site-footer-watermark {
        right: -8px;
        bottom: -24px;
        width: 130px;
        opacity: .10;
    }
}


/* =========================================================
   Site footer — reset legacy footer rules from style.css
   ========================================================= */

footer.site-footer {
    display: block;
    width: auto;
    margin: 0;
    padding: 0 7% 60px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

footer.site-footer strong {
    margin-left: 0;
}

footer.site-footer .site-footer-card {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 560px) {
    footer.site-footer {
        padding: 0 16px 40px;
    }
}
