/* =========================================================
   BRUNSWICK COUNTRY CLUB — golf.css
   Template: GOLF / COUNTRY-CLUB
   Palette: Heritage-Navy + Gilt · Lora + Inter Tight
   Based on site-forge/skeleton/base.css
   ========================================================= */

:root {
  /* ---- PALETTE — Golf / Heritage-Navy world ---- */
  /* Brand tokens (named for the course world) */
  --fairway:     #2D5016;   /* deep golf green — spot colour */
  --navy:        #12233A;   /* heritage navy — deep ink */
  --navy-dark:   #0A1826;   /* darker navy */
  --parchment:   #F5F1E8;   /* warm cream — page ground */
  --parchment-2: #E8E2D0;   /* warm second tint */
  --parchment-s: #FAF8F2;   /* softest tint */
  --gilt:        #A8782C;   /* deep gilt — WCAG AA on cream */
  --gilt-bright: #C49A3C;   /* polished gold */
  --gilt-soft:   #E4D4A8;   /* soft tint */
  --rough:       #4A4840;   /* warm body text */
  --rough-2:     #6E6B60;

  /* ---- Structural aliases (base.css cascades off these) ---- */
  --paper:       var(--parchment);
  --paper-2:     var(--parchment-2);
  --paper-soft:  var(--parchment-s);
  --ink:         var(--navy);
  --ink-2:       var(--navy-dark);
  --accent:      var(--gilt);
  --accent-2:    var(--gilt-bright);
  --accent-soft: var(--gilt-soft);
  --spot:        var(--fairway);
  --muted:       var(--rough);
  --muted-2:     var(--rough-2);
  --line:        rgba(18,35,58,.13);
  --line-2:      rgba(18,35,58,.06);

  /* ---- TYPE ---- */
  --f-display: "Lora", "Georgia", serif;
  --f-body:    "Inter Tight", "Inter", -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* ---- SCALE + DEPTH ---- */
  --container:        1320px;
  --container-narrow: 1040px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.12);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(0,0,0,.18);
}

/* ---- RESET ---- */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::selection { background: var(--navy); color: var(--parchment); }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.65; font-weight: 400;
  color: var(--navy); background: var(--parchment);
  overflow-x: hidden; width: 100%; max-width: 100vw;
  position: relative; -webkit-font-smoothing: antialiased;
}
section, header, footer { max-width: 100vw; overflow-x: clip; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- FILM GRAIN (signature premium finish) ---- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--f-display); font-weight: 600;
  letter-spacing: -.012em; line-height: 1.1; color: var(--navy);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 500; }
p  { color: var(--rough); line-height: 1.72; }
em, .italic { font-style: italic; font-family: var(--f-display); }
.serif { font-family: var(--f-display); font-weight: 500; }

/* Signature eyebrow with gilt rule */
.eyebrow {
  font-family: var(--f-body); text-transform: uppercase;
  letter-spacing: .42em; font-size: 10.5px; font-weight: 600;
  color: var(--navy); display: inline-block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--gilt); margin-right: 14px; vertical-align: middle;
}
.eyebrow--light { color: rgba(245,241,232,.72); }
.eyebrow--light::before { background: var(--gilt-bright); }

.label-mono {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rough-2);
}

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--dark { background: var(--navy); color: var(--parchment); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--parchment); }
.section--dark p { color: rgba(245,241,232,.72); }
.section--ink2 { background: var(--navy-dark); color: var(--parchment); }
.section--ink2 h2, .section--ink2 h3 { color: var(--parchment); }
.section--ink2 p { color: rgba(245,241,232,.68); }
.section--paper2 { background: var(--parchment-2); }
.section--fairway { background: var(--fairway); color: var(--parchment); }
.section--fairway h2, .section--fairway h3 { color: var(--parchment); }
.section--fairway p { color: rgba(245,241,232,.75); }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.maxw-prose { max-width: 58ch; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 15px 28px; border: 1.5px solid var(--navy);
  background: var(--navy); color: var(--parchment);
  transition: all .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--navy); opacity: 1; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--parchment); }
.btn--gilt { background: var(--gilt); border-color: var(--gilt); color: var(--parchment-s); }
.btn--gilt:hover { background: transparent; color: var(--gilt); border-color: var(--gilt); }
.btn--light { border-color: rgba(245,241,232,.5); background: transparent; color: var(--parchment); }
.btn--light:hover { background: var(--parchment); color: var(--navy); opacity: 1; }

/* ---- ANNOUNCE BAR ---- */
.announce {
  background: var(--navy-dark); text-align: center; padding: 11px 20px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .38em;
  text-transform: uppercase; color: rgba(245,241,232,.62); font-weight: 400;
}
.announce span { color: var(--gilt-bright); }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--parchment) 94%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; }

.nav-logo {
  justify-self: start;
  display: flex; align-items: center; gap: 12px;
}
.nav-monogram {
  width: 38px; height: 38px; border: 1.5px solid var(--gilt);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: .9rem; font-weight: 600;
  color: var(--navy); letter-spacing: .06em; flex-shrink: 0;
}
.nav-brand {
  font-family: var(--f-display); font-size: .78rem; font-weight: 600;
  line-height: 1.25; letter-spacing: .04em; color: var(--navy);
}
.nav-brand small { display: block; font-size: .62rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rough-2); font-family: var(--f-body); }

.nav-links {
  display: flex; gap: 28px; justify-self: center; list-style: none;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
}
.nav-links a:hover { color: var(--gilt); opacity: 1; }
.nav-cta { justify-self: end; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--navy); transition: .3s var(--ease); }

/* ---- HERO (full-bleed, dark overlay) ---- */
.hero-wrap {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-course.jpg');
  background-size: cover; background-position: center 35%;
  opacity: .38;
}
/* CSS fallback pattern when image absent */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, rgba(18,35,58,.06) 0px, rgba(18,35,58,.06) 1px,
    transparent 1px, transparent 60px
  );
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: clamp(80px,14vh,160px) var(--gutter) clamp(64px,10vh,120px);
}
.hero-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em;
  color: rgba(245,241,232,.52); margin-bottom: 28px;
}
.hero-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gilt); }
.hero-h1 { color: var(--parchment-s); margin-bottom: 20px; max-width: 16ch; }
.hero-h1 em { color: var(--gilt-bright); }
.hero-tag {
  color: rgba(245,241,232,.7); font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 52ch; line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Gilt underline accent for hero rule */
.hero-rule {
  width: 48px; height: 2px; background: var(--gilt);
  margin: 24px 0;
}

/* ---- MARQUEE ---- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding: 14px 0; background: var(--parchment-2);
}
.marquee-track {
  display: flex; gap: 32px; white-space: nowrap; width: max-content;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rough-2);
  animation: marq 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:nth-child(even) { color: var(--gilt); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- STATS BAR ---- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stat-cell {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.stat-num {
  font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600; color: var(--navy); line-height: 1;
  letter-spacing: -.02em;
}
.stat-num em { color: var(--gilt); font-style: normal; }
.stat-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rough-2); margin-top: 8px; display: block; }

/* ---- COURSE SECTION ---- */
.course-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: center;
}
.course-img-wrap { position: relative; }
.course-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.course-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  width: 112px; height: 112px; background: var(--navy);
  border: 2px solid var(--gilt); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14px;
}
.course-img-badge .badge-year {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 600;
  color: var(--gilt-bright); line-height: 1;
}
.course-img-badge .badge-label {
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(245,241,232,.6); margin-top: 4px;
}
.course-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px;
}
.spec-item {
  background: var(--parchment); padding: 14px 16px;
}
.spec-val { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.spec-key { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--rough-2); margin-top: 2px; }

/* ---- MEMBERSHIP CARDS ---- */
.membership-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--line); }
.mem-card {
  background: var(--parchment); padding: clamp(28px,4vw,48px) clamp(22px,3vw,36px);
  display: flex; flex-direction: column;
  transition: background .35s var(--ease);
}
.mem-card:hover { background: var(--navy); }
.mem-card:hover h3, .mem-card:hover .mem-type { color: var(--parchment); }
.mem-card:hover p { color: rgba(245,241,232,.7); }
.mem-card:hover .mem-rule { background: var(--gilt-bright); }
.mem-card:hover .btn--ghost { border-color: rgba(245,241,232,.4); color: var(--parchment); }
.mem-card:hover .btn--ghost:hover { background: var(--parchment); color: var(--navy); }
.mem-type { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gilt); margin-bottom: 12px; }
.mem-rule { width: 36px; height: 2px; background: var(--gilt); margin: 16px 0; }
.mem-features { list-style: none; margin: 16px 0 24px; flex: 1; }
.mem-features li { font-size: 14px; color: var(--rough); padding: 5px 0;
  border-bottom: 1px solid var(--line-2); line-height: 1.5; }
.mem-features li::before { content: "—"; color: var(--gilt); margin-right: 8px; font-size: 12px; }

/* ---- EVENTS / VENUE ---- */
.events-hero {
  min-height: 55vh; position: relative;
  display: flex; align-items: center;
  background: var(--navy-dark);
}
.events-bg {
  position: absolute; inset: 0;
  background-image: url('../images/clubhouse-events.jpg');
  background-size: cover; background-position: center;
  opacity: .3;
}
.events-inner {
  position: relative; z-index: 2;
  padding: clamp(64px,10vh,110px) var(--gutter);
  max-width: var(--container); margin: 0 auto; width: 100%;
}
.events-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--line); }
.ef-card {
  background: var(--parchment-s); padding: 28px 24px;
  border-top: 3px solid transparent; transition: border-color .35s var(--ease);
}
.ef-card:hover { border-top-color: var(--gilt); }
.ef-icon { font-size: 1.6rem; margin-bottom: 14px; }
.ef-card h3 { font-size: 1.1rem; color: var(--navy); }
.ef-card p { font-size: 14px; margin-top: 8px; }

/* ---- DINING ---- */
.dining-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,96px); align-items: center; }
.dining-img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }

/* ---- TOURNAMENT ---- */
.tournament-timeline { position: relative; padding-left: 24px; }
.tournament-timeline::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--gilt);
}
.tl-entry { position: relative; margin-bottom: 28px; padding-left: 20px; }
.tl-entry::before {
  content: ""; position: absolute; left: -28px; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gilt);
  border: 2px solid var(--navy);
}
.tl-year { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600;
  color: var(--gilt-bright); }
.tl-detail { font-size: 14px; color: rgba(245,241,232,.7); margin-top: 2px; }

.champions-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 2px; background: rgba(245,241,232,.08); }
.champion-cell {
  padding: 20px 18px; background: rgba(18,35,58,.6);
  transition: background .3s var(--ease);
}
.champion-cell:hover { background: rgba(18,35,58,.9); }
.ch-year { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  color: var(--gilt); text-transform: uppercase; }
.ch-name { font-family: var(--f-display); font-size: 1rem; font-weight: 500;
  color: var(--parchment); margin-top: 4px; }

/* ---- ENQUIRY FORM ---- */
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px); }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rough-2);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-bottom: 2px solid var(--navy);
  background: var(--parchment-s); font-family: var(--f-body); font-size: 15px;
  color: var(--navy); transition: border-color .3s var(--ease);
  outline: none; border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--gilt); }
.form-group textarea { resize: vertical; min-height: 110px; }
.enquiry-info h3 { font-size: 1.4rem; }
.contact-line { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-line-icon { width: 36px; height: 36px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px; color: var(--gilt); }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark); color: var(--parchment);
  padding: clamp(60px, 8vw, 100px) 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px,4vw,56px); }
.footer-brand { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600;
  color: var(--parchment); }
.footer-brand small { display: block; font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gilt); margin-top: 4px; }
.footer-tag { color: rgba(245,241,232,.55); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-heading { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gilt); margin-bottom: 16px; display: block; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(245,241,232,.62); font-size: 14px; }
.footer-links a:hover { color: var(--gilt-bright); opacity: 1; }
.footer-divider { border: none; border-top: 1px solid rgba(245,241,232,.1); margin: 40px 0 24px; }
.footer-credit {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em;
  color: rgba(245,241,232,.32);
}
.footer-credit a { color: rgba(245,241,232,.45); }
.footer-credit a:hover { color: var(--gilt); opacity: 1; }

/* ---- REVEAL (GSAP adds .is-in; fallback keeps content visible) ---- */
.reveal { opacity: 0; transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in,
.no-js .reveal,
.reveal.reveal--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- IMAGE FALLBACK ---- */
.img-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment-2); border: 1px solid var(--line); min-height: 260px;
}
.img-fallback-cap { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rough-2); padding: 24px; text-align: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links.open {
    display: flex; position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; background: var(--parchment);
    padding: 28px var(--gutter); gap: 20px;
    border-bottom: 1px solid var(--line); z-index: 99;
  }
  /* Add "Request Info" as last item in mobile menu */
  .nav-links.open::after {
    content: ""; display: none;
  }
  .course-grid { grid-template-columns: 1fr; }
  .course-img-badge { right: 12px; bottom: -16px; width: 90px; height: 90px; }
  .membership-cards { grid-template-columns: 1fr; }
  .events-features { grid-template-columns: 1fr; }
  .dining-split { grid-template-columns: 1fr; }
  .enquiry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .champions-grid { grid-template-columns: repeat(2,1fr); }
  .course-specs { grid-template-columns: repeat(2,1fr); }
}
