/* Eight Pawn Chess Academy: light theme (warm ivory, white cards), golds taken from the logo */

:root {
  --bg: #fbf8f2;              /* page: warm ivory */
  --bg-2: #f4ede0;            /* alternate sections: soft sand */
  --surface: #ffffff;         /* cards */
  --footer: #f1e8d8;
  --line: #e9dfcc;            /* hairlines and card borders */
  --line-strong: #9a855f;     /* outlines of controls: ghost buttons, inputs (3:1) */
  --text: #221c14;
  --text-2: #4a4032;          /* navigation */
  --muted: #665b4b;
  --card-shadow: 0 1px 2px rgba(60, 40, 10, 0.05), 0 16px 34px -26px rgba(60, 40, 10, 0.35);

  --gold: #a8752b;            /* icons and small accents (3:1 on light) */
  --gold-light: #d4a253;      /* the logo's gold: glows, fills, decoration */
  --gold-deep: #8a5a1c;       /* gold text: eyebrows, links, hovers (4.5:1) */
  --gold-soft: #fbf1dc;       /* light gold icon tiles */
  --gold-grad: linear-gradient(135deg, #f6d78f 0%, #d4a253 48%, #b98236 100%);   /* buttons, dark label */
  --gold-text-grad: linear-gradient(135deg, #a2712a 0%, #7d4f17 100%);           /* large gold words */
  --gold-line: rgba(168, 117, 43, 0.35);

  --cream: #fbf8f2;
  --ink: #221c14;
  --ink-muted: #665b4b;
  --ink-line: #e9dfcc;

  --wa: #25d366;
  --wa-ink: #1a8a4a;          /* WhatsApp green for icons on light */
  --offer: #17733f;           /* 5% website discount */
  --offer-bg: #e3f4ea;

  --radius: 18px;
  --font-display: "Cinzel", Georgia, serif;          /* logo-style labels */
  --font-head: "Fraunces", Georgia, serif;            /* headings */
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --gutter: 20px;             /* space between the page edge and the content */
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Read by screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold-light);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lead {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-gold {
  background: var(--gold-grad);
  color: #1a1307;
  box-shadow: 0 10px 26px -12px rgba(168, 117, 43, 0.55);
}

.btn-gold:hover {
  box-shadow: 0 14px 34px -10px rgba(168, 117, 43, 0.65);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-wa {
  background: var(--wa);
  color: #052e12;
}

.btn-wa:hover {
  background: #2fe070;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(251, 248, 242, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: auto;
  height: 44px;
  filter: drop-shadow(0 1px 1px rgba(80, 55, 20, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-deep);
}

.nav-cta {
  min-height: 42px;
  padding: 8px 18px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 80px;
  background:
    radial-gradient(60% 60% at 80% 25%, rgba(212, 162, 83, 0.24), transparent 70%),
    radial-gradient(40% 50% at 5% 95%, rgba(212, 162, 83, 0.12), transparent 70%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(rgba(138, 90, 28, 0.035) 0 25%, transparent 0 50%) 0 0 / 120px 120px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.4em;
  font-size: clamp(2.4rem, 1.3rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* Brand name sits inside the h1 so search engines read it as the page's main heading */
.hero h1 .eyebrow {
  display: block;
  line-height: 1.4;
}

.hero .lead {
  font-size: 1.15rem;
}

.picks-label {
  margin: 28px 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-picks {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pick:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 36px -24px rgba(60, 40, 10, 0.5);
  transform: translateX(4px);
}

.pick-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-line);
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.pick-icon svg {
  width: 26px;
  height: 26px;
}

.pick-icon svg:not(.icon) {
  fill: currentColor;
}

.pick-text {
  display: grid;
  flex: 1;
  line-height: 1.3;
}

.pick-text strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.pick-text small {
  font-size: 0.86rem;
  color: var(--muted);
}

.pick-arrow {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--gold-deep);
}

.hero-copy > * {
  animation: rise 0.7s ease both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

/* Hero puzzle: a real position to solve */
.puzzle {
  justify-self: center;
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 60px -36px rgba(60, 40, 10, 0.5);
}

.puzzle-head {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.puzzle-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.puzzle-head strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid #3a2c1a;
  border-radius: 8px;
}

.sq {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
}

.sq.light { background: #f0e2c3; }
.sq.dark { background: #b98a4c; }

/* File letters on the bottom row, rank numbers on the left column */
.sq[data-sq$="1"]::after,
.sq[data-sq^="a"]::before {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.75;
}

.sq[data-sq$="1"]::after {
  content: attr(data-file);
  right: 3px;
  bottom: 2px;
}

.sq[data-sq^="a"]::before {
  content: attr(data-rank);
  left: 3px;
  top: 3px;
}

.sq.light::before, .sq.light::after { color: #9a6f35; }
.sq.dark::before, .sq.dark::after { color: #f6ead0; }

.pc {
  width: 82%;
  height: 82%;
  transition: transform 0.35s ease;
}

.pc-w {
  fill: #fffaf0;
  stroke: #2f2414;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.pc-b {
  fill: #261d12;
  stroke: #261d12;
  stroke-width: 1;
}

.board.is-live .sq:has(.pc-w),
.board.is-live .sq.can-drop {
  cursor: pointer;
}

.sq.is-picked {
  box-shadow: inset 0 0 0 3px #f6c453;
}

.sq.is-from,
.sq.is-to {
  background-image: linear-gradient(rgba(246, 196, 83, 0.45), rgba(246, 196, 83, 0.45));
}

.sq.is-mated {
  background-image: radial-gradient(circle, rgba(200, 40, 30, 0.75) 0 45%, transparent 70%);
}

.board.is-wrong {
  animation: nudge 0.35s ease;
}

@keyframes nudge {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.puzzle-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.puzzle-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-2);
}

.puzzle-status a {
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: underline;
}

.puzzle-status.is-solved {
  font-weight: 600;
  color: var(--offer);
}

.puzzle-reveal {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.puzzle-reveal:hover {
  border-color: var(--ink);
}

.puzzle-reveal[hidden] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}


/* Sections */

.section {
  padding: clamp(72px, 8vw, 120px) 0;
}

/* Highlights band at the foot of the hero */
.highlights {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.highlights li + li {
  border-left: 1px solid var(--line);
}

.highlights a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 20px 24px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.highlights a:hover {
  background: var(--gold-soft);
}

.highlights strong {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gold-deep);
}

.highlights span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

/* Classes */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.facts li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-2);
}

.facts strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.sub-head {
  margin: 64px 0 20px;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
}

.levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Each card's six parts share rows with its neighbours, so text, dividers and buttons line up */
.level {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  row-gap: 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  cursor: pointer;    /* js/main.js books the course from a click anywhere on the card */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.level:hover,
.level:focus-within {
  border-color: var(--gold);
  box-shadow: 0 18px 40px -24px rgba(212, 162, 83, 0.6);
}

/* Arriving from "Book a class": the cards glow twice to show where to tap */
#courses:target .level {
  animation: pick-course 1.2s ease 0.5s 2;
}

@keyframes pick-course {
  50% {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 4px rgba(212, 162, 83, 0.28);
  }
}

/* Each level has its own colour (text on tint >= 4.5:1) */
.level {
  --tone: var(--gold-deep);
  --tone-bg: var(--gold-soft);
}

.level-pawn { --tone: #a2470f; --tone-bg: #fde6d4; }
.level-knight { --tone: #1d6a50; --tone-bg: #d9f0e6; }
.level-rook { --tone: #7d5809; --tone-bg: #faeec4; }
.level-king { --tone: #2a4d88; --tone-bg: #dfe8fa; }

.level-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 0;
  border-radius: 16px;
  background: var(--tone-bg);
  color: var(--tone);
}

.level-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.level-tag {
  justify-self: start;
  align-self: start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tone-bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone);
}

.level h3 {
  margin: 10px 0 8px;
  font-size: 1.45rem;
}

.level-desc {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.level-for {
  margin: 0 0 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
}


/* Colours switch together with the gold background (a gradient can't fade), so the label never
   disappears mid-change; the card's own hover already shows what will be booked */
.level .btn {
  align-self: end;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.level .btn:hover {
  transform: none;
}

.level:hover .btn,
.level .btn:focus-visible {
  border-color: transparent;
  background: var(--gold-grad);
  color: #1a1307;
}

/* Mentoring */

.mentor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 64px;
}

.checklist {
  margin: 8px 0 32px;
}

.checklist li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 14px;
  height: 2px;
  background: var(--gold);
}

.steps {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 28px 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* The line joining the numbers */
.steps::before {
  content: "";
  position: absolute;
  left: 45px;
  top: 52px;
  bottom: 52px;
  width: 1px;
  background: var(--gold-line);
}

.step {
  position: relative;
  display: flex;
  gap: 18px;
}

.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.step h3,
.step h4 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Clocks (light section) */

.section-light {
  background: var(--cream);
  color: var(--ink);
}

.section-light .eyebrow {
  color: var(--gold-deep);
}

.section-light .lead {
  color: var(--ink-muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* position: relative keeps the hidden screen-reader text in the buttons inside the card,
   so it can't stick out of the phone swipe row and widen the page */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px -32px rgba(60, 40, 10, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(60, 40, 10, 0.5);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 40px 24px 20px;
  background: radial-gradient(70% 70% at 50% 45%, #fff 0%, #f1e7d1 100%);
}

/* Product photos have white backgrounds; multiply lets the card's cream show through */
.product-photo {
  width: 88%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* The chess set photo has a grey studio background, so it sits in the card as a framed photo */
.product-photo-framed {
  border-radius: 14px;
  mix-blend-mode: normal;
  box-shadow: 0 14px 30px -18px rgba(60, 40, 10, 0.55);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Two badges on one card: a row across the top that wraps when the card is narrow */
.badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
}

.badges .badge {
  position: static;
}

.badge-offer {
  background: var(--offer);
  color: #fff;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.product h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.product-tag {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.price {
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 2px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--gold-soft);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.price strong {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--gold-deep);
}

.price-off {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--offer);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

/* "5% off" note under the shop heading */
.offer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px solid #bfe3cd;
  border-radius: 14px;
  background: var(--offer-bg);
  color: var(--offer);
  font-weight: 700;
}

/* Buy / Rent summary popup: a fixed head (photo, name, close, Buy / Rent), a scrolling middle,
   and a fixed foot (total and WhatsApp button) */
html:has(.product-dialog[open]) {
  overflow: hidden;
}

.product-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: pd-in 0.22s ease-out;
}

.product-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(40, 25, 5, 0.5);
  overflow: hidden;
}

/* Parts switched off for Buy or Rent (.price sets its own display, which would beat [hidden]) */
.product-dialog [hidden] {
  display: none;
}

.product-dialog::backdrop {
  background: rgba(34, 28, 20, 0.55);
  backdrop-filter: blur(3px);
}

@keyframes pd-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.pd-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, #fff 0%, var(--bg) 100%);
}

.pd-thumb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 64px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(70% 70% at 50% 45%, #fff 0%, #f1e7d1 100%);
}

.pd-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
}

.pd-thumb img.is-framed {
  border-radius: 6px;
  mix-blend-mode: normal;
}

.pd-type {
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.pd-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.pd-close {
  align-self: start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.pd-close:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.pd-close .icon {
  width: 20px;
  height: 20px;
}

.pd-switch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}

.pd-switch button {
  min-height: 40px;
  padding: 6px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.pd-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.pd-body {
  flex: 1;
  min-height: 0;
  padding: 18px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pd-body .price {
  margin-bottom: 14px;
}

.pd-summary {
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.pd-best {
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-2);
}

.pd-best strong {
  color: var(--text);
}

/* Features as small chips, so they take a couple of lines instead of a list */
.pd-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.pd-features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.pd-features .icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--gold-deep);
  stroke-width: 2.6;
}

/* Rent: the rental price table (per set, per day) */
.pd-rent {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--gold-soft);
  font-size: 0.9rem;
  color: var(--text-2);
}

.pd-rent-lead {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.pd-rates {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.pd-rates th {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-rates td {
  padding: 6px 8px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.pd-rates td:last-child,
.pd-rates th:last-child {
  text-align: right;
}

.pd-rates small {
  font-weight: 500;
  color: var(--muted);
}

.pd-rates tr.is-current td {
  background: var(--surface);
  color: var(--gold-deep);
  font-weight: 800;
}

.pd-rent-notes {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.pd-days {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 16px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: var(--gold-soft);
}

.pd-days label {
  font-size: 0.92rem;
  font-weight: 700;
}

.pd-days-note {
  margin: -8px 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
}

.pd-order {
  margin-bottom: 4px;
}

.pd-order-title {
  margin: 0 0 2px;
  font-size: 1rem;
}

.pd-order-hint {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pd-items {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.pd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pd-item.is-chosen {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.pd-item-name {
  display: grid;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.pd-item-name small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.pd-item-name small:empty {
  display: none;
}

.pd-item-name del {
  margin-right: 4px;
}

/* Price calculation (Buy only) */
.pd-bill {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
}

.pd-bill-title {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.pd-bill-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 4px 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.pd-bill-row > span:first-child {
  display: grid;
}

.pd-bill-row small {
  font-size: 0.78rem;
  color: var(--muted);
}

.pd-bill-row > span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

.pd-bill-row.is-sub {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.pd-bill-row.is-save {
  color: var(--offer);
  font-weight: 700;
}

.pd-bill-row.is-grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 800;
}

.pd-bill-row.is-grand > span:last-child {
  font-weight: 800;
  color: var(--gold-deep);
}

.pd-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -12px 24px -20px rgba(60, 40, 10, 0.4);
}

.pd-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 10px;
}

.pd-total strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.pd-total span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--offer);
}

.pd-total.is-empty strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.stepper {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}

.stepper button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.stepper button:hover {
  color: var(--gold-deep);
}

.stepper input {
  width: 48px;
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pd-send {
  width: 100%;
}

.pd-send.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Phones: the popup becomes a sheet that slides up from the bottom */
@media (max-width: 640px) {
  .product-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .product-dialog[open] {
    animation-name: pd-up;
  }

  @keyframes pd-up {
    from { transform: translateY(40px); opacity: 0; }
  }

  .pd-head {
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .pd-thumb {
    width: 76px;
    height: 52px;
  }

  .pd-heading h2 {
    font-size: 1.2rem;
  }

  .pd-body {
    padding: 16px;
  }

  .pd-foot {
    padding: 10px 16px 14px;
  }
}

.ticks {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.ticks .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--gold-deep);
  stroke-width: 2.4;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.product-actions .btn {
  min-height: 46px;
  padding: 10px 16px;
}

/* Mentor profile, at the top of the 1:1 mentoring section */
.mentor-profile {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.mentor-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.mentor-info h3 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.mentor-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.mentor-rating strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
}

.mentor-lead {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
}

.subhead {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.mentor-wins {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.mentor-wins li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mentor-wins .icon {
  margin-top: 2px;
  color: var(--gold);
}

.mentor-wins span {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--muted);
}

.mentor-wins strong {
  color: var(--ink);
}

/* Short mentor card on the online classes page, linking to the full profile */
.mentor-mini {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  margin: 28px 0 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.mentor-mini-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.mentor-mini h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.mentor-mini .eyebrow {
  margin-bottom: 4px;
}

.mentor-mini .ticks {
  margin-bottom: 12px;
}

.text-link {
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Service cards in the Tournaments section (sets on rent, Swiss-Manager): icon and title,
   an optional price under them, text, ticks, and the buttons at the foot. .service-dark is the dark one. */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.service > p {
  color: var(--muted);
}

.service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-bottom: 16px;
}

.service-head .eyebrow {
  margin-bottom: 2px;
  font-size: 0.75rem;
}

.service-head h3 {
  margin: 0;
  font-size: 1.5rem;
}

.service-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.service-icon .icon {
  width: 28px;
  height: 28px;
}

.service-price {
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.service-price strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold-deep);
}

.split .service-price {
  display: inline-block;
  margin-bottom: 20px;
}

.ticks-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
}

.service-note {
  font-size: 0.95rem;
}

.service-note strong {
  color: var(--ink);
}

.service-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.service-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #f6ecd9;
}

.service-dark h3 {
  color: #fff;
}

.service-dark > p,
.service-dark .ticks li {
  color: #d9ccb4;
}

.service-dark .eyebrow,
.service-dark .ticks .icon,
.service-dark .text-link {
  color: var(--gold-light);
}

.service-dark .service-icon {
  border-color: rgba(212, 162, 83, 0.4);
  background: rgba(212, 162, 83, 0.12);
  color: var(--gold-light);
}

.service-dark .service-foot {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* Big laptop drawing beside the Swiss-Manager text on the rental page */
.service-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold);
}

.service-art .icon {
  width: 40%;
  height: auto;
  stroke-width: 1.2;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list li > a,
.contact-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease;
}

.contact-list li > a:hover {
  border-color: rgba(212, 162, 83, 0.5);
}

.contact-list small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list strong {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.ci {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(212, 162, 83, 0.12);
  color: var(--gold-deep);
}

.ci-wa {
  background: rgba(37, 211, 102, 0.14);
  color: var(--wa-ink);
}

.contact-main {
  flex-wrap: wrap;
  border-color: var(--gold-line);
}

.contact-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.contact-actions .btn {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.enquiry {
  padding: 32px;
  border: 1px solid rgba(212, 162, 83, 0.25);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 60px -36px rgba(60, 40, 10, 0.35);
}

.enquiry h3 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(168, 117, 43, 0.25);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

textarea::placeholder {
  color: #7a6f5d;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

select:invalid {
  color: #7a6f5d;
}

option {
  background: var(--surface);
  color: var(--text);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Footer */

.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--footer);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  margin-bottom: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-tag {
  margin: 16px 0 0;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a:hover {
  color: var(--gold-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* Floating WhatsApp button, raised above Netlify's free-plan badge (64px tall, bottom-right) */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float .icon {
  width: 30px;
  height: 30px;
}

/* Landing pages (rental, clocks, classes) */

.page-hero {
  padding: calc(var(--header-h) + 36px) 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(212, 162, 83, 0.18), transparent 70%),
    var(--bg);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.08;
}

.page-hero .lead {
  max-width: 720px;
}

.crumbs {
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--gold-deep);
  text-decoration: underline;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* The chess set photo is 468px wide; keep it at that size or smaller so it stays sharp */
.page-photo {
  justify-self: center;
  width: 100%;
  max-width: 468px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -32px rgba(60, 40, 10, 0.55);
}

.narrow {
  max-width: 760px;
}

.steps-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.steps-row::before {
  display: none;
}

.qa dt {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
}

.qa dd {
  margin: 4px 0 0;
  color: var(--text-2);
}

.qa a,
.note a {
  color: var(--gold-deep);
  text-decoration: underline;
}

.note {
  margin: 20px 0 0;
  color: var(--text-2);
}

.facts-top {
  margin-top: 24px;
}

.compare-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

/* Photo row and caption row line up across both clocks */
.compare-photos figure {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: radial-gradient(70% 70% at 50% 45%, #fff 0%, #f1e7d1 100%);
  text-align: center;
}

.compare-photos img {
  width: 80%;
  margin: 0 auto 10px;
}

.compare-photos figcaption {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare thead th {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--bg-2);
}

.compare tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--text-2);
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

.compare .btn {
  min-height: 42px;
  padding: 8px 18px;
}

/* Responsive */

@media (max-width: 1024px) {
  /* Five menu links, the logo and the WhatsApp button still fit on one line down to 901px */
  .nav,
  .nav-links {
    gap: 20px;
  }

  .products,
  .levels,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  /* An odd last product takes the whole row, photo beside the text, so it isn't left alone */
  .product:last-child:nth-child(odd) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
  }

  .product:last-child:nth-child(odd) .product-media {
    aspect-ratio: auto;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle .i-shut,
  .nav-open .nav-toggle .i-open {
    display: none;
  }

  .nav-open .nav-toggle .i-shut {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 8px 16px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 40px -16px rgba(60, 40, 10, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--text);
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero-grid,
  .mentor-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .mentor-profile {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .highlights {
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
  }

  .highlights li + li {
    border-left: 0;
  }

  .highlights li:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .highlights li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hero-grid {
    gap: 24px;
  }

  .puzzle {
    max-width: 420px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .mentor-grid,
  .contact-grid {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  /* Courses and products become rows you swipe through, edge to edge, with the next card peeking in */
  .levels,
  .products {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .levels::-webkit-scrollbar,
  .products::-webkit-scrollbar {
    display: none;
  }

  .level,
  .product {
    scroll-snap-align: start;
  }

  /* Smaller badges so "FIDE approved" and "5% off online" share one row on a phone card */
  .badge {
    padding: 5px 9px;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .product:last-child:nth-child(odd) {
    display: flex;
    grid-column: auto;
  }

  .product:last-child:nth-child(odd) .product-media {
    aspect-ratio: 16 / 10;
  }

  .product:hover {
    transform: none;
  }

  .facts {
    gap: 16px;
    margin-top: 32px;
  }

  .service {
    padding: 22px 20px;
  }

  .service-foot .btn {
    flex: 1 1 100%;
  }

  .mentor-profile {
    padding: 20px;
  }

  .mentor-grid {
    margin-top: 40px;
  }

  .mentor-photo {
    aspect-ratio: 4 / 3;
    object-position: center 20%;
  }

  .mentor-profile .btn {
    width: 100%;
  }

  .mentor-wins {
    grid-template-columns: 1fr;
  }

  .highlights a {
    padding: 16px;
  }

  .mentor-mini {
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
  }

  .mentor-mini h3 {
    font-size: 1.35rem;
  }

  .service-art {
    display: none;
  }

  .form-actions .btn {
    flex: 1 1 100%;
  }

  /* Shorter page on phones: less air between sections */
  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .sub-head {
    margin: 44px 0 16px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .puzzle {
    padding: 14px;
  }

  .steps {
    gap: 22px;
    padding: 20px 18px;
  }

  .steps::before {
    left: 39px;
  }

  .split,
  .steps-row,
  .compare-photos {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .compare-photos {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .compare-photos figure {
    padding: 14px;
  }

  .page-actions .btn {
    flex: 1 1 100%;
  }

  .contact-actions {
    width: 100%;
    margin-left: 0;
  }

  .contact-actions .btn {
    flex: 1;
  }

  .enquiry {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wa-float {
    right: 16px;
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
