/**
 * Lydiate Ash Sports — visual theme (club / pitch / kit).
 * Structure matches shared HTML class names; aesthetics are intentionally not Stalitsa-like.
 */

/* --- Tokens --- */
:root {
    --pitch: #0f2418;
    --pitch-mid: #1a3d2a;
    --pitch-soft: #234d36;
    --gold: #c9a227;
    --gold-bright: #e8c547;
    --gold-dim: #8f7320;
    --cream: #f3efe6;
    --paper: #fdfcfa;
    --line: rgba(15, 36, 24, 0.12);
    --ink: #141812;
    --ink-muted: #4a5248;
    --danger: #b83232;
    --max: 72rem;
    --header-h: 4.25rem;
    --radius: 10px;
    --radius-lg: 16px;
    --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
    --font-body: "Nunito Sans", system-ui, sans-serif;
    --shadow-soft: 0 4px 24px rgba(15, 36, 24, 0.08);
    --shadow-lift: 0 12px 40px rgba(15, 36, 24, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--cream);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 42%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 11px,
            rgba(26, 61, 42, 0.03) 11px,
            rgba(26, 61, 42, 0.03) 12px
        );
    -webkit-font-smoothing: antialiased;
}

/* --- Hero JS: hide animated bits until WAAPI runs (home hero only) --- */
html.has-hero-js .hero .hero__eyebrow,
html.has-hero-js .hero #hero-heading,
html.has-hero-js .hero .hero__lead,
html.has-hero-js .hero .hero__actions .btn,
html.has-hero-js .hero .hero__droplet .droplet {
    opacity: 0;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Skip link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.65rem 1.1rem;
    background: var(--gold-bright);
    color: var(--pitch);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--pitch);
    outline-offset: 2px;
}

/* --- Header: clubhouse bar + kit stripe --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--paper);
    border-bottom: 3px solid var(--pitch);
    box-shadow: 0 2px 0 var(--gold);
}

.site-header__inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

/* Let <picture> wrappers participate in flex/grid as if the <img> were direct children */
.brand picture,
.site-footer__brand picture,
.hero__droplet picture {
    display: contents;
}

.brand__mark {
    flex-shrink: 0;
    height: 2.75rem;
    width: auto;
    max-width: 4.75rem;
    object-fit: contain;
    border-radius: var(--radius);
    border: 2px solid var(--pitch);
    background: transparent;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.brand__name {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.1vw, 1.75rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--pitch);
}

.brand__tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-dim);
}

/* --- Nav --- */
.site-nav {
    position: relative;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 2px solid var(--pitch);
    border-radius: var(--radius);
    background: var(--cream);
    cursor: pointer;
    color: var(--pitch);
}

.nav-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 1.25rem;
}

.nav-toggle__bars span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    justify-content: flex-end;
}

.site-nav__links a {
    display: inline-block;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--pitch-mid);
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.site-nav__links a:hover {
    color: var(--pitch);
    background: rgba(201, 162, 39, 0.12);
}

.site-nav__links a[aria-current="page"] {
    color: var(--pitch);
    background: var(--gold-bright);
    border-color: var(--pitch);
}

@media (max-width: 767px) {
    /* Menu panel anchors to full header bar (not the narrow nav/toggle column) */
    .site-nav {
        position: static;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav.is-open .nav-toggle {
        border-color: var(--pitch);
        background: rgba(201, 162, 39, 0.18);
        box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35);
    }

    .site-nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.35rem 0.65rem 0.6rem;
        background: var(--paper);
        border: none;
        border-top: 2px solid var(--pitch);
        border-bottom: 3px solid var(--pitch);
        border-radius: 0;
        box-shadow: 0 10px 28px rgba(15, 42, 24, 0.14);
        z-index: 1;
    }

    .site-nav.is-open .site-nav__links {
        display: flex;
    }

    .site-nav__links a {
        text-align: left;
        padding: 0.45rem 0.55rem;
        border-radius: var(--radius);
    }

    .site-nav__links a[aria-current="page"] {
        color: var(--pitch);
        background: rgba(201, 162, 39, 0.12);
        border-color: transparent;
        box-shadow: inset 3px 0 0 0 var(--gold-bright);
        font-weight: 800;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .site-nav__links {
        gap: 0.15rem 0.35rem;
    }
}

/* --- Home hero --- */
.hero {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3rem, 8vw, 5rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(160deg, var(--pitch) 0%, var(--pitch-mid) 55%, var(--pitch-soft) 100%);
    color: var(--paper);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
    margin-bottom: 0;
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
        gap: 2.5rem;
    }
}

.hero__copy {
    max-width: 40rem;
}

.hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero .hero__eyebrow {
    color: var(--gold-bright);
}

.page-hero .hero__eyebrow {
    margin-bottom: 0.35rem;
    color: var(--gold-dim);
}

.hero h1,
#hero-heading {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--paper);
}

.hero__lead {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(253, 252, 250, 0.88);
}

.hero__lead strong {
    color: var(--gold-bright);
    font-weight: 700;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__droplet {
    display: flex;
    justify-content: center;
    align-items: center;
}

.droplet {
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35));
}

.hero__logo {
    width: min(240px, 48vw);
    height: auto;
    max-height: min(280px, 42vh);
    display: block;
    object-fit: contain;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius);
    border: 3px solid transparent;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease,
        color 0.12s ease;
}

.btn--primary {
    background: var(--gold-bright);
    color: var(--pitch);
    border-color: var(--pitch);
    box-shadow: 4px 4px 0 var(--pitch);
}

.btn--primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pitch);
}

.btn--ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(253, 252, 250, 0.55);
}

.btn--ghost:hover {
    background: rgba(253, 252, 250, 0.1);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

@media (prefers-reduced-motion: reduce) {
    .btn--primary:hover {
        transform: none;
    }
}

/* --- Home bands --- */
.home-band {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(2.25rem, 5vw, 3.5rem) 1.25rem;
}

.home-band--services {
    background: var(--paper);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: -12px;
    padding-top: clamp(2.75rem, 5vw, 3.75rem);
    box-shadow: var(--shadow-soft);
}

.home-band--split {
    background: transparent;
}

.home-band--cta.cta {
    text-align: center;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
    color: var(--pitch);
    border-radius: var(--radius-lg);
    /* Keep horizontal margin auto so the band stays centered like other .home-band sections */
    margin: 1.5rem auto 2rem;
    padding: clamp(2rem, 4vw, 2.75rem) 1.5rem;
    border: 3px solid var(--pitch);
    box-shadow: 6px 6px 0 var(--pitch-mid);
}

.home-band--cta.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: 0.03em;
    margin: 0 0 0.5rem;
}

.home-band--cta.cta p {
    margin: 0 0 1.25rem;
    font-weight: 600;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.home-band--cta .btn--primary {
    background: var(--pitch);
    color: var(--gold-bright);
    border-color: var(--pitch);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.home-cap-cta {
    text-align: center;
    margin: 1.5rem 0 0;
}

.home-cap-cta .btn--ghost {
    color: var(--pitch);
    border-color: var(--pitch);
}

.home-cap-cta .btn--ghost:hover {
    background: rgba(15, 36, 24, 0.06);
    color: var(--pitch);
    border-color: var(--gold-dim);
}

.section-head {
    margin-bottom: 1.75rem;
    padding-left: 1rem;
    border-left: 5px solid var(--gold);
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.65rem);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    color: var(--pitch);
    font-weight: 400;
}

.section-head p {
    margin: 0;
    color: var(--ink-muted);
    max-width: 46rem;
}

.section-head p a {
    color: var(--pitch-soft);
    font-weight: 800;
}

.section-head--compact {
    margin-bottom: 1rem;
}

h2.section-head.section-head--compact {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2rem);
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    color: var(--pitch);
    font-weight: 400;
    border-left: 5px solid var(--gold);
    padding-left: 1rem;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    gap: 1.25rem;
}

main > .card-grid {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .card-grid--services,
    .card-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .card-grid--services {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--cream);
    border: 2px solid var(--pitch);
    border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
    padding: 1.35rem 1.25rem 1.5rem;
    box-shadow: 4px 4px 0 rgba(15, 36, 24, 0.12);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 8px 0 rgba(15, 36, 24, 0.14);
}

.card__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-bright);
    color: var(--pitch);
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    border: 2px solid var(--pitch);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.card h3 a {
    color: var(--pitch);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
}

.card h3 a:hover {
    color: var(--pitch-soft);
}

.card p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

/* --- Panels & prose --- */
.panel {
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-soft);
}

.home-how-panel {
    border: 2px dashed var(--pitch-soft);
    background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
    position: relative;
}

.home-how-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.home-how-panel .section-head--compact,
.home-how-panel .focus-list {
    position: relative;
}

.mb-lg {
    margin-bottom: 2rem;
}

.prose {
    max-width: 52rem;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    letter-spacing: 0.02em;
    margin: 1.75rem 0 0.75rem;
    color: var(--pitch);
}

.prose p,
.prose ul {
    margin: 0 0 1rem;
}

.prose a {
    color: var(--pitch-soft);
    font-weight: 700;
}

.focus-list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: none;
}

.focus-list li {
    position: relative;
    margin-bottom: 0.85rem;
    padding-left: 1.35rem;
}

.focus-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--gold-bright);
    border: 2px solid var(--pitch);
    border-radius: 2px;
    transform: rotate(45deg);
}

.focus-list strong {
    color: var(--pitch);
}

/* --- Inner page hero --- */
.page-hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) 1.25rem;
    background: var(--paper);
    border-bottom: 3px solid var(--pitch);
}

.page-hero--club-life {
    background: linear-gradient(90deg, var(--paper) 0%, var(--cream) 100%);
}

.page-hero__copy {
    max-width: 44rem;
}

.intro-stack .page-title {
    margin-top: 0.25rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0 0 0.75rem;
    color: var(--pitch);
    font-weight: 400;
}

.page-intro {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ink-muted);
}

.page-intro a {
    font-weight: 800;
    color: var(--pitch-soft);
}

/* --- Club life blocks --- */
.skill-block {
    box-sizing: border-box;
    width: calc(100% - 2.5rem);
    max-width: var(--max);
    margin: 0 auto 1.25rem;
    padding: 1.5rem 1.35rem 1.5rem 1.5rem;
    border-left: 6px solid var(--gold);
}

.skill-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    color: var(--pitch);
}

.skill-block .lead {
    font-weight: 700;
    color: var(--pitch-mid);
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.skill-block p {
    margin: 0 0 0.85rem;
    color: var(--ink-muted);
}

.skill-block p:last-child {
    margin-bottom: 0;
}

.skill-block a {
    font-weight: 800;
    color: var(--pitch-soft);
}

main > .skill-block:first-of-type {
    margin-top: 1.25rem;
}

main > .panel.prose.mb-lg {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 2.5rem);
    box-sizing: border-box;
}

.placeholder-note {
    max-width: var(--max);
    margin: 1.5rem auto 2rem;
    padding: 0 1.25rem;
    font-size: 0.92rem;
    color: var(--ink-muted);
    font-style: italic;
}

.placeholder-note a {
    font-weight: 800;
    color: var(--pitch-soft);
}

/* --- About split --- */
.split {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .split--2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        align-items: start;
    }
}

/* --- News CTA block --- */
.cta:not(.home-band--cta) {
    box-sizing: border-box;
    width: calc(100% - 2.5rem);
    max-width: var(--max);
    margin: 2rem auto;
    padding: 1.75rem 1.25rem;
    text-align: center;
    background: var(--pitch);
    color: var(--paper);
    border-radius: var(--radius-lg);
    border: 3px solid var(--gold);
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
}

.cta:not(.home-band--cta) p {
    margin: 0 0 1rem;
    opacity: 0.92;
}

.cta:not(.home-band--cta) .btn--primary {
    box-shadow: 4px 4px 0 var(--gold-dim);
}

/* --- Contact --- */
.contact-panel-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
}

.contact-layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

.contact-form-panel {
    border: 2px solid var(--pitch);
}

.contact-form {
    position: relative;
}

.contact-form__title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.35rem;
    color: var(--pitch);
}

.contact-channels__title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin: 0 0 0.75rem;
    color: var(--pitch);
    letter-spacing: 0.02em;
}

.contact-form__lead {
    margin: 0 0 1.25rem;
    color: var(--ink-muted);
    font-size: 0.98rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.contact-form__field label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pitch-mid);
    margin-bottom: 0.35rem;
}

.contact-form__optional {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-muted);
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-size: 1rem;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 9rem;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--pitch-soft);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35);
}

.contact-form__hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.contact-form__turnstile {
    margin: 0.5rem 0 1rem;
    min-height: 2.75rem;
}

.contact-form__status {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pitch-soft);
}

.contact-form__status--error {
    color: var(--danger);
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.8rem 1.6rem;
    min-height: 2.85rem;
    border: 3px solid var(--pitch);
    border-radius: var(--radius);
    background: var(--gold-bright);
    color: var(--pitch);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--pitch-mid);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.contact-form__submit:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pitch-mid);
}

.contact-form__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .contact-form__submit {
        width: 100%;
    }
}

.contact-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-methods li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-methods li:last-child {
    border-bottom: none;
}

.contact-methods .icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-bright);
    color: var(--pitch);
    border-radius: var(--radius);
    border: 2px solid var(--pitch);
}

.contact-methods a {
    font-weight: 800;
    color: var(--pitch-soft);
}

/* --- Legal --- */
.legal-page__meta {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dim);
    margin: 0 0 0.5rem;
}

.legal-page .page-title {
    margin-bottom: 1rem;
}

/* --- Footer --- */
.site-footer {
    margin-top: auto;
    padding: 2rem 1.25rem;
    background: var(--pitch);
    color: rgba(253, 252, 250, 0.88);
    border-top: 4px solid var(--gold);
}

.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 1rem 1.25rem;
        text-align: left;
    }

    .site-footer__brand {
        justify-self: start;
    }

    .site-footer__inner > .stalitsa-site-credit {
        justify-self: center;
        text-align: center;
    }

    .footer-social {
        justify-self: end;
    }
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.site-footer__mark {
    height: 2.35rem;
    width: auto;
    max-width: 4rem;
    object-fit: contain;
    border-radius: var(--radius);
    border: 2px solid var(--gold);
    background: transparent;
}

.site-footer__meta p {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.site-footer__legal {
    font-size: 0.88rem;
}

.site-footer__legal a {
    color: var(--gold-bright);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 197, 71, 0.4);
}

.site-footer__legal a:hover {
    color: var(--paper);
    border-bottom-color: var(--paper);
}

.site-footer__legal-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.site-footer .stalitsa-site-credit__link:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: var(--radius);
    border: 2px solid rgba(232, 197, 71, 0.45);
    color: var(--gold-bright);
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.footer-social a:hover {
    background: var(--gold-bright);
    color: var(--pitch);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .footer-social a:hover {
        transform: none;
    }
}

/* --- Social dock (replaces left rail — no horizontal content shift) --- */
.social-rail {
    position: fixed;
    z-index: 180;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.social-rail.social-rail--over-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.35rem);
}

@media (prefers-reduced-motion: reduce) {
    .social-rail {
        transition-duration: 0.01ms;
    }
}

.social-rail__list {
    pointer-events: auto;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.45rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    background: var(--paper);
    border: 3px solid var(--pitch);
    border-radius: 999px;
    box-shadow: var(--shadow-lift);
}

.social-rail__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--pitch);
    color: var(--pitch);
    text-decoration: none;
    font-size: 1rem;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.social-rail__link:hover {
    background: var(--gold-bright);
    color: var(--pitch);
    transform: scale(1.06);
}

.social-rail__link:focus-visible {
    outline: 3px solid var(--pitch-soft);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .social-rail__link:hover {
        transform: none;
    }
}

/* body.has-social-rail: no extra padding; dock floats */

/* --- Back to top --- */
#back-to-top {
    position: fixed;
    z-index: 170;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    padding: 0.55rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pitch);
    background: var(--gold-bright);
    border: 3px solid var(--pitch);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--paper);
}

/* --- Scroll cue --- */
#scroll-cue {
    position: fixed;
    z-index: 160;
    left: 50%;
    bottom: max(5rem, calc(0.85rem + env(safe-area-inset-bottom, 0px) + 3rem));
    transform: translateX(-50%) translateY(0.5rem);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pitch);
    background: var(--paper);
    border: 2px solid var(--pitch);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--gold);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#scroll-cue.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

#scroll-cue:hover {
    background: var(--cream);
}

.scroll-cue__text {
    font-size: 0.72rem;
}

@media (max-width: 480px) {
    #scroll-cue .scroll-cue__text {
        display: none;
    }
}
