/* ==========================================================
   WordPress adaptations: what the static build didn't need,
   plus the Concept 05 logo pieces. Loads after site.css; the
   colour scheme loads after this.
   ========================================================== */

:root {
  --contour: #dfe3c8;   /* hero / band line colour; schemes override */
}

/* The eyebrow colour can differ by ground. The fallback resolves on
   the element itself, so it still follows .section--dark. */
.eyebrow { color: var(--eyebrow, var(--fg-soft)); }

.hero-art svg,
.band-art svg { color: var(--contour); }

.hero--page { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* ---------- navigation ----------
   wp_nav_menu() wraps each link in ul > li; site.css styles bare <a>s. */

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
@media (max-width: 1020px) {
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav a { display: block; }
}

/* The green header button already says "Book a club in", so the matching menu
   item is a duplicate once the button is on screen. site.css hides that button
   under 1020px, so below that the menu item stays -- it is the only way in.
   The footer menu keeps it at every width. */
@media (min-width: 1021px) {
  .site-nav .menu-item--booking { display: none; }
}

/* ---------- basket ----------
   Sits between the "Book a club in" button and the menu toggle, so it is
   reachable at every width without opening the menu. The badge is brass: the
   header is cream, not dark, so the number is pine on brass (about 6:1)
   rather than brass on cream (about 1.9:1, unreadable). */

.bys-basket {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;            /* touch target */
  height: 44px;
  color: var(--ink);
  border-radius: 50%;
  transition: color 0.2s ease;
}

.bys-basket svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bys-basket:hover { color: var(--pine-mid); }

.bys-basket:focus-visible,
.bys-basket-menu:focus-visible {
  outline: 3px solid var(--pine-mid);
  outline-offset: 2px;
}

.bys-basket-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: var(--brass);
  color: var(--pine);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* the same link as plain text inside the menu panel */
.bys-basket-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.bys-basket-menu .bys-basket-count {
  position: static;
  line-height: 18px;
}

/* On desktop the icon is already on screen, so the menu copy would just be a
   duplicate -- same treatment as the "Book a club in" menu item. */
@media (min-width: 1021px) {
  .site-nav .menu-item--basket { display: none; }
}

/* At phone width the row is: brand, basket, toggle. The header's 1.9rem gap
   left it a few pixels short once the basket was added, and flex answered by
   shrinking the brand until it wrapped to two lines. A tighter gap here keeps
   the brand on one line and the header at its original height. */
@media (max-width: 1020px) {
  .header-right { gap: 0.75rem; }
}

/* keep the sticky header clear of the admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- brand: horizontal lockup (header) ----------
   Fixed brand artwork, so hard values rather than scheme tokens. */

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #00693E;
}
.brand-mark img {
  position: absolute;
  inset: 5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFFFFF;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; gap: 3px; }
.site-header .brand-name {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #16301F;
}
.site-header .brand-sub {
  font-family: Manrope, sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #C9A227;
}

@media (max-width: 520px) {
  .brand { gap: 10px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-mark img { inset: 4px; width: 38px; height: 38px; }
  .site-header .brand-name { font-size: 15px; }
}

.custom-logo-link img { max-height: 60px; width: auto; }

/* ---------- brand: badge (footer) ----------
   Proportions from the 270px spec: disc inset 32/270, rings 4 and 6px. */

.badge {
  --badge-size: 140px;
  position: relative;
  flex: none;
  width: var(--badge-size);
  height: var(--badge-size);
}
.badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00693E;
}
.badge-disc {
  position: absolute;
  inset: 11.852%;
  border-radius: 50%;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow:
    0 0 0 calc(var(--badge-size) * 0.0148) #00693E,
    0 0 0 calc(var(--badge-size) * 0.0222) #C9A227;
}
.badge-disc img { width: 100%; height: 100%; object-fit: contain; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.badge-word  { font-family: "Chakra Petch", sans-serif; font-weight: 700; fill: #FFFFFF; }
.badge-strap { font-family: Manrope, sans-serif; font-weight: 600; fill: #F7F6F1; }

.badge--reversed .badge-ring {
  background: #16301F;
  border: calc(var(--badge-size) * 0.0074) solid #C9A227;
}
.badge--reversed .badge-disc {
  background: #F7F6F1;
  box-shadow:
    0 0 0 calc(var(--badge-size) * 0.0148) #16301F,
    0 0 0 calc(var(--badge-size) * 0.0222) #C9A227;
}
.badge--reversed .badge-word { fill: #F7F6F1; }

.footer-brand .badge { margin-bottom: 1.4rem; }

/* ---------- the hole (Our Work) ----------
   The drawing sits on its own card, inset from the column edge like the
   rest of the page's content rather than running to it. */

.hole {
  background: var(--sage);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: clamp(0.75rem, 2.5vw, 2rem);
}

/* Stops are map callouts: a compact label above a pin dot, joined by a
   short stem, so a label never covers the feature it names. The dot sits
   exactly on the generated anchor (the button's left/top). */
.hole-map .hole-marker,
.hole-map .hole-marker:hover,
.hole-map .hole-marker[data-empty="true"]:hover {
  transform: translate(-50%, calc(-100% - 14px));
}
.hole-map .hole-marker {
  min-width: 0;
  gap: 0;
  padding: 0.4rem 0.8rem 0.45rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(11, 40, 20, 0.22);
}
.hole-map .hole-marker::before,
.hole-map .hole-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}
.hole-map .hole-marker::before {            /* stem */
  top: 100%;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  background: var(--cream-warm);
}
.hole-map .hole-marker::after {             /* pin dot */
  top: calc(100% + 14px);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--cream-warm);
  border: 2px solid var(--pine);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hole-map .hole-marker[aria-pressed="true"]::before { background: var(--pine); }
.hole-map .hole-marker[aria-pressed="true"]::after  { background: var(--brass); }
.hole-map .hole-marker .m-stop  { font-size: 0.55rem; }
.hole-map .hole-marker .m-club  { font-size: 0.78rem; }
.hole-map .hole-marker .m-count { font-size: 0.62rem; }

/* ---------- gallery tiles all the same size ----------
   Every row takes the tallest tile's height, and each caption fills the slack,
   so a caption that wraps onto a second line no longer makes its tile taller. */

.gallery-grid { grid-auto-rows: 1fr; align-items: stretch; }
.gallery-grid .tile { display: flex; flex-direction: column; }
.gallery-grid .tile-art { flex: none; }
.gallery-grid .tile-caption { flex: 1; align-items: flex-start; }

/* ---------- click-to-enlarge (PhotoSwipe, js/lightbox.js) ---------- */

.tile-art img,
.card-photo img,
.tile--photo img { cursor: zoom-in; }
.tile-art img:focus-visible,
.card-photo img:focus-visible,
.tile--photo img:focus-visible { outline: 3px solid var(--pine-mid); outline-offset: -3px; }

.pswp { --pswp-bg: #16301F; }
.pswp__bys-caption {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(90vw, 60ch);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: rgba(22, 48, 31, 0.8);
  color: #F7F6F1;
  font-family: Manrope, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}
.pswp__bys-caption:empty { display: none; }

/* ---------- service cards: a real build of that kind, not a flat colour swatch ---------- */

.card-photo {
  aspect-ratio: 3 / 2;
  margin-bottom: 1.4rem;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- home: the secondary repairs line under the service cards ---------- */

.services-note {
  max-width: 62ch;
  margin: 2.75rem auto 0;
  text-align: center;
  color: var(--fg-soft);
}
.services-note .link-arrow { margin-left: 0.6rem; white-space: nowrap; }

/* ---------- a light section on the secondary ground (sand / sage) ---------- */

.section--sand { --bg: var(--sage); }

/* ---------- club care plan ---------- */

.plan-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .plan-pricing { grid-template-columns: 1fr; } }

.price-group + .price-group { margin-top: 2.5rem; }
.price-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.price-row strong { display: block; font-weight: 600; }
.price-row .note { display: block; color: var(--fg-soft); font-size: 0.9rem; margin-top: 0.15rem; }
.price-row .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pine-mid);
  white-space: nowrap;
  text-align: right;
  line-height: 1.1;
}
.price-row .price small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.example-card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.example-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.example-sum { color: var(--fg-soft); }
.example-sum + .example-sum { margin-top: 0.5rem; }
.example-sum strong { color: var(--pine-mid); font-weight: 700; }
.example-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--fg-soft);
}

.cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}
@media (max-width: 760px) { .cover-grid { grid-template-columns: 1fr; } }
.cover-title { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cover-list { list-style: none; }
.cover-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.cover-list li::before { flex: none; width: 1.1em; font-weight: 700; }
.cover-list--yes li::before { content: "\2713"; color: var(--accent); }
.cover-list--no li::before  { content: "\2715"; color: var(--fg-soft); }

.plan-note {
  max-width: 70ch;
  margin: 2.75rem auto 0;
  text-align: center;
  color: var(--fg-soft);
  font-size: 0.95rem;
}

/* a photo shown whole rather than cropped to the 4:3 gallery frame */
.tile--photo img { width: 100%; height: auto; }

/* The Fluent Forms enquiry-form styling that used to live here moved to
   css/retired/enquiry-form.css when the enquiry and booking forms were merged.
   It is no longer enqueued: nothing on the site renders that form. */

/* ---------- band used as a page hero (Book a club in) ----------
   site.css sizes .band h2 for the call-to-action bands; a band standing in
   as the top of a page carries an h1 instead, so it needs the same treatment. */

.band h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  max-width: 18ch;
  margin: 0 auto 1.1rem;
}

.band .lede {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--fg-soft);
}

/* ---------- editor content (page.php) ---------- */

.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.entry-content ul,
.entry-content ol { padding-left: 1.25em; }
/* Links in editor content.
   Buttons are excluded on purpose. WooCommerce renders the cart, account and
   order-received buttons as <a> inside .entry-content, and this selector
   (0,1,1) outranks the button's own colour in shop.css (0,1,0) -- which
   painted "Proceed to Checkout" the same green as its background, readable
   only on hover, where (0,2,0) won it back. Buttons keep their own colour. */
.entry-content a:not(.wp-element-button):not(.button):not(.wc-block-components-button) {
  color: var(--accent);
}

/* site.css spaces .card > p, but copy that sits inside .card-body needs it
   too -- the services cards run to two paragraphs. */
.card-body p + p { margin-top: 0.7rem; }

/* ---------- fine print ----------
   Quieter than body copy, for the sort of line that qualifies what sits above
   it: the ceramic guarantee on the services page, for instance. */

.fine-print {
  margin-top: 0.85rem;
  color: var(--fg-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---------- the featured review ----------
   One review carries more weight than the other three, so it sits on its own
   above the row: same .quote-card, wider measure and larger type. */

.quote-card--featured {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

/* Two class names, so this outranks the scheme's own .quote-card blockquote
   rule -- schemes load after this file. Font family is left to the scheme. */
.quote-card.quote-card--featured blockquote {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.55;
}

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

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.footer-social li { margin: 0; list-style: none; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;            /* tap target */
  height: 44px;
  border: 1px solid rgba(244, 242, 228, 0.22);
  border-radius: 50%;
  color: #b3c4b4;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--cream);
  border-color: var(--sage);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
