/* ------------------------------------------------------------------
   Just Gym Zini — colours and type carried over from the old Divi site:
   near-black #0b0b0b, light-blue accent #75b3ea, Granite display face
   with Poppins/Rubik for body copy.
   ------------------------------------------------------------------ */

@font-face {
    font-family: 'Granite';
    src: url('/fonts/Granite-Bgvl.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0b0b0b;
    --surface: #151515;
    --surface-2: #212121;
    --line: #2c2c2c;
    --text: #ffffff;
    --muted: #b9b9b9;
    --dim: #8a8a8a;
    --accent: #75b3ea;
    --accent-dark: #4a90cc;

    --display: 'Granite', 'Rubik', system-ui, sans-serif;
    --body: 'Poppins', system-ui, -apple-system, sans-serif;

    --wrap: 1180px;
    --gap: clamp(1rem, 3vw, 2rem);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.1;
    margin: 0 0 .6em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.05rem; letter-spacing: .08em; }

p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }

.wrap {
    width: min(var(--wrap), calc(100% - 2 * var(--gap)));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--accent);
    color: #000;
    padding: .6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 11, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
}

.brand img { max-height: 48px; width: auto; }
.brand-text {
    font-family: var(--display);
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
}

.site-nav ul {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.2rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #e5e5e5;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .4rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: #fff; border-bottom-color: var(--accent); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------------------------------------------------------- sections */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--surface); }

.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .9rem;
}

.rule {
    width: 68px;
    height: 3px;
    background: var(--accent);
    border: 0;
    margin: 0 0 1.6rem;
}
.center .rule { margin-inline: auto; }

/* ---------------------------------------------------------- hero */

.hero {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    min-height: clamp(420px, 72vh, 720px);
    padding: 4rem 0;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,11,11,.62) 0%, rgba(11,11,11,.78) 100%);
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 { margin-bottom: .2em; }
.hero .line-1 { display: block; color: var(--muted); font-size: .52em; }
.hero .line-2 { display: block; }

.page-hero {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    min-height: clamp(260px, 42vh, 420px);
    padding: 3rem 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.page-hero .hero__bg::after {
    background: linear-gradient(180deg, rgba(11,11,11,.6) 0%, rgba(11,11,11,.85) 100%);
}
.page-hero h1 { margin: 0; }

/* ---------------------------------------------------------- buttons */

.btn {
    display: inline-block;
    font-family: var(--body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .95rem 2.1rem;
    border: 2px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    background: transparent;
    transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--accent); color: #0b0b0b; }
.btn--solid { background: var(--accent); color: #0b0b0b; }
.btn--solid:hover { background: #fff; border-color: #fff; color: #0b0b0b; }

/* ---------------------------------------------------------- banner */

.banner {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 340px;
    overflow: hidden;
}
.banner .hero__bg::after { background: rgba(11,11,11,.7); }
.banner h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.2rem, 7vw, 5rem);
    margin: 0;
}

/* ---------------------------------------------------------- pricing */

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.tier {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.2rem 1.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.tier--featured { border-color: var(--accent); }

.tier h3 { font-size: 1.15rem; margin-bottom: 1rem; }

.tier__price {
    font-family: var(--display);
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: var(--accent);
    line-height: 1;
}
.tier__period {
    display: block;
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: .6rem;
}

.tier__discounts {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 1.3rem 0 0;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}
.tier__discounts li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .3rem 0;
    color: var(--muted);
}
.tier__discounts b { color: var(--accent); font-weight: 600; }

.note {
    margin-top: 2rem;
    font-size: .84rem;
    color: var(--dim);
    text-align: center;
}

/* ---------------------------------------------------------- equipment */

.equip-group {
    font-family: var(--display);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--accent);
    margin: 3rem 0 1.4rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--line);
}
.equip-group:first-of-type { margin-top: 0; }

.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.equip-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem;
}
.equip-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: .9rem; }
.equip-card ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.equip-card li {
    padding: .34rem 0 .34rem 1.1rem;
    position: relative;
    color: var(--muted);
}
.equip-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .95em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* ---------------------------------------------------------- services */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}
.service {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    padding: 1.6rem;
}
.service h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.service p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------- coach */

.coach {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: clamp(1.6rem, 5vw, 3.5rem);
    align-items: start;
}
.coach img { border-radius: 4px; border: 1px solid var(--line); }

/* ---------------------------------------------------------- testimonials */

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
}
.quote {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem;
}
.quote blockquote {
    margin: 0 0 1.2rem;
    font-size: .96rem;
    color: var(--muted);
    font-style: italic;
}
.quote blockquote::before { content: '\201C'; color: var(--accent); font-size: 1.4em; }
.quote blockquote::after { content: '\201D'; color: var(--accent); font-size: 1.4em; }
.quote cite {
    font-style: normal;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---------------------------------------------------------- contact */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.8rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .9rem; }
.contact-card ul { list-style: none; margin: 0; padding: 0; }
.contact-card li { padding: .3rem 0; color: var(--muted); }
.contact-card a { word-break: break-word; }

.map-frame {
    margin-top: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* ---------------------------------------------------------- prose */

.prose { max-width: 78ch; }
.prose h3 {
    color: var(--accent);
    margin-top: 2.4rem;
    font-size: 1.15rem;
}
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--muted); }
.prose li { margin-bottom: .4rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose a { text-decoration: underline; }

.callout {
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    padding: 1.3rem 1.5rem;
    margin: 0 0 2rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: #e0a33a; }

/* ---------------------------------------------------------- footer */

.site-footer {
    background: #070707;
    border-top: 1px solid var(--line);
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}
.site-footer h4 { color: #fff; margin-bottom: .9rem; }
.site-footer p { margin: 0 0 .45rem; }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
}

/* ---------------------------------------------------------- mobile nav */

@media (max-width: 860px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
    }
    .nav-toggle-label span {
        display: block;
        height: 2px;
        background: #fff;
        transition: transform .2s ease, opacity .2s ease;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0b0b0b;
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .site-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gap) 1.2rem; }
    .site-nav li { border-bottom: 1px solid var(--line); }
    .site-nav a { display: block; padding: .95rem 0; border-bottom: 0; }

    .nav-toggle:checked ~ .site-nav { max-height: 70vh; }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .header-inner { position: relative; flex-wrap: wrap; }
    .coach { grid-template-columns: 1fr; }
}

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

/* ---------------------------------------------------------- forms */

.reg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.steps { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.steps li { margin-bottom: .5rem; }
.small { font-size: .85rem; }

.form__section {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-2);
    padding: 1.6rem;
    margin: 0 0 1.6rem;
}

.form__section legend {
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0 .6rem;
}
.legend-note {
    font-family: var(--body);
    font-size: .72rem;
    letter-spacing: .1em;
    color: var(--dim);
}

.form__row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.form__row--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form__row--3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.form__row--4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }

.field label {
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text);
    font-family: var(--body);
    font-size: .95rem;
    padding: .7rem .85rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.field textarea { resize: vertical; }

.field--check label {
    flex-direction: row;
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    text-transform: none;
    letter-spacing: normal;
    font-size: .92rem;
    font-weight: 300;
    color: var(--muted);
    cursor: pointer;
}
.field--check input { margin-top: .25rem; accent-color: var(--accent); width: 17px; height: 17px; flex: 0 0 auto; }
.field--check a { text-decoration: underline; }

.field__error { color: #ff8080; font-size: .82rem; }
.input-validation-error { border-color: #ff8080 !important; }

.form__summary:not(:empty) {
    border: 1px solid #ff8080;
    border-left-width: 3px;
    border-radius: 3px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffc0c0;
}
.form__summary ul { margin: 0; padding-left: 1.1rem; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.form__hp {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
    .reg-layout { grid-template-columns: 1fr; }
}
