/* Accord Fitness | site styles
   Palette: black, charcoal, white and red.
   Red text on dark uses --red; red text on light uses --red-ink (WCAG AA). */

:root {
  --black: #171717;
  --charcoal: #1f1f1f;
  --charcoal-2: #262626;
  --line: #2a2a2a;
  --white: #ffffff;
  --paper: #f4f4f4;
  --ink: #121212;
  --muted: #bdbdbd;
  --muted-ink: #4d4d4d;
  --line-light: #dcdcdc;
  --red: #e52b20;
  --red-hi: #ff5a4e;
  --red-deep: #b91f16;
  --red-ink: #c41f15;
  --max: 1200px;
  --gutter: 20px;
  --header-h: 76px;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red-hi);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
}

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

/* ---------- Typography ---------- */

.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.25rem);
}

h3 {
  font-size: 1.15rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.section-light .kicker,
.section-paper .kicker {
  color: var(--red-ink);
}

.section-light .kicker::before,
.section-paper .kicker::before {
  background: var(--red-ink);
}

.lead {
  max-width: 36em;
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.btn-red {
  background: linear-gradient(135deg, var(--red-hi) 0%, var(--red) 55%, var(--red-deep) 100%);
  color: var(--black);
  box-shadow: 0 10px 30px -12px rgba(229, 43, 32, 0.55);
}

.btn-red:hover {
  box-shadow: 0 14px 36px -10px rgba(229, 43, 32, 0.75);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--red);
  color: var(--black);
}

.btn-whatsapp {
  background: var(--white);
  color: var(--black);
}

.btn-whatsapp:hover {
  background: var(--red);
  color: var(--white);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.74rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(23, 23, 23, 0.94);
  border-bottom: 1px solid rgba(229, 43, 32, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--red);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle .bars {
  position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .bars::before {
  top: -7px;
}

.nav-toggle .bars::after {
  top: 7px;
}

.nav-open .nav-toggle .bars {
  background: transparent;
}

.nav-open .nav-toggle .bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  overflow-y: auto;
  padding: 24px var(--gutter) 40px;
  background: var(--black);
}

.nav-open .site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list > li {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.nav-list > li > a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.nav-list a[aria-current="page"] {
  color: var(--red);
}

.dropdown-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}

.has-dropdown.is-open .dropdown-toggle::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.dropdown {
  display: none;
  padding: 0 0 14px 14px;
}

.has-dropdown.is-open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  color: var(--red);
}

.nav-join {
  margin-top: 24px;
  width: 100%;
}

/* ---------- Full coach profiles (trainers.html) ---------- */

.coach-profiles .section-head .red,
.profile-headline .red,
.profile-closing .red {
  color: var(--red-hi);
}

.profile {
  position: relative;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.profile-grid {
  display: grid;
  gap: 40px;
  align-items: start;
  grid-template-columns: 1fr;
}

.profile-media {
  margin: 0;
}

.profile-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(229, 43, 32, 0.5);
  box-shadow: 0 0 0 1px rgba(229, 43, 32, 0.25);
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s var(--ease);
}

.profile-frame:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 0 46px rgba(229, 43, 32, 0.5), 0 0 110px rgba(229, 43, 32, 0.2);
}

.profile-frame:hover img {
  transform: scale(1.03);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.profile-role {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-hi);
}

.profile-name {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--white);
  text-transform: uppercase;
}

.profile-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}

.contact-line {
  font-size: 1.05rem;
  color: var(--white);
}

.contact-line a {
  color: var(--red-hi);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.contact-label {
  margin-right: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-block {
  padding: 22px 22px 24px;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
}

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.block-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red-hi);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.tick-list {
  display: grid;
  gap: 12px;
}

.tick-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.45;
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}

.spec-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.spec-list .spec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid rgba(229, 43, 32, 0.45);
  color: var(--white);
  font-size: 1rem;
}

.spec-list .spec .dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: var(--red);
  box-shadow: 0 0 10px rgba(229, 43, 32, 0.9);
  border-radius: 50%;
}

.values {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.values li {
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--red);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  box-shadow: inset 0 0 18px rgba(229, 43, 32, 0.12);
}

.profile-closing {
  margin: 0;
  padding: 20px 22px;
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(229, 43, 32, 0.12), transparent 80%);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.profile-actions .btn {
  flex: 1 1 220px;
}

@media (min-width: 900px) {
  .profile-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .profile.reverse .profile-grid > :first-child {
    order: 2;
  }

  .profile-media {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .spec-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .profile {
    padding: 52px 0;
  }

  .profile-block {
    padding: 18px 16px 20px;
  }

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

/* ---------- Our Coaches (config-driven; photos cropped from the coach posters) ---------- */

.coach-card {
  padding: 0;
  overflow: hidden;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.coach-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 0 40px rgba(229, 43, 32, 0.45), 0 0 90px rgba(229, 43, 32, 0.18);
}

.coach-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid var(--red);
}

.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.coach-card:hover .coach-photo img {
  transform: scale(1.04);
}

.coach-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 26px;
}

.coach-role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-hi);
}

.coach-name {
  font-size: 1.2rem;
  color: var(--white);
}

.coach-tagline {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--white);
}

.coach-label {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips .chip {
  padding: 6px 10px;
  border: 1px solid rgba(229, 43, 32, 0.6);
  color: var(--white);
  font-size: 0.8rem;
  line-height: 1.3;
}

.coach-profile {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.coach-profile summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-hi);
  list-style: none;
}

.coach-profile summary::-webkit-details-marker {
  display: none;
}

.coach-profile summary::after {
  content: " +";
}

.coach-profile[open] summary::after {
  content: " \2212";
}

.coach-quals {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 0;
}

.coach-quals li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.coach-quals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 2px;
  background: var(--red);
}

/* ---------- Gym photography sections (index.html, gallery.html) ---------- */

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

.photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.photo img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease);
}

.photo:hover img {
  transform: scale(1.03);
}

.photo figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--charcoal-2);
}

.poster-pair {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.feature-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.fac-card {
  display: flex;
  flex-direction: column;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.fac-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
}

.fac-card .fac-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.fac-card .fac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.fac-card:hover .fac-img img {
  transform: scale(1.05);
}

.fac-card .fac-body {
  padding: 26px 24px 28px;
}

.fac-card h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.fac-card p {
  color: var(--muted);
}

.icon-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.icon-item {
  padding: 24px 18px;
  text-align: center;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
}

.icon-item .icon-ring {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}

.icon-item h3 {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--white);
}

.icon-item p {
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .poster-pair {
    grid-template-columns: 1fr 1fr;
  }

  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .split.reverse > :first-child {
    order: 2;
  }

  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Transformation gallery (success-stories.html, index.html) ---------- */

.tr-feature,
.tr-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.tr-feature:hover,
.tr-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 24px 50px -24px rgba(229, 43, 32, 0.45);
}

.tr-card[hidden] {
  display: none;
}

.tr-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  overflow: hidden;
}

.tr-open img {
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}

.tr-open:hover img,
.tr-open:focus-visible img {
  transform: scale(1.04);
}

.tr-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(23, 23, 23, 0.85);
  border: 1px solid var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.tr-open:hover .tr-zoom,
.tr-open:focus-visible .tr-zoom {
  opacity: 1;
  transform: none;
}

.tr-feature figcaption,
.tr-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 22px;
}

.tr-feature figcaption p,
.tr-card figcaption p {
  color: var(--muted);
  font-size: 0.95rem;
}

.tr-tag {
  align-self: flex-start;
  padding: 5px 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tr-feature .tr-open img {
  aspect-ratio: auto;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 40px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #3a3a3a;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.filter-btn:hover {
  border-color: var(--red);
}

.filter-btn[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, 0.94);
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px 56px;
}

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}

.lb-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(229, 43, 32, 0.5);
}

.lb-figure figcaption {
  max-width: 60ch;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(23, 23, 23, 0.9);
  border: 1px solid var(--red);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover {
  background: var(--red);
}

.lb-close {
  top: 16px;
  right: 16px;
}

.lb-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 639px) {
  .lightbox-stage {
    padding: 64px 12px 96px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lb-prev {
    left: 16px;
  }

  .lb-next {
    right: 16px;
  }
}

/* ---------- Brand logo (official Accord Fitness logo, assets/logo.png, 8:1) ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 40px;
  max-width: none;
}

.site-header .header-inner {
  max-width: 1320px;
}

.brand-footer img {
  height: 64px;
}

.site-footer .unit {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-hi);
}

/* ---------- Floating and mobile bars ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(229, 43, 32, 0.6);
  transition: transform 0.3s var(--ease);
}

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

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.mobile-action {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 96px 88px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(229, 43, 32, 0.22), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(229, 43, 32, 0.12), transparent 70%),
    linear-gradient(160deg, #1b1b1b 0%, var(--black) 70%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/gym/gym-strength-zone-interior.webp");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform-origin: center;
  animation: heroDrift 22s var(--ease) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.25) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.25) 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: 920px;
}

.hero-logo {
  width: clamp(200px, 26vw, 320px);
  height: auto;
  margin-bottom: 28px;
}

.hero-stack {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 .red {
  display: block;
  color: var(--red);
}

.hero-tagline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  z-index: 2;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--red);
  border-radius: 2px;
  animation: cue 1.8s var(--ease) infinite;
}

/* ---------- Page banner (inner pages) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: 120px 96px;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 90% 0%, rgba(229, 43, 32, 0.18), transparent 70%),
    linear-gradient(160deg, #1b1b1b 0%, var(--black) 75%);
  border-bottom: 1px solid rgba(229, 43, 32, 0.18);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: 104px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-black {
  background: var(--black);
  color: var(--white);
}

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

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

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

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .kicker {
  justify-content: center;
}

.section-head.center .kicker::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.section-head.center .kicker::before {
  display: none;
}

.section-head.center .lead {
  margin-inline: auto;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: 96px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(229, 43, 32, 0.25), transparent 70%),
    var(--black);
  border-top: 1px solid rgba(229, 43, 32, 0.2);
}

.cta-band h2 span {
  color: var(--red);
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

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

/* ---------- Cards ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 43, 32, 0.6);
  box-shadow: 0 24px 50px -24px rgba(229, 43, 32, 0.35);
}

.card-num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

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

.card .card-link {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.card .card-link:hover {
  text-decoration: underline;
}

.card-light {
  background: var(--white);
  border-color: var(--line-light);
  color: var(--ink);
}

.card-light h3 {
  color: var(--ink);
}

.card-light p {
  color: var(--muted-ink);
}

.card-light:hover {
  border-color: var(--red);
}

.card.featured {
  border-color: var(--red);
  background: linear-gradient(180deg, #2a1816 0%, var(--charcoal-2) 60%);
}

.badge {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 10px;
  background: var(--red);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Photo placeholders ----------
   Every .ph is a placeholder slot until a real photo is added.
   To replace one, swap the div for <img src="assets/..." alt="..."> at the same size. */

.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(229, 43, 32, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #2a1a18 0%, #141414 55%, #171717 100%);
  border: 1px solid rgba(229, 43, 32, 0.25);
}

.ph--tall {
  aspect-ratio: 3 / 4;
}

.ph--wide {
  aspect-ratio: 16 / 9;
}

.ph--square {
  aspect-ratio: 1 / 1;
}

.ph--light {
  background:
    repeating-linear-gradient(135deg, rgba(196, 31, 21, 0.07) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #e9e9e9 0%, #d9d9d9 100%);
  border-color: rgba(196, 31, 21, 0.3);
}

.ph-label {
  margin: 12px;
  padding: 4px 8px;
  background: rgba(10, 10, 10, 0.75);
  color: var(--red-hi);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ph--light .ph-label {
  background: rgba(255, 255, 255, 0.8);
  color: var(--red-ink);
}

.ph-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.5);
  display: grid;
  place-items: center;
}

.ph-play::after {
  content: "";
  margin-left: 6px;
  border-left: 16px solid var(--red);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* ---------- Split layouts ---------- */

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
}

.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

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

.section-light .feature,
.section-paper .feature {
  border-color: var(--line-light);
}

.section-light .feature-icon,
.section-paper .feature-icon {
  color: var(--red-ink);
  border-color: var(--red-ink);
}

.section-light .feature p,
.section-paper .feature p {
  color: var(--muted-ink);
}

.section-light .feature h3,
.section-paper .feature h3 {
  color: var(--ink);
}

.stat-row {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  padding: 22px 18px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
}

.stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Programmes ---------- */

.programme {
  padding-block: 80px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  border-top: 1px solid var(--line);
}

.programme:first-of-type {
  border-top: 0;
}

.programme .grid-2 {
  gap: 48px;
}

.programme h2 {
  margin-bottom: 18px;
}

.programme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(229, 43, 32, 0.5);
  color: var(--red-hi);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-muted {
  border-style: dashed;
  color: var(--muted);
  border-color: var(--muted);
}

.bullets {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--red);
}

.section-light .bullets li,
.section-paper .bullets li {
  color: var(--muted-ink);
}

/* ---------- Trainers ---------- */

.trainer-card {
  padding: 0;
  overflow: hidden;
}

.trainer-card .ph {
  border: 0;
  aspect-ratio: 4 / 5;
}

.trainer-body {
  padding: 24px 24px 28px;
}

.trainer-body .role {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.trainer-body h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  color: var(--white);
}

.trainer-body dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.trainer-body dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.trainer-body dd {
  color: var(--white);
  font-size: 0.95rem;
}

/* ---------- Membership ---------- */

.plan {
  text-align: left;
}

.plan .plan-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.plan .plan-price {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.plan .plan-headline {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}

.plan .plan-duration {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.plan-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.plan-actions .btn {
  width: 100%;
}

.trainer-enquire {
  margin: 22px 0 0;
}

.plan .plan-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  color: var(--muted);
}

.plan-list li::before {
  content: "+";
  margin-right: 10px;
  color: var(--red);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--muted);
}

.compare thead th {
  background: var(--charcoal-2);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.compare tbody td {
  color: var(--white);
}

/* ---------- Accordion (FAQ) ---------- */

.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 40px 22px 0;
  color: var(--muted);
}

/* ---------- Forms ---------- */

.form-card {
  padding: 36px 28px;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}

.form-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.form-card > p {
  margin-bottom: 26px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.field .req {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid #3a3a3a;
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 1rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 43, 32, 0.25);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #ff6b6b;
}

.field-error {
  min-height: 1em;
  font-size: 0.85rem;
  color: #ff8a8a;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
}

.consent-label input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 4px;
  padding: 0;
  accent-color: var(--red);
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: rgba(229, 43, 32, 0.1);
  color: var(--white);
  font-size: 0.95rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.form-status a {
  color: var(--red-hi);
}

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

/* ---------- Calculators ---------- */

.calc {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.result {
  margin-top: 24px;
  padding: 24px;
  background: var(--black);
  border: 1px solid rgba(229, 43, 32, 0.4);
}

.result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red);
}

.result p {
  margin-top: 8px;
  color: var(--muted);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #3a3a3a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--white);
}

.segmented input:checked + label {
  background: var(--red);
  border-color: var(--red);
  color: var(--black);
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--red-hi);
  outline-offset: 2px;
}

/* ---------- Gallery and stories ---------- */

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery .ph {
  aspect-ratio: 1 / 1;
}

.gallery .ph--span {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.ba-pair {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.ba-pair figure {
  position: relative;
}

.ba-pair figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  background: var(--black);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
}

.story .ba-pair .ph {
  aspect-ratio: 4 / 5;
}

.story h3 {
  color: var(--white);
  font-size: 1.1rem;
}

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

.quote {
  padding: 30px 26px;
  background: var(--charcoal-2);
  border-left: 3px solid var(--red);
}

.quote blockquote {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--white);
}

.quote figcaption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.quote .stars {
  margin-bottom: 16px;
  letter-spacing: 0.2em;
  color: var(--red);
}

.achievement {
  padding: 26px 22px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
}

.achievement strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
}

.achievement span {
  color: var(--muted);
  font-size: 0.92rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-card h3 {
  font-size: 1rem;
  color: var(--white);
}

.video-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.insta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.insta .ph {
  aspect-ratio: 1 / 1;
}

.insta-section {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(229, 43, 32, 0.16), transparent 70%),
    var(--charcoal);
}

.insta-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 1px solid var(--red);
  border-radius: 18px;
  color: var(--red);
}

.insta-icon svg {
  width: 30px;
  height: 30px;
}

.insta-handle {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-hi);
}

.insta-section .insta {
  margin-top: 48px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .insta-section .insta {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---------- Tips / blog ---------- */

.article {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article .meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
}

.article h3 {
  font-size: 1.1rem;
  color: var(--white);
}

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

/* ---------- Contact and location ---------- */

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

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line-light);
}

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-item h3 {
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--red-ink);
}

.contact-item p,
.contact-item a {
  color: var(--ink);
  font-size: 1.02rem;
}

.contact-item a {
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.hours {
  margin-top: 8px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: var(--ink);
}

.hours dt {
  font-weight: 600;
}

.hours dd {
  margin: 0;
  color: var(--muted-ink);
}

.map-embed {
  margin-top: 0;
  border: 1px solid var(--line-light);
  background: var(--paper);
  min-height: 320px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.placeholder-box {
  padding: 22px;
  border: 1px dashed var(--red-ink);
  color: var(--red-ink);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #050505;
  border-top: 1px solid rgba(229, 43, 32, 0.2);
  padding-top: 72px;
}

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

.footer-brand p {
  margin-top: 18px;
  max-width: 28em;
  color: var(--muted);
}

.footer-h {
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--red);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact p,
.footer-contact a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom a:hover {
  color: var(--red);
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #3a3a3a;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.social a:hover {
  border-color: var(--red);
  color: var(--red);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 56px;
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: #8f8f8f;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a {
  color: #bdbdbd;
}

/* ---------- Motion ----------
   Reveal animations only run when the page has JS (html.js). */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

@keyframes heroDrift {
  from {
    transform: scale(1.12);
  }

  to {
    transform: scale(1);
  }
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive: tablet and up ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }

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

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

  .form-grid .full {
    grid-column: 1 / -1;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .insta {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .mobile-action {
    display: none;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr 1.3fr;
    gap: 36px;
  }
}

/* ---------- Responsive: desktop navigation (1280px and up) ---------- */

@media (min-width: 1280px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }

  .nav-list > li {
    border-bottom: 0;
  }

  .nav-list > li > a,
  .dropdown-toggle {
    width: auto;
    min-height: 40px;
    padding: 8px 8px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .nav-list > li > a {
    position: relative;
  }

  .nav-list > li > a::after,
  .dropdown-toggle::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }

  .nav-list > li > a:hover::after,
  .nav-list > li > a[aria-current="page"]::after,
  .has-dropdown:hover .dropdown-toggle::before,
  .has-dropdown.is-open .dropdown-toggle::before {
    transform: scaleX(1);
  }

  .dropdown-toggle {
    position: relative;
    gap: 8px;
  }

  .dropdown-toggle::after {
    width: 6px;
    height: 6px;
    margin-top: -3px;
  }

  .has-dropdown.is-open .dropdown-toggle::after {
    margin-top: 3px;
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: -16px;
    display: block;
    min-width: 260px;
    padding: 12px 0;
    background: var(--charcoal);
    border: 1px solid rgba(229, 43, 32, 0.3);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown a {
    padding: 10px 22px;
    font-size: 0.9rem;
  }

  .nav-join {
    width: auto;
    margin: 0 0 0 14px;
    min-height: 44px;
    padding: 0 22px;
    white-space: nowrap;
  }

  .nav-list a[aria-current="page"] {
    color: var(--red);
  }

  .mobile-action {
    display: none;
  }
}

/* ---------- Responsive: large desktop ---------- */

@media (min-width: 900px) {
  .section {
    padding-block: 120px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .grid-2.wide-left {
    grid-template-columns: 1.15fr 1fr;
  }

  .grid-2.wide-right {
    grid-template-columns: 1fr 1.15fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }

  .programme .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .programme.reverse .grid-2 > :first-child {
    order: 2;
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (min-width: 1180px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Responsive: phones ---------- */

@media (max-width: 639px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .section {
    padding-block: 72px;
  }

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

  .hero {
    padding-block: 72px 80px;
    min-height: calc(100svh - var(--header-h));
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .btn-row .btn {
    width: 100%;
  }

  .feature {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 0.75rem;
  }

  .mobile-action {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid rgba(229, 43, 32, 0.3);
  }

  .mobile-action .btn {
    width: 100%;
  }

  .brand img {
    height: 34px;
  }

  .brand-footer img {
    height: 48px;
  }

  .wa-float {
    right: 16px;
    bottom: 96px;
    width: 52px;
    height: 52px;
  }
}
