/* ==================================================================
   IRON BALL — main stylesheet
   ------------------------------------------------------------------
   Theme (60-30-10 rule):
     60% White  #ffffff / #f5f6f7   — base
     30% Grey   #2e3338 / #5a6470   — iron branding (FB logo grey)
     10% Orange #ff6b35             — accent (complementary warm tone
                                      vs. the cool grey; also the
                                      classic table-tennis ball colour)
   Layout: mobile-first, CSS Grid + Flexbox, fluid type via clamp()
   ================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --white:        #ffffff;
  --off-white:    #f5f6f7;
  --grey-100:     #e7eaec;
  --grey-300:     #9aa3ad;
  --grey-500:     #5a6470;
  --grey-700:     #3c434a;
  --grey-900:     #2e3338;   /* primary "iron" grey */
  --accent:       #ff6b35;   /* orange accent */
  --accent-dark:  #e05a28;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  /* Display stack for headings — geometric/sporty, distinct from the body
     text. Deliberately system-only (no @font-face download): this keeps
     text rendering at zero extra network requests, which matters more for
     "blazing fast" than a bespoke webfont would be worth. Falls back
     gracefully to the same bold sans everywhere it isn't available. */
  --font-display: "Century Gothic", Futura, "Avenir Next", "Trebuchet MS", var(--font);
  --radius: 18px;            /* rounded corners (bento style) */
  --shadow: 0 8px 28px rgba(46, 51, 56, 0.12);
  --header-h: 72px;
  --transition: 0.3s ease;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;                 /* smooth section navigation */
  scroll-padding-top: var(--header-h);     /* anchors clear the sticky header */
}

body {
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }

.btn--ghost { background: transparent; color: var(--grey-900); border-color: var(--grey-900); }
.btn--ghost:hover { background: var(--grey-900); color: var(--white); }

/* ---------- 4. Sticky header / navigation ---------- */
.site-header {
  position: sticky;       /* stays on top while scrolling */
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);            /* frosted-glass effect */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--grey-100);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav__logo img { height: 44px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav__link {
  color: var(--grey-700);
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav__link:hover { color: var(--grey-900); text-decoration: none; }

/* Animated underline + active section highlight (class set by JS) */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* Language switcher */
.nav__lang { display: flex; align-items: center; gap: 0.4rem; }
.nav__lang-sep { color: var(--grey-300); }
.lang-btn {
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--grey-300);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  transition: color var(--transition);
}
.lang-btn:hover { color: var(--grey-700); }
.lang-btn.is-active { color: var(--accent); }

/* Burger — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--grey-900);
  transition: transform var(--transition), opacity var(--transition);
}
/* Burger → X animation when menu is open */
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero with crossfade slideshow ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--off-white);
}

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;   /* crossfade */
}
.hero__slide.is-visible { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-block: 4rem;
  /* Soft white veil so text stays readable over any slide */
  background: linear-gradient(90deg, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0));
  border-radius: var(--radius);
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);  /* fluid headline */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--grey-500);
  margin-bottom: 1.8rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Slideshow dots */
.hero__dots {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero__dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--grey-300);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero__dots button.is-active { background: var(--accent); transform: scale(1.25); }

/* ---------- 6. Sections ---------- */
.section { padding: 5rem 0; }
.section--grey { background: var(--off-white); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
/* Orange underline flourish under each section title */
.section__title::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 0.6rem;
}

.section__lead {
  max-width: 700px;
  color: var(--grey-500);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---------- 7. Bento grid (About) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.bento__card {
  background: var(--off-white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.bento__card--wide { grid-column: span 2; }          /* feature tile */
.bento__card--accent { background: var(--grey-900); color: var(--white); }
.bento__card--accent p { color: var(--grey-300); }

.bento__icon { font-size: 1.9rem; display: block; margin-bottom: 0.6rem; }
.bento__card h3 { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 0.4rem; }
.bento__card p { color: var(--grey-500); font-size: 0.95rem; }

/* ---------- 8. Split section (Play with friends) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.split__text p { color: var(--grey-500); margin-bottom: 1rem; }
.split__text .section__title { margin-bottom: 1rem; }

/* Opening hours card */
.hours-card {
  margin-top: 1.5rem;
  background: var(--white);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.6rem;
}
.hours-card h3 { margin-bottom: 0.7rem; font-size: 1.05rem; }
.hours-card ul { list-style: none; }
.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--grey-100);
  color: var(--grey-500);
}
.hours-card li:last-child { border-bottom: none; }
.hours-card strong { color: var(--grey-900); }

/* ---------- 9. Training cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { font-family: var(--font-display); margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p { color: var(--grey-500); font-size: 0.97rem; }

/* Highlighted middle program */
.card--featured { border: 2px solid var(--accent); }
.card__badge {
  position: absolute;
  top: -14px; left: 1.4rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

/* ---------- 10. Coaches ---------- */
.coaches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 1.6rem;
  justify-content: center;
}

.coach {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 1.8rem;
  text-align: center;
}

/* Initials avatar — swap for a real photo <img> when available */
.coach__avatar {
  width: 96px; height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  background: radial-gradient(circle at 35% 30%, var(--grey-500), var(--grey-900));
  border: 4px solid var(--accent);
  overflow: hidden;
}
.coach__avatar img { width: 100%; height: 100%; object-fit: cover; }

.coach h3 { font-family: var(--font-display); font-size: 1.2rem; }
.coach__role { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; margin: 0.2rem 0 0.7rem; }
.coach p:last-child { color: var(--grey-500); font-size: 0.95rem; }

/* ---------- 11. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.contact-form .form-row { margin-bottom: 1.1rem; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--grey-900);
  background: var(--off-white);
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}
.contact-form textarea { resize: vertical; }

/* Form status message (success = orange, error = red) */
.form-status { margin-top: 0.8rem; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok { color: var(--accent-dark); }
.form-status.is-err { color: #c0392b; }

/* Info card */
.contact-info {
  background: var(--grey-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  height: fit-content;
}
.contact-info h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; }
.contact-info address { font-style: normal; }
.contact-info p { margin-bottom: 0.8rem; color: var(--grey-100); }
.contact-info a { color: var(--accent); }

.socials { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grey-700);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.social-btn:hover { background: var(--accent); transform: translateY(-3px); text-decoration: none; }

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ---------- 12. Footer + sponsor ad slots ---------- */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-300);
  padding: 3.5rem 0 1.5rem;
}

.sponsors { text-align: center; margin-bottom: 2.5rem; }
.sponsors__title { font-family: var(--font-display); color: var(--white); font-size: 1.3rem; margin-bottom: 0.4rem; }
.sponsors__lead { font-size: 0.95rem; max-width: 560px; margin: 0 auto 1.6rem; }

.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Empty advertising slot: dashed frame invites sponsors.
   When a banner is sold, place <img> inside and remove the texts. */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 100px;
  border: 2px dashed var(--grey-500);
  border-radius: var(--radius);
  color: var(--grey-300);
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  overflow: hidden;
}
.ad-slot:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 53, 0.06);
  text-decoration: none;
}
.ad-slot small { font-weight: 400; opacity: 0.7; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; }
.ad-slot.has-image { border-style: solid; padding: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--grey-700);
  padding-top: 1.5rem;
  font-size: 0.9rem;
}
/* White-ish logo treatment on dark footer */
.footer-bottom__logo { filter: brightness(0) invert(1) ; opacity: 0.85; height: 36px; width: auto; }
.socials--footer { margin-top: 0; }
.socials--footer a { color: var(--grey-300); }
.socials--footer a:hover { color: var(--accent); }

/* ---------- 13. Floating "back to top" arrow ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 52px; height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  /* Hidden by default; JS adds .is-visible after scrolling down */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }

/* ---------- 14. Scroll-reveal animation ---------- */
/* Elements with .reveal fade/slide in when they enter the viewport
   (IntersectionObserver in js/main.js adds .is-revealed). */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* Respect users who prefer no motion (accessibility + SEO best practice) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: none; }
}

/* ---------- 15a. Hero visual treatment: gradient mesh + grain + duotone ---------- */
/* Stacking inside .hero (bottom → top): slides → colour-mesh tint → content/dots/wave → grain. */
.hero__slides { z-index: 1; }
/* Soft blurred colour blobs, blended over the slide photos to tint them
   toward the brand palette instead of sitting hidden behind them. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(38% 45% at 12% 15%, rgba(255, 107, 53, 0.28), transparent 70%),
    radial-gradient(45% 50% at 92% 85%, rgba(46, 51, 56, 0.32), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero__content, .hero__dots, .hero__wave { position: relative; z-index: 3; }
/* Fine inline-SVG grain texture over the whole hero, blended subtly — no image request. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Real photos now (previously illustrated placeholders) — only a light grade. */
.hero__slide img { filter: saturate(1.05) brightness(1.02); }

/* Curved seam between the hero and the About section. */
.hero__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { display: none; }
}

/* ---------- 15b. Stats strip ---------- */
.stats {
  background: var(--grey-900);
  padding: 2.6rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 1.5rem;
}
.stats__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stats__label {
  color: var(--grey-300);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- 15c. Angled seam from Contact into the dark footer ---------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer__angle {
  position: absolute;
  top: -60px; left: -5%;
  width: 110%;
  height: 100px;
  background: var(--white);
  transform: rotate(-1.4deg);
  pointer-events: none;
}

/* ---------- 15d. Micro-interactions ---------- */
/* Staggered cascade for grid items — each column/card animates a beat
   after the previous one instead of all popping in at once. */
.bento__card:nth-child(1) { transition-delay: 0s; }
.bento__card:nth-child(2) { transition-delay: 0.08s; }
.bento__card:nth-child(3) { transition-delay: 0.16s; }
.bento__card:nth-child(4) { transition-delay: 0.24s; }
.bento__card:nth-child(5) { transition-delay: 0.32s; }
.bento__card:nth-child(6) { transition-delay: 0.4s; }
.cards .card:nth-child(1) { transition-delay: 0s; }
.cards .card:nth-child(2) { transition-delay: 0.12s; }
.cards .card:nth-child(3) { transition-delay: 0.24s; }
.coaches .coach:nth-child(1) { transition-delay: 0s; }
.coaches .coach:nth-child(2) { transition-delay: 0.12s; }
.stats__item:nth-child(1) { transition-delay: 0s; }
.stats__item:nth-child(2) { transition-delay: 0.1s; }
.stats__item:nth-child(3) { transition-delay: 0.2s; }

/* Icon "wiggle" on bento card hover. */
@keyframes ib-icon-bounce {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.18) rotate(-8deg); }
  60% { transform: scale(1.05) rotate(6deg); }
}
.bento__card:hover .bento__icon { animation: ib-icon-bounce 0.5s ease; }

/* Shimmering gradient sweep on the "featured" training badge. */
.card__badge {
  background: linear-gradient(110deg, var(--accent) 40%, #ffb088 50%, var(--accent) 60%);
  background-size: 220% 100%;
  animation: ib-badge-shine 3.2s ease-in-out infinite;
}
@keyframes ib-badge-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -60% 0; }
}

/* Buttons: ripple + magnetic pull (JS adds the ripple span / inline transform). */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  opacity: 0.9;
  pointer-events: none;
  animation: ib-ripple 0.6s ease-out forwards;
}
.btn--ghost .btn__ripple { background: rgba(46, 51, 56, 0.25); }
@keyframes ib-ripple {
  to { transform: scale(2.6); opacity: 0; }
}

/* Soft glow blob that follows the pointer inside the hero (decorative, desktop only). */
.hero__glow {
  position: absolute;
  z-index: 2;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero:hover .hero__glow { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .bento__card:hover .bento__icon { animation: none; }
  .card__badge { animation: none; }
  .btn__ripple { display: none; }
  .hero__glow { display: none; }
  .bento__card, .cards .card, .coaches .coach, .stats__item { transition-delay: 0s !important; }
}

/* ---------- 15. Responsive breakpoints ---------- */
/* Tablet */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }            /* image above text on mobile */
  .contact-grid { grid-template-columns: 1fr; }
  .coaches { grid-template-columns: 1fr; }
  .sponsors__grid { grid-template-columns: 1fr; }
}

/* Phone — collapse menu into burger */
@media (max-width: 760px) {
  .nav__burger { display: flex; }

  .nav__menu {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.4rem 1rem;
    /* Closed state: collapsed + invisible */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }
  .nav__menu.is-open { max-height: 420px; opacity: 1; }

  .nav__menu li { width: 100%; }
  .nav__link { display: block; padding: 0.8rem 0; }
  .nav__lang { padding: 0.8rem 0; }

  .hero__content {
    background: rgba(255, 255, 255, 0.88);
    padding: 2.2rem 1.4rem;
    margin-block: 2rem;
  }

  .section { padding: 3.5rem 0; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .map-wrap iframe { height: 300px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats { padding: 1.8rem 0; }
  .stats__grid { gap: 0.6rem; }
  .site-footer__angle { height: 70px; top: -40px; }
}

/* Honeypot field for the contact form (moved out of inline style). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.split__media img { object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.not-found { text-align: center; padding-block: 6rem; }

/* Language switch is now plain links (/ and /en/) */
a.lang-btn { text-decoration: none; display: inline-block; }
/* Brand tile in the sponsor strip (text-only partner) */
.ad-slot--brand { border-style: solid; border-color: var(--grey-500); color: var(--white); }
.ad-slot--brand strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 1px; }
.ad-slot--brand:hover strong { color: var(--accent); }
.ad-slot.has-image:hover { border-color: var(--accent); background: none; }
/* Logo tile (partner logo on white) */
.ad-slot--logo { background: var(--white); padding: 0.5rem; }
.ad-slot--logo img { width: auto; max-width: 100%; height: 100px; object-fit: contain; }
.ad-slot--logo:hover { background: var(--white); border-color: var(--accent); }
