/* IVORY — site styles. Brand palette, fonts and spacing are tokens in :root; change them ONLY there. */

:root {
    --navy: #122250;
    --slate: #3B507E;
    --sky: #91BAEA;
    --stone: #D9CAC2;
    --ivory: #FFFFF0;
    --gold: #C9A54C;

    --serif: "Cormorant Garamond", Georgia, serif;
    --trajan: "Cinzel", "Trajan Pro 3", Georgia, serif;
    --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

    --pad: clamp(20px, 5vw, 72px);
    --hero-image: none;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    padding-top: env(safe-area-inset-top, 0px);
}

body {
    font-family: var(--sans);
    background: var(--ivory);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

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

.wrap {
    padding: 0 var(--pad);
    max-width: 1440px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: currentColor;
}

.head {
    margin: 30px 0 clamp(36px, 6vw, 72px);
}

.head h2 {
    font-size: clamp(2.6rem, 6.5vw, 5.6rem);
    max-width: 20ch;
    margin-bottom: 26px;
}

.head h2 em {
    color: var(--gold);
}

.head p {
    max-width: 100ch;
    font-weight: 300;
    opacity: 0.8;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.btn {
    display: inline-block;
    font: 500 0.85rem var(--sans);
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 16px 28px;
    border: 1px solid var(--gold);
    transition: background 0.25s, color 0.25s;
    cursor: pointer;
    background: none;
}

.btn.fill {
    background: var(--gold);
    color: var(--navy);
}

.btn.fill:hover {
    background: var(--ivory);
}

.btn.line {
    color: var(--ivory);
}

.btn.line:hover {
    background: var(--gold);
    color: var(--navy);
}

/* nav */

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

header.s {
    background: rgba(18, 34, 80, 0.96);
    border-color: rgba(201, 165, 76, 0.35);
}

header .wrap {
    padding: 0 4px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ivory);
    min-width: 0
}

nav .logo img {
    height: 56px;
    width: auto;
    flex: none
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: var(--trajan);
    text-transform: uppercase;
    white-space: nowrap
}

.brand h1 {
    font-size: 1.15rem;
    letter-spacing: .22em;
    font-weight: 600
}

.brand h2 {
    font-size: .75rem;
    letter-spacing: .3em;
    color: var(--gold);
    margin-top: 6px
}

nav ul {
    display: flex;
    gap: 34px;
    list-style: none;
    align-items: center;
}

nav ul a {
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

nav ul a:hover {
    opacity: 1;
    color: var(--gold);
}

nav .btn {
    padding: 11px 20px;
    color: var(--gold);
}

nav .btn:hover {
    background: var(--gold);
    color: var(--navy);
}

.burger {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--ivory);
}

.burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    margin: 6px auto;
    transition: 0.25s;
}

@media (max-width: 900px) {
    .burger {
        display: block;
    }

    nav ul {
        position: fixed;
        inset: 0;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        gap: 26px;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 0.4s, visibility 0.4s;
    }

    nav ul.open {
        transform: none;
        visibility: visible;
    }

    nav ul a {
        font: 500 2rem var(--serif);
        letter-spacing: 0;
        opacity: 1;
    }

    nav ul .btn {
        font: 500 0.85rem var(--sans);
        margin-top: 10px;
    }

    .burger {
        position: relative;
        z-index: 2;
    }
}

/* hero */

.hero {
    padding-top: 120px;
    position: relative;
    min-height: 100svh;
    background:
        linear-gradient(180deg,
            rgba(18, 34, 80, 0.55),
            rgba(18, 34, 80, 0.92)),
        var(--hero-image) center / cover,
        var(--navy);
    color: var(--ivory);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding-bottom: clamp(36px, 7vh, 80px);
}

.hero .emb {
    position: absolute;
    right: -2.4vw;
    top: 50%;
    transform: translateY(-52%);
    width: min(70vw, 780px);
    opacity: 0.3;
    pointer-events: none;
}

.hero .grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
            transparent calc(100% - 1px),
            rgba(201, 165, 76, 0.18) 0) 0 0 / 33.333% 100%;
}

.hero h1 {
    margin: 22px 0 44px;
    font-weight: 500;
    line-height: 1
}

.h1-name {
    display: block;
    font-size: clamp(3rem, 12.4vw, 6.4rem);
    letter-spacing: .02em;
    color: var(--ivory)
}

.h1-name span {
    display: block
}

.h1-tag {
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--gold);
    max-width: max-content;
    font: 500 clamp(.8rem, 3.3vw, 1.5rem)/1.3 var(--trajan);
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold)
}

.hero h2 {
    font-size: clamp(2.5rem, 8vw, 7.6rem);
    font-style: italic;
    color: var(--gold);
    margin-bottom: 72px;
}

.hero p {
    max-width: 55ch;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 28px;
}

.hero .cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero .rule {
    border-top: 1px solid rgba(201, 165, 76, 0.5);
    margin-top: clamp(36px, 8vh, 90px);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    gap: 12px;
    flex-wrap: wrap;
}

/* sections */

section {
    padding: clamp(72px, 11vw, 150px) 0;
}

.about {
    background: var(--ivory);
    color: var(--navy);
}

.about h3 {
    font: 500 clamp(1.8rem, 3.8vw, 3.6rem)/1.12 var(--serif);
    color: var(--slate);
    text-align: center;
    margin-top: 36px;
}

.about h3 strong {
    color: var(--navy);
    font-weight: 600;
    font-style: italic;
}

.about .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 32px);
    width: 100%;
    margin: clamp(28px, 4vw, 56px) auto 0;
    align-items: stretch;
}

.about .cols div {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid rgba(18, 34, 80, 0.15);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    text-align: center;
    max-width: 750px;
}

.about .cols h4 {
    margin: 0 0 20px;
    font: 500 1.5rem var(--trajan);
    font-size: clamp(1.5rem, 2.5vw, 1.65rem);
    font-weight: 600;
    color: #2b3860;
    text-align: center;
}

.about p {
    margin: 0;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.75;
    color: #2b3860;
}

.vision {
    color: var(--ivory);
    background: var(--navy)
}

.vision h3 {
    font: 500 clamp(1.8rem, 3.8vw, 3.6rem)/1.12 var(--serif);
    text-align: center;
    margin-top: 36px;
    max-width: 45ch;
    margin-inline: auto;
}

.vision h3 strong {
    color: var(--gold);
    font-weight: 600;
    font-style: italic
}

.mission {
    background: var(--ivory);
}

.mission .cols {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: clamp(32px, 7vw, 120px);
    align-items: center;
    margin-top: 36px;
}

.mission h2 {
    font-size: clamp(3rem, 8vw, 7.2rem);
}

.mission h2 span {
    color: var(--slate);
    font-style: italic;
}

.mission p {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: #2b3860;
}

.mission .lines {
    margin-top: 28px;
    border-top: 1px solid var(--gold);
}

.mission .lines div {
    font: 500 1.5rem var(--serif);
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 34, 80, 0.15);
}

.dev {
    background: var(--navy);
    color: var(--ivory);
}

.dev .head {
    display: block;
}

.dev ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(201, 165, 76, 0.5);
}

.dev li {
    padding: 28px 28px 40px 0;
    border-bottom: 1px solid rgba(255, 255, 240, 0.12);
}

.dev li b {
    font: 500 0.8rem var(--trajan);
    color: var(--gold);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 34px;
}

.dev li h3 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.dev li p {
    font-size: 0.95rem;
    opacity: 0.75;
    font-weight: 300;
}

/* ===== Membership teaser (ivory) ===== */
.plans {
    background: var(--ivory);
    color: var(--navy);
}

.plans .head h2 em {
    color: var(--slate);
}

.plans .head p {
    color: #2b3860;
    opacity: 1;
}

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 32px);
    align-items: stretch;
}

.tier {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid rgba(18, 34, 80, 0.15);
    border-radius: 4px;
}

/* the featured/preferred programme: a quiet gold line and a soft shadow */
.tier--feature {
    box-shadow:
        inset 0 0.5px 0 var(--gold),
        0 28px 12px -30px rgba(18, 34, 80, 0.4);
}

.tier__label {
    font: 600 0.75rem var(--trajan);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--slate);
}

.tier h3 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: 12px 0 8px;
}

.tier__sub {
    font: italic 500 1.25rem/1.3 var(--serif);
    color: var(--slate);
    margin-bottom: 16px;
}

.tier__desc {
    color: #2b3860;
    line-height: 1.7;
}

.tier ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding-top: 22px;
    border-top: 1px solid rgba(18, 34, 80, 0.15);
}

.tier li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tier li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 12px;
    height: 1px;
    background: var(--gold);
}

.tier__best {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 34, 80, 0.15);
    font-size: 0.92rem;
    line-height: 1.6;
    color: #2b3860;
}

.tier__best span {
    display: block;
    margin-bottom: 6px;
    font: 600 0.7rem var(--trajan);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--slate);
}

.plans__cta {
    margin-top: clamp(32px, 5vw, 56px);
}

/* the default hover (ivory fill) would vanish on an ivory section */
.plans .btn.fill:hover {
    background: var(--navy);
    color: var(--ivory);
    border-color: var(--navy);
}

/* ===== Training locations (navy) ===== */
.locations {
    background: var(--navy);
    color: var(--ivory);
}

.turfs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: clamp(20px, 3vw, 40px);
    border-top: 1px solid rgba(201, 165, 76, 0.5);
    padding-top: clamp(28px, 4vw, 48px);
}

.turf {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 240, 0.15);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    background: rgba(255, 255, 240, 0.03);
}

.turf__map {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate);
    border-bottom: 1px solid rgba(201, 165, 76, 0.5);
}

.turf__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.turf__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: clamp(22px, 2.5vw, 32px);
}

.turf h3 {
    font: 600 clamp(1.2rem, 2vw, 1.45rem)/1.25 var(--trajan);
    letter-spacing: 0.06em;
}

.turf address {
    font-style: normal;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.85;
}

.turf__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--gold);
    text-decoration: none;
    font: 500 0.85rem var(--sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.turf__link span {
    transition: transform 0.25s;
}

@media (hover: hover) {
    .turf__map:hover img {
        transform: scale(1.04);
    }

    .turf__link:hover {
        color: var(--ivory);
    }

    .turf__link:hover span {
        transform: translateX(4px);
    }
}

.partners {
    background: var(--ivory);
}

.partners h2 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    margin: 24px 0 44px;
}

.logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
    border-top: 1px solid var(--gold);
    padding-top: 36px;
}

.logos figure {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid rgba(18, 34, 80, 0.1);
    display: grid;
    place-items: center;
    padding: 18px;
}

.logos img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* ===== FAQ (warm stone, full width) ===== */
.faq {
    background: var(--stone);
    color: var(--navy);
}

/* gold text is too faint on stone, so use slate here */
.faq .eyebrow {
    color: var(--slate);
}

.faq :focus-visible {
    outline-color: var(--navy);
}

.faq h2 {
    font-size: clamp(2.6rem, 6.5vw, 5.6rem);
    margin: 24px 0 clamp(8px, 2vw, 20px);
    padding-bottom: clamp(20px, 3vw, 32px);
    border-bottom: 2px solid var(--gold);
}

.faq h2 em {
    color: var(--slate);
}

.faq details {
    border-bottom: 1px solid rgba(18, 34, 80, 0.2);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(20px, 2.4vw, 28px) 0;
    cursor: pointer;
    list-style: none;
    font: 500 clamp(1.3rem, 2.4vw, 1.9rem)/1.25 var(--serif);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--navy);
    border-radius: 50%;
    font: 300 1.5rem/1 var(--sans);
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
    background: var(--navy);
    color: var(--ivory);
}

/* bottom spacing belongs to the open item, so p and ul can sit close together */
.faq details[open] {
    padding-bottom: clamp(20px, 2.4vw, 28px);
}

/* pulls the answer closer to its question */
.faq details[open] summary {
    padding-bottom: 12px;
}

.faq details p,
.faq details ul {
    max-width: 100ch;
    padding-right: clamp(0px, 6vw, 64px);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.75;
    color: #2b3860;
    animation: faqIn 0.35s ease;
}

.faq details ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.faq details li {
    position: relative;
    padding-left: 24px;
}

.faq details li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 12px;
    height: 1px;
    background: var(--slate);
}

.faq details strong {
    font-weight: 600;
}

@keyframes faqIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (hover: hover) {
    .faq summary:hover::after {
        background: var(--navy);
        color: var(--stone);
    }
}

.enq {
    background: var(--navy);
    color: var(--ivory);
}

.enq .cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 7vw, 120px);
    margin-top: 30px;
}

.enq h2 {
    font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.enq h2 em {
    color: var(--gold);
}

.enq p {
    opacity: 0.8;
    font-weight: 300;
    margin-top: 22px;
    max-width: 40ch;
}

form {
    display: grid;
    gap: 22px;
}

label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
    display: grid;
    gap: 8px;
}

input,
textarea,
select {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 240, 0.4);
    color: var(--ivory);
    font: 300 1.05rem var(--sans);
    padding: 8px 0;
    border-radius: 0;
}

select {
    margin-top: 12px;
}

select option {
    color: #122250;
}

input:focus,
textarea:focus,
select:focus {
    outline: 0;
    border-color: var(--gold);
}

.msg {
    font-size: 0.85rem;
    color: var(--gold);
    min-height: 1.4em;
}

.err {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    color: #f3b3a4;
}

.err:empty {
    display: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #f3b3a4;
}

input[type="date"] {
    color-scheme: dark;
    min-height: 2.6rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* footer */

footer {
    background: #0c1838;
    color: var(--ivory);
    padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}

footer .wrap {
    padding: 0 8px;
}

footer .row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

footer img {
    height: 60px;
    width: auto;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

footer a {
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
}

footer a:hover {
    color: var(--gold);
    opacity: 1;
}

footer small {
    display: block;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 165, 76, 0.3);
    opacity: 0.6;
    font-size: 0.78rem;
}

.rv {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s, transform 0.8s;
}

.rv.in {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {

    .about .cols,
    .mission .cols,
    .plans .tiers,
    .enq .cols,
    .exp .box {
        grid-template-columns: 1fr;
    }

    .dev ol,
    .groups {
        grid-template-columns: 1fr;
    }

    .logos {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1300px) {
    .hero .emb {
        width: 250vw;
        right: -25vw;
        opacity: 0.1;
    }
}

/* 7 nav links need a tighter gap on small laptops / tablets */
@media (min-width: 901px) and (max-width: 1180px) {
    nav ul {
        gap: 20px;
    }

    .tier--feature {
        margin-top: -16px;
    }
}

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

    .rv {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .faq details p .faq details ul {
        animation: none;
    }

    * {
        transition: none !important;
    }
}

.slot--navy {
    background: var(--navy);
}

.hero__inner {
    position: relative;
    width: 100%;
}