/* Mully's Mobile Golf
   Layout: a classic golf-club look with a scorecard twist. Fairway-green bands,
   mowed-stripe photo placeholders, a scorecard grid for real sequences, and a
   leaderboard for the games. One bold accent (flag yellow) marks every quote button. */
:root {
  --green: #006747;        /* logo green */
  --green-deep: #004d35;
  --green-ink: #003524;
  --mist: #eef4ef;         /* green-tinted off-white for alternate bands */
  --white: #ffffff;
  --ink: #102219;          /* body text */
  --muted: #47594f;
  --line: #cfdcd3;
  --flag: #f5c518;         /* flag yellow: quote buttons only */
  --flag-hover: #ffd43b;
  --tbc: #fff3b0;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-label: "Big Shoulders Text", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; border-radius: 2px; }
.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; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: var(--white); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); text-transform: uppercase; }
h3 { font-size: var(--step-2); text-transform: uppercase; }
p { margin: 0; max-width: 65ch; }
.label {
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: var(--step--1); color: var(--green);
}
.lead { font-size: var(--step-1); color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--mist { background: var(--mist); }
.section--green { background: var(--green); color: var(--white); }
.section--green .label { color: var(--flag); }
.section--green .lead, .section--green p { color: #e3efe8; }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack-lg { display: grid; gap: 2.5rem; }
.section-head { display: grid; gap: 0.9rem; margin-bottom: 2.5rem; max-width: 46rem; }

/* Yardage-marker divider: a measuring line, like a range's distance markers */
.yardage {
  height: 14px; border: 0; margin: 0;
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 48px) left center / 100% 14px no-repeat;
}
.section--green .yardage, .hero .yardage {
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)) center / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, transparent 2px 48px) left center / 100% 14px no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font-family: var(--font-label); font-weight: 800; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--quote { background: var(--flag); color: var(--green-ink); }
.btn--quote:hover { background: var(--flag-hover); color: var(--green-ink); }
.btn--line { border-color: currentColor; color: var(--green); background: transparent; }
.btn--line:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.section--green .btn--line, .hero .btn--line { color: var(--white); }
.section--green .btn--line:hover, .hero .btn--line:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { font-weight: 700; }

/* Preview banner and items awaiting approval */
.is-preview .draft-bar { background: var(--ink); color: var(--white); font-size: var(--step--1); padding-block: .5rem; }
.draft-bar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.draft-bar mark { background: var(--tbc); color: var(--ink); padding: 0 .3em; border-radius: 2px; }
mark.tbc { background: var(--tbc); color: var(--ink); box-shadow: 0 0 0 2px var(--tbc); border-radius: 2px; text-decoration: underline dashed #b08800; text-underline-offset: .2em; }
.draft-bar { display: none; }
.is-preview .draft-bar { display: block; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { flex: none; display: block; width: 116px; }
.brand img { width: 100%; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.nav a { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; color: var(--ink); text-decoration: none; padding-block: .5rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--green); }
.header-actions .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: 1rem; }
.menu-btn { display: none; }

@media (max-width: 1060px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .site-header .wrap { min-height: 64px; }
  .brand { width: 96px; }
  .header-actions .btn { display: none; }
  .menu-btn {
    display: inline-flex; margin-left: auto; align-items: center; gap: .45rem;
    background: none; border: 2px solid var(--green); color: var(--green); border-radius: var(--radius);
    min-height: 44px; padding: .4rem .9rem; font-family: var(--font-label); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); margin: 0; }
  .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .nav a { display: block; padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
}
@media (min-width: 901px) { .nav[hidden] { display: block; } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 900px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16,34,25,.08);
  }
  .action-bar .btn { min-height: 48px; padding-inline: .5rem; }
  .has-action-bar { padding-bottom: 76px; }
}

/* Hero */
.hero { background: var(--green); color: var(--white); padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1.label, .hero .label { color: var(--flag); }
.hero .display { font-family: var(--font-display); font-weight: 900; font-size: var(--step-4); line-height: .92; text-transform: uppercase; text-wrap: balance; }
.hero p { color: #e3efe8; font-size: var(--step-1); }
.hero .stack { gap: 1.4rem; }
.hero--page .wrap { grid-template-columns: minmax(0, 1fr); }
.hero--page h1 { font-size: var(--step-4); text-transform: uppercase; line-height: .95; font-weight: 900; }
.hero-points { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.3); }
.hero-points li { padding: .9rem .9rem 0 0; display: grid; gap: .15rem; }
.hero-points b { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.hero-points span { font-size: .95rem; color: #cfe3d7; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hero-points { grid-template-columns: minmax(0, 1fr); }
  .hero-points li { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.18); grid-template-columns: 7rem 1fr; align-items: baseline; }
}

/* Photo placeholders: mowed-fairway stripes until real photos arrive */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; max-width: 100%;
  background: repeating-linear-gradient(115deg, #0b7a55 0 46px, #07704d 46px 92px);
  display: grid; place-items: center; color: var(--white);
}
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph img.ph-mark { width: 26%; max-width: 120px; opacity: .9; }
.ph figcaption {
  position: absolute; left: .75rem; right: .75rem; bottom: .75rem;
  background: rgba(0, 53, 36, .82); color: var(--white); font-size: .82rem; line-height: 1.35;
  padding: .5rem .7rem; border-radius: 4px;
}
.ph figcaption b { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--flag); margin-right: .35rem; }
.hero .ph { background: repeating-linear-gradient(115deg, #0a8058 0 46px, #04744f 46px 92px); box-shadow: 0 0 0 1px rgba(255,255,255,.18); }

/* Two-column feature split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; }
.ticks li::before { content: ""; width: .9rem; height: .9rem; margin-top: .4rem; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 3px var(--white), 0 0 0 2px var(--green); }
.section--green .ticks li::before { background: var(--flag); box-shadow: inset 0 0 0 3px var(--green), 0 0 0 2px var(--flag); }

/* Scorecard: for real step-by-step sequences */
.scorecard { border: 2px solid var(--green); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.scorecard-head { display: flex; justify-content: space-between; gap: 1rem; background: var(--green); color: var(--white); padding: .55rem 1rem; font-family: var(--font-label); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; }
.scorecard ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.scorecard li { padding: 1.25rem 1.25rem 1.5rem; border-right: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.scorecard li:last-child, .scorecard li:nth-child(3n) { border-right: 0; }
.scorecard li:nth-child(n+4) { border-top: 1px solid var(--line); }
.scorecard .hole { font-family: var(--font-label); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.scorecard .hole b { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--green); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.scorecard h3 { font-size: 1.45rem; }
.scorecard p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .scorecard ol { grid-template-columns: minmax(0, 1fr); }
  .scorecard li, .scorecard li:nth-child(n+4) { border-right: 0; border-top: 0; border-bottom: 1px solid var(--line); grid-template-columns: 4.5rem 1fr; column-gap: 1rem; }
  .scorecard li > :not(.hole) { grid-column: 2; }
  .scorecard .hole { grid-row: span 2; }
  .scorecard li:last-child { border-bottom: 0; }
}

/* Leaderboard: the games */
.leaderboard { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 2px solid var(--green); }
.leaderboard-head { background: var(--green); color: var(--white); text-align: center; padding: .7rem 1rem; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .2em; font-size: 1.5rem; }
.leaderboard-cols, .lb-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 11rem; gap: 1rem; align-items: center; padding: 1rem 1.25rem; }
.leaderboard-cols { background: var(--mist); font-family: var(--font-label); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); padding-block: .5rem; }
.lb-row { border-top: 1px solid var(--line); }
.lb-num { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.lb-row h3 { font-size: 1.6rem; }
.lb-row p { color: var(--muted); font-size: 1rem; margin-top: .25rem; }
.lb-best { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--green-deep); border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .7rem; justify-self: start; }
@media (max-width: 640px) {
  .leaderboard-cols { display: none; }
  .lb-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .lb-best { grid-column: 2; }
}

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tile { display: grid; gap: .8rem; text-decoration: none; color: var(--ink); }
.tile h3 { font-size: 1.45rem; }
.tile:hover h3 { color: var(--green); }
.tile p { color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

.callout { border-left: 4px solid var(--flag); background: var(--mist); padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.section--mist .callout { background: var(--white); }

.great-for { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.great-for li { border: 1.5px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .95rem; background: var(--white); }

.subnav { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.subnav a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); color: var(--white); text-decoration: none; font-weight: 600; }
.subnav a:hover { background: var(--white); color: var(--green); }

.event-block { display: grid; gap: 1.2rem; scroll-margin-top: 90px; }
.planner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; list-style: none; padding: 0; margin: 0; }
.planner-grid li { display: grid; gap: .3rem; padding-top: 1rem; border-top: 2px solid var(--green); }
.planner-grid b { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; line-height: 1.05; }
.planner-grid span { color: var(--muted); font-size: 1rem; }
@media (max-width: 700px) { .planner-grid { grid-template-columns: minmax(0, 1fr); } }

/* Locations */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.area { display: grid; gap: .7rem; align-content: start; }
.area .towns { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .areas { grid-template-columns: minmax(0, 1fr); } }
.map { border: 2px solid var(--green); border-radius: var(--radius); background: var(--mist); }
.map svg { width: 100%; height: auto; }

/* About */
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.story-photo { position: sticky; top: 100px; }
.story-body { display: grid; gap: 1.15rem; font-size: 1.12rem; }
.story-body h2 { font-size: var(--step-2); margin-top: 1rem; }
.signoff { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1.1; }
.signoff span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 1rem; text-transform: none; color: var(--muted); }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } .story-photo { position: static; } }

/* FAQ */
.faq-group { display: grid; gap: .25rem; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group h2 { font-size: var(--step-2); margin-bottom: .6rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; font-weight: 700; font-size: 1.12rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-display); font-size: 1.8rem; line-height: .8; color: var(--green); flex: none; }
details[open] summary::after { content: "\2013"; }
details .answer { padding: 0 0 1.25rem; color: var(--muted); max-width: 65ch; }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #9fb3a7; border-radius: var(--radius); padding: .7rem .8rem; min-height: 48px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--flag); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: .9rem; font-weight: 600; }
.field .err:empty { display: none; }
.field .hint { color: var(--muted); font-size: .9rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 1.5px solid #9fb3a7; border-radius: 999px; font-weight: 600; }
.choice input:checked + span { background: var(--green); color: var(--white); border-color: var(--green); }
.choice input:focus-visible + span { outline: 3px solid var(--flag); outline-offset: 2px; }
.check { display: inline-flex; gap: .5rem; align-items: center; font-size: .95rem; color: var(--muted); }
.check input { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--green); }
.form-foot { grid-column: 1 / -1; display: grid; gap: .8rem; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-alert { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: var(--radius); background: #fdecea; color: #6b1a14; border: 1.5px solid #e8a39c; }
.form-alert[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

.side-card { border: 2px solid var(--green); border-radius: var(--radius); overflow: hidden; }
.side-card .scorecard-head { border-radius: 0; }
.side-card .inner { padding: 1.25rem; display: grid; gap: 1.2rem; }
.side-card ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-list b { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-ink); color: #d4e5da; padding-block: 3.5rem 2rem; font-size: .98rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.footer-logo { width: 170px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid h2 { font-size: 1rem; font-family: var(--font-label); letter-spacing: .14em; color: var(--flag); margin-bottom: .8rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Cookie notice */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 34rem; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cookie a { color: var(--flag); }
.cookie[hidden] { display: none; }
@media (max-width: 900px) { .cookie { bottom: 88px; } }

.prose { display: grid; gap: 1rem; max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.25rem; }
.center { text-align: center; justify-items: center; }
.center p { margin-inline: auto; }

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

/* Refinements after review */
.hero .display { color: var(--white); }
.hero .display--long { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem); line-height: .95; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select { height: 48px; }
.tile .ph figcaption { font-size: .72rem; left: .5rem; right: .5rem; bottom: .5rem; padding: .35rem .5rem; }
.tile .ph img.ph-mark { width: 18%; margin-top: -1.5rem; }
@media (max-width: 860px) {
  .hero .ph--tall { aspect-ratio: 16 / 9; }
  .story-photo .ph--tall { aspect-ratio: 4 / 3; }
}

/* ===================== Illustration and motion ===================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Page transitions (supported browsers fade between pages; the header stays put) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
main { animation: page-in .55s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
body.is-leaving main { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }

/* Hero scene: layered hills, drifting clouds, waving flag */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(7rem, 14vw, 11rem); }
.hero > .wrap { position: relative; z-index: 2; }
.scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene-layer { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(120px, 18vw, 260px); }
.scene-layer.far path { fill: #2f8f6b; opacity: .45; }
.scene-layer.mid > path { fill: #0b7a55; }
.scene-layer.near path { fill: var(--white); }
.scene-cloud { position: absolute; color: #fff; opacity: .07; width: 220px; }
.scene-cloud.c1 { top: 12%; left: 52%; animation: drift 38s linear infinite alternate; }
.scene-cloud.c2 { top: 30%; left: 80%; width: 150px; animation: drift 46s linear infinite alternate-reverse; }
@keyframes drift { to { translate: -90px 0; } }
.wave { transform-box: fill-box; transform-origin: left center; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-7deg) scaleX(.9); } }

/* Launch-monitor screen in the home hero */
.sim { display: grid; gap: .6rem; }
.sim-frame { position: relative; border-radius: 10px; padding: 10px; background: #0d1a14; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); }
.sim-frame .ph { border-radius: 6px; box-shadow: none; }
.tracer { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; }
.tracer-path { fill: none; stroke: var(--flag); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(245,197,24,.7)); }
.tracer-ball { fill: #fff; opacity: 0; }
.tracer-land { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-firing .tracer-path { animation: tracer-draw 2.4s cubic-bezier(.22,.1,.3,1) forwards, tracer-fade 1s ease 4.2s forwards; }
.is-firing .tracer-ball { opacity: 1; animation: tracer-fade .6s ease 4.2s forwards; }
.is-firing .tracer-land { animation: land 1.2s var(--ease-out) 2.35s forwards; }
@keyframes tracer-draw { to { stroke-dashoffset: 0; } }
@keyframes tracer-fade { to { opacity: 0; } }
@keyframes land { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.2); } }
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: #0d1a14; border-radius: 8px; padding: .65rem .4rem; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.readout div { text-align: center; padding-inline: .3rem; border-right: 1px solid rgba(255,255,255,.12); min-width: 0; }
.readout div:last-child { border-right: 0; }
.readout dt { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: #9fc4b0; }
.readout dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-note { font-size: .78rem; color: #a9cbb8; text-align: right; }

/* Big decorative golf ball */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .wrap { position: relative; z-index: 1; }
.deco-ball { position: absolute; width: clamp(260px, 34vw, 480px); right: -6%; top: -60px; color: var(--green); opacity: .06; pointer-events: none; }
.section--green .deco-ball { color: #fff; }

/* Ball rolling along the yardage line */
.roll { padding-block: 1.5rem; }
.roll-track { position: relative; height: 70px; border-bottom: 2px solid var(--line); }
.roll-marks span { position: absolute; bottom: -1.6rem; transform: translateX(-50%); font-family: var(--font-label); font-weight: 700; font-size: .72rem; letter-spacing: .12em; color: var(--muted); }
.roll-marks span:first-child { transform: none; }
.roll-marks span::before { content: ""; position: absolute; left: 50%; top: -.55rem; width: 2px; height: 8px; background: var(--line); }
.roll-marks span:first-child::before { left: 0; }
.roll-ball { position: absolute; left: 0; bottom: 0; width: 26px; height: 26px; }
.roll-pin { position: absolute; right: 0; bottom: -2px; width: 34px; height: 68px; }
.motion .roll-ball { transform: translateX(0) rotate(0); }
.motion .roll.is-in .roll-ball { animation: roll-across 7s cubic-bezier(.25,.55,.3,1) .3s forwards; }
@keyframes roll-across { to { transform: translateX(calc(var(--track, 600px) - 52px)) rotate(900deg); } }

/* Ball dropping into the cup on closing bands */
.cup-scene { width: min(300px, 70vw); height: auto; margin-bottom: -.5rem; }
.cup-ball { transform: translate(40px, 172px); }
.closing.is-in .cup-ball { animation: putt 5.5s cubic-bezier(.25,.55,.3,1) .4s forwards; }
@keyframes putt {
  0% { transform: translate(40px, 172px); }
  70% { transform: translate(246px, 166px); }
  82% { transform: translate(250px, 168px); opacity: 1; }
  100% { transform: translate(250px, 178px) scale(.6); opacity: 0; }
}

/* Event tile icons */
.tile { position: relative; }
.tile-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -2.2rem; margin-left: .75rem; position: relative; z-index: 1; border-radius: 50%; background: var(--flag); color: var(--green-ink); box-shadow: 0 0 0 4px var(--mist); transition: transform .35s var(--ease-spring); }
.section:not(.section--mist) .tile-icon { box-shadow: 0 0 0 4px var(--white); }
.tile-icon svg { width: 28px; height: 28px; }
.tile:hover .tile-icon { transform: translateY(-4px) rotate(-8deg) scale(1.06); }

/* Scorecard: a ball rolls along the header into the cup */
.scorecard-head { position: relative; overflow: hidden; }
.sc-ball { position: absolute; top: 50%; left: -14px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: inset -2px -2px 0 rgba(0,0,0,.15); }
.motion .scorecard.is-in .sc-ball { animation: sc-roll 5s cubic-bezier(.25,.55,.3,1) .4s forwards; }
@keyframes sc-roll { 85% { opacity: 1; } to { left: calc(100% - 7.5rem); opacity: 0; } }

/* ---------- Microinteractions ---------- */
.btn { position: relative; overflow: hidden; transition: transform .25s var(--ease-spring), box-shadow .25s ease, background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--quote:hover { box-shadow: 0 10px 22px -10px rgba(16,34,25,.55); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--quote::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset -2px -2px 0 rgba(0,0,0,.18); margin-left: -10px; opacity: 0; transform: translateX(-14px) rotate(0); transition: all .35s var(--ease-spring); }
.btn--quote:hover::after { margin-left: .1rem; opacity: 1; transform: translateX(0) rotate(360deg); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.text-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease-out); padding-bottom: 2px; }
.text-link:hover { background-size: 100% 2px; }
.nav a { position: relative; border-bottom: 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav a { border-bottom: 1px solid var(--line); } .nav a::after { display: none; } }
.brand img { transition: transform .4s var(--ease-spring); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.lb-row { transition: background-color .25s ease; }
.lb-num { transition: transform .35s var(--ease-spring); }
.lb-row:hover { background: var(--mist); }
.lb-row:hover .lb-num { transform: translateX(6px) scale(1.08); }
summary::after { transition: transform .3s var(--ease-spring); }
details[open] summary::after { content: "+"; transform: rotate(45deg); }
details .answer { animation: none; }
details[open] .answer { animation: answer-in .35s var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }
.choice span { transition: background-color .2s ease, color .2s ease, transform .25s var(--ease-spring); }
.choice input:checked + span { transform: scale(1.04); }
.field input, .field select, .field textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.field:focus-within > label { color: var(--green); }
.planner-grid li { transition: transform .3s var(--ease-out); }
.planner-grid li:hover { transform: translateY(-3px); }
.ticks li::before { transition: transform .35s var(--ease-spring); }
.ticks li:hover::before { transform: scale(1.25); }
a[href^="tel:"]:hover { animation: ring .5s ease; }
@keyframes ring { 20%, 60% { transform: rotate(-2deg); } 40%, 80% { transform: rotate(2deg); } }

/* ---------- Scroll reveals and kinetic type (only when motion is on) ---------- */
.motion [data-reveal] { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(32px); }
.motion [data-reveal="left"]:not(.is-in) { transform: translateX(-40px); }
.motion [data-reveal="right"]:not(.is-in) { transform: translateX(40px); }
.motion [data-reveal="zoom"]:not(.is-in) { transform: scale(.94); }
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.kinetic .wi { display: inline-block; transition: transform .9s var(--ease-out), opacity .9s ease; transition-delay: calc(var(--wi, 0) * 55ms + 80ms); }
.motion .kinetic:not(.is-in) .wi { transform: translateY(105%) rotate(4deg); opacity: 0; }
.hero .kinetic .wi { transition-delay: calc(var(--wi, 0) * 70ms + 150ms); }
.motion .hero .label[data-reveal] { transition-delay: 0ms; }

/* Parallax targets get their own layer */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .wave, .scene-cloud, main, .tracer-path { animation: none !important; }
  .tracer-path { stroke-dashoffset: 0; }
  .tracer-ball { display: none; }
  .cup-ball { transform: translate(250px, 178px); opacity: 0; }
  [data-parallax] { transform: none !important; will-change: auto; }
}
@media (max-width: 860px) {
  .readout dt { font-size: .6rem; letter-spacing: .08em; }
  .deco-ball { opacity: .045; }
}
.hero .sim-note { font-size: .78rem; color: #a9cbb8; text-align: right; }
.sim-frame .ph figcaption { z-index: 2; }
/* hill layers extend below the fold line so parallax never opens a gap */
.scene-layer.far, .scene-layer.mid { bottom: -140px; border-bottom: 140px solid; box-sizing: content-box; }
.scene-layer.far { opacity: .45; border-color: #2f8f6b; }
.scene-layer.far path { opacity: 1; }
.scene-layer.mid { border-color: #0b7a55; }

/* ===== Round 2: motion graphics live outside the photo spots ===== */
.sim { display: grid; gap: .6rem; }
.sim .ph { box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }
.scene-layer.mid { overflow: visible; }
.shot .tracer-path { stroke-width: 4; opacity: .95; }

.hero .shot .tracer-land { stroke: var(--flag); stroke-width: 3; }

/* tile titles carry their icon (nothing sits on the photo) */
.tile-title { display: flex; align-items: center; gap: .65rem; }
.tile-title .tile-icon { margin: 0; width: 42px; height: 42px; flex: none; box-shadow: none; }
.tile-title .tile-icon svg { width: 22px; height: 22px; }
.section:not(.section--mist) .tile-title .tile-icon { box-shadow: none; }

.media-stack { display: grid; gap: 1.25rem; min-width: 0; }

/* Team leaderboard (corporate) */
.team-board { background: var(--white); border: 2px solid var(--green); border-radius: var(--radius); overflow: hidden; }
.tb-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--green); color: var(--white); padding: .55rem 1rem; font-family: var(--font-label); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.tb-live { font-size: .7rem; letter-spacing: .14em; background: rgba(255,255,255,.14); padding: .15rem .5rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; }
.tb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flag); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tb-rows { list-style: none; margin: 0; padding: 0; position: relative; height: calc(4 * 46px); }
.tb-rows li { position: absolute; left: 0; right: 0; height: 46px; top: calc(var(--rank, 0) * 46px); display: grid; grid-template-columns: 2rem 6.5rem minmax(0, 1fr) 5.5rem; gap: .6rem; align-items: center; padding-inline: 1rem; border-top: 1px solid var(--line); transition: top .9s var(--ease-out), background-color .4s ease; }
.tb-rows li:first-child { border-top: 0; }
.tb-rows li.is-leader { background: #fff8d6; }
.tb-pos { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--green); }
.tb-team { font-weight: 700; font-size: .95rem; }
.tb-bar { height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.tb-bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--green); border-radius: inherit; transition: width .9s var(--ease-out); }
.tb-dist { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; text-align: right; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .tb-rows li { grid-template-columns: 1.6rem 5.4rem minmax(0, 1fr) 4.8rem; gap: .4rem; padding-inline: .7rem; } .tb-team { font-size: .85rem; } }

/* Brian's scorecard (About) */
.brian-card { margin-top: 1.25rem; border: 2px solid var(--green); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.brian-card dl { margin: 0; }
.brian-card dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; padding: .6rem 1rem; border-top: 1px solid var(--line); align-items: center; }
.brian-card dl > div:first-child { border-top: 0; }
.brian-card dt { font-family: var(--font-label); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }
.brian-card dd { margin: 0; font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-size: 1.45rem; line-height: 1.1; color: #1d3b8f; }
.bc-zero dd { position: relative; display: inline-block; justify-self: start; padding-inline: .4rem; }
.bc-zero svg { position: absolute; left: -10px; top: -9px; width: 46px; height: 40px; overflow: visible; }
.bc-zero path { fill: none; stroke: #c0392b; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .brian-card dd { clip-path: inset(0 100% 0 0); transition: clip-path .9s steps(18, end); transition-delay: calc(var(--row, 0) * .45s + .4s); }
.motion .story-photo.is-in .brian-card dd { clip-path: inset(0 0 0 0); }
.motion .bc-zero path { stroke-dashoffset: 1; }
.motion .story-photo.is-in .bc-zero path { animation: draw-line 1s ease-out 2.9s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* Map: routes draw out from Saratoga, home pin pulses */
.route { fill: none; stroke: #006747; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .45; }
.motion .route { stroke-dashoffset: 1; }
.motion .map.is-in .route { animation: draw-line 1.4s ease-out calc(var(--r) * .28s + .5s) forwards; }
.home-pulse { fill: #006747; opacity: 0; transform-box: fill-box; transform-origin: center; }
.motion .map.is-in .home-pulse { animation: pulse 2.4s ease-out 1s infinite; }
@keyframes pulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }

@media (prefers-reduced-motion: reduce) {
  .tb-rows li, .tb-bar i { transition: none; }
  .tb-live::before { animation: none; }
}

/* Round 2: keep the shot arc in the open sky under page titles */
.hero--page { padding-bottom: calc(clamp(120px, 18vw, 260px) + 2.5rem); }

/* Real photos sit in the same slots as the placeholders */
.ph.photo { background: #0b3d2c; }
.ph.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Round 3: Brian's layout edits */
.site-header .wrap { min-height: 88px; padding-block: .7rem; }
@media (max-width: 860px) { .site-header .wrap { min-height: 76px; padding-block: .55rem; } }
.hero:not(.hero--page) > .wrap { max-width: 82rem; }
@media (min-width: 861px) { .hero:not(.hero--page) > .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); } }
.hero .hero-lead { font-size: var(--step-1); font-weight: 600; line-height: 1.35; }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.tiles--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.tiles--2x2 .ph { aspect-ratio: 3 / 2; }
.tiles--2x2 .tile h3 { font-size: 1.7rem; }
@media (max-width: 600px) { .tiles--2x2 { grid-template-columns: minmax(0, 1fr); } }
figure.ph { margin: 0; }

/* Round 4: keep the readout inside its box, clear the hero flag, full-width venue note */
.readout dd small { font-size: .58em; font-weight: 700; margin-left: .12em; letter-spacing: .02em; }
.readout dd { font-size: clamp(1.05rem, .55rem + 1vw, 1.5rem); }
.hero:not(.hero--page) { padding-bottom: max(11rem, 13vw); }
.callout p { max-width: none; }

/* Round 5: more clouds across the home hero sky */
.scene-cloud.more { display: none; }
.hero:not(.hero--page) .scene-cloud.more { display: block; }
.scene-cloud.c3 { top: 6%; left: 8%; width: 170px; animation: drift 52s linear infinite alternate; }
.scene-cloud.c4 { top: 4%; left: 34%; width: 120px; opacity: .06; animation: drift 44s linear infinite alternate-reverse; }
.scene-cloud.c5 { top: 18%; left: 66%; width: 110px; animation: drift 40s linear infinite alternate; }
.scene-cloud.c6 { top: 2%; left: 60%; width: 150px; opacity: .05; animation: drift 58s linear infinite alternate-reverse; }
.scene-cloud.c7 { top: 7%; left: 90%; width: 130px; animation: drift 48s linear infinite alternate; }
.hero:not(.hero--page) .scene-cloud { opacity: .09; }
.hero:not(.hero--page) .scene-cloud.c4, .hero:not(.hero--page) .scene-cloud.c6 { opacity: .06; }
@media (max-width: 860px) { .scene-cloud.c4, .scene-cloud.c6 { display: none !important; } }
