/* Club sites - shared structure. Colours come from the club (--club-primary, --club-accent set on <html>);
   type and surfaces from the theme stylesheet loaded after this one. Mobile first. */

:root {
    --surface: #ffffff;
    --surface-alt: #f4f2ec;
    --ink: #1c2321;
    --ink-soft: #4b5552;
    --line: #e1ddd3;
    --on-primary: #ffffff;
    --on-accent: #1c2321;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: var(--font-body);
    --heading-weight: 700;
    --radius: 10px;
    --gap: clamp(1rem, 3vw, 2rem);
    --section-space: clamp(3rem, 8vw, 6rem);
    --wrap: 72rem;
    --header-height: 4.5rem;
    --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 1rem); }

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--font-body);
    padding-bottom: 4.25rem; /* room for the mobile action bar */
}

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

a { color: var(--club-primary); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-soft); }
.eyebrow { font-size: .875rem; color: var(--ink-soft); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 46rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.9rem; padding: .7rem 1.4rem;
    border: 2px solid transparent; border-radius: 999px;
    font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary { background: var(--club-primary); color: var(--on-primary); }
.btn--accent { background: var(--club-accent); color: var(--on-accent); }
.btn--light { background: #fff; color: var(--club-primary); }
.btn--ghost { border-color: currentColor; color: #fff; background: rgb(0 0 0 / .15); }
.btn--large { min-height: 3.4rem; padding-inline: 2rem; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header and navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-height); }
.site-brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; min-width: 0; }
.site-brand__logo { width: 48px; height: 48px; object-fit: contain; }
.site-brand__name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.15rem; line-height: 1.2; }

.nav-toggle { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.25rem; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
    display: block; position: absolute; inset: var(--header-height) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem 1rem 1.25rem; max-height: calc(100vh - var(--header-height)); overflow-y: auto;
}
.site-nav__list, .site-nav__sub { list-style: none; margin: 0; padding: 0; }
.site-nav__item > a, .site-nav__sub a { display: block; padding: .8rem .25rem; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav__sub a { padding-left: 1.25rem; font-weight: 400; }
.site-nav a[aria-current="page"] { color: var(--club-primary); font-weight: 700; }
.site-nav__book { margin-top: 1rem; width: 100%; }

@media (min-width: 60rem) {
    .nav-toggle { display: none; }
    .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; box-shadow: none; border: 0; background: none; max-height: none; overflow: visible; }
    .site-nav__list { display: flex; gap: .25rem; }
    .site-nav__item { position: relative; }
    .site-nav__item > a { border: 0; padding: .5rem .75rem; border-radius: var(--radius); }
    .site-nav__item > a:hover { background: var(--surface-alt); }
    .site-nav__sub {
        position: absolute; top: 100%; left: 0; min-width: 14rem; padding: .5rem;
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
    }
    .site-nav__item:hover .site-nav__sub, .site-nav__item:focus-within .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
    .site-nav__sub a { border: 0; padding: .55rem .75rem; border-radius: 6px; }
    .site-nav__sub a:hover { background: var(--surface-alt); }
    .site-nav__book { margin: 0; width: auto; }
}

/* ---------- Blocks ---------- */
.blk { padding-block: var(--section-space); }
.blk + .blk { padding-top: 0; }
.blk--hero, .blk--callToAction { padding-block: 0; }
.blk--hero + .blk, .blk--callToAction + .blk { padding-top: var(--section-space); }
.blk + .blk--callToAction { padding-top: 0; }
.blk__heading { margin-bottom: .5em; }
.blk__intro { max-width: 40rem; color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 2rem; }

.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--club-accent); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.prose img { border-radius: var(--radius); }

/* Hero */
.hero { position: relative; display: grid; align-items: end; color: #fff; background: var(--club-primary); overflow: hidden; isolation: isolate; }
.hero--tall { min-height: min(88vh, 46rem); }
.hero--medium { min-height: min(60vh, 32rem); }
.hero--short { min-height: 20rem; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .65), rgb(0 0 0 / .15) 55%, rgb(0 0 0 / .05)); }
.hero__content { padding-block: clamp(3rem, 10vw, 6rem); }
.hero__heading { max-width: 18ch; margin-bottom: .35em; text-shadow: 0 2px 20px rgb(0 0 0 / .25); }
.hero__sub { max-width: 38rem; font-size: clamp(1.1rem, 2.4vw, 1.35rem); margin-bottom: 1.75rem; opacity: .95; }

/* Image and text */
.split { display: grid; gap: var(--gap); align-items: center; }
.split__media img, .split__media .map { width: 100%; border-radius: var(--radius); }
.split__media img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) {
    .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
    .split--image-right .split__media { order: 2; }
}

/* Call to action */
.cta { padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta--primary { background: var(--club-primary); color: var(--on-primary); }
.cta--accent { background: var(--club-accent); color: var(--on-accent); }
.cta--light { background: var(--surface-alt); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta__heading { margin: 0; }
.cta__text { margin: .5rem 0 0; opacity: .9; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__image { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 1.25rem; }
.card__body > :last-child { margin-bottom: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--club-primary); transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 1.1rem; margin: 0; color: var(--ink-soft); }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.news-list__item { padding: 1.5rem; background: var(--surface-alt); border-radius: var(--radius); }
.news-list__item time { font-size: .85rem; color: var(--ink-soft); }
.news-list__item h3 { margin: .35rem 0 .5rem; }
.news-list__item h3 a { color: var(--ink); text-decoration: none; }
.news-list__item h3 a:hover { color: var(--club-primary); text-decoration: underline; }
.news-list__item p { margin: 0; color: var(--ink-soft); }
.news-article__date { color: var(--ink-soft); }

/* Book now */
.book-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: calc(var(--radius) * 1.5); background: var(--surface-alt); border-left: 6px solid var(--club-accent); }
.book-now .blk__heading { margin-bottom: .25em; }
.book-now p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 1.5rem 0 0; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.contact-form-wrap { max-width: 48rem; }
.blk--contactForm { scroll-margin-top: calc(var(--header-height) + 1rem); }
.contact-form fieldset { display: grid; gap: 1.25rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.contact-form input:not([type=hidden]), .contact-form textarea { width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.contact-form__trap { display: none; }
.contact-form__errors { border-left: 4px solid #b42318; padding: 1rem; margin-bottom: 1.5rem; }
.contact-form__success { border-left: 4px solid var(--club-primary); padding: 1rem; background: var(--surface-alt); }

.error-page { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section-space); padding-block: 3rem 1.5rem; background: var(--club-primary); color: var(--on-primary); }
.site-footer a { color: inherit; }
.site-footer__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer__name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.3rem; }
.site-footer__text { opacity: .85; font-size: .95rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer__credit { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .2); font-size: .85rem; opacity: .75; }

/* ---------- Mobile action bar ---------- */
.action-bar {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: flex; gap: 1px; background: var(--line);
    box-shadow: 0 -4px 16px rgb(0 0 0 / .08);
    padding-bottom: env(safe-area-inset-bottom);
}
.action-bar:empty { display: none; }
.action-bar__item { flex: 1; display: grid; place-items: center; min-height: 3.6rem; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.action-bar__item--primary { background: var(--club-accent); color: var(--on-accent); }
@media (min-width: 60rem) {
    .action-bar { display: none; }
    body { padding-bottom: 0; }
}

/* ---------- Preview ---------- */
.preview-banner { position: sticky; top: 0; z-index: 70; padding: .4rem 1rem; background: #fde68a; color: #422006; font: 600 .85rem/1.4 var(--font-body); text-align: center; }
.is-preview .site-header { top: 1.9rem; }
.is-preview [data-block-id] { position: relative; }
.is-preview [data-block-id]:hover { outline: 2px dashed rgb(59 130 246 / .6); outline-offset: -2px; cursor: pointer; }
.is-preview [data-block-id].is-selected { outline: 3px solid #3b82f6; outline-offset: -3px; }

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

/* Picture shapes, one-third images, logos */
.cards--portrait .card__image { aspect-ratio: 4 / 5; object-position: top; }
.cards--square .card__image { aspect-ratio: 1; }
@media (min-width: 48rem) {
    .split--width-third { grid-template-columns: 1fr 2fr; }
    .split--width-third.split--image-right { grid-template-columns: 2fr 1fr; }
}
.logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); align-items: center; }
.logos__item { display: grid; place-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.logos__item img { max-height: 5rem; width: auto; object-fit: contain; }


/* ---------- Cookie consent (only on sites with tracking) ---------- */
.consent {
    position: fixed; inset: auto 0 0 0; z-index: 80;
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgb(0 0 0 / .12);
}
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.consent__text { margin: 0; max-width: 44rem; font-size: .95rem; }
.consent__text strong { display: block; margin-bottom: .15rem; }
.consent__actions { display: flex; gap: .5rem; }
.consent__actions .btn--light { border-color: var(--line); color: var(--ink); background: var(--surface-alt); }
@media (max-width: 59.99rem) {
    /* Above the mobile action bar, and buttons full width */
    .consent { bottom: 3.6rem; }
    .consent__actions { width: 100%; }
    .consent__actions .btn { flex: 1; }
}
.site-footer__consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Embeds ---------- */
.embed iframe { display: block; width: 100%; border: 0; border-radius: var(--radius); background: var(--surface-alt); }
.embed--short iframe { height: 20rem; }
.embed--medium iframe { height: 32rem; }
.embed--tall iframe { height: 48rem; }
.embed--video iframe { height: auto; aspect-ratio: 16 / 9; }