/* ============================================================
   THE WONDER SOCCER CONSULTING — Main Stylesheet
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --gold: #D5AE65;
  --gold-light: #E8C87A;
  --black: #FFFFFF;
  --black-2: #F5F1E8;
  --black-3: #EDE6D6;
  --cream: #1C1C1E;
  --grey: #6E6E76;
  --grey-light: #54545C;

  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.65s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1280px;
  --container-padding: clamp(1.5rem, 5vw, 4rem);

  --header-height: 80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Golden Football Background (animated canvas) --------- */
#wsc-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
  background: var(--black);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.gold { color: var(--gold); }
.grey-text { color: var(--grey); }

/* --- Layout ----------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section--dark { background: transparent; }
.section--darker { background: var(--black-2); }
.section--card { background: var(--black-3); }

.divider {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 2.25rem;
}
.divider--center { margin-left: auto; margin-right: auto; }

.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-header--center .divider { margin-left: auto; margin-right: auto; }

/* --- Header / Navigation ---------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1002;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(213, 174, 101, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.header__logo { display: flex; align-items: center; flex-shrink: 0; }

/* SVG logo — transparent background, no blend mode needed */
.header__logo-img {
  height: 52px;
  width: auto;
}

/* Fallback SVG version */
.header__logo-svg { height: 42px; width: auto; }

.header__nav { display: flex; align-items: center; gap: 0.25rem; }

.header__nav-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-light);
  padding: 0.5rem 0.8rem;
  transition: color var(--transition);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.8rem; right: 0.8rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active { color: var(--cream); }

.header__nav-link:hover::after,
.header__nav-link.active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 1rem; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  color: var(--grey);
  transition: color var(--transition), background var(--transition);
}

.lang-btn.active {
  color: var(--gold);
  background: rgba(213, 174, 101, 0.1);
}

.lang-btn:hover { opacity: 1; }

/* Flag icons inside lang buttons */
.lang-btn .fi {
  display: block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(28,28,30,0.15);
  opacity: 0.65;
  transition: opacity var(--transition), box-shadow var(--transition);
}
.lang-btn.active .fi,
.lang-btn:hover .fi {
  opacity: 1;
  box-shadow: 0 0 0 1.5px var(--gold);
}

/* FR / EN text label */
.lang-code {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* CTA button header */
.btn-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 1px;
  transition: background var(--transition), color var(--transition);
}
.btn-header:hover { background: var(--gold); color: var(--cream); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-nav__link {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color var(--transition);
}
.mobile-nav__link:hover { color: var(--gold); }

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 1px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--cream);
  border: 1px solid var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(213, 174, 101, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(28, 28, 30, 0.2);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--outline-gold:hover { background: var(--gold); color: var(--cream); }

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #FFFFFF 0%, #F5F1E8 45%, #FBF8F2 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 55%, rgba(213, 174, 101, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(213, 174, 101, 0.03) 0%, transparent 60%);
}

/* Grid texture overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(213,174,101,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213,174,101,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

/* When real photo: add class hero__bg--photo + set background-image */
.hero__bg--photo {
  background-size: cover;
  background-position: center 20%;
}
.hero__bg--photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.25) 100%
  );
  z-index: 1;
}
.hero__bg--photo::after { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-height) + 2rem) var(--container-padding) 0;
  max-width: calc(var(--container-max) + var(--container-padding) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4vw;
}

.hero__copy { min-width: 0; }

/* ============== GOAL ANIMATION (ball striking the net) ============== */
.wsc-goal {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: 0;
  display: flex;
  justify-content: flex-end;
}
.wsc-goal-scene {
  position: relative;
  width: 100%;
  /* anchor at the goal mouth (left, ball-height) so the net billows toward the ball on the right */
  transform-origin: 6% 36%;
  animation: wsc-goal-strike 8s cubic-bezier(.3,.7,.4,1) infinite;
  will-change: transform;
}
.wsc-goal-scene > img.wsc-net {
  width: 100%;
  height: auto;
  display: block;
}
.wsc-goal-ball {
  position: absolute;
  left: 77.5%;
  top: 34.85%;
  width: 45%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.wsc-goal-ball img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  animation: wsc-goal-roll 2.4s ease-in-out infinite;
  will-change: transform;
}

/* ball drives into the net, net snaps back with a damped elastic recoil */
@keyframes wsc-goal-strike {
  0%   { transform: scaleX(1)     scaleY(1)     skewY(0deg); }
  6%   { transform: scaleX(1.055) scaleY(0.965) skewY(-1.1deg); }  /* impact */
  14%  { transform: scaleX(0.982) scaleY(1.018) skewY(0.65deg); }  /* recoil */
  23%  { transform: scaleX(1.026) scaleY(0.99)  skewY(-0.45deg); }
  33%  { transform: scaleX(0.993) scaleY(1.006) skewY(0.28deg); }
  43%  { transform: scaleX(1.009) scaleY(0.997) skewY(-0.14deg); }
  53%  { transform: scaleX(0.998) scaleY(1.001) skewY(0.06deg); }
  62%  { transform: scaleX(1)     scaleY(1)     skewY(0deg); }     /* settled */
  100% { transform: scaleX(1)     scaleY(1)     skewY(0deg); }     /* rest, then strike again */
}

/* the ball rolls gently back and forth in the net */
@keyframes wsc-goal-roll {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wsc-goal-scene, .wsc-goal-ball img { animation: none; }
}

.hero__title {
  max-width: 720px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}
.hero__title em { font-style: normal; color: var(--gold); }

.hero__subtitle {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--grey-light);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 1.4s;
}
.hero__scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.1%{ transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* --- Stats Banner ----------------------------------------- */
.stats {
  background: var(--black-3);
  border-top: 1px solid rgba(213, 174, 101, 0.12);
  border-bottom: 1px solid rgba(213, 174, 101, 0.12);
  padding: 3.5rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.stats__item {
  padding: 1rem;
  position: relative;
}
.stats__item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(213, 174, 101, 0.12);
}
.stats__item:last-child::after { display: none; }

.stats__number {
  font-family: var(--font-accent);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stats__label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.6rem;
  display: block;
}

/* --- Mission Section -------------------------------------- */
.mission { text-align: center; }
.mission__text {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.85;
  color: var(--grey-light);
}
.mission__text strong { color: var(--cream); font-weight: 600; }

/* --- Players Grid ----------------------------------------- */
.players__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.players__cta { text-align: center; margin-top: 3rem; }

.player-card {
  background: var(--black-3);
  border: 1px solid rgba(213, 174, 101, 0.1);
  overflow: hidden;
  border-radius: 2px;
  transition: border-color var(--transition), transform var(--transition);
}
.player-card:hover {
  border-color: rgba(213, 174, 101, 0.35);
  transform: translateY(-5px);
}

.player-card__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--black-2);
  position: relative;
}
.player-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.player-card:hover .player-card__image img { transform: scale(1.05); }

.player-card__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #F5F1E8, #EDE6D6);
}

.player-card__body { padding: 1.5rem; }
.player-card__pos {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.player-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.player-card__meta { display: flex; flex-direction: column; gap: 0.4rem; }
.player-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--grey-light);
}
.player-card__meta-item .ico {
  width: 13px; height: 13px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(213, 174, 101, 0.22);
  color: var(--grey);
  border-radius: 1px;
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(213, 174, 101, 0.07);
}

/* --- Services -------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}
.service-card {
  padding: 2.25rem 1.75rem;
  background: var(--black-3);
  border: 1px solid rgba(213, 174, 101, 0.1);
  border-radius: 2px;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(213, 174, 101, 0.32);
  transform: translateY(-3px);
}
.service-card__icon { width: 44px; height: 44px; fill: var(--gold); margin-bottom: 1.5rem; }
.service-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--cream);
}
.service-card__text { font-size: 0.85rem; color: var(--grey-light); line-height: 1.72; }

/* Service detail (services page) */
.service-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(213, 174, 101, 0.08);
}
.service-detail:last-child { border-bottom: none; }
.service-detail__number {
  font-family: var(--font-accent);
  font-size: 5.5rem;
  color: rgba(213, 174, 101, 0.12);
  line-height: 1;
  font-weight: 700;
}
.service-detail__title { margin-bottom: 1rem; }
.service-detail__text { font-size: 1rem; color: var(--grey-light); line-height: 1.82; }

/* --- CTA Section ------------------------------------------ */
.cta-section {
  text-align: center;
  background: var(--black-2);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(213,174,101,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section__title { margin-bottom: 1rem; }
.cta-section__text {
  font-size: 1.05rem;
  color: var(--grey-light);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- About Page ------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 5rem;
  text-align: center;
}
.page-hero__label { margin-bottom: 1rem; }
.page-hero__title { margin-bottom: 1.25rem; }
.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--grey-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.about-image { position: relative; }
.about-image__placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(150deg, #F5F1E8, #EDE6D6);
  border: 1px solid rgba(213, 174, 101, 0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-image__placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-image__frame {
  position: absolute;
  bottom: -18px; right: -18px;
  width: 100px; height: 100px;
  border: 2px solid var(--gold);
  border-radius: 1px;
  z-index: -1;
  pointer-events: none;
}

.about-text__bio {
  font-size: 1.05rem;
  line-height: 1.88;
  color: var(--grey-light);
  margin-bottom: 1.5rem;
}
.about-text__bio strong { color: var(--cream); font-weight: 600; }

.about-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(213, 174, 101, 0.07);
  border: 1px solid rgba(213, 174, 101, 0.22);
  border-radius: 1px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.badge .ico { width: 13px; height: 13px; fill: var(--gold); }

/* Values */
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.value-item__icon { width: 44px; height: 44px; fill: var(--gold); margin: 0 auto 1.25rem; }
.value-item__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--cream);
}
.value-item__text { font-size: 0.875rem; color: var(--grey-light); line-height: 1.75; }

/* --- Media / News ---------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.news-card {
  background: var(--black-3);
  border: 1px solid rgba(213, 174, 101, 0.1);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.news-card:hover { border-color: rgba(213,174,101,0.3); transform: translateY(-4px); }
.news-card__image {
  aspect-ratio: 16/9;
  background: var(--black-2);
  overflow: hidden;
}
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__body { padding: 1.5rem; }
.news-card__date { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.news-card__title { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem; line-height: 1.35; }
.news-card__excerpt { font-size: 0.85rem; color: var(--grey-light); line-height: 1.7; }
.news-empty { text-align: center; color: var(--grey); font-size: 1rem; padding: 4rem 0; }

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(213, 174, 101, 0.15);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Contact -------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 6rem;
  align-items: start;
}
.contact-info__item { margin-bottom: 2.5rem; }
.contact-info__label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.contact-info__value { font-size: 1rem; color: var(--cream); }
.contact-info__link { color: var(--cream); transition: color var(--transition); }
.contact-info__link:hover { color: var(--gold); }

.social-links { display: flex; gap: 0.85rem; margin-top: 2.5rem; }
.social-link {
  width: 42px; height: 42px;
  border: 1px solid rgba(213, 174, 101, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-link .ico { width: 16px; height: 16px; fill: var(--grey); transition: fill var(--transition); }
.social-link:hover { border-color: var(--gold); background: rgba(213,174,101,0.08); }
.social-link:hover .ico { fill: var(--gold); }

/* Forms */
.form-tabs {
  display: flex;
  border-bottom: 1px solid rgba(213, 174, 101, 0.12);
  margin-bottom: 2.5rem;
}
.form-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.form-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.form-panel { display: none; }
.form-panel.active { display: block; }

.form__group { margin-bottom: 1.5rem; }
.form__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: var(--black-2);
  border: 1px solid rgba(213, 174, 101, 0.14);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-color: var(--gold); }
.form__input::placeholder,
.form__textarea::placeholder { color: var(--grey); opacity: 0.7; }
.form__textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form__select option { background: #F5F1E8; color: var(--cream); }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.form__checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.form__checkbox-text { font-size: 0.8rem; color: var(--grey-light); line-height: 1.6; }
.form__checkbox-text a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(213,174,101,0.4); }

/* Honeypot */
.form__honeypot { display: none !important; }

.form__submit { margin-top: 2rem; }

.form__feedback {
  display: none;
  padding: 1rem 1.5rem;
  border-radius: 2px;
  font-size: 0.875rem;
  margin-top: 1rem;
}
.form__feedback--success {
  background: rgba(213, 174, 101, 0.08);
  border: 1px solid rgba(213, 174, 101, 0.3);
  color: var(--gold);
}
.form__feedback--error {
  background: rgba(220, 80, 80, 0.07);
  border: 1px solid rgba(220, 80, 80, 0.3);
  color: #e06060;
}
.form__feedback.show { display: block; }

/* Two-column form grid */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Legal pages ----------------------------------------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 6rem;
}
.legal-content h2 {
  font-size: 1.1rem;
  color: var(--gold);
  margin: 2.5rem 0 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
}
.legal-content p,
.legal-content li { font-size: 0.9rem; color: var(--grey-light); line-height: 1.85; margin-bottom: 0.75rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }
.legal-content a { color: var(--gold); text-decoration: underline; }
.legal-content strong { color: var(--cream); }

/* --- Footer ---------------------------------------------- */
.footer {
  background: var(--black-2);
  border-top: 1px solid rgba(213, 174, 101, 0.12);
  padding: 5rem 0 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer__brand-logo { margin-bottom: 1.25rem; }
.footer__brand-logo-svg {
  height: 52px;
  width: auto;
}
.footer__brand-desc { font-size: 0.85rem; color: var(--grey); line-height: 1.75; max-width: 280px; }
.footer__col-title {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__link { font-size: 0.875rem; color: var(--grey); transition: color var(--transition); }
.footer__link:hover { color: var(--cream); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(213, 174, 101, 0.07);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.72rem; color: var(--grey); }
.footer__legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal-link { font-size: 0.72rem; color: var(--grey); transition: color var(--transition); }
.footer__legal-link:hover { color: var(--cream); }

/* --- WhatsApp Float -------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.32);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: floatIn 0.5s ease 1.8s backwards;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}
.whatsapp-float .ico { width: 26px; height: 26px; fill: #fff; }

@keyframes floatIn {
  from { transform: scale(0) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* --- Back to top ----------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 6.5rem; right: 2rem;
  z-index: 900;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(213,174,101,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), border-color var(--transition);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--gold); }
.back-to-top .ico { width: 14px; height: 14px; fill: var(--cream); }

/* --- Scroll Animations ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.reveal-fade.visible { opacity: 1; }

/* --- Keyframes ------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Page enter */
.page-body {
  opacity: 0;
  animation: fadeIn 0.45s ease forwards 0.08s;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 1100px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stats__item:nth-child(3)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 1024px) {
  .about-content { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-image__placeholder { aspect-ratio: 1/1; }
  .contact-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .service-detail { grid-template-columns: 80px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }
  .header__nav, .btn-header { display: none; }
  .hamburger { display: flex; }

  /* Smaller language flags/labels on mobile header */
  .header__actions .lang-switcher { gap: 0.1rem; }
  .header__actions .lang-btn { padding: 0.2rem 0.35rem; gap: 0.25rem; }
  .header__actions .lang-btn .fi { width: 14px; height: 10px; }
  .header__actions .lang-code { font-size: 0.58rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-bottom: 4rem;
  }
  .hero__copy { max-width: none; margin-inline: auto; }
  .hero__title, .hero__subtitle { margin-inline: auto; }
  .wsc-goal { order: -1; max-width: 200px; margin-inline: auto; justify-content: center; }
  .hero__scroll { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2)::after,
  .stats__item:nth-child(4)::after { display: none; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail__number { font-size: 3rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .players__grid { grid-template-columns: repeat(2, 1fr); }

  /* Media & News: tighten gap between subtitle and video on mobile */
  .page-hero--media { padding-bottom: 1.5rem; }
  .section--media-news { padding-top: 1.5rem; }
  .news-empty { padding-top: 0.5rem; }
}

@media (max-width: 520px) {
  .players__grid { grid-template-columns: 1fr; }
  .wsc-goal { max-width: 160px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .cta-section__actions .btn { width: 100%; justify-content: center; max-width: 300px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(5) { grid-column: span 2; }
  .stats__item:nth-child(5)::after { display: none; }
}

/* ============================================================
   BOTTOM NAV — mobile fixed navigation
   ============================================================ */

.bottom-nav {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  /* Push content above the bottom bar */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--black-2);
    border-top: 1px solid rgba(213, 174, 101, 0.2);
    box-shadow: 0 -8px 32px rgba(28, 28, 30, 0.12);
    padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  .bottom-nav-inner {
    display: flex;
    height: 56px;
    align-items: stretch;
    gap: 6px;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: var(--gold);
    color: var(--cream);
    border-radius: 6px;
    font-size: 0.44rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item i {
    font-size: 1.2rem;
    display: block;
    color: var(--cream);
    line-height: 1;
    transition: transform var(--transition);
  }

  .bottom-nav-item.active {
    background: var(--gold-light);
    box-shadow: 0 0 14px rgba(213, 174, 101, 0.45);
  }

  .bottom-nav-item.active i {
    transform: translateY(-2px);
  }

  .bottom-nav-item.active::before { display: none; }

  .bottom-nav-item:hover {
    background: var(--gold-light);
  }

  /* Lift the WhatsApp float above the bottom nav bar */
  .whatsapp-float {
    bottom: calc(76px + 1rem + env(safe-area-inset-bottom, 0px));
  }

  /* Stack back-to-top above the WhatsApp float so they don't overlap */
  .back-to-top {
    bottom: calc(76px + 1rem + 54px + 0.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================================
   LANDSCAPE PHONES — short viewport heights
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-height: 56px; }

  .header__logo-img,
  .header__logo-svg { height: 36px; }

  /* Free up vertical space: hide bottom nav, drop its body padding */
  .bottom-nav { display: none !important; }
  body { padding-bottom: 0 !important; }

  /* No bottom nav to clear — bring floats back near the edge */
  .whatsapp-float {
    bottom: 1rem; right: 1rem;
    width: 46px; height: 46px;
  }
  .whatsapp-float .ico { width: 22px; height: 22px; }
  .back-to-top {
    bottom: 1rem; right: 4.5rem;
    width: 34px; height: 34px;
  }

  /* Compact hero to fit within the short viewport */
  .hero { height: 100vh; min-height: 320px; }
  .hero__content {
    grid-template-columns: 1fr;
    padding: calc(var(--header-height) + 0.75rem) var(--container-padding) 0.75rem;
  }
  .wsc-goal { display: none; }
  .hero__title {
    font-size: clamp(1.5rem, 4.2vw, 2.4rem);
    margin-bottom: 0.6rem;
  }
  .hero__subtitle { display: none; }
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .hero__cta .btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.65rem;
  }
  .hero__scroll { display: none; }

  /* Mobile fly-out menu: scrollable, top-aligned for short viewports */
  .mobile-nav {
    justify-content: flex-start;
    padding: calc(var(--header-height) + 1rem) 1rem 1rem;
    overflow-y: auto;
    gap: 1.25rem;
  }
  .mobile-nav__list { gap: 1rem; }
  .mobile-nav__link { font-size: 1.2rem; }

  /* Page-hero (sub-pages) compaction */
  .page-hero {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 1.5rem;
  }
}
