/* Genuine Golf — rebuilt from the live WordPress/Elementor design.
   Layout: sticky white header (centred logo over a letter-spaced menu), full-bleed photo or black
   bands, an 880px reading column, black footer. One deliberate light look, matching the live site. */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-light: #f6f6f6;
  --grey-mid: #7a7a7a;
  --green: #006747;
  --overlay: rgba(0, 0, 0, 0.52);
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --col: 880px;
  --header-h: 129px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-transform: uppercase; line-height: 1.1; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: var(--white); padding: 8px 14px; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--white);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 12px 14px;
  display: grid; justify-items: center; gap: 14px;
}
.site-header .logo img { width: 175px; height: auto; }
.menu-toggle { display: none; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px;
}
.site-nav a {
  text-decoration: none; text-transform: uppercase;
  font-size: 14.4px; font-weight: 700; letter-spacing: 3px; color: var(--black);
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--grey-mid); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 860px) {
  :root { --header-h: 84px; }
  .site-header { grid-template-columns: 44px 1fr 44px; align-items: center; padding-block: 10px; gap: 0; }
  .site-header .logo { grid-column: 2; justify-self: center; }
  .site-header .logo img { width: 150px; }
  .menu-toggle {
    display: grid; place-items: center; grid-column: 3; width: 44px; height: 44px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--black);
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
  }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
  .menu-open .menu-toggle span { background: transparent; }
  .menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { grid-column: 1 / -1; width: 100%; display: none; }
  .menu-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 0; padding-block: 12px 8px; }
  .site-nav a { display: block; padding: 12px 0; }
}

/* ---------- Hero (photo) ---------- */
.hero {
  position: relative; display: grid; place-items: center; text-align: center;
  color: var(--white); background: var(--black) center / cover no-repeat;
  padding-block: 96px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.hero > .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); }
.hero p { font-size: 15px; line-height: 1.75; max-width: 720px; }
.hero .lead { font-size: clamp(18px, 2vw, 25.6px); line-height: 1.4; }
.hero--home { min-height: max(560px, calc(100svh - var(--header-h))); background-image: url("images/home-hero.jpg"); }
.hero--instruction { min-height: 540px; background-image: url("images/instruction-hero.jpg"); background-position: center 30%; }
/* Old-site proportions on computers: Home photo one full screen tall, Instruction photo 600px. */
@media (min-width: 861px) {
  .hero--home { min-height: max(560px, 100vh); }
  .hero--home h1 { white-space: nowrap; }
  .hero--instruction { min-height: 600px; }
}
.wrap--hero { max-width: calc(1140px + 32px); }
/* Home: plain black, headline only. */
.hero--plain { background-image: none; background-color: var(--black); }
.hero--plain::before { display: none; }
/* Home fits one screen: header + black section + footer, no scrolling. */
body:has(.hero--plain) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(.hero--plain) main { flex: 1; display: flex; }
/* Extra 48px on top balances the footer's 48px top padding, so the headline sits midway between header and footer logo. */
body:has(.hero--plain) .hero--plain { flex: 1; min-height: 0; padding-block: 88px 40px; }
@media (min-width: 861px) { body:has(.hero--plain) .hero--plain { min-height: 0; } }
.hero--home p { max-width: 800px; }
.wrap--story { max-width: calc(960px + 32px); }
.hero--instruction::before { background: rgba(0, 0, 0, 0.38); }
.hero--brands { min-height: 240px; padding-block: 64px; background-image: url("images/brands/brands-banner.jpg"); }
.hero--brands::before { background: rgba(0, 0, 0, 0.35); }

.buttons { display: grid; gap: 18px; width: min(340px, 100%); margin-top: 12px; }
.btn {
  display: block; text-align: center; text-decoration: none; text-transform: uppercase;
  background: var(--white); color: var(--black);
  font-size: 13.5px; font-weight: 700; letter-spacing: .5px; padding: 8px 16px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--tight-top { padding-top: 0; }
.section--black { background: var(--black); color: var(--white); }
/* Price pages (Club Fitting / Club Repair): equal 60px above and below the title. */
.section.section--black { padding-top: 60px; padding-bottom: 12px; } /* 12px + footer's 48px = 60px to the footer logo */
.section--black .page-title { margin-bottom: 60px; }
.page-title { font-size: clamp(34px, 5.4vw, 64px); text-align: center; margin-bottom: 40px; }
.section-title { font-size: clamp(30px, 4vw, 48px); text-align: center; margin-bottom: 22px; }
.prose { display: grid; gap: 18px; }
.prose--center { text-align: center; }
/* Links match the surrounding text and are underlined (no green). */
.prose a, .green-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .green-link:hover { text-decoration-thickness: 2px; }
/* Instruction: even 60px rhythm between sections. */
.section.section--even { padding-block: 60px; }
.section.section--even.section--tight-top { padding-top: 0; }
.section--even .section-title { margin-bottom: 24px; }

/* ---------- Our Story ---------- */
.slideshow { position: relative; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; background: var(--black); margin-block: 40px; }
.slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.slideshow img.is-active { opacity: 1; }
.slideshow img:first-child { opacity: 1; }
.slideshow.is-ready img:first-child:not(.is-active) { opacity: 0; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.slide-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45);
}
.slide-dots button[aria-current="true"] { background: var(--white); }

.story { display: grid; gap: 22px; margin-top: 72px; }
.story h2 { font-size: clamp(30px, 4vw, 48px); }
.story-body { position: relative; display: grid; gap: 18px; }
.story-body.is-clamped { max-height: calc(1.7em * 3); overflow: hidden; }
.story-body.is-clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.7em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
}
.read-more {
  justify-self: start; background: none; border: 0; padding: 0 0 4px; cursor: pointer;
  font: inherit; font-size: 12.5px; text-transform: uppercase; color: var(--grey-mid);
  border-bottom: 2px solid var(--grey-mid);
}
.read-more:hover { color: var(--black); border-color: var(--black); }

/* ---------- Price lists (Club Fitting / Club Repair) ---------- */
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.price-list--compact { gap: 18px; }
.price-row { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 17.5px; }
.price-row .name { min-width: 0; }
.price-row .dots { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted rgba(255, 255, 255, .85); transform: translateY(-5px); }
.price-row .price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-desc { margin-top: 12px; font-size: 14.5px; line-height: 1.85; }
.repair-cta { text-align: center; margin-top: 72px; display: grid; gap: 8px; }
.repair-cta h2 { font-size: clamp(22px, 3vw, 32px); }
.repair-cta p { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14.4px; }
/* Phones: about 60px from the last content to the footer logo. Black pages merge with the black footer
   (12px + footer's 48px = 60px); white pages get a 60px white margin before the footer. */
@media (max-width: 600px) {
  .section { padding-bottom: 60px; }
  .section.section--black { padding-bottom: 12px; }

}
@media (max-width: 560px) {
  .price-row { font-size: 15px; gap: 8px; }
  .price-row .dots { flex-basis: 16px; min-width: 16px; }
}

/* ---------- Instruction ---------- */
.instructor { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.instructor-text { display: grid; gap: 18px; font-size: 16px; line-height: 1.7; min-width: 0; }
.instructor-text h3 { font-size: 32px; }
.instructor img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
/* Computers: wider text, photo narrower and stretched to the text's height (cropped, Rich centred). */
@media (min-width: 761px) {
  .instructor { grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; }
  .instructor img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 55% center; }
}
@media (max-width: 760px) {
  .instructor { grid-template-columns: 1fr; gap: 24px; }
  .instructor img { order: -1; }
}

/* ---------- Brands ---------- */
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.brand-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--grey-light); }
.brand-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.brand-grid a:hover img { transform: scale(1.04); }
.wrap--wide { max-width: calc(1440px + 32px); }
.brands-note { text-align: center; margin-top: 48px; font-size: 20px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 600px) { .brands-note { font-size: clamp(13px, 4.2vw, 18px); letter-spacing: .5px; } }
@media (max-width: 1100px) { .brand-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
@media (max-width: 700px) { .brand-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } .brand-grid a { border-radius: 10px; } }

/* ---------- Shop ---------- */
.shop { display: grid; justify-items: center; text-align: center; }
.shop .page-title { margin-bottom: 40px; }
.shop-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.shop-logos img { width: 200px; height: auto; }
.shop-divider { width: 1px; align-self: stretch; min-height: 60px; background: var(--black); opacity: .25; }
.shop-tagline { font-size: clamp(20px, 2.6vw, 28px); margin-top: 44px; }
.shop-text { max-width: 640px; margin-top: 16px; }
.shop .btn { margin-top: 32px; width: min(340px, 100%); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
@media (max-width: 600px) {
  .shop-logos { gap: 24px; }
  .shop-logos img { width: 140px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); text-align: center; padding-block: 48px 56px; }
.site-footer .wrap { display: grid; justify-items: center; gap: 14px; }
.site-footer .logo img { width: 200px; height: auto; margin-bottom: 8px; }
.footer-contact a, .footer-contact span { font-size: 14.4px; font-weight: 700; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; }
.footer-contact { display: grid; gap: 10px; }
.social { display: flex; gap: 8px; margin-block: 4px; }
.social a {
  width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--black);
  display: grid; place-items: center; text-decoration: none; font-size: 15px;
}
.social a:hover { background: var(--grey-mid); }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-note { font-style: italic; font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Hidden from view, still read by screen readers and search engines. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Brands: same black button as the Shop page. */
.brands-cta { display: flex; justify-content: center; margin-top: 60px; }
.brands-cta .btn { width: min(340px, 100%); }
@media (max-width: 360px) { .btn { font-size: 12px; letter-spacing: .2px; } }
