/* ==========================================================================
   Home Hill Golf Club — site styles
   Tropical fairways · country charm · Burdekin heart
   ========================================================================== */

:root {
  /* Brand palette */
  --green-900: #10193b;   /* deep navy (logo banner text) */
  --green-800: #1a2551;   /* primary navy */
  --green-700: #24316b;   /* navy — nav & buttons */
  --green-600: #33448c;
  --green-500: #4356a8;
  --gold-500:  #c6952f;   /* branch tan / gold accent from emblem */
  --gold-400:  #ddb968;
  --gold-600:  #9c7220;
  --sky-500:   #33489a;
  --sky-100:   #e7ebf6;
  --cream:     #f8f4e8;   /* banner cream */
  --cream-2:   #efe8d4;
  --ink:       #22271f;
  --ink-soft:  #4b5346;
  --line:      #e0dccf;
  --white:     #ffffff;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(16, 25, 59, .07);
  --shadow-md: 0 10px 30px rgba(16, 25, 59, .12);
  --shadow-lg: 0 24px 60px rgba(16, 25, 59, .18);
  --trans: .25s ease;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-600); }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--green-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 11px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--trans); text-align: center; line-height: 1.1;
}
.btn-primary { background: var(--gold-500); color: var(--green-900); }
.btn-primary:hover { background: var(--gold-400); color: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--green-800); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-lg { padding: .95em 1.9em; font-size: 1.05rem; }
.btn.is-inactive { opacity: .55; cursor: not-allowed; }
.btn.is-inactive:hover { transform: none; box-shadow: none; }

/* ---------- store toast (shown when clicking a not-yet-live payment button) ---------- */
.store-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--green-900); color: #fff; font-size: .92rem; font-weight: 600;
  padding: .85em 1.3em; border-radius: 11px; box-shadow: var(--shadow-md);
  max-width: min(92vw, 380px); text-align: center; z-index: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.store-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--green-900); color: #dde3ee;
  font-size: .84rem; letter-spacing: .02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: #dde3ee; }
.topbar a:hover { color: var(--gold-400); }
.topbar .tb-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tb-pin { font-size: 1.02em; }
.tb-book { display: inline-flex; align-items: center; gap: .4em; background: var(--gold-500); color: var(--green-900) !important; font-weight: 700; padding: 4px 13px; border-radius: 8px; font-size: .82rem; letter-spacing: .01em; transition: background var(--trans); }
.tb-book:hover { background: var(--gold-400); color: var(--green-900) !important; }
.tb-book .i { width: 1em; height: 1em; opacity: 1; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(248,244,232,.98); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 22px; padding-block: 12px; }
.nav > .brand { flex: 0 0 auto; margin-right: 6px; }
.nav > nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.nav > .nav-cta { flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
/* Real logo file — hidden until it successfully loads (see main.js). */
.brand-logo { display: none; height: 56px; width: auto; }
.brand.has-logo .brand-logo { display: block; }
.brand.has-logo .brand-badge { display: none; }
.foot-brand .foot-logo { height: 68px; width: 68px; object-fit: contain; background: #fff; border-radius: 50%; padding: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.foot-brand.has-logo .foot-logo { display: block; }
.foot-brand.has-logo .brand-badge { display: none; }
.brand-badge {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 38%, var(--green-600), var(--green-800));
  color: var(--gold-400); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .62rem; text-align: center;
  border: 2px solid var(--gold-500); line-height: 1; box-shadow: var(--shadow-sm);
}
.brand-badge span { display: block; }
.brand-badge .est { font-size: .5rem; color: #d8deec; margin-top: 2px; }
.brand-txt strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--green-900); line-height: 1.05; white-space: nowrap; }
.brand-txt small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; white-space: nowrap; }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 10px 11px; font-weight: 600; font-size: .92rem; color: var(--ink); border-radius: 8px; white-space: nowrap; }
.menu > li > a:hover, .menu > li.current > a { color: var(--green-800); background: var(--cream-2); }
.menu > li.current > a { box-shadow: inset 0 -2px 0 var(--gold-500); }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .35em; opacity: .7; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 216px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 7px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--trans);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.submenu a:hover { background: var(--cream-2); color: var(--green-800); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green-800); border-radius: 3px; margin: 5px 0; transition: var(--trans); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; padding: 0;
  background:
    linear-gradient(180deg, rgba(16,25,59,.35), rgba(16,25,59,.78)),
    linear-gradient(135deg, #24316b 0%, #1a2551 55%, #10193b 100%);
}
.hero::after { content: none; }   /* clean overlay — no diagonal pattern */
.hero-inner { position: relative; z-index: 2; padding: clamp(70px, 12vw, 150px) 0 clamp(60px, 9vw, 120px); max-width: 760px; }
.hero .eyebrow { display: inline-block; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; color: var(--gold-400); margin-bottom: 18px; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p.lead { font-size: 1.2rem; color: #eef1f8; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-strip { position: relative; z-index: 2; background: #182a63; border-top: 2px solid var(--gold-500); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-block: 18px; }
.hero-strip .stat { text-align: center; color: #eef1f8; }
.hero-strip .stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-400); }
.hero-strip .stat span { font-size: .82rem; letter-spacing: .04em; }

/* subpage hero */
.page-hero { position: relative; color: #fff; padding: clamp(52px, 9vw, 96px) 0 clamp(40px,7vw,72px);
  background: linear-gradient(180deg, rgba(16,25,59,.55), rgba(16,25,59,.82)), linear-gradient(135deg, #24316b, #10193b); overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; opacity:.4; mix-blend-mode:soft-light;
  background: radial-gradient(circle at 85% 20%, rgba(216,163,38,.55), transparent 45%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #e6ebf7; max-width: 640px; font-size: 1.12rem; margin: 0; }
.crumbs { font-size: .82rem; letter-spacing: .04em; color: #c3cbe6; margin-bottom: 16px; }
.crumbs a { color: #dbe2f2; }
.crumbs a:hover { color: var(--gold-400); }

/* ---------- sections ---------- */
section { padding-block: clamp(38px, 6vw, 64px); }
.section-tag { display: inline-block; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--gold-600); margin-bottom: 12px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }
.bg-cream2 { background: var(--cream-2); }
.bg-green { background: var(--green-800); color: #eef1f8; }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .lead { color: #d3dbf0; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--sky-100); color: var(--green-700); margin-bottom: 14px; font-size: 1.35rem; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card.feature .ic { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #fff; }

/* media + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split.reverse .media { order: 2; }
/* stretch variant: media fills the full text-column height (bottoms align) */
.split.split-stretch { align-items: stretch; }
.split.split-stretch .media-frame { height: 100%; }
.photo-slot.fill { aspect-ratio: auto; height: 100%; min-height: 360px; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); min-height: 300px; position: relative;
}

/* ---------- image placeholder ---------- */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(135deg, rgba(36,49,107,.16), rgba(216,163,38,.14)),
    repeating-linear-gradient(45deg, #eef1e7 0 16px, #e7ecdf 16px 32px);
  color: var(--green-800); min-height: 220px; padding: 22px;
}
.ph .ph-label { font-weight: 600; font-size: .9rem; }
.ph .ph-sub { font-size: .76rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: .02em; }
.ph .ph-ic { font-size: 1.7rem; margin-bottom: 8px; opacity: .7; }

/* ---------- pricing tables ---------- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-card .pc-head { background: var(--green-800); color: #fff; padding: 16px 22px; font-family: var(--font-head); font-size: 1.15rem; }
.price-card .pc-head.gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--green-900); }
.rate { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.rate:last-child { border-bottom: 0; }
.rate .r-name { color: var(--ink-soft); font-weight: 500; }
.rate .r-val { font-weight: 700; color: var(--green-800); font-size: 1.05rem; white-space: nowrap; }
.rate .r-val.free { color: var(--gold-600); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--green-800); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.table tr:nth-child(even) td { background: var(--cream); }

/* ---------- committee ---------- */
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.person .avatar { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--green-600), var(--green-800)); border: 3px solid var(--gold-500); }
.person .role { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.person .pname { font-family: var(--font-head); font-size: 1.15rem; color: var(--green-900); margin-top: 3px; }

/* ---------- sponsors ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 16px; text-align: center; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; min-height: 132px; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); }
.sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.sponsor.major { border-color: var(--gold-400); box-shadow: 0 2px 10px rgba(216,163,38,.2); }
/* logo framing: any-sized logo is centred and scaled to fit uniformly */
.sponsor img { display: none; max-width: 100%; max-height: 88px; width: auto; height: auto; object-fit: contain; }
.sponsor.has-logo { padding: 14px; }
.sponsor.has-logo img { display: block; }
.sponsor.has-logo .sponsor-name { display: none; }
.sponsor-name { line-height: 1.3; }
a.sponsor { text-decoration: none; color: var(--ink-soft); cursor: pointer; }
a.sponsor:hover .sponsor-name { color: var(--green-800); }
/* centre the (few) major sponsors instead of left-filling the grid */
#sponsor-grid-major { display: flex; flex-wrap: wrap; justify-content: center; }
#sponsor-grid-major .sponsor { flex: 0 1 240px; }

/* ---------- history ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--green-600), var(--gold-500)); border-radius: 3px; }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--gold-500); box-shadow: 0 0 0 4px var(--cream); }
.tl-year { font-family: var(--font-head); font-weight: 600; color: var(--gold-600); font-size: 1.15rem; }
.tl-item h3 { margin: 2px 0 .3em; }
.tl-item p { margin: 0; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
figure.photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); }
figure.photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-slot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* gallery: photos are clickable and shift crop via --focus (same as .media-frame) */
.gallery .ph-open { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.gallery .photo-slot img { object-position: var(--focus, 50% 50%); transition: transform .45s ease; }
figure.photo:hover .photo-slot img { transform: scale(1.06); }
.photo-slot.is-missing .ph-open { cursor: default; }
/* placeholder shown until the real file is dropped in */
.photo-slot.is-missing { display: grid; place-items: center; text-align: center; padding: 18px;
  background: linear-gradient(135deg, rgba(36,49,107,.14), rgba(216,163,38,.12)), repeating-linear-gradient(45deg, #eef1e7 0 15px, #e7ecdf 15px 30px); }
.photo-slot.is-missing img { display: none; }
.photo-slot .miss-note { color: var(--green-800); font-size: .8rem; line-height: 1.4; }
.photo-slot .miss-note b { display: block; font-size: 1.4rem; margin-bottom: 6px; opacity: .65; }
.photo-slot .miss-file { display: inline-block; margin-top: 8px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .72rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--ink-soft); }
figure.photo figcaption { padding: 13px 16px; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .88rem; color: var(--green-900); display: block; margin-bottom: 6px; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color var(--trans), box-shadow var(--trans); margin-bottom: 16px; }
input:focus, textarea:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(36,49,107,.15); }
.field { margin-bottom: 0; }
.info-line { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-line:last-child { border-bottom: 0; }
.info-line .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--sky-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.15rem; }
.info-line b { display: block; color: var(--green-900); }
.info-line span, .info-line a { color: var(--ink-soft); }

/* ---------- callout ---------- */
.callout { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff; border-radius: var(--radius); padding: clamp(30px, 5vw, 54px); text-align: center; position: relative; overflow: hidden; }
.callout::after { content:""; position:absolute; inset:0; opacity:.5; mix-blend-mode:soft-light; background: radial-gradient(circle at 80% 20%, rgba(216,163,38,.6), transparent 45%); }
.callout > * { position: relative; z-index: 2; }
.callout h2 { color: #fff; }
.callout p { color: #dce3f5; max-width: 560px; margin-inline: auto; }
.callout .hero-actions { justify-content: center; }

.note { background: var(--sky-100); border-left: 4px solid var(--sky-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; color: var(--ink); font-size: .95rem; }
.note.gold { background: #fbf3dc; border-left-color: var(--gold-500); }

.pill { display:inline-block; background: var(--gold-500); color: var(--green-900); font-weight:700; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:4px 11px; border-radius:100px; }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-soft); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: calc((1.65em - 20px) / 2); width: 20px; height: 20px; background: var(--green-600); color:#fff; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-900); color: #c3cbe0; padding-block: 56px 26px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer a { color: #c3cbe0; }
.site-footer a:hover { color: var(--gold-400); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.foot-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #9aa6c4; }
.footer-bottom a { color: #9aa6c4; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfd6ea; transition: background var(--trans), transform var(--trans); }
.social a:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    padding: 84px 18px 30px; box-shadow: var(--shadow-lg);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    /* Panel stays within the screen (right edge); hidden via opacity/visibility
       so it never pushes the page sideways on any device. */
    opacity: 0; visibility: hidden; transform: translateX(14px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 55;
  }
  .menu.open { opacity: 1; visibility: visible; transform: translateX(0); }
  .menu > li > a { padding: 13px 12px; border-radius: 8px; }
  /* mobile: submenus are a tap-to-expand accordion (collapsed by default) */
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 0 12px; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .has-sub.open > .submenu { max-height: 520px; margin-bottom: 6px; }
  .has-sub > a::after { float: right; transition: transform .25s ease; }
  .has-sub.open > a::after { transform: rotate(180deg); }
  .menu > li.has-sub > a { color: var(--green-900); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(16,25,59,.45); z-index: 50; opacity: 0; visibility: hidden; transition: var(--trans); }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-strip .wrap { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .tb-left { display: none; }
  .nav-cta .btn { display: none; }
  /* shorter hero on phones so the background image reads wider / less zoomed */
  .hero-inner { padding: 32px 0 38px; }
  .hero-inner h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-inner .lead, .hero-inner p { font-size: .98rem; }
}

/* ---------- SVG icons ---------- */
.i { width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }
.ic .i { width: 22px; height: 22px; }
.info-line .ic .i { width: 20px; height: 20px; }
.person .avatar .i { width: 30px; height: 30px; }
.ph-ic .i { width: 30px; height: 30px; }
.social a .i { width: 18px; height: 18px; }
.topbar .i, .footer-links .i { opacity: .85; }

/* ---------- hero image slider ---------- */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; will-change: opacity;
}
.hero-slide.is-on { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,25,59,.42) 0%, rgba(16,25,59,.58) 55%, rgba(16,25,59,.82) 100%);
}
.hero::after { z-index: 1; }
.hero-inner, .hero-strip { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ---------- responsive hardening ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
img, video, table, .media-frame, .price-card, .card, .person, .sponsor { max-width: 100%; }
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .table th, .table td { padding: 8px 8px; font-size: .82rem; }
  .table th { letter-spacing: .02em; }
  .price-card .pc-head { font-size: 1.05rem; padding: 14px 16px; }
  .rate { padding: 12px 15px; }
  .rate .r-name { font-size: .92rem; }
  .rate .r-val { font-size: 1rem; }
  section { padding-block: 34px; }
  .callout { padding: 30px 20px; }
  .timeline { padding-left: 28px; }
}

/* ---------- embedded map ---------- */
.map-frame { min-height: 0; }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }
@media (max-width: 620px) { .map-frame iframe { height: 280px; } }

/* ---------- legal pages ---------- */
.legal h3 { margin-top: 1.7em; }
.legal p { color: var(--ink-soft); }
.legal p strong { color: var(--green-900); }
.legal ul { margin: 0 0 1.1em; padding-left: 1.25em; }
.legal li { margin-bottom: .5em; color: var(--ink-soft); }

/* ---------- framed content photos (welcome / course / members / heritage) ----------
   Image fills the frame (large, cropped to fit). Which part of the photo shows is
   set by --focus on the slot: "HORIZONTAL VERTICAL" as percentages.
     0% 0%   = top-left      50% 50% = centre (default)    100% 100% = bottom-right
   Slide left/right = change the 1st number; up/down = change the 2nd number.
   Optionally set --focus-mobile for a different crop on phones. */
.media-frame .photo-slot img { object-fit: cover; object-position: var(--focus, 50% 50%); }
@media (max-width: 620px) {
  .media-frame .photo-slot img { object-position: var(--focus-mobile, var(--focus, 50% 50%)); }
}

/* ---------- per-logo size (grid) ---------- */
.sponsor.size-sm img { max-height: 60px; }
.sponsor.size-lg img { max-height: 116px; }
.sponsor.size-xl img { max-height: 146px; }

/* ---------- sitewide sponsor carousel ---------- */
.sponsor-strip { background: #fff; border-top: 1px solid var(--line); padding: 16px 0 36px; overflow: hidden; }
.strip-title { text-align: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin: 0 0 20px; }
.sponsor-marquee { overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.sponsor-track { display: flex; align-items: center; gap: 50px; width: max-content; animation: marquee 95s linear infinite; }
.sponsor-marquee:hover .sponsor-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip-item { display: none; align-items: center; justify-content: center; flex: 0 0 auto; }
.strip-item.has-logo { display: flex; }
.strip-item img { height: 82px; width: auto; max-width: 280px; object-fit: contain; display: block;
  filter: none; transition: transform .2s ease; }
a.strip-item:hover img { transform: scale(1.06); }
.strip-item.size-sm img { height: 58px; }
.strip-item.size-lg img { height: 108px; }
.strip-item.size-xl img { height: 134px; }
@media (prefers-reduced-motion: reduce) { .sponsor-track { animation: none; } }
@media (max-width: 620px) { .strip-item img { height: 64px; } .sponsor-track { gap: 38px; } }

/* ---------- Facebook "Latest News" feed ---------- */
#news .fb-feed { max-width: 900px; margin: 0 auto; }
#news .fb-feed iframe { width: 100%; border: 0; display: block; border-radius: var(--radius); }
#news .fb-feed .commonninja-frame { height: 640px; }
.fb-fallback { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 44px 24px; }
.fb-fallback .fb-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--sky-100); color: var(--green-700); display: grid; place-items: center; }
.fb-fallback .fb-ic .i { width: 28px; height: 28px; }
.fb-fallback p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 20px; }

/* ---------- event cards (What's On) ---------- */
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.event-card { display: flex; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--trans), box-shadow var(--trans); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ev-date { flex: 0 0 auto; background: var(--green-800); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 20px; }
.ev-part { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ev-m { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #cfd6ea; margin-bottom: 4px; }
.ev-d { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--gold-400); }
.ev-dow { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #cfd6ea; margin-top: 4px; }
.ev-dash { color: var(--gold-400); font-size: 1.2rem; }
.ev-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ev-body h3 { margin: 0; }
.ev-body .btn { align-self: flex-start; padding: .6em 1.2em; font-size: .92rem; }
@media (max-width: 620px) { .events-grid { grid-template-columns: 1fr; } }

/* ---- Membership store cards ---- */
.mcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.mcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans); }
.mcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.mcard.featured { border-color: var(--gold-500); box-shadow: 0 12px 34px rgba(198,149,47,.24); }
.mcard-ribbon { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--gold-500); color: var(--green-900); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.mcard-media { position: relative; aspect-ratio: 1024 / 1535; overflow: hidden; background: linear-gradient(150deg, var(--green-700), var(--green-900)); }
.mcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 2; }
.mcard-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 22px; background-image: radial-gradient(circle at 50% 34%, rgba(221,185,104,.22), transparent 62%); }
.mcard-mono { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gold-500); color: var(--gold-400); font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .04em; }
.mcard-fname { font-family: var(--font-head); font-size: 1.12rem; color: #fff; line-height: 1.2; max-width: 80%; }
.mcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.mcard-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.mcard-body h3 { margin: 0; font-size: 1.24rem; line-height: 1.2; }
.mcard-price { font-family: var(--font-head); font-weight: 700; color: var(--green-800); font-size: 2rem; line-height: 1; }
.mcard-price span { font-family: var(--font-body); font-size: .66rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .05em; }
.mcard-body p { margin: 0; color: var(--ink-soft); font-size: .94rem; flex: 1; }
.mcard-btn { margin-top: 6px; justify-content: center; width: 100%; }

/* ---- Public pay tiles (green fees / comps / cart) ---- */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.paytile { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-400); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 7px; text-align: center; transition: transform var(--trans), box-shadow var(--trans); }
.paytile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* centred pay row (e.g. cart & buggy) — fewer than a full row of tiles */
.pay-grid.pg-center { display: flex; flex-wrap: wrap; justify-content: center; }
.pay-grid.pg-center .paytile { flex: 0 1 240px; }
.paytile-name { font-family: var(--font-head); font-weight: 600; color: var(--green-900); font-size: 1.08rem; line-height: 1.2; }
.paytile-price { font-family: var(--font-head); font-weight: 700; color: var(--green-800); font-size: 1.7rem; line-height: 1; }
.paytile-price span { font-family: var(--font-body); font-size: .62rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .05em; }
.paytile-desc { font-size: .86rem; color: var(--ink-soft); flex: 1; }
.paytile-btn { margin-top: 6px; justify-content: center; width: 100%; }

@media (max-width: 980px) {
  .mcard-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mcard-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mcard-media { aspect-ratio: 1024 / 1535; }
  .paytile { padding: 16px 12px 18px; }
}

/* ---- Join steps (membership) ---- */
.join-steps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; max-width: 940px; margin: 0 auto; }
.join-steps-4 { grid-template-columns: repeat(4, 1fr); align-items: stretch; max-width: 1120px; }
@media (max-width: 900px) { .join-steps-4 { grid-template-columns: repeat(2, 1fr); } }
.join-or { display: grid; place-items: center; }
.join-or span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; color: var(--gold-600); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.join-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px 26px 26px; transition: transform var(--trans), box-shadow var(--trans); }
.join-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.join-step .ic { margin-bottom: 12px; }
.join-step h3 { margin: 0 0 6px; }
.join-step p { margin: 0; color: var(--ink-soft); }
.join-num { position: absolute; top: -17px; left: 26px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-500); color: var(--green-900); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); }

/* ---- Collapsible membership application form ---- */
.form-collapse { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.form-collapse summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--green-900); font-size: 1.08rem; }
.form-collapse summary::-webkit-details-marker { display: none; }
.form-collapse summary:hover { background: var(--cream); }
.fc-chev { color: var(--gold-600); transition: transform var(--trans); }
.form-collapse[open] .fc-chev { transform: rotate(180deg); }
.form-embed { padding: 12px 22px 26px; border-top: 1px solid var(--line); min-height: 40px; }
@media (max-width: 620px) { .join-steps { grid-template-columns: 1fr; gap: 28px; } }

/* two-card membership row (buggy storage) — centered, not stretched full width */
.mcard-grid-2 { grid-template-columns: repeat(2, minmax(0, 330px)); justify-content: center; }
@media (max-width: 560px) { .mcard-grid-2 { grid-template-columns: 1fr; } }

/* hero ghost buttons: on hover, change to gold like the primary button */
.hero .btn-ghost:hover { background: var(--gold-500); color: var(--green-900); border-color: var(--gold-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---- course scorecard / layout images (shown full, never cropped) ---- */
.doc-shot { margin: 0; }
.doc-shot figcaption { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 10px; }
.photo-slot.doc { aspect-ratio: auto; min-height: 200px; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-slot.doc img { position: static; width: 100%; height: auto; object-fit: contain; }
.photo-slot.doc.is-missing { min-height: 220px; }
/* hole-layout image — centred and width-capped so it doesn't sprawl across the
   column; sizes to its own natural shape (works for portrait or landscape) */
.doc-shot.portrait { max-width: 560px; margin-inline: auto; }
.photo-slot.doc.portrait { aspect-ratio: auto; min-height: 0; }
.photo-slot.doc.portrait img { height: auto; object-fit: contain; }
.photo-slot.doc.portrait.is-missing { min-height: 300px; }
/* scorecards — stacked full-width so each wide strip is large and readable */
.scorecards { display: grid; gap: 26px; max-width: 940px; margin-inline: auto; }
.photo-slot.doc.wide { min-height: 0; }
.photo-slot.doc.wide img { width: 100%; height: auto; object-fit: contain; }
.photo-slot.doc.wide.is-missing { min-height: 200px; }

/* keep the page scrollbar always present (and its gutter reserved) so it can't
   pop in/out when a form field is focused and the embedded form resizes —
   prevents both the sideways jump and the scrollbar flashing in */
html { scrollbar-gutter: stable; overflow-y: scroll; }

/* contact page: pull the embedded form up under the "Send a message" heading
   so it lines up better with the "Find us" card beside it */
.contact-grid .section-tag { margin-bottom: 6px; }
#zf_div_OyfQE3CGzwO2gIXC3ePr9N7FOYzPqsGOIIafc1TLZl4 { margin-top: -14px; }

/* ---------------------------------------------------------------
   Gallery lightbox — click a photo to view it full-size and step
   through the rest with the arrows or the keyboard. Built by JS
   (main.js) which appends the .lightbox overlay to the page.
   --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 12, 28, .93); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column;
  align-items: center; gap: 12px; max-width: 94vw; max-height: 88vh; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); background: #0c1330; }
.lb-meta { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; max-width: 640px; }
.lb-cap { color: #f3f1e8; font-size: .95rem; line-height: 1.4; }
.lb-count { color: #aeb6cc; font-size: .8rem; letter-spacing: .06em; }
.lb-nav, .lb-close { position: absolute; border: 0; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .14); display: grid; place-items: center;
  transition: background var(--trans), color var(--trans); }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px;
  border-radius: 50%; font-size: 1.9rem; line-height: 1; }
.lb-nav:hover, .lb-close:hover { background: var(--gold-500); color: var(--green-900); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-close { top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; }
@media (max-width: 620px) {
  .lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  figure.photo:hover .photo-slot img { transform: none; }
}

/* ---- subtle "back to top" button (appears after scrolling down) ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--green-900); color: #fff; font-size: 1.15rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--trans), transform var(--trans), background var(--trans), color var(--trans), visibility var(--trans);
}
.to-top.show { opacity: .8; visibility: visible; transform: translateY(0); }
.to-top:hover { opacity: 1; background: var(--gold-500); color: var(--green-900); transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
@media (max-width: 620px) { .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; } }
@media print { .to-top { display: none; } }

/* footer: brand now links home; powered-by credit line */
.foot-brand { text-decoration: none; }
.foot-brand:hover strong { color: var(--gold-400); }
.powered { display: inline-block; margin-top: 6px; font-size: .8rem; opacity: .85; }
.powered a { color: #9aa6c4; text-decoration: underline; text-underline-offset: 2px; }
.powered a:hover { color: var(--gold-400); }
