@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black:    #0d0d0d;
  --white:    #ffffff;
  --off:      #f5f5f3;
  --red:      #8b0000;
  --red-dim:  #5a0000;
  --red-glow: rgba(139,0,0,0.1);
  --muted:    #888884;
  --border:   #e0dedd;
  --text:     #333330;
  --ff-disp:  "Bebas Neue", sans-serif;
  --ff-body:  "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight:300;
  line-height:1.7;
  overflow-x:hidden;
}
img { display:block; max-width:100%; }
a   { color:inherit; text-decoration:none; }
ul  { list-style:none; }

/* ════════════════════════════════════
   NAV — floating over hero, no bg
   ════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  height: 100px;
  transition: background 0.4s, backdrop-filter 0.4s, height 0.3s;
  pointer-events: none; /* let clicks through to hero */
}
#header > * { pointer-events: all; }

/* Frosted on scroll (when over light sections) */
#header.solid {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 44px;
  height: 100px;
  align-items: center;
}

#logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
}
/* On dark hero: screen blend to show red mark */
#logo img {
  height: 38px;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.1);
  transition: filter 0.3s, mix-blend-mode 0.3s;
}
/* On light bg after scroll: invert to black */
#header.solid #logo img {
  mix-blend-mode: normal;
  filter: invert(1) brightness(0);
  height: 38px;
}
.logo-wordmark { display:flex; flex-direction:column; line-height:1; justify-content:center; }
.logo-wordmark-top {
  font-family: var(--ff-disp);
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  color: var(--white);
  transition: color 0.3s;
}
#header.solid .logo-wordmark-top { color: var(--black); }
.logo-wordmark-sub {
  font-size: 0.48rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  transition: color 0.3s;
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 0.3em;
}
.logo-wordmark-sub span { flex-shrink: 0; }
#header.solid .logo-wordmark-sub { color: var(--muted); }

#nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-right: 0;
}
#nav-menu a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
#header.solid #nav-menu a { color: var(--black); }
#nav-menu a:hover { color: var(--white); }
#header.solid #nav-menu a:hover { color: var(--red); }

/* ════════════════════════════════════
   HERO — full viewport, image from top
   ════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: brightness(0.45) saturate(0.9) contrast(1.05);
}
/* Gradient: darken top-left (for headline) + bottom (for body) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.05) 70%),
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 65%);
}

/* Headline — top-left, NOIRI style */


/* Services list — right side, NOIRI style */
.hero-services {
  position: absolute;
  right: 44px;
  bottom: 44px;
  z-index: 2;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: fadeIn 1.2s ease both 0.3s;
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
.hero-services li {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  transition: color 0.2s;
  text-align: right;
}
.hero-services li:hover { color: var(--white); }

/* Bottom bar — body left, agency tag right */
.hero-bottom {
  position: absolute;
  bottom: 44px;
  left: 44px;
  right: 44px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  animation: fadeUp 1s ease both 0.2s;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:none; }
}
.hero-body {
  max-width: 520px;
}
.hero-body p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0;
  text-align: justify;
}



/* ════════════════════════════════════
   SHARED SECTION STYLES
   ════════════════════════════════════ */
.section { padding: 100px 44px; }
.section-inner { max-width: 1240px; margin:0 auto; }
.section-tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--ff-disp);
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--black);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.section-rule { width:38px; height:2px; background:var(--red); margin-bottom:2rem; }
.reveal {
  opacity:0;
  transform:translateY(20px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity:1; transform:none; }

/* ════════════════════════════════════
   ABOUT
   ════════════════════════════════════ */
#about { background:var(--off); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.about-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:5rem; align-items:center; }
.about-photo-wrap { position:relative; }
.about-photo-box {
  aspect-ratio:3/4; background:var(--border);
  border-radius:2px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px;
  position:relative;
}
.about-photo-box::before {
  content:""; position:absolute; top:0; left:0;
  width:4px; height:100%; background:var(--red); z-index:1;
}
.about-photo-placeholder svg { opacity:0.14; }
.about-photo-placeholder span { font-size:0.56rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted); margin-top:8px; }
.about-badge {
  position:absolute; bottom:-1rem; right:-1rem;
  background:var(--red); color:#fff;
  padding:0.9rem 1.2rem; border-radius:2px; text-align:center; line-height:1.1;
}
.about-badge .big { font-family:var(--ff-disp); font-size:2.2rem; display:block; }
.about-badge .sm  { font-size:0.56rem; letter-spacing:0.14em; text-transform:uppercase; }
.about-body p { font-size:0.88rem; line-height:1.9; color:var(--text); margin-bottom:1rem; }
.about-body p:first-of-type { font-size:1rem; color:var(--black); font-weight:400; }
.about-sig { margin-top:1.8rem; display:flex; align-items:center; gap:0.85rem; }
.about-sig-line { width:26px; height:1px; background:var(--red); flex-shrink:0; }
.about-sig-name { font-family:var(--ff-disp); font-size:1rem; letter-spacing:0.14em; color:var(--black); }
.about-sig-role { font-size:0.56rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--red); display:block; margin-top:2px; }

/* ════════════════════════════════════
   SERVICES
   ════════════════════════════════════ */
#services-section {
  position: relative;
}
#services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/stands_background.jpg");
  background-size: cover;
  background-position: center center;
  filter: brightness(0.55) saturate(0.8);
  z-index: 0;
}
#services-section > * { position: relative; z-index: 1; }
.services-hdr { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:2.8rem; }
.services-hdr-right { max-width:260px; font-size:0.8rem; color:#fff; line-height:1.8; text-align:right; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); }
.service-card { background:var(--white); padding:2rem; position:relative; overflow:hidden; transition:background 0.25s; }
.service-card::after { content:""; position:absolute; bottom:0; left:0; height:2px; width:0; background:var(--red); transition:width 0.4s ease; }
.service-card:hover { background:var(--off); }
.service-card:hover::after { width:100%; }
.svc-num { position:absolute; top:1rem; right:1.3rem; font-family:var(--ff-disp); font-size:2.8rem; color:var(--border); line-height:1; pointer-events:none; transition:color 0.3s; }
.service-card:hover .svc-num { color:rgba(139,0,0,0.07); }
.svc-icon { font-size:1.4rem; margin-bottom:0.85rem; display:block; }
.svc-title { font-family:var(--ff-disp); font-size:1.2rem; letter-spacing:0.05em; color:var(--black); margin-bottom:0.55rem; }
.svc-desc { font-size:0.78rem; line-height:1.8; color:var(--muted); }

/* ════════════════════════════════════
   PLAYERS
   ════════════════════════════════════ */
#players {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#players::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/ref_background.jpg");
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.18) saturate(0.8);
  z-index: 0;
}
#players > * { position: relative; z-index: 1; }
.players-hdr { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:2.2rem; }
#players .section-title { color:#fff !important; }
#players .section-rule { background:var(--red); }
#players .section-tag { color:var(--red) !important; }
.filter-row { display:flex; gap:0.35rem; }
.f-btn { font-size:0.58rem; letter-spacing:0.18em; text-transform:uppercase; color:rgba(255,255,255,0.5); border:1px solid rgba(255,255,255,0.2); background:none; padding:0.34rem 0.8rem; border-radius:2px; cursor:pointer; font-family:var(--ff-body); transition:all 0.2s; }
.f-btn:hover,.f-btn.active { color:#fff; border-color:var(--red); background:rgba(139,0,0,0.4); }
.players-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:1px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.08); margin-bottom:3.5rem; }
.player-card { background:rgba(10,10,10,0.72); padding:1.25rem 1rem; transition:background 0.2s; position:relative; display:block; text-decoration:none; color:inherit; backdrop-filter:blur(4px); }
a.player-card:hover { background:rgba(139,0,0,0.5); }
a.player-card:hover .p-name { color:var(--red); }
.p-tm-link { font-size:0.58rem; letter-spacing:0.1em; color:rgba(255,100,100,0.9); margin-top:0.5rem; opacity:0; transition:opacity 0.2s; }
a.player-card:hover .p-tm-link { opacity:1; }
.p-stats { display:flex; align-items:center; gap:0.6rem; margin-top:0.6rem; padding-top:0.6rem; border-top:1px solid rgba(255,255,255,0.08); }
.p-stat { display:flex; flex-direction:column; gap:1px; }
.p-stat-val { font-family:var(--ff-disp); font-size:1rem; letter-spacing:0.06em; color:var(--white); line-height:1; }
.p-stat-lbl { font-size:0.46rem; letter-spacing:0.2em; text-transform:uppercase; color:rgba(255,255,255,0.35); }
.p-stat-div { width:1px; height:22px; background:rgba(255,255,255,0.12); }
.p-stats-loading { font-size:0.5rem; letter-spacing:0.16em; text-transform:uppercase; color:rgba(255,255,255,0.2); margin-top:0.6rem; }
.player-card:hover { background:#f0eeec; }
.p-pos { font-size:0.53rem; letter-spacing:0.26em; text-transform:uppercase; color:var(--red); font-weight:600; margin-bottom:0.38rem; }
.p-name { font-family:var(--ff-disp); font-size:0.92rem; letter-spacing:0.06em; color:var(--white); line-height:1.15; margin-bottom:0.42rem; }
.p-club { font-size:0.67rem; color:rgba(255,255,255,0.5); }
.p-flag { position:absolute; top:0.8rem; right:0.8rem; font-size:0.9rem; }

/* MAP */
.map-wrap { border:1px solid rgba(255,255,255,0.12); border-radius:2px; overflow:hidden; background:rgba(10,10,10,0.72); backdrop-filter:blur(4px); }
.map-header { padding:1rem 1.5rem; border-bottom:1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:space-between; }
.map-header-title { font-family:var(--ff-disp); font-size:0.88rem; letter-spacing:0.12em; color:var(--white); }
.map-legend { display:flex; align-items:center; gap:6px; font-size:0.56rem; letter-spacing:0.18em; text-transform:uppercase; color:rgba(255,255,255,0.5); }
.map-dot { width:7px; height:7px; border-radius:50%; background:var(--red); }
#map-svg-wrap { position:relative; }
#map { height: 500px; width: 100%; z-index: 1; }
.maplibregl-popup-content { font-family:"Helvetica Neue",Helvetica,Arial,sans-serif; padding:10px 14px; border-radius:2px; min-width:170px; box-shadow:0 4px 20px rgba(0,0,0,0.3); }
.maplibregl-popup-close-button { font-size:1rem; color:#888; padding:4px 8px; }
.pop-name { font-family:"Bebas Neue",sans-serif; font-size:1.1rem; letter-spacing:0.06em; color:#0d0d0d; display:block; }
.pop-pos  { font-size:0.68rem; color:#8b0000; margin-top:2px; display:block; }
.pop-club { font-size:0.68rem; color:#888; display:block; margin-top:1px; }
.pop-link { font-size:0.65rem; color:#8b0000; text-decoration:none; display:block; margin-top:8px; padding-top:6px; border-top:1px solid #eee; }
.pop-link:hover { text-decoration:underline; }
.map-country { fill:#d8d8d5; stroke:#c8c8c4; stroke-width:0.5; }


/* ════════════════════════════════════
   CONTACT
   ════════════════════════════════════ */
#contact { background:var(--white); }
.contact-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:5rem; align-items:start; margin-top:2.2rem; }
.ci-item { margin-bottom:1.5rem; }
.ci-label { font-size:0.54rem; letter-spacing:0.28em; text-transform:uppercase; color:var(--red); font-weight:600; margin-bottom:0.28rem; }
.ci-value { font-size:0.86rem; color:var(--black); }
.contact-form { display:flex; flex-direction:column; gap:0.8rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:0.8rem; }
.form-group { display:flex; flex-direction:column; gap:0.28rem; }
.form-lbl { font-size:0.54rem; letter-spacing:0.22em; text-transform:uppercase; color:var(--muted); }
.form-inp,.form-ta { background:var(--off); border:1px solid var(--border); color:var(--black); padding:0.72rem 0.88rem; border-radius:2px; font-family:var(--ff-body); font-size:0.82rem; outline:none; transition:border-color 0.2s; }
.form-inp:focus,.form-ta:focus { border-color:var(--red-dim); background:var(--white); }
.form-ta { min-height:110px; resize:vertical; }
.form-submit { background:var(--black); color:#fff; font-size:0.64rem; font-weight:600; letter-spacing:0.2em; text-transform:uppercase; padding:0.82rem 1.7rem; border:none; border-radius:2px; cursor:pointer; font-family:var(--ff-body); align-self:flex-start; transition:background 0.2s, transform 0.15s; }
.form-submit:hover { background:var(--red); transform:translateY(-1px); }

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
footer { background:var(--black); padding:2.2rem 44px; display:flex; justify-content:space-between; align-items:center; }
.footer-logo { display:flex; align-items:center; gap:10px; }
.footer-logo img { height:28px; mix-blend-mode:screen; filter:brightness(1.2); }
.footer-logo-text { font-family:var(--ff-disp); font-size:1rem; letter-spacing:0.15em; color:var(--white); }
.footer-copy { font-size:0.62rem; color:#555; }
.footer-links { display:flex; gap:1.3rem; }
.footer-links a { font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color:#555; transition:color 0.2s; }
.footer-links a:hover { color:var(--red); }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width:768px) {
  #header { padding:20px 24px 0; }
  #header.solid { padding:0 24px; }
  #logo img { height:48px; }
  #header.solid #logo img { height:36px; }
  #nav-menu { gap:1.2rem; }
  #nav-menu a { font-size:0.6rem; }
  .hero-headline { font-size:3.8rem; top:72px; left:24px; }
  .hero-services { right:24px; bottom:130px; }
  .hero-bottom { left:24px; right:24px; bottom:32px; }
  .hero-body { max-width:260px; }
  .section { padding:72px 24px; }
  .about-grid { grid-template-columns:1fr; gap:3rem; }
  .about-badge { right:0; }
  .services-grid { grid-template-columns:1fr; }
  .services-hdr { flex-direction:column; align-items:flex-start; gap:1rem; }
  .contact-grid { grid-template-columns:1fr; gap:2.2rem; }
  .form-row { grid-template-columns:1fr; }
  .players-hdr { flex-direction:column; align-items:flex-start; gap:1rem; }
  footer { flex-direction:column; gap:1.1rem; text-align:center; padding:1.8rem 24px; }
}