/* ============================================================
   Hammersley Pools – Design C ("Local Escape")
   Reskin to the supplied brand board: H-and-fish mark, Playfair
   Display headings, Lato body, sage/forest-green palette on a
   warm cream ground. Solid top bar, photo hero with feature strip.
   Self-hosted fonts (GDPR-clean), stock imagery is placeholder.
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("/css/fonts/playfair-var.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/css/fonts/lato-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/css/fonts/lato-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
:root {
  /* brand board palette */
  --green:      #1E3B2E;   /* darkest – brand forest green */
  --green-deep: #142a20;   /* deeper, for footer / gradients */
  --green-mid:  #4F6B4A;   /* mid sage-green */
  --sage:       #A9B892;   /* light sage accent */
  --stone:      #E8E5DD;   /* light grey-green ground */
  --cream:      #FFFFEF;   /* lightest cream / paper */
  --page:       #FAF9F1;   /* warm page ground (matches logo field) */

  --ink:    #233127;       /* body text on light */
  --muted:  #5d6b5c;       /* secondary text */
  --line:   #dcdcd0;       /* hairlines */

  /* shared "lifted off the page" shadow for photos (tight contact + soft float) */
  --lift: 0 8px 18px rgba(20,42,32,0.35), 0 36px 70px rgba(20,42,32,0.60);

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body:    "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 72rem;
  --pad:  1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--green);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.7rem, 6.5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--green-mid); }
strong { font-weight: 700; }
.lead { font-size: 1.18rem; color: var(--ink); }

/* eyebrow / overline – Lato caps with a flanking rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--body); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--sage); }

/* ---------- layout primitives ---------- */
.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band[id] { scroll-margin-top: 80px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.measure { max-width: 42rem; }
.center { text-align: center; }
.center .measure { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

.band--cream { background: var(--page); }
.band--paper { background: var(--cream); }
.band--stone { background: var(--stone); }
.band--pine  { background: var(--green); color: #eef1e8; }
.band--pine h2, .band--pine h3 { color: #fff; }
.band--pine .eyebrow { color: var(--sage); }
.band--pine .eyebrow::before { background: var(--sage); }

/* ---------- header (solid bar) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem var(--pad);
  background: var(--page);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20,42,32,0.08); padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--green); }
.brand-mark { height: 46px; width: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word .bw-1 {
  /* wordmark set in Playfair Display to match the logo lockup */
  font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.brand-word .bw-2 {
  font-family: var(--body); font-weight: 700; font-size: 0.6rem;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--green-mid);
  margin-top: 0.18rem;
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--sage); transition: width .2s ease;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 0.6rem 1.15rem; border-radius: 4px; letter-spacing: 0.12em;
}
.nav-cta:hover { background: var(--green-deep); }
@media (max-width: 880px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  padding: 0.85rem 1.7rem; border-radius: 4px;
  font-family: var(--body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(20,42,32,0.22); }
.btn-primary:hover { transform: translateY(-2px); background: var(--green-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-light { background: var(--cream); color: var(--green); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.btn-light:hover { transform: translateY(-2px); background: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--green-deep) url("/images/photos/hero.jpg") center/cover no-repeat;
  transform-origin: center;
  animation: kenburns-c 32s ease-in-out infinite alternate;
}
/* slow left-to-right pan with a gentle push-in, as if taking in the whole pool */
@keyframes kenburns-c {
  from { transform: scale(1.16) translateX(6%); }
  to   { transform: scale(1.24) translateX(-6%); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,42,32,0.92) 0%, rgba(20,42,32,0.72) 34%, rgba(20,42,32,0.12) 68%, rgba(20,42,32,0.04) 100%),
    linear-gradient(0deg, rgba(20,42,32,0.5) 0%, rgba(20,42,32,0) 40%);
}
.hero-inner {
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 8.5rem) var(--pad) clamp(4rem, 10vw, 7rem);
}
.hero .eyebrow { color: var(--sage); }
.hero .eyebrow::before { background: var(--sage); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 0.55em; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero .rule { width: 3.5rem; height: 3px; background: var(--sage); border: 0; margin: 0 0 1.4rem; }
.hero .tagline {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem); font-weight: 400;
  max-width: 33ch; margin: 0 0 2rem; color: rgba(255,255,255,0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- by the numbers (under hero) ---------- */
.features { background: var(--green); }
.features .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 2.6rem; padding-bottom: 2.6rem;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; }
.stat + .stat { border-left: 1px solid rgba(169,184,146,0.22); }
.stat-num {
  font-family: var(--display); font-weight: 600; color: var(--sage);
  font-size: clamp(2.4rem, 5.2vw, 3.5rem); line-height: 0.95; letter-spacing: -0.01em;
}
.stat-unit { font-size: 0.42em; margin-left: 0.12em; letter-spacing: 0.02em; }
.stat-label {
  font-family: var(--body); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #cdd8c0;
}
@media (max-width: 620px) {
  .features .wrap { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .stat:nth-child(odd) { border-left: 0; }
}

/* ---------- split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
/* photo splits get equal columns so the image has more presence */
.split.reverse { grid-template-columns: 1fr 1fr; }
.split.reverse .split-media { order: -1; }
.split-media img {
  width: 100%; display: block; border-radius: 6px;
  box-shadow: var(--lift);
  outline: 1px solid rgba(20,42,32,0.06); outline-offset: -1px;
}
.media-frame { position: relative; }
.media-frame figcaption {
  font-family: var(--body); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.7rem;
}
/* desktop: the photo fills the row height, sitting as a tall panel beside the
   text rather than a small box floating in the middle of the row */
@media (min-width: 821px) {
  .split-media { align-self: stretch; }
  .split-media img { height: 100%; object-fit: cover; }
}
@media (max-width: 820px) {
  /* both selectors so the more-specific .split.reverse columns are overridden too */
  .split, .split.reverse { grid-template-columns: 1fr; gap: 1.8rem; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- site map ---------- */
.site-map-wrap { margin-top: clamp(2.2rem, 5vw, 3.6rem); }
.site-map { margin: 0; }
.site-map svg,
.site-map img {
  width: 100%; height: auto; display: block;
  border-radius: 8px;
  box-shadow: var(--lift);
  outline: 1px solid rgba(20,42,32,0.06); outline-offset: -1px;
}
.site-map figcaption {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- aerial feature ---------- */
.aerial { margin: 0; }
.aerial img {
  width: 100%; display: block; border-radius: 8px;
  box-shadow: var(--lift);
  outline: 1px solid rgba(20,42,32,0.06); outline-offset: -1px;
}
.aerial figcaption {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; text-align: center; }
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  border-radius: 6px; box-shadow: var(--lift);
}
.gallery-grid figcaption {
  margin-top: 0.7rem; font-family: var(--body); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 1.6rem; max-width: 26rem; margin-left: auto; margin-right: auto; }
}

/* ---------- lightbox ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(13,28,18,0.94);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff; cursor: pointer;
  font-size: 1.05rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.26); }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 1.1rem;
  text-align: center; color: rgba(255,255,255,0.82);
  font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.08em;
}
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }

/* ---------- stock board ---------- */
.stockboard {
  background: var(--green); color: #eef1e8;
  border-radius: 6px; padding: 1.7rem 1.6rem;
  box-shadow: 0 22px 55px rgba(20,42,32,0.22);
}
.stockboard h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.stockboard .eyebrow { color: var(--sage); margin-bottom: 0.8rem; }
.stockboard .eyebrow::before { background: var(--sage); }
.stocklist { font-size: 0.97rem; }
.stocklist .row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px dashed rgba(169,184,146,0.35);
}
.stocklist .row:last-child { border-bottom: 0; }
.stocklist .row span:last-child { color: var(--sage); font-weight: 700; }

/* ---------- THE FOURTEEN – signature ---------- */
.pegs-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pegs-num { font-family: var(--display); font-weight: 500; font-size: clamp(4rem, 12vw, 8rem); line-height: 0.9; color: var(--sage); }
/* nudge the heading in so the big 14 stands proud to its left */
.pegs-grid h2 { margin-left: clamp(0.8rem, 3.5vw, 2.4rem); }
.peg-map { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.peg-map .water { fill: url(#waterGradC); stroke: rgba(169,184,146,0.4); stroke-width: 1.5; }
.peg { transform-box: fill-box; transform-origin: center; transition: transform .2s ease; }
.peg circle { fill: var(--green-deep); stroke: var(--sage); stroke-width: 1.5; transition: fill .2s ease; }
.peg text { fill: var(--sage); font-family: var(--body); font-size: 13px; font-weight: 700; }
.peg:hover { transform: scale(1.22); }
.peg:hover circle { fill: var(--sage); }
.peg:hover text { fill: var(--green-deep); }
@media (max-width: 820px) { .pegs-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- tick lists ---------- */
ul.ticks { list-style: none; padding: 0; margin: 1.3rem 0; }
ul.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.5rem; height: 0.5rem; background: var(--green-mid); transform: rotate(45deg);
}
.band--pine ul.ticks li::before { background: var(--sage); }
.cols-2 { columns: 2; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; }
@media (max-width: 640px) { .cols-2 { columns: 1; } }

/* ---------- opening times ---------- */
.hours-line { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--green); margin: 0.4rem 0 0.6rem; }
.band--pine .hours-line { color: var(--sage); }
.hours-meta { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- tickets / prices ---------- */
.tickets { max-width: 40rem; margin: 2.2rem auto 1.4rem; border-top: 2px solid var(--green); }
.ticket-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); }
.ticket-row .t-name { font-weight: 700; font-size: 1.02rem; }
.ticket-row .t-sub { display: block; font-family: var(--body); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.ticket-row .t-price { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--green-mid); white-space: nowrap; }
.note { font-size: 0.97rem; color: var(--muted); }

/* ---------- visit / coordinate ---------- */
.coord {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 0.9rem;
  color: var(--green); background: rgba(169,184,146,0.22); text-decoration: none;
  border: 1px solid rgba(79,107,74,0.35); border-radius: 3px; padding: 0.15rem 0.5rem;
}
a.coord:hover { background: rgba(169,184,146,0.4); }

/* ---------- book CTA ---------- */
.cta-band { background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .measure { color: rgba(255,255,255,0.9); }
.cta-band .note { color: rgba(255,255,255,0.7); margin-top: 1.3rem; }
.cta-band .eyebrow { color: var(--sage); justify-content: center; }
.cta-band .eyebrow::before { background: var(--sage); }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(233,239,224,0.72); padding: 3rem var(--pad) 2.6rem; text-align: center; }
.footer-mark { height: 92px; width: auto; margin: 0 auto 0.6rem; display: block; }
.site-footer nav { display: flex; gap: 1.3rem; justify-content: center; margin: 0.6rem 0; }
.site-footer a { color: rgba(233,239,224,0.72); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.site-footer a:hover { color: var(--sage); }
.site-footer .smallprint { font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(233,239,224,0.45); margin-top: 0.8rem; }

/* ---------- draft banner ---------- */
.draft-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fef3cd; color: #6b5400; border-top: 1px solid #ecd98f;
  text-align: center; font-family: var(--body); font-size: 0.72rem;
  letter-spacing: 0.04em; padding: 0.45rem var(--pad);
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .peg { transition: none; }
  .hero-media { animation: none; transform: scale(1.04); }
}
