/*
Theme Name: Smile Golf Academy
Template: smilegolf
Author: HANIN.NZ
Description: The academy site of the Smile Golf network: programmes by place, age and level, what's on, and private lessons booked with LatePoint.
Version: 0.1.0
Requires PHP: 8.0
Text Domain: smilegolf-academy
*/

/*
 * The parent sets the network's tokens: the smiley's yellow, the wordmark's
 * green, Nunito. The academy leans on white space and photographs, with
 * yellow for the actions a parent takes (book, enrol) and for the footer.
 * The tournament site uses the same tokens with green leading.
 */

:root {
  --wrap: 76rem;
  --photo-radius: 0.75rem;
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);
}

body { overflow-x: clip; }

/* Leaves room under the footer for the phone action bar. */
@media (max-width: 47.99em) {
  .academy-footer { padding-bottom: calc(1.5rem + 4.5rem + env(safe-area-inset-bottom)); }
}

h1, h2, h3 { text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }

/* ---------------------------------- buttons, links */
.button { text-align: center; }
.button--small { padding: 0.55rem 1.15rem; font-size: var(--step--1); }
.button--light { background: var(--paper); color: var(--green); }
.button--light:hover { background: var(--range); }
.button--outline { color: inherit; }
.button--outline:hover { background: var(--range); }
.button--yellow:focus-visible,
.button--light:focus-visible { outline-color: var(--green); box-shadow: none; }

.text-link {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: var(--green); }

/* ---------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.brand__mark { width: 2.6rem; height: auto; }
.brand__word { width: clamp(11rem, 8rem + 6vw, 14.5rem); height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  display: block;
  padding: 0.4rem 0;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current] { box-shadow: inset 0 -3px 0 var(--yellow); }
.site-nav__book { padding: 0.6rem 1.2rem; font-size: var(--step--1); white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: var(--green);
  font: 800 var(--step--1) var(--font);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 71.99em) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1.5rem 2rem rgba(19, 63, 26, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
  .site-nav ul a:hover,
  .site-nav ul a[aria-current] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 0.75rem; }
  .site-nav__book { align-self: flex-start; }
}

/* ---------------------------------- layout */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.section--tight { padding-top: 0; }
.section--range {
  max-width: none;
  background: var(--range);
  padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter));
}

.section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}
.section__head--row > div { max-width: 46rem; }
.section__intro { margin-top: 0.75rem; font-size: var(--step-1); color: var(--ink-soft); }
.section__intro p + p { margin-top: 0.6em; }

.empty { padding: 1.5rem 0; color: var(--ink-soft); font-size: var(--step-1); }
.empty a { font-weight: 700; }

.prose p + p,
.prose ul,
.prose h2,
.prose h3 { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); }
.prose { font-size: var(--step-1); line-height: 1.6; max-width: 40rem; }

/* ---------------------------------- page head */
.page-head {
  display: grid;
  gap: 2rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--gutter) clamp(2rem, 1rem + 3vw, 3.5rem);
}
.page-head h1 { font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.75rem); }
.contact .page-head h1 { font-size: var(--step-3); }
.page-head__label { margin-bottom: 0.9rem; font-weight: 800; color: var(--ink-soft); }
.page-head__label a { text-decoration: none; }
.page-head__label a:hover { text-decoration: underline; }
.page-head__intro { max-width: 38rem; margin-top: 1.1rem; font-size: var(--step-1); color: var(--ink-soft); }
.page-head__intro p + p { margin-top: 0.6em; }
.page-head__meta { margin-top: 0.75rem; font-weight: 700; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.page-head__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius); }

@media (min-width: 56em) {
  .page-head--photo { grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
}

/* ---------------------------------- home: hero */
.hero {
  position: relative;
  display: grid;
  min-height: min(48rem, 88svh);
  color: var(--paper);
  background: var(--green);
  overflow: hidden;
}
.hero__photo,
.hero__text { grid-area: 1 / 1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Darkens the lower left, where the words sit, and leaves the rest of the photo alone. */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(15deg, rgba(10, 34, 14, 0.78) 0%, rgba(10, 34, 14, 0.35) 45%, rgba(10, 34, 14, 0) 70%);
}
.hero__text {
  position: relative;
  align-self: end;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem var(--gutter) clamp(2.5rem, 2rem + 4vw, 5rem);
}
.hero__title {
  max-width: 12ch;
  font-size: clamp(3.25rem, 1.5rem + 7vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero__intro { max-width: 32rem; margin-top: 1.25rem; font-size: var(--step-1); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------------------------------- home: level finder */
.finder__list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--green); }
.finder__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.finder__who { font-size: var(--step-1); color: var(--ink-soft); }
.finder__level { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.finder__level strong { font-size: var(--step-2); font-weight: 900; letter-spacing: -0.02em; }
.finder__level span { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.finder__go {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--range);
  transition: background-color 0.15s ease;
}
.finder__go::after {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin: 1.05rem auto 0;
  border-top: 2.5px solid var(--green);
  border-right: 2.5px solid var(--green);
  transform: translateX(-2px) rotate(45deg);
}
.finder__row:hover .finder__go { background: var(--yellow); }
.finder__row:hover strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

@media (min-width: 48em) {
  .finder__row { grid-template-columns: 1fr 1fr auto; }
  .finder__go { grid-row: auto; grid-column: auto; }
  .finder__level { order: -1; }
}

/* ---------------------------------- locations */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.place__photo { position: relative; display: block; margin-bottom: 1.1rem; }
.place__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius); }
.place--soon .place__photo img { filter: grayscale(0.85) contrast(0.9); opacity: 0.75; }
/* A place without a photo yet: the academy's mark on a quiet block. */
.place__blank {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--photo-radius);
  background: var(--paper);
  border: 1.5px dashed var(--line);
}
.place__blank img { width: 28%; height: auto; opacity: 0.35; }
.place__soon {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius);
  background: var(--yellow);
  font-size: var(--step--1);
  font-weight: 800;
}
.place__area { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.place__name { margin: 0.2rem 0 0.75rem; font-size: var(--step-2); font-weight: 900; }
.place__name a { text-decoration: none; }
.place__name a:hover { text-decoration: underline; }
.place__programmes { margin: 0 0 1rem; padding: 0; list-style: none; }
.place__programmes li { border-top: 1px solid var(--line); }
.place__programmes li:last-child { border-bottom: 1px solid var(--line); }
.place__programmes a { display: block; padding: 0.55rem 0; text-decoration: none; }
.place__programmes a:hover { text-decoration: underline; }
.place__summary { margin-bottom: 1rem; color: var(--ink-soft); }

/* ---------------------------------- what's on: fixtures */
/* The same scorecard rows as the tournament list on the tournament site. */
.fixtures { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--green); }
.fixture {
  display: grid;
  grid-template-columns: 10rem 1fr auto auto;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.fixture__date { font-weight: 900; font-size: var(--step-1); letter-spacing: -0.01em; white-space: nowrap; }
.fixture__what h3 { font-size: var(--step-1); }
.fixture__what h3 a { text-decoration: none; }
.fixture__what h3 a:hover { text-decoration: underline; }
.fixture__what p { margin-top: 0.2rem; font-size: var(--step--1); color: var(--ink-soft); }
.fixture__price { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); max-width: 19rem; text-align: right; }

@media (max-width: 47.99em) {
  .fixture { grid-template-columns: 1fr auto; }
  .fixture__date { grid-column: 1 / -1; font-size: var(--step-0); }
  .fixture__price { grid-column: 1; text-align: left; }
  .fixture__action { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}

/* ---------------------------------- photo and text */
.split { display: grid; gap: 2rem; align-items: center; }
.split__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius); }
.split__text > * + * { margin-top: 1.25rem; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
  .split--flip .split__photo { order: 2; }
}

.price-list { margin: 0; padding: 0; list-style: none; max-width: 28rem; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-1);
}
.price-list small { color: var(--ink-soft); font-size: var(--step--1); font-weight: 700; }
.price-list strong { font-weight: 900; }

/* ---------------------------------- play, grow, belong */
.pillars__grid { display: grid; gap: 2rem; }
.pillar h3 {
  margin-bottom: 0.6rem;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.pillar h3::after { content: "."; color: var(--yellow); -webkit-text-stroke: 1px var(--green); }
.pillar p { color: var(--ink-soft); }
.pillars__photo { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pillars__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--photo-radius); }
@media (min-width: 48em) {
  .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
}

/* ---------------------------------- reviews */
.reviews { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; padding: 1.75rem; background: var(--paper); border-radius: var(--photo-radius); }
.review blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; }
.review blockquote p::before { content: "“"; display: block; height: 1.4rem; font-size: 3rem; font-weight: 900; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1px var(--green); }
.review__who { font-weight: 800; }
.review__who span { margin-left: 0.4rem; font-weight: 600; color: var(--ink-soft); }
@media (min-width: 56em) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------- news */
.news { display: grid; gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.news__item a { display: block; text-decoration: none; }
.news__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius); margin-bottom: 0.9rem; }
.news__item time { display: block; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.news__title { display: block; margin-top: 0.25rem; font-size: var(--step-1); font-weight: 800; line-height: 1.3; }
.news__item a:hover .news__title { text-decoration: underline; }

.article__photo { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.article__photo img { width: 100%; max-height: 40rem; object-fit: cover; border-radius: var(--photo-radius); }
.article__body { margin: 0 auto; padding: 2.5rem var(--gutter) var(--section); }

.nav-links { display: flex; gap: 1rem; margin-top: 2rem; font-weight: 700; }

/* ---------------------------------- programmes: filters and cards */
.filters {
  display: grid;
  gap: 1rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
}
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.filters__group legend { float: left; width: 4.5rem; margin-right: 0.25rem; font-weight: 800; font-size: var(--step--1); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 700;
  white-space: nowrap;
}
.chip small { font-weight: 700; color: var(--ink-soft); }
.chip input:hover + span { border-color: var(--green); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--paper); }
.chip input:checked + span small { color: var(--yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 47.99em) {
  .filters__group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters__group::-webkit-scrollbar { display: none; }
  .filters__group legend { float: none; flex: none; width: auto; }
}
.filters__count { margin-bottom: 1rem; font-weight: 700; color: var(--ink-soft); }

.programmes { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.programme { display: flex; flex-direction: column; }
.programme[hidden] { display: none; }
.programme__photo { position: relative; display: block; }
.programme__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius); }
.programme__date {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  background: var(--paper);
  font-size: var(--step--1);
  font-weight: 800;
}
.programme__body { display: flex; flex-direction: column; flex: 1; padding-top: 1rem; }
.programme__type { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.programme__title { margin-top: 0.2rem; font-size: var(--step-2); font-weight: 900; line-height: 1.1; }
.programme__title a { text-decoration: none; }
.programme__title a:hover { text-decoration: underline; }
.programme__summary { margin-top: 0.6rem; color: var(--ink-soft); }
.programme__facts { margin: 1rem 0 0; font-size: var(--step--1); }
.programme__facts div { display: grid; grid-template-columns: 4rem 1fr; gap: 0.75rem; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.programme__facts dt { font-weight: 800; }
.programme__facts dd { margin: 0; }
.programme__actions { display: flex; align-items: center; gap: 1.25rem; margin-top: auto; padding-top: 1.25rem; }
.section--range .programme__date { background: var(--range); }

/* ---------------------------------- programme page: classes to enrol in */
.sessions { scroll-margin-top: 5rem; }
.sessions h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }
@media (min-width: 48em) {
  .sessions .fixture { grid-template-columns: 13.5rem 1fr auto auto; }
}
/* A weekly class's date is two lines: "4 Sundays" over its date range. */
.sessions .fixture__date { white-space: normal; line-height: 1.2; }
.session__closed { font-size: var(--step--1); font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.sessions + .section { padding-top: 0; }

/* ---------------------------------- programme page: facts */
.facts { max-width: 52rem; margin: 0; border-top: 2px solid var(--green); }
.facts__row { display: grid; gap: 0.25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts__row dt { font-weight: 800; }
.facts__row dd { margin: 0; }
@media (min-width: 40em) {
  .facts__row { grid-template-columns: 11rem 1fr; }
}
.facts__actions { margin-top: 2rem; }
.facts + .prose { margin-top: 2.5rem; }

/* ---------------------------------- levels */
.levels { display: grid; gap: 3rem; margin: 0; padding: 0; list-style: none; }
.level { display: grid; gap: 1.5rem; align-items: start; }
.level__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius); }
.level__tag { font-size: var(--step--1); font-weight: 800; color: var(--ink-soft); }
.level h2 { margin: 0.2rem 0 0.75rem; }
.level h2 a { text-decoration: none; }
.level h2 a:hover { text-decoration: underline; }
.level__body > p { font-size: var(--step-1); color: var(--ink-soft); }
.level__sub { margin: 1.5rem 0 0.5rem; font-size: var(--step-0); }
.level__body .button { margin-top: 1.5rem; }
@media (min-width: 48em) {
  .levels { grid-template-columns: repeat(2, 1fr); gap: 4rem 2.5rem; }
}

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.4rem 0 0.4rem 1.6rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.photo-row { display: grid; gap: 0.75rem; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.photo-row img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-radius); }
@media (min-width: 40em) {
  .photo-row--2 { grid-template-columns: 1fr 1fr; }
  .photo-row--3 { grid-template-columns: 2fr 1fr 1fr; }
  .photo-row--3 img { aspect-ratio: auto; max-height: 26rem; }
}

.two-lists { display: grid; gap: 2.5rem; }
.two-lists h2 { font-size: var(--step-2); margin-bottom: 1rem; }
@media (min-width: 48em) { .two-lists { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.faq__list { max-width: 52rem; border-top: 2px solid var(--green); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: var(--step-1);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.25rem; max-width: 42rem; color: var(--ink-soft); }

/* ---------------------------------- about */
.points { display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.points h3 { margin-bottom: 0.5rem; }
.points p { color: var(--ink-soft); }
@media (min-width: 48em) { .points { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem; } }
@media (min-width: 72em) { .points { grid-template-columns: repeat(4, 1fr); } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 1rem 0 1rem 3rem; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
  line-height: 2rem;
  text-align: center;
}
.steps h3 { font-size: var(--step-0); }
.steps p { margin-top: 0.25rem; color: var(--ink-soft); }

/* ---------------------------------- private lessons */
.offers { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.offer { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; border: 1.5px solid var(--line); border-radius: var(--photo-radius); background: var(--paper); }
.offer p { color: var(--ink-soft); }
.offer__price { font-size: var(--step-3); font-weight: 900; color: var(--ink) !important; letter-spacing: -0.03em; line-height: 1; }
.offer__price span { font-size: var(--step--1); font-weight: 700; letter-spacing: 0; color: var(--ink-soft); }
.offer .button { align-self: flex-start; margin-top: auto; }

.coaches { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.coach { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: start; }
.coach__photo { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; }
.coach__photo--none { display: grid; place-items: center; background: var(--yellow); font-size: var(--step-2); font-weight: 900; }
.coach__role { font-weight: 700; color: var(--ink-soft); }
.coach p + p { margin-top: 0.4rem; }
.coach .text-link { display: inline-block; margin-top: 0.6rem; }
@media (min-width: 56em) { .coaches { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }

.booking { scroll-margin-top: 5rem; }
.booking__notes { margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: var(--step--1); }
.booking__notes li + li { margin-top: 0.25rem; }
.notice { padding: 1.25rem 1.5rem; background: var(--range); border-radius: var(--photo-radius); }

/* ---------------------------------- call to action band */
.cta { text-align: center; }
.cta h2 { font-size: var(--step-2); }
.cta > p { margin-top: 0.75rem; color: var(--ink-soft); font-size: var(--step-1); }
.cta .cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

/* ---------------------------------- contact and forms */
.contact {
  display: grid;
  gap: 1rem 4rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-bottom: var(--section);
}
.contact .page-head { padding-inline: 0; }
.contact__intro,
.contact__form { padding-inline: var(--gutter); }
.contact__ways { margin: 0; padding: 0; list-style: none; font-size: var(--step-1); font-weight: 800; }
.contact__ways li { padding: 0.4rem 0; }
.contact__note { margin-top: 1.5rem; color: var(--ink-soft); }
@media (min-width: 60em) {
  .contact { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .contact__form { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
}

.form__grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 36em) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__field--wide { grid-column: 1 / -1; }
}
.form__field label { display: block; margin-bottom: 0.35rem; font-weight: 800; font-size: var(--step--1); }
.form__optional { font-weight: 600; color: var(--ink-soft); }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--yellow); }
.form__actions { margin-top: 1.5rem; }
.form__error { margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: 0.6rem; background: #fdecea; color: #8a1c12; font-weight: 700; }
.form__trap { position: absolute; left: -9999px; }
.form-done { padding: 2rem; border-radius: var(--photo-radius); background: var(--yellow); font-size: var(--step-1); font-weight: 700; }

/* ---------------------------------- phone action bar */
.action-bar { display: none; }
@media (max-width: 47.99em) {
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  .action-bar__item {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--green);
    font-weight: 800;
    font-size: var(--step--1);
    text-align: center;
    text-decoration: none;
  }
  .action-bar__item--book { background: var(--yellow); border-color: var(--yellow); }
}

/* ---------------------------------- footer */
.academy-footer {
  background: var(--yellow);
  color: var(--green);
  padding: clamp(3rem, 2rem + 4vw, 5rem) var(--gutter) 1.5rem;
}
.academy-footer__inner,
.academy-footer__word,
.academy-footer__legal { max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.academy-footer__inner {
  display: grid;
  gap: 2.5rem 2rem;
  margin: 0 auto;
}
@media (min-width: 48em) {
  .academy-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .academy-footer__pga { grid-column: 1 / -1; }
}
@media (min-width: 72em) {
  .academy-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .academy-footer__pga { grid-column: auto; }
}
.academy-footer__lede { font-size: var(--step-2); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.academy-footer__links { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 1.25rem; font-weight: 700; }
.academy-footer a { text-decoration: none; }
.academy-footer a:hover { text-decoration: underline; }
.academy-footer__nav h2 { font-size: var(--step-0); font-weight: 900; margin-bottom: 0.75rem; }
.academy-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.academy-footer__nav li { padding: 0.2rem 0; }
.academy-footer__pga { display: grid; grid-template-columns: 4rem 1fr; gap: 0.25rem 1rem; align-content: start; font-size: var(--step--1); font-weight: 700; }
.academy-footer__pga img { width: 4rem; mix-blend-mode: multiply; border-radius: 50%; }
.academy-footer__pga a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

.academy-footer__word { margin: clamp(3rem, 6vw, 5rem) auto 0; }
.academy-footer__word img { width: 100%; }

.academy-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(19, 63, 26, 0.25);
  font-size: var(--step--1);
  font-weight: 700;
}


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