/* ==========================================================================
   Oolyn Padel Club — styles.css
   Mobile-first. Breakpoints: 640px (large phone), 768px (tablet), 1100px (desktop)
   Design reference width: 1440px
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --green: #255739;
  --green-deep: #1b4029;
  --cream: #f6eadb;
  --cream-deep: #efdcc5;
  --ink: #2b2b2b;
  --body: #4a4a4a;
  --muted: #7a7a7a;
  --line: #d6d6d6;
  --mist: #ebeff5;
  --footer: #eaedf4;
  --blue: #0f5c8c;
  --tan: #c9ab8c;
  --star: #f5a33b;
  --white: #ffffff;

  --f-head: "Teko", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 2.8vw, 40px);
  --frame: clamp(10px, 1.4vw, 20px);          /* inset for framed blocks (hero, CTA, footer) */
  --container: min(100vw - var(--gutter) * 2, 1310px);
  --section: clamp(88px, 11vw, 160px);

  --r-xl: clamp(22px, 2.2vw, 32px);
  --r-lg: clamp(20px, 2vw, 28px);
  --r-md: clamp(18px, 1.7vw, 24px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--body);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .cta :focus-visible, .feature :focus-visible, .menu :focus-visible { outline-color: var(--cream); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--green); color: var(--white); padding: .75rem 1rem; border-radius: 999px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section) 0; }

/* ---------- 3. Typography ---------- */
.h2 {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.9rem + 2.1vw, 3.5rem);   /* 40 → 56px */
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--ink);
}
.text { font-size: clamp(.9375rem, .9rem + .15vw, 1rem); line-height: 1.5; color: var(--body); }
.text--justify { text-align: justify; hyphens: auto; }

.tag {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-body); font-weight: 300; font-size: clamp(.8125rem, .78rem + .2vw, 1rem);
  text-transform: uppercase; letter-spacing: .16em; color: var(--body);
  white-space: nowrap;
}
.tag--light { border-color: rgba(255,255,255,.6); color: var(--white); }

/* ---------- 4. Components ---------- */
/* Primary pill button */
.btn {
  --btn-bg: var(--green); --btn-fg: var(--white); --btn-icon-bg: var(--cream); --btn-icon-fg: var(--green);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 30px;
  height: 50px; padding: 5px 5px 5px 20px;
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 400; font-size: .9375rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn::before {             /* fill wipe from the icon side */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--green-deep));
  clip-path: circle(0 at calc(100% - 25px) 50%);
  transition: clip-path .6s var(--ease);
}
.btn__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--btn-icon-bg); color: var(--btn-icon-fg);
  transition: transform .6s var(--ease);
}
.btn__icon svg { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at calc(100% - 25px) 50%); }
.btn:hover .btn__icon svg, .btn:focus-visible .btn__icon svg { transform: rotate(45deg); }
.btn:hover .btn__icon { transform: scale(1.06); }
.btn:active { transform: scale(.97); }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--green); --btn-icon-bg: var(--green); --btn-icon-fg: var(--cream); --btn-hover: var(--white); }

/* Round icon buttons */
.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid currentColor; color: var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--light { color: var(--white); border-color: rgba(255,255,255,.85); }
.icon-btn--light:hover { background: var(--white); border-color: var(--white); color: var(--green); }
.icon-btn--lg { width: clamp(48px, 4.3vw, 62px); height: clamp(48px, 4.3vw, 62px); }
.icon-btn--lg svg { width: 24px; height: 24px; }
.icon-btn--sm { width: 40px; height: 40px; color: var(--green); border-color: var(--line); }

.arrows { display: flex; gap: 12px; }
.arrows--dark .icon-btn { color: var(--green); border-color: var(--line); }
.arrows--dark .icon-btn:hover { color: var(--white); border-color: var(--green); }

/* Glassy pill used on the hero */
.glass {
  background: rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 999px; color: var(--white);
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
.brand__mark { width: 62px; height: 38px; flex: none; }
.brand__word { font-family: var(--f-head); font-weight: 600; font-size: 3rem; line-height: .7; padding-top: .14em; letter-spacing: -.005em; }
.brand--light { color: var(--cream); --logo-gap: var(--green); }

/* Checklist chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px 0 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9375rem; color: var(--body);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.chip svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.chip:hover { border-color: var(--blue); background: rgba(15,92,140,.04); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  margin: var(--frame) var(--frame) 0;
  height: clamp(600px, 92svh, 820px);
  color: var(--white);
  z-index: 2;
}
.hero__media {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-xl);
  background: #6ea0d8;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; transform-origin: 60% 40%; }
.hero__media::after {      /* legibility shade for headline + lead */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(4,26,48,.55) 100%),
    linear-gradient(90deg, rgba(4,26,48,.25) 0%, rgba(4,26,48,0) 45%);
}

.hero__notch {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: clamp(220px, 25vw, 360px); height: clamp(48px, 4.6vw, 66px);
  fill: var(--white); z-index: 1;
}
.hero__brand {
  position: absolute; top: clamp(2px, .3vw, 4px); left: 50%; transform: translateX(-50%);
  height: clamp(44px, 4.4vw, 62px); z-index: 2;
}
.hero__brand .brand__mark { width: clamp(44px, 4.3vw, 62px); height: auto; aspect-ratio: 120 / 72; }
.hero__brand .brand__word { font-size: clamp(2.1rem, 3.35vw, 3rem); }

.lang {
  position: absolute; top: clamp(14px, 1.4vw, 20px); left: clamp(14px, 1.4vw, 20px); z-index: 3;
  display: flex; gap: 4px; padding: 4px;
}
.lang__btn {
  min-width: 38px; height: 32px; padding: 0 8px; border-radius: 999px;
  font-size: .9375rem; font-weight: 400; letter-spacing: .04em; color: rgba(255,255,255,.9);
  text-underline-offset: 5px; transition: background-color .3s var(--ease);
}
.lang__btn.is-active { text-decoration: underline; text-decoration-thickness: 1px; }
.lang__btn:hover { background: rgba(255,255,255,.18); }

.menu-btn {
  position: absolute; top: clamp(14px, 1.4vw, 20px); right: clamp(14px, 1.4vw, 20px); z-index: 3;
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 20px;
  font-size: .9375rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .4s var(--ease);
}
.menu-btn:hover { background: rgba(255,255,255,.34); }
.menu-btn__icon { display: grid; gap: 4px; justify-items: end; }
.menu-btn__icon i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: width .4s var(--ease); }
.menu-btn__icon i:nth-child(1) { width: 18px; }
.menu-btn__icon i:nth-child(2) { width: 12px; }
.menu-btn__icon i:nth-child(3) { width: 18px; }
.menu-btn:hover .menu-btn__icon i:nth-child(2) { width: 18px; }
.menu-btn:hover .menu-btn__icon i:nth-child(1) { width: 12px; }

.hero__social {
  position: absolute; right: clamp(14px, 1.4vw, 20px); top: 50%; transform: translateY(-50%); z-index: 3;
  display: none; flex-direction: column; gap: 12px;
}

.hero__content {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 clamp(20px, 2.8vw, 40px) clamp(28px, 2.8vw, 40px);
}
.hero__title {
  display: flex; flex-direction: column;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(4.25rem, 2.3rem + 8.4vw, 9.6rem);     /* 68 → ~154px */
  line-height: .86; letter-spacing: -.005em;
  margin-bottom: clamp(28px, 4vw, 70px);
}
.hero__title .line { display: block; overflow: hidden; padding-top: .08em; margin-top: -.08em; }
.hero__title .line > span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 30%, #d9dde3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.12));
}
.hero__lead { max-width: 440px; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.3; font-weight: 300; }

.hero__ball {
  position: absolute; z-index: 4; pointer-events: none;
  width: clamp(110px, 16.5vw, 240px); height: auto;
  right: 6%; bottom: calc(clamp(110px, 16.5vw, 240px) * -.52);
  filter: blur(2.5px) drop-shadow(0 20px 30px rgba(0,0,0,.18));
  will-change: transform;
}

/* ---------- 6. Menu overlay (placeholder) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 50;
  color: var(--cream);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden;
  transition: visibility 0s linear .75s;          /* stay visible until the close animation ends */
}
.menu[hidden] { display: block; }
.menu.is-open { visibility: visible; transition-delay: 0s; }
/* Only this plain green layer is clipped, so each frame is a cheap solid-colour paint */
.menu__inner {
  position: relative; min-height: 100%; display: flex; flex-direction: column; padding-block: 28px 40px;
  opacity: 0; transition: opacity .25s ease;
}
.menu__bg {
  position: fixed; inset: 0; background: var(--green);
  clip-path: circle(0px at var(--mx, calc(100% - 70px)) var(--my, 45px));
  transition: clip-path .75s var(--ease-in-out);
  will-change: clip-path; contain: strict;
}
.menu.is-open .menu__bg { clip-path: circle(var(--mr, 150vmax) at var(--mx, calc(100% - 70px)) var(--my, 45px)); }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__close { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246,234,219,.5); transition: transform .5s var(--ease), background-color .3s; }
.menu__close:hover { transform: rotate(90deg); background: rgba(246,234,219,.1); }
.menu__close span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; }
.menu__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.menu__links { margin-block: auto; padding-block: 48px; }
.menu__links a {
  display: inline-block; font-family: var(--f-head); font-weight: 500;
  font-size: clamp(2.75rem, 1.5rem + 5vw, 5.5rem); line-height: 1.02;
  transition: color .3s, transform .5s var(--ease);
}
.menu__links a:hover { color: var(--white); transform: translateX(12px); }
.menu__links li { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu.is-open .menu__links li { opacity: 1; transform: none; }
.menu.is-open .menu__inner { opacity: 1; transition: opacity .4s ease .45s; }
.menu.is-open .menu__links li:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__links li:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__links li:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__links li:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__links li:nth-child(5) { transition-delay: .45s; }
.menu.is-open .menu__links li:nth-child(6) { transition-delay: .5s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: .9375rem; opacity: .8; }
body.menu-open { overflow: hidden; }

/* ---------- 7. About ---------- */
.about { padding-top: calc(var(--section) + 40px); }
.about__top { display: grid; gap: 40px; }
.about__title { margin-top: clamp(28px, 5vw, 76px); max-width: 470px; }

.about__gallery {
  display: grid; gap: clamp(12px, 1.4vw, 20px);
  grid-template-rows: auto auto;
  grid-template-columns: minmax(0, 386fr) minmax(0, 290fr);
  align-self: start; align-content: start;
}
.about__img { overflow: hidden; border-radius: var(--r-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.05); }
.about__img--main { grid-row: 1 / 3; position: relative; }
.about__img--main img { position: absolute; inset: 0; }
.about__img--court { aspect-ratio: 290 / 212; }
.about__pill { position: relative; width: 100%; aspect-ratio: 245 / 60; align-self: end; }
.about__pill-icon { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__pill-img {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: 1;
  left: 28%;   /* where the photo starts over the icon */
  overflow: hidden; border-radius: 999px;
}
.about__pill-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__pill:hover .about__pill-img img { transform: scale(1.12); }

.about__bottom { display: grid; gap: 40px; margin-top: clamp(40px, 4.4vw, 62px); }
.about__copy { max-width: 580px; }
.about__copy .btn { margin-top: 40px; }

/* ---------- 8. Courts / feature slider ---------- */
.courts__grid { display: grid; gap: 40px; }
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg);
  min-height: clamp(520px, 40vw, 568px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(14px, 1.4vw, 20px);
  color: var(--white);
}
.feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease); }
.feature.is-changing .feature__img { transform: scale(1.04); }
.feature__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%); }

.feature__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature__chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: clamp(38px, 3.8vw, 54px); padding: 0 clamp(14px, 1.4vw, 20px);
  border-radius: 999px; white-space: nowrap;
  font-size: clamp(.8125rem, .78rem + .2vw, 1rem); font-weight: 400;
  background: rgba(8, 70, 125, .62); color: var(--white);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .45s var(--ease), color .45s var(--ease), padding .45s var(--ease);
}
.feature__chip svg { width: clamp(18px, 1.6vw, 22px); height: clamp(18px, 1.6vw, 22px); display: none; }
.feature__chip:hover { background: rgba(8, 70, 125, .85); }
.feature__chip.is-active { background: var(--cream); color: var(--green); padding-left: clamp(10px, 1.2vw, 18px); }
.feature__chip.is-active svg { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.feature__bottom { display: flex; flex-direction: column; gap: 20px; }
.feature__caption {
  max-width: 550px; font-size: clamp(.9375rem, .9rem + .15vw, 1rem); line-height: 1.45;
  text-align: justify; hyphens: auto;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.feature__caption.is-out { opacity: 0; transform: translateY(10px); }

.courts__text { display: flex; flex-direction: column; align-items: flex-start; }
.courts__text .h2 { margin-top: 24px; }
.courts__text .text { margin-top: clamp(20px, 3vw, 40px); }
.courts__text .btn { margin-top: clamp(28px, 3.5vw, 48px); }

/* ---------- 9. Courses ---------- */
.courses__grid { display: grid; gap: 48px; }
.level {
  position: relative; overflow: hidden;
  background: var(--mist); border-radius: var(--r-lg);
  padding: clamp(28px, 2.7vw, 38px);
  min-height: clamp(360px, 33vw, 470px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.level__deco { position: absolute; width: 58%; top: 2%; right: -18%; color: #dfe4ec; pointer-events: none; transition: transform 1.6s var(--ease); }
.level:hover .level__deco { transform: rotate(18deg); }
.level__title { position: relative; font-size: clamp(3rem, 2.4rem + 2.2vw, 4rem); }
.level__proof { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.level__small { display: block; font-size: clamp(1rem, .95rem + .2vw, 1.125rem); color: var(--body); }
.level__count { display: block; font-family: var(--f-head); font-weight: 500; font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem); line-height: 1; color: var(--green); margin-top: 6px; }
.avatars { display: flex; padding-bottom: 4px; }
.avatars li { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 2px solid var(--mist); margin-left: -12px; transition: transform .4s var(--ease); }
.avatars li:first-child { margin-left: 0; }
.avatars li:hover { transform: translateY(-6px); }
.avatars img { width: 100%; height: 100%; object-fit: cover; }

.courses__main { min-width: 0; }
.courses__row { display: grid; gap: 28px; margin-top: 24px; justify-items: start; }
.courses__row .text { max-width: 520px; }

.track {
  display: flex; gap: clamp(14px, 1.3vw, 19px);
  margin-top: 48px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-right: calc((100vw - var(--container)) / -2);
  padding-right: var(--gutter);
  cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.track.is-dragging a { pointer-events: none; }
.course { flex: 0 0 clamp(240px, 20.2vw, 290px); scroll-snap-align: start; }
.course__link { display: block; }
.course__img { display: block; aspect-ratio: 290 / 225; overflow: hidden; border-radius: var(--r-md); background: var(--mist); }
.course__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); -webkit-user-drag: none; user-select: none; }
.course__img--placeholder {
  display: grid; place-items: center;
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #8a94a6;
  background: repeating-linear-gradient(135deg, #e6ebf2 0 14px, #edf1f6 14px 28px);
}
.course__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 12px; }
.course__title { font-family: var(--f-head); font-weight: 400; font-size: clamp(1.5rem, 1.3rem + .6vw, 1.75rem); line-height: 1.08; color: var(--ink); }
.course__link:hover .course__img img { transform: scale(1.07); }
.course__link:hover .icon-btn { background: var(--green); border-color: var(--green); color: var(--white); transform: rotate(45deg); }

/* ---------- 10. Membership ---------- */
.membership__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.membership__head .h2 { margin-top: 20px; }
.membership__head .text { max-width: 700px; margin-top: 28px; }

.perks { display: grid; gap: 40px; margin-top: clamp(40px, 4.4vw, 64px); }
.perk__card {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 417 / 448; max-height: 480px; width: 100%;
  border-radius: var(--r-lg); background: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  cursor: pointer;
}
/* Photo: hidden by default, fades + settles in on hover */
.perk__img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity .6s var(--ease), transform 1.4s var(--ease);
}
.perk__icon {
  width: 44px; height: 32px; margin: 0 0 20px 20px;
  color: var(--tan);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.perk__icon--diamond { height: 40px; }
.perk__icon--community { height: 38px; }
/* Title: padding stays fixed so the text never jumps; only the glass panel appears */
.perk__title {
  position: relative; padding: 20px; border-radius: 18px;
  font-family: var(--f-head); font-weight: 500; font-size: clamp(2rem, 1.75rem + .8vw, 2.5rem);
  line-height: 1.02; color: var(--ink);
  transition: color .5s var(--ease);
}
.perk__title::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(115deg, rgba(10,60,150,.72), rgba(20,80,170,.55) 55%, rgba(10,50,130,.72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
/* Hover / keyboard focus = the "center card" look */
.perk__card:hover .perk__img, .perk__card:focus-visible .perk__img { opacity: 1; transform: scale(1); }
.perk__card:hover .perk__icon, .perk__card:focus-visible .perk__icon { opacity: 0; transform: translateY(-12px); }
.perk__card:hover .perk__title, .perk__card:focus-visible .perk__title { color: var(--white); }
.perk__card:hover .perk__title::before, .perk__card:focus-visible .perk__title::before { opacity: 1; transform: none; }
.perk .text { margin-top: 20px; }
.membership__cta { display: flex; justify-content: center; margin-top: clamp(40px, 4.4vw, 60px); }

/* ---------- 11. Testimonials ---------- */
.testimonials__grid { display: grid; gap: 28px; }
.counter { font-family: var(--f-head); font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); color: var(--ink); line-height: 1; }
.counter__current { display: inline-block; color: var(--green); font-size: 1.3em; }
.counter__total { font-size: .9em; }
.testimonials__body { position: relative; display: grid; grid-template-columns: 1fr; align-content: end; min-width: 0; }
.testimonials__body .tag { justify-self: start; font-size: clamp(.8125rem, .78rem + .2vw, 1rem); font-weight: 300; }
.quotes { display: grid; margin-top: 28px; }
.quote {
  grid-area: 1 / 1;
  visibility: hidden; opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
}
.quote.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: .15s, .15s, 0s; }
.quote blockquote p { font-size: clamp(1.1875rem, 1rem + .6vw, 1.5rem); line-height: 1.3; font-weight: 300; color: var(--body); text-align: justify; hyphens: auto; }
.rating { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 1.125rem; color: var(--muted); }
.stars {
  --rating: 5; --size: 22px;
  position: relative; display: inline-block; width: calc(var(--size) * 5 + 16px); height: var(--size);
  background:
    linear-gradient(90deg, var(--star) calc(var(--rating) / 5 * 100%), #d8d8d8 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='m11 1.8 2.6 5.5 6 .7-4.4 4.1 1.1 6-5.3-2.9-5.3 2.9 1.1-6L2.4 8l6-.7Z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) + 4px) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='m11 1.8 2.6 5.5 6 .7-4.4 4.1 1.1 6-5.3-2.9-5.3 2.9 1.1-6L2.4 8l6-.7Z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) + 4px) var(--size) repeat-x;
}
.quote figcaption { margin-top: clamp(40px, 7vw, 100px); display: grid; gap: 6px; }
.quote__name { font-family: var(--f-head); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--ink); }
.quote__role { font-size: 1rem; color: var(--green); font-weight: 400; }
.testimonials__body .arrows { margin-top: 24px; }

.testimonials__photo { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 405 / 480; background: var(--mist); }
.testimonials__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.testimonials__photo img.is-out { opacity: 0; transform: scale(1.04); }

/* ---------- 12. CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  margin: var(--section) var(--frame) 0;
  border-radius: var(--r-xl);
  min-height: 520px;
  display: flex; align-items: flex-end;
  padding: clamp(28px, 4vw, 40px);
  color: var(--white);
  background: #1b4b8c;
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; z-index: -2; transform: scale(1.1); will-change: transform; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,60,120,0) 20%, rgba(20,60,120,.8) 70%);
}
.cta__content { max-width: 460px; }
.cta__title { color: var(--white); margin-top: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- 13. Footer ---------- */
.footer {
  --logo-gap: var(--footer);
  --footer-pad: clamp(28px, 2.8vw, 40px);
  margin: var(--frame);
  padding: var(--footer-pad);
  border-radius: var(--r-xl);
  background: var(--footer);
}
.footer__top { display: grid; gap: 32px; }
.brand--footer { gap: 14px; }
.brand--footer .brand__mark { width: 104px; height: 62px; }
.brand__stack { display: grid; gap: 6px; }
.brand--footer .brand__word { font-size: 3.4rem; }
.brand__sub { font-size: .75rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; padding-left: 2px; }

.contact {
  display: grid; gap: 16px 40px; align-items: center;
  background: var(--white); border-radius: 12px;
  padding: 20px 24px;
  font-size: .9375rem; line-height: 1.6; color: var(--body);
}
.contact__title { font-family: var(--f-head); font-weight: 500; font-size: 2.5rem; line-height: 1; color: var(--green); }
.contact a { transition: color .3s; }
.contact a:hover { color: var(--green); }

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: 56px; }
.footer__heading { font-family: var(--f-head); font-weight: 500; font-size: 1.3rem; line-height: 1; color: var(--green); margin-bottom: 20px; }
.footer__cols ul:not(.social-row) { display: grid; gap: 10px; }
.footer__cols ul a { position: relative; font-size: 1rem; color: var(--body); transition: color .3s; }
.footer__cols ul a::after,
.footer__bottom a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.footer__cols ul a:hover, .footer__bottom a:hover { color: var(--green); }
.footer__cols ul a:hover::after, .footer__bottom a:hover::after { transform: scaleX(1); transform-origin: left; }
.social-row { display: flex; gap: 12px; }
.social-row .icon-btn { color: var(--body); }
.social-row .icon-btn:hover { color: var(--white); border-color: var(--green); }
.social-row .icon-btn::after { display: none; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid #cfd3da;
  font-size: .9375rem;
}
.footer__bottom ul { display: flex; gap: 40px; }
.footer__bottom a { position: relative; }

/* ==========================================================================
   Responsive enhancements
   ========================================================================== */
@media (max-width: 639.98px) {
  .hero__notch { width: 190px; height: 50px; }
  .hero__brand { gap: 6px; }
  .hero__brand .brand__mark { width: 40px; }
  .hero__brand .brand__word { font-size: 1.9rem; }
  .menu-btn { width: 46px; padding: 0; justify-content: center; }
  .menu-btn > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lang__btn { min-width: 34px; padding: 0 6px; }
  .contact p + p { margin-top: 12px; }
}

@media (max-width: 1099.98px) {
  .contact {
    margin-inline: calc(12px - var(--footer-pad));   /* card edge sits 12px from the footer edge */
    padding-inline: calc(var(--footer-pad) - 12px);  /* text stays aligned with the logo and links */
  }
  .contact .line-break-address {display: none;}
}

@media (max-width: 767.98px) {
  .footer__cols > nav:nth-of-type(3),
  .footer__social { grid-column: 1 / -1; }
}

@media (min-width: 640px) {
  .contact { grid-template-columns: auto auto auto; justify-content: space-between; padding: 22px 40px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perks .perk:last-child { grid-column: 1 / -1; }
  .perks .perk:last-child .perk__card { aspect-ratio: 16 / 7; }
  .feature__bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

@media (min-width: 768px) {
  .hero__social { display: flex; }
  .hero__title { padding-inline: clamp(0px, 5.6vw, 80px) clamp(40px, 8.6vw, 115px); }
  .hero__title .line--end { align-self: flex-end; }
  .hero__ball { right: auto; left: 61%; }

  .about__bottom { grid-template-columns: 1fr 1fr; align-items: start; }
  .chips { justify-content: flex-end; }
  .about__copy { padding-left: 0; }

  .courses__row { grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: center; }

  .testimonials__grid { grid-template-columns: 1fr minmax(280px, 40%); align-items: end; }
  .counter { grid-column: 1 / -1; }
  .testimonials__photo { grid-row: 1 / 3; grid-column: 2; aspect-ratio: 405 / 614; }
  .testimonials__body { grid-column: 1; }
  .quote figcaption { margin-top: 64px; }
  .testimonials__body .tag { justify-self: start; }
  .testimonials__body .arrows { position: absolute; right: 0; bottom: 0; margin: 0; }

  .cta { align-items: center; justify-content: flex-end; min-height: 434px; }
  .cta::after { background: linear-gradient(90deg, rgba(20,60,120,0) 35%, rgba(30,80,150,.55) 75%); }
  .cta__content { width: min(460px, 44%); margin-right: clamp(0px, 8vw, 110px); }

  .footer__cols { grid-template-columns: 1fr 1fr 1fr auto; }
}

@media (min-width: 1100px) {
  .about__top { grid-template-columns: 1fr minmax(0, 694px); gap: 60px; }
  .about__bottom { grid-template-columns: minmax(0, 636px) minmax(0, 530px); justify-content: space-between; }
  .about__copy { padding-left: 56px; max-width: none; }

  .courts__grid { grid-template-columns: minmax(0, 868fr) minmax(0, 405fr); gap: 38px; align-items: end; }
  .feature__chips { max-width: 800px; }

  .courses__grid { grid-template-columns: minmax(0, 482px) minmax(0, 1fr); gap: 39px; align-items: start; }
  .level { min-height: 470px; }
  .courses__main { padding-top: 78px; }
  .courses__row { padding-right: 20px; }
  .track { margin-top: 48px; padding-left: 57px; scroll-padding-left: 57px; }

  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .perks .perk:last-child { grid-column: auto; }
  .perks .perk:last-child .perk__card { aspect-ratio: 417 / 448; }

  .testimonials__grid { grid-template-columns: 202px minmax(0, 604px) minmax(0, 405px); grid-template-rows: 1fr auto; justify-content: space-between; column-gap: 0; row-gap: 0; }
  .counter { grid-column: 1; grid-row: 2; align-self: start; margin-top: -4px; }
  .testimonials__body { grid-column: 2; grid-row: 2; }
  .testimonials__photo { grid-column: 3; grid-row: 1 / 3; }

  .cta__content { width: 460px; margin-right: 124px; }

  .footer__top { grid-template-columns: auto minmax(0, 680px); justify-content: space-between; align-items: center; }
}

@media (min-width: 1440px) {
  .hero { height: 772px; }
}

/* ==========================================================================
   Motion — scroll reveals + page load (only when JS is running)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal="mask"] {
  opacity: 1; transform: none;
  clip-path: inset(10% 8% 10% 8% round var(--r-lg));
  transition: clip-path 1.3s var(--ease) var(--d, 0s);
}
.js [data-reveal="mask"] > img { transform: scale(1.15); transition: transform 1.6s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js [data-reveal="mask"].is-in > img { transform: none; }

/* Hero load sequence */
.js .hero__media img { transform: scale(1.12); transition: transform 2.2s var(--ease); }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .hero__title .line--end > span { transition-delay: .12s; }
.js .hero__lead, .js .lang, .js .menu-btn, .js .hero__social, .js .hero__brand { opacity: 0; transition: opacity 1s var(--ease) .5s; }
.js .hero__ball { opacity: 0; translate: 0 -140px; transition: opacity .6s ease .6s, translate 1.4s cubic-bezier(.34, 1.56, .64, 1) .6s; }
.js .is-loaded .hero__media img { transform: scale(1); }
.js .is-loaded .hero__title .line > span { transform: none; }
.js .is-loaded .hero__lead, .js .is-loaded .lang, .js .is-loaded .menu-btn,
.js .is-loaded .hero__social, .js .is-loaded .hero__brand { opacity: 1; }
.js .is-loaded .hero__ball { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="mask"] > img, .cta__bg { transform: none; }
}
