:root {
    color-scheme: light;
    --ink: #17202a;
    --muted: #5d6a73;
    --line: #d9e1e5;
    --surface: #ffffff;
    --surface-alt: #f5f7f8;
    --brand: #176b4f;
    --brand-strong: #0d4c38;
    --accent: #c83d2d;
    --focus: #0f7bdc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface-alt);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

a {
    color: var(--brand-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 10;
    padding: 18px clamp(20px, 5vw, 72px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.home-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.home-page .nav a,
.home-page .link-button {
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.home-page .nav .button {
    color: #ffffff;
    background: rgba(23, 107, 79, 0.88);
    border-color: rgba(255, 255, 255, 0.45);
    text-shadow: none;
}

.nav form {
    margin: 0;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    background: var(--brand-strong);
    text-decoration: none;
}

.button-secondary {
    color: var(--brand-strong);
    background: #ffffff;
}

.button-small {
    min-height: 36px;
    padding: 7px 12px;
}

.link-button {
    padding: 0;
    color: var(--brand-strong);
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: end;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(120px, 15vh, 190px) clamp(20px, 5vw, 72px) clamp(54px, 8vh, 92px);
    background:
        linear-gradient(90deg, rgba(13, 76, 56, 0.9), rgba(23, 32, 42, 0.58)),
        url("images/clubfinda-hero.jpg") center/cover;
    color: #ffffff;
}

.hero h1,
.page-heading h1 {
    margin: 0;
    max-width: 780px;
    font-size: 5rem;
    line-height: 1;
}

.lead {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffcc66;
}

.actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.page-shell {
    width: min(1060px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.page-shell.narrow {
    width: min(560px, calc(100% - 40px));
}

.page-heading {
    margin-bottom: 28px;
}

.page-heading h1 {
    font-size: 3.6rem;
}

.page-heading p:last-child {
    max-width: 640px;
    margin: 14px 0 0;
    color: var(--muted);
}

.form-card {
    padding: clamp(20px, 4vw, 32px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.registration-form .form-grid {
    grid-template-columns: 1fr;
}

.field {
    display: grid;
    gap: 7px;
}

.field:has(textarea),
.field:has(input[type="file"]),
.field-checkbox {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #b9c5cb;
    border-radius: 6px;
    font: inherit;
}

textarea {
    resize: vertical;
}

input[type="checkbox"] {
    width: auto;
    min-height: 0;
    margin-right: 8px;
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-checkbox label {
    order: 2;
}

.field-checkbox input {
    order: 1;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 3px solid color-mix(in srgb, var(--focus), transparent 70%);
    outline-offset: 2px;
}

.help {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.help ul {
    margin: 0;
    padding-left: 18px;
}

.error,
.form-errors,
.message.error {
    color: #9b2318;
}

.error {
    margin: 0;
    font-size: 0.92rem;
}

.form-errors,
.message {
    padding: 12px 14px;
    border-radius: 6px;
}

.form-errors {
    margin-bottom: 20px;
    background: #fff0ed;
    border: 1px solid #f1c2b9;
}

.form-errors p,
.message {
    margin: 0;
}

.messages {
    width: min(1060px, calc(100% - 40px));
    margin: 18px auto 0;
}

.message.success {
    color: #11533d;
    background: #e9f7ef;
    border: 1px solid #b9e3c9;
}

.profile-photo {
    margin-bottom: 22px;
}

.profile-photo img {
    width: 180px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.site-footer {
    padding: 24px clamp(20px, 5vw, 72px);
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--brand-strong);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.social-links a:hover {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
    text-decoration: none;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 760px) {
    .site-header {
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
    }

    .brand img {
        width: 50px;
        height: 50px;
    }

    .nav {
        flex: 1 1 auto;
        gap: 10px;
    }

    .nav a,
    .link-button {
        font-size: 0.95rem;
    }

    .button-small {
        min-height: 34px;
        padding: 6px 10px;
    }

    .hero {
        align-items: end;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 112px 18px 42px;
        background-position: center top;
    }

    .hero h1,
    .page-heading h1 {
        font-size: 3.2rem;
        line-height: 1.03;
    }

    .lead {
        max-width: 36rem;
        margin-top: 16px;
        font-size: 1.05rem;
    }

    .actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .actions .button,
    .form-actions .button {
        width: 100%;
    }

    .page-shell,
    .page-shell.narrow,
    .messages {
        width: min(100% - 32px, 680px);
    }

    .page-shell {
        padding: 34px 0 54px;
    }

    .page-heading {
        margin-bottom: 22px;
    }

    .form-card {
        padding: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .field-checkbox {
        align-items: flex-start;
    }

    .footer-inner {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .site-header {
        gap: 10px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .nav {
        gap: 8px;
    }

    .nav a,
    .link-button {
        font-size: 0.9rem;
    }

    .button-small {
        min-height: 32px;
        padding: 5px 9px;
    }

    .hero {
        padding: 104px 16px 34px;
    }

    .hero h1,
    .page-heading h1 {
        font-size: 2.55rem;
    }

    .lead {
        font-size: 1rem;
    }

    .page-shell,
    .page-shell.narrow,
    .messages {
        width: min(100% - 24px, 680px);
    }

    .form-card {
        padding: 14px;
    }
}
