/* ==========================================================================
   BFC Soccer Schools × Villarreal CF — landing page
   Tokens follow the BFC Soccer Schools design system.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "DINPro";
  src: url("../fonts/DINPro-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --blue-900: #132d63;
  --blue-700: #2355b7;
  --blue-500: #3d6fd6;
  --blue-100: #e4ecfb;
  --red-500:  #e0292a;
  --red-600:  #b1232b;
  --red-100:  #fbe1e1;
  --sky-300:  #9dc3f5;
  --yellow-500: #ffcf0d;

  /* Neutrals */
  --ink-900: #14181f;
  --ink-700: #3d4653;
  --ink-500: #6b7484;
  --paper:   #f5f7fa;
  --paper-2: #e4e8ef;

  /* Shape */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-card: 0 2px 12px -4px rgba(19, 45, 99, 0.14);
  --shadow-lg:   0 18px 40px -18px rgba(19, 45, 99, 0.35);

  /* Type */
  --font-body: "DINPro", "DIN Pro", system-ui, -apple-system, sans-serif;
  --lh-tight: 1.05;
  --lh-body: 1.55;
  --ls-display: 0.03em;

  /* Motion */
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard:   cubic-bezier(0.2, 0, 0.2, 1);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--blue-700); }
a:hover { color: var(--blue-900); }

ul { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
blockquote { margin: 0; }

/* ==========================================================================
   Typography
   ========================================================================== */
.display {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  margin: 0;
}
.display--xl { font-size: clamp(38px, 5.2vw, 68px); }
.display--lg { font-size: clamp(28px, 4vw, 44px); }
.display--md { font-size: 30px; }
.display--blue { color: var(--blue-700); }

/* Heading rhythm — spacing below a display heading, by context */
.display + * { margin-top: 0; }
.section__title { margin-bottom: 48px; }
.split__text .display { margin-bottom: 18px; }

.center { text-align: center; }

.lede {
  font-size: 16px;
  color: var(--ink-700);
  line-height: var(--lh-body);
  margin: 0 0 16px;
}

.body-copy {
  font-size: 16px;
  color: var(--ink-500);
  line-height: var(--lh-body);
  margin: 0 0 28px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.section { padding: 88px 32px; }
.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.section--navy  { background: var(--blue-900); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--narrow { max-width: 1100px; }
.wrap--tight  { max-width: 1000px; }

.section__head { max-width: 640px; margin: 0 0 52px; }
.section__sub { font-size: 16px; color: #fff; line-height: var(--lh-body); margin: 14px 0 0; }
.section__foot { margin-top: 44px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 56px;
  align-items: center;
}
.split--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.split__media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.split--wide .split__text .display { margin-bottom: 0; }
.split__media { margin: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  cursor: pointer;
  transition: background 160ms var(--ease-standard),
              border-color 160ms var(--ease-standard),
              transform 120ms var(--ease-standard);
}
.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--lg { font-size: 16px; padding: 16px 34px; }

.btn--primary { background: var(--red-500); color: #fff; }
.btn--primary:hover { background: var(--red-600); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

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

/* ==========================================================================
   Scroll progress
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red-500), var(--yellow-500));
  z-index: 40;
  transition: width 80ms linear;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--paper-2);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__logo { display: inline-flex; }
.site-header__logo img { height: 34px; display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-700);
}

.hero__carousel { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-standard);
}
.hero__slide.is-active { opacity: 1; }

.hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.hero__scrim--h {
  background: linear-gradient(90deg,
    rgba(12, 20, 36, 0.57) 0%,
    rgba(12, 20, 36, 0.37) 45%,
    rgba(12, 20, 36, 0) 100%);
}
.hero__scrim--v {
  background: linear-gradient(180deg,
    rgba(12, 20, 36, 0) 0%,
    rgba(12, 20, 36, 0.20) 100%);
}

.hero__inner {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 32px;
}
.hero__content { max-width: 620px; }

.hero__lede {
  font-size: 19px;
  color: #fff;
  line-height: var(--lh-body);
  max-width: 520px;
  margin: 0 0 28px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.lockup__bfc { height: 44px; }
.lockup__vcf { height: 56px; }
.lockup__x { font-size: 26px; color: var(--sky-300); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
}
.pill {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.card--tilt {
  transition: transform 350ms var(--ease-out-strong),
              box-shadow 350ms var(--ease-out-strong);
}

.card__spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  background: radial-gradient(320px circle at 50% 0%, rgba(35, 85, 183, 0.10), transparent 55%);
}

.card__media { background: #fff; }
.card__media--contain img { width: 100%; display: block; }
.card__media--portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  position: relative;
}
.card__body--quote { gap: 4px; padding: 24px; }

.card__date  { font-size: 14px; font-weight: 700; color: var(--ink-700); margin: 0; }
.card__venue { font-size: 13px; color: var(--ink-500); margin: 0; }
.card__venue--tbc { font-style: italic; }
.card__copy  { font-size: 14px; color: var(--ink-500); line-height: var(--lh-body); margin: 0; }
.card__cta   { margin-top: auto; }

.facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-700);
  padding: 14px 0;
  border-top: 1px solid var(--paper-2);
}
.facts__row { display: flex; gap: 6px; }
.facts__row dt { font-weight: 700; }

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge--red  { background: var(--red-100);  color: var(--red-500); }
.badge--blue { background: var(--blue-100); color: var(--blue-700); }

.person__name { font-size: 20px; font-weight: 700; color: var(--blue-700); margin: 0 0 4px; }
.person__role { font-size: 14px; color: var(--ink-500); margin: 0 0 14px; }
.quote { font-size: 14px; color: var(--ink-700); line-height: var(--lh-body); }

/* ==========================================================================
   Icon badges / methodology / experience
   ========================================================================== */
.icon-badge {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--blue-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 26px; height: 26px; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.method {
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.method:first-child { padding-left: 0; }
.method:last-child  { padding-right: 0; border-right: none; }

.method .icon-badge { margin-bottom: 16px; }
.method__title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  color: #fff;
  margin: 0 0 10px;
}
.method__copy { font-size: 14px; color: #fff; line-height: var(--lh-body); margin: 0; }

.exp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 32px 0 40px;
}
.exp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 1 150px;
  min-width: 130px;
  max-width: 170px;
}
.exp__label { font-size: 14px; font-weight: 700; color: var(--ink-900); margin: 0; }

/* ==========================================================================
   Auto scroller
   ========================================================================== */
.scroller {
  position: relative;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.scroller__track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}
.scroller__track img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}
.scroller__fade {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.scroller__fade--top    { top: 0;    background: linear-gradient(180deg, var(--paper), transparent); }
.scroller__fade--bottom { bottom: 0; background: linear-gradient(0deg,   var(--paper), transparent); }

/* ==========================================================================
   Register section + form
   ========================================================================== */
.register {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(19, 45, 99, 0.55), rgba(19, 45, 99, 0.55)),
    url("../assets/hero/stadium-night.jpg") center / cover no-repeat;
}
.register__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.register__sub { font-size: 16px; color: #fff; margin: 12px 0 32px; }

.register-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field--submit { align-items: center; margin-top: 8px; }

.label { font-size: 13px; font-weight: 700; color: var(--ink-700); }

.control {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  padding: 12px 14px;
  border: 1px solid var(--paper-2);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard);
}
.control::placeholder { color: var(--ink-500); }
.control:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(35, 85, 183, 0.15);
}
.control.is-invalid {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(224, 41, 42, 0.12);
}

.error {
  font-size: 12px;
  font-weight: 600;
  color: var(--red-500);
  min-height: 15px;
}
.success {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-700);
  text-align: center;
}

/* ==========================================================================
   Footer + sticky CTA
   ========================================================================== */
.site-footer {
  background: var(--blue-900);
  color: #fff;
  padding: 48px 32px 24px;
  text-align: center;
}
.site-footer__logo { height: 32px; margin-bottom: 16px; }
.site-footer__legal { font-size: 12px; color: #7f97c9; margin: 0; }

.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 30;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 350ms var(--ease-out-strong), transform 350ms var(--ease-out-strong);
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta .btn { box-shadow: var(--shadow-lg); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out-strong), transform 700ms var(--ease-out-strong);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.stagger-child {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out-strong), transform 600ms var(--ease-out-strong);
}
.is-visible .stagger-child { opacity: 1; transform: translateY(0); }
.stagger-child:nth-child(1) { transition-delay: 0ms; }
.stagger-child:nth-child(2) { transition-delay: 80ms; }
.stagger-child:nth-child(3) { transition-delay: 160ms; }
.stagger-child:nth-child(4) { transition-delay: 240ms; }
.stagger-child:nth-child(5) { transition-delay: 320ms; }
.stagger-child:nth-child(6) { transition-delay: 400ms; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger-in > * {
  opacity: 0;
  animation: heroUp 700ms var(--ease-out-strong) forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 50ms; }
.stagger-in > *:nth-child(2) { animation-delay: 160ms; }
.stagger-in > *:nth-child(3) { animation-delay: 270ms; }
.stagger-in > *:nth-child(4) { animation-delay: 380ms; }
.stagger-in > *:nth-child(5) { animation-delay: 490ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 820px) {
  .section, .register { padding: 56px 20px; }
  .site-header { padding: 14px 20px; }
  .site-footer { padding: 40px 20px 20px; }
  .hero__inner { padding: 64px 20px; }
  .hero { min-height: auto; }

  .method {
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .method:last-child { border-bottom: none; }

  .scroller { height: 400px; }
  .register-form { padding: 24px; }
  .lockup__bfc { height: 34px; }
  .lockup__vcf { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-child {
    transition: opacity 300ms ease !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }
  .stagger-in > * { animation: none !important; opacity: 1 !important; }
  .hero__slide { transition: none !important; }
  .scroller__track { transform: none !important; }
}
