/* ==========================================================
   Bling Your Swing — Custom Golf Clubs

   Country-club palette: pine green on cream, high-contrast
   serif display, generous rounding.

   Sections are CREAM by default. Add `section--dark` for a
   deep green band — the semantic tokens (--bg / --fg /
   --surface / --accent) flip and everything inside follows.
   ========================================================== */

:root {
  /* palette */
  --pine:       #1e4429;
  --pine-deep:  #16321f;
  --pine-mid:   #2f6b41;
  --sage:       #dfe3c8;
  --sage-deep:  #c4cdaa;
  --cream:      #f4f2e4;
  --cream-warm: #fbfaf4;
  --ink:        #16231a;
  --brass:      #b08d3f;
  --brass-soft: #d8b878;

  /* semantic — cream by default */
  --bg:           var(--cream);
  --fg:           var(--ink);
  --fg-soft:      #5a6b5e;
  --surface:      var(--cream-warm);
  --surface-line: rgba(22, 35, 26, 0.12);
  --rule:         rgba(22, 35, 26, 0.14);
  --accent:       var(--pine-mid);
  --on-accent:    var(--cream-warm);

  --display: "Playfair Display", "Georgia", serif;
  --sans:    "Inter", "Helvetica Neue", sans-serif;

  --pad:     clamp(1.25rem, 4vw, 3.5rem);
  --radius:  16px;
  --radius-sm: 10px;
  --pill:    999px;
  --section: clamp(4rem, 9vw, 7.5rem);
}

.section--dark {
  --bg:           var(--pine);
  --fg:           var(--cream);
  --fg-soft:      #b3c4b4;
  --surface:      rgba(251, 250, 244, 0.07);
  --surface-line: rgba(244, 242, 228, 0.2);
  --rule:         rgba(244, 242, 228, 0.22);
  --accent:       var(--sage);
  --on-accent:    var(--pine);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

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

/* ---------- layout helpers ---------- */

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

section {
  background: var(--bg);
  color: var(--fg);
  padding: var(--section) 0;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 1.1rem;
}

.section-head { max-width: 660px; margin-bottom: 3.5rem; }
.section-head.centred { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.section-head p { color: var(--fg-soft); margin-top: 1.1rem; }

.lede { color: var(--fg-soft); font-size: 1.02rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--pine-mid);
  border-radius: var(--pill);
  background: var(--pine-mid);
  color: var(--cream-warm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}
.btn:hover { background: var(--pine); border-color: var(--pine); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.section--dark .btn {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--pine);
}
.section--dark .btn:hover { background: var(--cream-warm); border-color: var(--cream-warm); }
.section--dark .btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 242, 228, 0.45);
}
.section--dark .btn-outline:hover { background: var(--cream); color: var(--pine); border-color: var(--cream); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { gap: 0.85rem; color: var(--accent); }

/* round arrow button, as on the reference cards */
.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--surface-line);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  flex: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.arrow-btn:hover { background: var(--pine-mid); color: var(--cream-warm); border-color: var(--pine-mid); transform: translateX(3px); }
.arrow-btn svg { width: 16px; height: 16px; }

/* ---------- announcement bar ---------- */

.announce {
  background: var(--pine);
  color: var(--cream);
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  padding: 0.65rem var(--pad);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--pad);
  background: rgba(244, 242, 228, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 35, 26, 0.12);
  color: var(--ink);
}

.brand { text-decoration: none; line-height: 1.1; text-align: left; }
.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-sub {
  display: block;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--pine-mid);
}

.header-right { display: flex; align-items: center; gap: 1.9rem; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg-soft);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--pine); font-weight: 500; }

.header-cta { padding: 0.7rem 1.4rem; font-size: 0.76rem; }

.nav-toggle {
  display: none;
  width: 32px; height: 22px;
  background: none; border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); }

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    inset: auto 0 auto 0;
    top: var(--header-bottom, 62px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--pad) 1.75rem;
    background: var(--cream-warm);
    border-bottom: 1px solid rgba(22, 35, 26, 0.12);
    transform: translateY(-135%);
    transition: transform 0.32s ease;
  }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 0.9rem 0; font-size: 1rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-art svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; }

.pill {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: var(--pill);
  padding: 0.5rem 1.3rem;
  margin-bottom: 2.1rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 7.5vw, 5.4rem);
  font-weight: 500;
  max-width: 15ch;
  margin: 0 auto;
}
.hero-sub {
  color: var(--fg-soft);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  margin: 1.7rem auto 2.6rem;
  max-width: 48ch;
}
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ---------- sage strip ---------- */

.strip {
  background: var(--sage);
  color: var(--pine);
  padding: 1rem var(--pad);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-align: center;
}

/* ---------- feature band (thin-line icons) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 1.5rem;
  text-align: center;
}
.feature svg {
  width: 34px; height: 34px;
  margin: 0 auto 1.1rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.86rem; color: var(--fg-soft); line-height: 1.6; }

@media (max-width: 820px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .feature-row { grid-template-columns: 1fr; }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg); padding: clamp(1.75rem, 3.5vw, 2.75rem) 1.25rem; text-align: center; }
.stat-figure {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: 0.9rem;
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.split p + p { margin-top: 1.1rem; }
.split .btn, .split .link-arrow { margin-top: 2rem; }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  overflow: hidden;
}
.card h3 { font-size: 1.4rem; }
.card > p { color: var(--fg-soft); font-size: 0.92rem; margin-top: 0.7rem; }

.card-swatch {
  height: 150px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
  border: 1px solid var(--surface-line);
}
.card-body { padding: 0 0.4rem; display: flex; flex-direction: column; flex: 1; }

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.6rem;
}
.card-price .from {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.card-price .amount {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--brass);
}

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  /* auto-FILL, not auto-fit: empty tracks are kept, so a single result stays
     the same size as one of twelve and the grid fills left to right. */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.tile {
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.tile-art {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-art svg { width: 58%; height: auto; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-caption {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tile-caption strong { font-family: var(--display); font-weight: 500; font-size: 1.05rem; display: block; }
.tile-caption span { font-size: 0.78rem; color: var(--fg-soft); }

/* ---------- callout band ---------- */

.band {
  background: var(--pine);
  color: var(--cream);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.band h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 20ch; margin: 0 auto 1.8rem; }
.band .btn { background: var(--sage); border-color: var(--sage); color: var(--pine); }
.band .btn:hover { background: var(--cream-warm); border-color: var(--cream-warm); }
.band-art { position: absolute; inset: 0; opacity: 0.22; pointer-events: none; }
.band .wrap { position: relative; z-index: 1; }

/* ---------- quotes ---------- */

.quote-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
}
.stars { color: var(--brass); letter-spacing: 0.2em; margin-bottom: 1rem; }
.quote-card blockquote { font-family: var(--display); font-size: 1.08rem; line-height: 1.6; }
.quote-card cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.detail-list { list-style: none; }
.detail-list li { padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.detail-list .k {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 0.3rem;
}
.detail-list .v { font-size: 1.05rem; font-family: var(--display); }
.detail-list a { text-decoration: none; border-bottom: 1px solid var(--accent); }

/* ---------- forms ---------- */

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 0.5rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font: inherit;
  font-size: 0.94rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--pine-mid);
  box-shadow: 0 0 0 3px rgba(47, 107, 65, 0.14);
}
.field-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--fg-soft);
  margin-top: 0.4rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--pine-deep);
  color: var(--cream);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 242, 228, 0.18);
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.footer-grid p, .footer-grid a {
  color: #b3c4b4;
  font-size: 0.92rem;
  text-decoration: none;
  display: block;
}
.footer-grid a:hover { color: var(--cream); }
.footer-grid li { list-style: none; margin-bottom: 0.5rem; }
.footer-bottom {
  padding-top: 1.75rem;
  font-size: 0.8rem;
  color: #93a695;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- placeholder flag ----------
   Anything the client still owes us is wrapped in .todo so it
   is impossible to miss — and impossible to ship by accident. */
.todo {
  background: rgba(176, 141, 63, 0.18);
  outline: 1px dashed var(--brass);
  border-radius: 3px;
  padding: 0 0.25em;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================
   CONFIGURATOR
   ========================================================== */

.config-intro {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--pad) 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.config-intro h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 1rem; }
.config-intro p { color: var(--fg-soft); }

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: 5rem;
}
@media (max-width: 940px) { .configurator { grid-template-columns: 1fr; } }

.preview {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (max-width: 940px) { .preview { position: static; } }

.preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border-radius: var(--radius-sm);
  background: radial-gradient(ellipse at 50% 60%, var(--sage) 0%, rgba(223, 227, 200, 0.25) 55%, transparent 72%);
}
.preview-stage svg { width: 100%; max-width: 320px; height: auto; }

.preview-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.preview-caption h2 { font-size: 1.35rem; }
.preview-price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--brass);
  white-space: nowrap;
}
.preview-price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-align: right;
}

.options { display: flex; flex-direction: column; gap: 0.7rem; }

.opt-group {
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.35rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.opt-head:hover { background: rgba(47, 107, 65, 0.05); }
.opt-step {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--pine-mid);
  text-transform: uppercase;
}
.opt-title { display: block; font-family: var(--display); font-size: 1.1rem; }
.opt-current { display: block; font-size: 0.82rem; color: var(--fg-soft); }
.opt-chev {
  flex: none;
  width: 10px; height: 10px;
  border-right: 1px solid var(--fg-soft);
  border-bottom: 1px solid var(--fg-soft);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.opt-head[aria-expanded="true"] .opt-chev { transform: rotate(-135deg); }

.opt-body { padding: 0 1.35rem 1.4rem; }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--surface-line);
  border-radius: var(--pill);
  cursor: pointer;
  font-size: 0.86rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.choice:hover { border-color: var(--pine-mid); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) {
  border-color: var(--pine-mid);
  background: rgba(47, 107, 65, 0.1);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--pine-mid); outline-offset: 2px; }

.dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(22, 35, 26, 0.25);
  flex: none;
}
.choice-price { color: var(--fg-soft); font-size: 0.78rem; }

.summary {
  margin-top: 0.7rem;
  border: 1px solid var(--pine-mid);
  border-radius: var(--radius);
  background: rgba(47, 107, 65, 0.06);
  padding: 1.75rem;
}
.summary h2 { font-size: 1.3rem; margin-bottom: 1rem; }

.summary-list { list-style: none; font-size: 0.88rem; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.summary-list li span:first-child { color: var(--fg-soft); }
.summary-list .sum-total { border-bottom: 0; padding-top: 0.9rem; font-size: 1rem; }
.summary-list .sum-total span:first-child { color: var(--fg); }
.summary-list .sum-total span:last-child {
  color: var(--brass);
  font-family: var(--display);
  font-size: 1.5rem;
}

.summary-note { font-size: 0.78rem; color: var(--fg-soft); margin: 1rem 0 1.25rem; }
.summary .btn { width: 100%; justify-content: center; }

dialog.quote {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  /* the global `* { margin: 0 }` reset wipes the UA margin:auto that centres a modal */
  inset: 0;
  margin: auto;
  padding: 0;
  border: 1px solid var(--pine-mid);
  border-radius: var(--radius);
  background: var(--cream-warm);
  color: var(--ink);
}
dialog.quote::backdrop { background: rgba(22, 35, 26, 0.55); backdrop-filter: blur(3px); }
.quote-inner { padding: 2.25rem; }
.quote-inner h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.quote-inner > p { color: var(--fg-soft); font-size: 0.9rem; margin-bottom: 1.5rem; }
.quote-fields { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.quote-fields .field-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .quote-fields { grid-template-columns: 1fr; } }
.quote-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.quote-actions .btn { flex: 1; justify-content: center; }

.spec-dump {
  width: 100%;
  padding: 0.95rem;
  background: var(--cream);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  color: var(--fg-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.7;
  white-space: pre-wrap;
  resize: vertical;
  min-height: 140px;
}

/* ==========================================================
   THE HOLE — gallery navigation
   A plan view of a golf hole; each stop filters the grid below
   to the clubs you'd actually use at that point.
   ========================================================== */

.hole {
  position: relative;
  max-width: 1080px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.hole-map { position: relative; }
.hole-map svg { width: 100%; height: auto; display: block; }

/* Two drawings of the same hole — wide for desktop, tall for phones.
   Scoped under .hole-map so these beat `.hole-map svg { display: block }`,
   which is more specific than a bare class on its own. */
.hole-map .hole-v { display: none; }
@media (max-width: 760px) {
  .hole-map .hole-h { display: none; }
  .hole-map .hole-v { display: block; }
}

.hole-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 104px;
  padding: 0.6rem 1rem;
  background: var(--cream-warm);
  border: 1px solid var(--surface-line);
  border-radius: var(--pill);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 18px rgba(22, 35, 26, 0.13);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hole-marker:hover { transform: translate(-50%, -50%) scale(1.05); border-color: var(--pine-mid); }
.hole-marker:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

.hole-marker .m-stop {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pine-mid);
}
.hole-marker .m-club { font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.hole-marker .m-count { font-size: 0.7rem; color: var(--fg-soft); }

.hole-marker[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--cream);
}
.hole-marker[aria-pressed="true"] .m-stop { color: var(--sage); }
.hole-marker[aria-pressed="true"] .m-count { color: #b3c4b4; }

.hole-marker[data-empty="true"] { opacity: 0.45; cursor: not-allowed; }
.hole-marker[data-empty="true"]:hover { transform: translate(-50%, -50%); border-color: var(--surface-line); }

/* marker positions: generated with the drawing by tools/generate-hole.py and
   written onto each button as --hx/--hy (wide) and --vx/--vy (tall) */
.hole-marker { --x: var(--hx); --y: var(--hy); }
@media (max-width: 760px) {
  .hole-marker { --x: var(--vx); --y: var(--vy); }
}

/* filter status + reset */
.hole-status {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  text-align: center;
}
.hole-status h3 { font-size: 1.45rem; }
.hole-status p { color: var(--fg-soft); font-size: 0.9rem; }
.hole-reset {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--pine-mid);
  padding: 0 0 0.15rem;
  color: var(--pine-mid);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.hole-reset:hover { color: var(--pine); }

/* keep the grid from jumping about as it filters */
.gallery-grid { min-height: 200px; }

/* ==========================================================
   "SHOW ME MY CLUB" — customer photo colouriser
   The visitor's own club, cut out and tinted in the browser.
   ========================================================== */

.club-upload { width: 100%; display: flex; justify-content: center; }
.club-upload canvas {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  cursor: crosshair;          /* they can tap the background to correct it */
  border-radius: var(--radius-sm);
}

.upload-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.upload-btn { cursor: pointer; }

.upload-hint,
.upload-status {
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--fg-soft);
  text-align: center;
  margin-top: 0.75rem;
}
.upload-status:empty { margin-top: 0; }
.upload-status[data-tone="warn"] {
  color: var(--brass);
  font-weight: 500;
}
