/* tennisflow.net public home page. Colours follow the Pathway pages. */
:root {
    color-scheme: light only;
    --ink: #111c3f;
    --navy: #071a55;
    --muted: #4c5873;
    --line: rgba(7, 26, 85, 0.16);
    --line-strong: rgba(7, 26, 85, 0.26);
    --paper: #f8fcff;
    --blue: #0d6fd6;
    --gold: #f5c51d;
    --green: #2f7b51;
    --red: #d7192a;
    --orange: #f47716;
    --shadow: 0 22px 54px rgba(7, 26, 85, 0.16), 0 3px 10px rgba(7, 26, 85, 0.08);
    --gutter: clamp(18px, 4.5vw, 64px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(circle at 85% 8%, rgba(245, 197, 29, 0.22), transparent 32%),
        radial-gradient(circle at 8% 30%, rgba(13, 111, 214, 0.14), transparent 38%),
        repeating-linear-gradient(90deg, transparent 0 92px, rgba(13, 111, 214, 0.05) 92px 94px),
        linear-gradient(135deg, #ffffff, #e8f7ff 54%, #fff7d7);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    letter-spacing: -0.03em;
    line-height: 1.02;
}

/* ------------------------------------------------------------------ header */
.home-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
    background: rgba(248, 252, 255, 0.9);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
}

.home-brand img {
    width: auto;
    height: 58px;
}

.home-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.home-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-nav a:hover {
    background: rgba(13, 111, 214, 0.1);
    color: var(--navy);
}

/* ----------------------------------------------------------------- buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-btn:active {
    transform: scale(0.97);
}

.home-btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 26px rgba(7, 26, 85, 0.28);
}

.home-btn-primary:hover {
    background: #0b2780;
    box-shadow: 0 16px 32px rgba(7, 26, 85, 0.34);
}

.home-btn-ghost {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--navy);
}

.home-btn-ghost:hover {
    border-color: var(--blue);
}

.home-btn-light {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.home-header-cta {
    min-height: 44px;
    padding: 0 20px;
}

:focus-visible {
    outline: 3px solid rgba(13, 111, 214, 0.55);
    outline-offset: 3px;
}

/* -------------------------------------------------------------------- hero */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(36px, 7vw, 96px) var(--gutter) clamp(32px, 5vw, 64px);
    max-width: 1320px;
    margin: 0 auto;
}

.home-eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 4.9rem);
    font-weight: 900;
}

.home-hero h1 span {
    display: block;
    color: var(--blue);
}

.home-lede {
    max-width: 600px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.home-facts li {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(7, 26, 85, 0.08);
}

.home-facts strong {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 900;
}

.home-facts span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.home-hero-art {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
    border-radius: 26px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 0.5s var(--ease);
}

.home-hero-art:hover {
    transform: rotate(0deg) translateY(-4px);
}

.home-hero-art img {
    width: 100%;
    height: auto;
}

.home-hero-badge {
    position: absolute;
    top: 14px;
    right: 14px;
}

/* ------------------------------------------------------------------ badges */
.home-badge,
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: #fff;
    border: 1px solid var(--line-strong);
}

.home-badge::before,
.home-hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.home-state-live {
    color: #1f6b43;
    background: #e3f6ea;
    border-color: rgba(47, 123, 81, 0.4);
}

.home-state-open {
    color: #0b4fa3;
    background: #e3f0ff;
    border-color: rgba(13, 111, 214, 0.4);
}

.home-state-soon {
    color: #7a5600;
    background: #fff4cc;
    border-color: rgba(176, 130, 0, 0.4);
}

/* ---------------------------------------------------------------- sections */
.home-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 80px) var(--gutter) 0;
    scroll-margin-top: 80px;
}

.home-section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.home-section-head h2,
.home-band h2 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 900;
}

.home-section-head p:last-child {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ----------------------------------------------------------------- seasons */
.home-season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.home-season {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.home-season:hover {
    transform: translateY(-4px);
}

.home-season-art {
    --season-a: #fff1d6;
    --season-b: #ffb347;
    --season-ink: #7a3300;
    --season-motif: rgba(196, 84, 0, 0.18);
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 115%, rgba(255, 255, 255, 0.55), transparent 55%),
        linear-gradient(140deg, var(--season-a) 0%, var(--season-b) 100%);
    border-bottom: 1px solid var(--line);
}

.home-season-winter .home-season-art {
    --season-a: #eef7ff;
    --season-b: #7cb9f2;
    --season-ink: #0a2f78;
    --season-motif: rgba(255, 255, 255, 0.75);
}

.home-season-spring .home-season-art {
    --season-a: #f3fbe6;
    --season-b: #8fd36f;
    --season-ink: #1d5a12;
    --season-motif: rgba(255, 255, 255, 0.7);
}

/* Tennis-court lines in the banner. */
.home-season-court {
    position: absolute;
    inset: 18px -30px -40px 18px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    z-index: -1;
}

.home-season-court::before,
.home-season-court::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
}

.home-season-court::before {
    left: 26px;
    top: 0;
    bottom: 0;
    width: 2px;
}

.home-season-court::after {
    left: 26px;
    right: 0;
    top: 30%;
    height: 2px;
}

.home-season-motif {
    position: absolute;
    left: 46%;
    top: -26px;
    width: 140px;
    height: 140px;
    color: var(--season-motif);
    z-index: -1;
    transform: rotate(-12deg);
    transition: transform 0.8s var(--ease);
}

.home-season-motif svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-season-winter .home-season-motif svg {
    fill: none;
    stroke-width: 5;
}

.home-season-motif .home-motif-core {
    fill: rgba(255, 255, 255, 0.85);
    stroke: none;
}

.home-season-spring .home-season-motif svg {
    stroke: none;
    fill: rgba(255, 255, 255, 0.55);
}

.home-season:hover .home-season-motif {
    transform: rotate(18deg) scale(1.06);
}

.home-season-word {
    position: absolute;
    left: 40px;
    bottom: 26px;
    color: var(--season-ink);
    font-size: clamp(2.6rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.home-season-word small {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    opacity: 0.75;
}

/* The full program flyer, shown as a small print leaning in the corner. */
.home-season-flyer {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 92px;
    aspect-ratio: 490 / 1086;
    padding: 4px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(7, 26, 85, 0.28), 0 2px 6px rgba(7, 26, 85, 0.18);
    transform: rotate(6deg);
    transform-origin: 50% 100%;
    transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.home-season-flyer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.home-season:hover .home-season-flyer {
    transform: rotate(0deg) translateY(-6px) scale(1.04);
    box-shadow: 0 22px 40px rgba(7, 26, 85, 0.32), 0 2px 6px rgba(7, 26, 85, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .home-season-motif,
    .home-season-flyer {
        transition: none;
    }
}

.home-season-body {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px 22px 22px;
}

.home-season-body .home-badge {
    justify-self: start;
}

.home-season h3 {
    font-size: 1.6rem;
    font-weight: 900;
}

.home-season h3 small {
    display: block;
    margin-top: 6px;
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
}

.home-season-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.home-season-facts div {
    padding: 10px 12px;
    border-radius: 14px;
    background: #eef6ff;
    border: 1px solid rgba(13, 111, 214, 0.18);
}

.home-season-facts dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-season-facts dd {
    margin: 2px 0 0;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.3;
}

.home-season-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.home-season-body .home-btn {
    margin-top: 4px;
    width: 100%;
}

/* ------------------------------------------------------------------ levels */
.home-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-level {
    --tone: var(--blue);
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tone) 12%, white), #fff 60%);
    box-shadow: 0 10px 24px rgba(7, 26, 85, 0.08);
}

.home-tone-red { --tone: var(--red); }
.home-tone-orange { --tone: var(--orange); }
.home-tone-green { --tone: #3f9a3a; }
.home-tone-yellow { --tone: #d4a90a; }

.home-level-step {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tone);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 6px 14px color-mix(in srgb, var(--tone) 40%, transparent);
}

.home-tone-yellow .home-level-step {
    color: var(--navy);
}

.home-level h3 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.home-level h3 small {
    margin-left: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-level p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

/* -------------------------------------------------------------------- band */
.home-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 10%, rgba(245, 197, 29, 0.35), transparent 34%),
        linear-gradient(120deg, #071a55, #0d4fb0);
    box-shadow: var(--shadow);
}

.home-band h2 {
    color: #fff;
}

.home-band .home-eyebrow {
    color: var(--gold);
}

.home-band p:last-child {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

/* ------------------------------------------------------------------ footer */
.home-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: clamp(48px, 8vw, 96px);
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    color: rgba(255, 255, 255, 0.8);
    background: #0d1531;
}

.home-footer p {
    margin: 0;
}

.home-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.home-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.home-footer a:hover {
    text-decoration: underline;
}

.home-footer .home-staff {
    color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 960px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-art {
        grid-row: 1;
        width: min(70%, 300px);
        transform: rotate(0deg);
    }

    .home-nav {
        display: none;
    }

    .home-header-cta {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .home-brand img {
        height: 46px;
    }

    .home-hero {
        padding-top: 24px;
    }

    /* Phones: lead with the headline and buttons; the season cards show the artwork. */
    .home-hero-art {
        display: none;
    }

    .home-actions .home-btn {
        flex: 1 1 100%;
    }

    .home-facts {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-facts li {
        grid-template-columns: auto 1fr;
        align-items: baseline;
        gap: 10px;
    }

    .home-season-art {
        height: 200px;
    }

    .home-season-flyer {
        width: 80px;
    }

    .home-band {
        flex-direction: column;
        align-items: stretch;
    }

    .home-band .home-btn {
        width: 100%;
    }

    .home-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
