/* EDGE Premium Fitness Club — implementation styles
   Tokens from design/design.md; layout follows design/desktop-1440.svg,
   tablet-768.svg, mobile-390.svg masters. */

:root {
    --ink: #14262B;
    --ink-2: #17363A;
    --canvas: #F4F5F0;
    --surface: #FFFFFF;
    --lime: #D7F75A;
    --lime-deep: #8EB52B;
    --accent-dark: #29423D;
    --muted: #55645E;
    --muted-2: #6D7B74;
    --border: #CBD6CE;
    --border-soft: #DBE1D8;
    --hero-grad: linear-gradient(135deg, #101D24 0%, #163C3C 58%, #B7E43C 130%);
    --gutter: 86px;
    --card-shadow: 0 18px 40px rgba(20, 38, 43, .18);
    --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px var(--gutter);
    /* overlays the hero on load; condenses with a solid bar after scroll */
    background: transparent;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled {
    background: rgba(16, 29, 36, .96);
    box-shadow: 0 6px 24px rgba(20, 38, 43, .35);
    padding-top: 16px;
    padding-bottom: 16px;
}
.site-header.scrolled a { color: #fff; }

.brand { display: flex; flex-direction: column; color: #fff; }
.brand-name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.1;
    color: #fff;
}
.brand-sub {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, .85);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.site-nav a {
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    padding: 8px 2px;
    transition: color .15s ease;
}
.site-nav a:hover { color: var(--lime); }
.site-nav a.phone { font-size: 14px; font-weight: 700; color: #fff; }
.site-nav a.phone:hover { color: var(--lime); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--hero-grad);
    min-height: 780px;
    display: flex;
    align-items: center;
}
.hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 96px var(--gutter) 120px;
    position: relative;
}
.hero h1 {
    font-size: 76px;
    font-weight: 700;
    line-height: 1.09;
    letter-spacing: 1px;
    color: #fff;
}
.hero h1 .lime { color: var(--lime); }
.hero-sub {
    margin-top: 24px;
    font-size: 20px;
    color: #DFE8E3;
    max-width: 640px;
}
.hero .pill-btn { margin-top: 48px; }
.hero-index {
    position: absolute;
    right: var(--gutter);
    bottom: 44px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--lime);
}

/* ---------- Buttons ---------- */
.pill-btn {
    display: inline-block;
    border: 0;
    border-radius: 31px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 18px 42px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.pill-btn:active { transform: scale(.98); }
.pill-btn.lime-btn { background: var(--lime); color: #132126; }
.pill-btn.lime-btn:hover { background: #e4ff7d; box-shadow: 0 10px 24px rgba(20, 38, 43, .3); }
.pill-btn.dark-btn { background: var(--ink-2); color: var(--lime); }
.pill-btn.dark-btn:hover { background: #1f4a50; }
.pill-btn:disabled { opacity: .4; cursor: not-allowed; }

.link-arrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-2);
    text-decoration: none;
    border-bottom: 2px solid var(--ink-2);
    padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

.pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 44px;
    border-radius: 22px;
    background: var(--lime);
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* ---------- Sections ---------- */
.section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 110px var(--gutter);
}
.eyebrow {
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--muted-2);
    margin-bottom: 28px;
}
.eyebrow.lime-text { color: var(--lime); }
h2 {
    font-size: 54px;
    font-weight: 700;
    color: #15252A;
    line-height: 1.15;
}
h2.white { color: #fff; }
.lede {
    margin-top: 24px;
    font-size: 20px;
    color: var(--muted);
    max-width: 720px;
}
.lede.light { color: #C8D4CE; font-size: 18px; }
.lime-text { color: var(--lime); }

.section-dark {
    max-width: none;
    background: var(--ink);
}
.section-dark .section-inner { max-width: 1440px; margin: 0 auto; }

/* ---------- KPI cards ---------- */
.kpi-row {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 400px);
    gap: 30px;
}
.kpi-card {
    border-radius: 18px;
    padding: 34px;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: var(--card-shadow);
}
.kpi-num { font-size: 44px; font-weight: 700; line-height: 1.1; }
.kpi-label { font-size: 17px; }
.kpi-dark { background: var(--ink-2); }
.kpi-dark .kpi-num { color: var(--lime); }
.kpi-dark .kpi-label { color: #fff; }
.kpi-lime { background: var(--lime); }
.kpi-lime .kpi-num, .kpi-lime .kpi-label { color: var(--ink-2); }
.kpi-light { background: var(--surface); border: 1px solid var(--border-soft); box-shadow: none; }
.kpi-light .kpi-num { color: var(--ink-2); }
.kpi-light .kpi-label { color: var(--muted); }

/* ---------- Space cards ---------- */
.spaces-row {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.space-card {
    border-radius: 22px;
    padding: 40px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.space-kicker {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.space-card h3 { font-size: 38px; font-weight: 700; line-height: 1.15; }
.space-text { margin-top: 16px; font-size: 17px; max-width: 420px; }
.space-dark { background: var(--ink-2); }
.space-dark .space-kicker { color: var(--lime); }
.space-dark h3 { color: #fff; }
.space-dark .space-text { color: #DFE8E3; }
.space-lime { background: var(--lime); }
.space-lime .space-kicker, .space-lime h3 { color: var(--ink-2); }
.space-lime .space-text { color: var(--accent-dark); }
.space-card .pill-badge,
.space-card .link-arrow { margin-top: auto; align-self: flex-start; }
.space-dark .link-arrow { color: #fff; border-color: #fff; }
.space-dark .link-arrow:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- Membership cards ---------- */
.cards-row {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 390px);
    gap: 30px;
    justify-content: start;
}
.membership-card {
    border-radius: 16px;
    padding: 32px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.card-kicker { font-size: 14px; letter-spacing: 2px; }
.membership-card h3 { font-size: 34px; font-weight: 700; line-height: 1.1; }
.card-note { font-size: 16px; }
.card-white { background: #fff; }
.card-white .card-kicker { color: var(--muted-2); }
.card-white h3 { color: var(--ink-2); }
.card-white .card-note { color: var(--muted); }
.card-lime { background: var(--lime); }
.card-lime .card-kicker { color: var(--accent-dark); }
.card-lime h3, .card-lime .card-note { color: var(--ink-2); }
.card-dark { background: #203F41; border: 1px solid #55736E; }
.card-dark h3 { color: #fff; }
.card-dark .card-note { color: #C8D4CE; }

/* ---------- Lead form ---------- */
.lead-form {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 370px 370px auto;
    gap: 20px;
    align-items: start;
    max-width: 1130px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; color: var(--muted); }
.field input {
    font-family: var(--font);
    font-size: 16px;
    height: 62px;
    padding: 0 24px;
    border: 1px solid #CCD6CE;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    width: 100%;
}
.field input::placeholder { color: #9FAAA3; }
.field input.invalid { border-color: #c2492f; }
.field-error { font-size: 13px; color: #a33421; }
.form-status {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 700;
}
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #a33421; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--lime);
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px var(--gutter) 56px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.footer-name {
    display: block;
    font-size: 25px;
    font-weight: 700;
    color: var(--ink-2);
}
.footer-addr { display: block; margin-top: 10px; font-size: 14px; color: var(--accent-dark); }
.footer-contacts { text-align: right; font-size: 14px; color: var(--accent-dark); display: grid; gap: 8px; }
.footer-contacts a { color: var(--accent-dark); text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }

/* ---------- Tablet (<=1024px) ---------- */
@media (max-width: 1024px) {
    :root { --gutter: 44px; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: #102129;
        padding: 16px 44px 24px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .site-header.nav-open .site-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .site-header { background: rgba(16, 29, 36, .98); }
    .menu-toggle { display: block; }
    .hero { min-height: 640px; }
    .hero-inner { padding: 148px var(--gutter) 96px; }
    .hero h1 { font-size: 54px; }
    .hero-sub { font-size: 17px; }
    .section { padding: 80px var(--gutter); }
    h2 { font-size: 42px; }
    .lede { font-size: 18px; }
    .kpi-row { grid-template-columns: repeat(3, 1fr); }
    .kpi-card { min-height: 220px; padding: 26px; }
    .kpi-num { font-size: 36px; }
    .kpi-label { font-size: 15px; }
    .cards-row { grid-template-columns: repeat(3, 1fr); }
    .membership-card h3 { font-size: 27px; }
    .lead-form { grid-template-columns: 1fr 1fr; }
    .lead-form .pill-btn { grid-column: 1 / -1; justify-self: start; }
    .site-footer { flex-direction: column; }
    .footer-contacts { text-align: left; }
}

/* ---------- Mobile (<=640px) ---------- */
@media (max-width: 640px) {
    :root { --gutter: 28px; }
    .hero { min-height: 0; }
    .hero-inner { padding: 118px var(--gutter) 56px; }
    .hero h1 { font-size: 39px; }
    .hero-sub { font-size: 15px; margin-top: 16px; }
    .hero .pill-btn { margin-top: 28px; padding: 15px 28px; font-size: 13px; width: 215px; text-align: center; }
    .hero-index { bottom: 20px; font-size: 12px; }
    .section { padding: 64px var(--gutter); }
    .eyebrow { font-size: 12px; letter-spacing: 2px; }
    h2 { font-size: 31px; }
    .lede { font-size: 16px; margin-top: 16px; }
    .kpi-row { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
    .kpi-card { min-height: 130px; padding: 22px; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
    .kpi-num { font-size: 34px; }
    .kpi-label { font-size: 14px; }
    .spaces-row { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
    .space-card { min-height: 0; padding: 28px; }
    .space-card h3 { font-size: 28px; }
    .space-text { font-size: 15px; }
    .cards-row { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
    .membership-card h3 { font-size: 26px; }
    .lead-form { grid-template-columns: 1fr; }
    .lead-form .pill-btn { width: 100%; }
    .site-footer { flex-direction: column; gap: 20px; padding: 40px var(--gutter); }
    .footer-contacts { text-align: left; }
    .site-nav { padding: 12px 28px 20px; }
}
