/*
Theme Name: Florijn
Theme URI: http://10.0.0.154:8083
Author: Florijn Foundation
Description: Custom "Waterline" theme for the Florijn Foundation — a tight, professional, athlete-forward design for an elite rowing foundation. Ocean-blue palette with gold championship accents.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: florijn
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --blue:      #1273B8;
  --blue-l:    #37a0dd;
  --blue-d:    #0A4E7A;
  --blue-dd:   #062f4c;
  --gold:      #ffd23f;
  --ink:       #0e2436;
  --slate:     #4a6577;
  --line:      #e2ecf4;
  --wash:      #eef5fb;
  --wash2:     #e4eff8;
  --white:     #ffffff;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(6,47,76,.14);
  --shadow-lg: 0 20px 50px rgba(6,47,76,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.05; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blue);
}
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: .02em;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(18,115,184,.35); }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-gold { background: var(--gold); color: var(--blue-dd); box-shadow: 0 8px 22px rgba(255,210,63,.4); }
.btn-gold:hover { color: var(--blue-dd); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
}
.site-header.solid {
  position: sticky; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 20px 0; font-weight: 700; font-size: 14px;
}
.brand {
  font-family: var(--font-display); font-size: 22px; letter-spacing: .04em;
  text-transform: uppercase; margin-right: auto; color: #fff; line-height: 1;
}
.brand .mk { color: var(--blue-l); }
.solid .brand { color: var(--blue-d); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.site-header .brand-logo, .site-footer .brand-logo { height: 46px !important; width: auto !important; max-height: 46px; display: block; }
/* Logo is dark artwork — force white over the dark transparent hero header + footer */
.site-header:not(.solid) .brand-logo { filter: brightness(0) invert(1); }
.site-footer .brand-logo { filter: brightness(0) invert(1); height: 52px !important; max-height: 52px; }
.nav a.navlink { color: rgba(255,255,255,.9); position: relative; }
.solid .nav a.navlink { color: var(--ink); }
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .2s var(--ease);
}
.nav a.navlink:hover::after { width: 100%; }
.nav .btn { padding: 10px 20px; }
.nav-toggle { display: none; }
/* Cart link */
.nav-cart { position: relative; display: inline-flex; align-items: center; color: rgba(255,255,255,.9); }
.solid .nav-cart { color: var(--ink); }
.nav-cart:hover { color: var(--gold); }
.nav-cart svg { width: 24px; height: 24px; }
.nav-cart__count { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--blue-dd); font: 800 11px/18px var(--font-body); text-align: center; }
.nav-cart__count[hidden] { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,47,76,.94) 0%, rgba(10,78,122,.72) 42%, rgba(18,115,184,.12) 100%);
}
.hero__cut {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 2; background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hero__inner { position: relative; z-index: 3; padding-top: 150px; padding-bottom: 96px; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(255,210,63,.22); }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 92px); line-height: .92; letter-spacing: .005em;
  margin: 0 0 20px; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--blue-l); }
.hero__lede { font-size: clamp(16px,1.4vw,19px); max-width: 46ch; color: rgba(255,255,255,.92); margin-bottom: 30px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* staggered load */
.hero__badge, .hero h1, .hero__lede, .hero__btns { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero h1 { animation-delay: .08s; }
.hero__lede { animation-delay: .18s; }
.hero__btns { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero * { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* ============================================================
   Stat strip
   ============================================================ */
.stats { background: linear-gradient(100deg, var(--blue-d), var(--blue)); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px 34px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; height: 52%; width: 1px; background: rgba(255,255,255,.2); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(38px,4vw,52px); line-height: 1; font-weight: 400; }
.stat b i { font-style: normal; color: var(--gold); }
.stat span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); font-weight: 800; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 84px 0; }
.section.tint { background: var(--wash); }
.section.dark { background: var(--blue-dd); color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(28px,3.4vw,42px); font-weight: 800; letter-spacing: -.02em; font-family: var(--font-body); }
.section__head .eyebrow { display: block; margin-bottom: 10px; }
.section__head a { font-weight: 800; font-size: 14px; white-space: nowrap; }
.lead { font-size: 20px; color: var(--slate); max-width: 62ch; }

/* Mission — eye-catcher */
.mission { position: relative; overflow: hidden; background:
  radial-gradient(900px 420px at 15% -10%, #e7f2fb 0%, rgba(231,242,251,0) 60%),
  radial-gradient(760px 380px at 95% 0%, #eaf6f0 0%, rgba(234,246,240,0) 55%), #fff; }
.mission__head { text-align: center; max-width: 900px; margin: 0 auto 54px; }
.mission__head .eyebrow { display: inline-block; margin-bottom: 18px; }
.mission__motto { font-size: clamp(40px, 6.2vw, 84px); line-height: .95; letter-spacing: .01em; margin: 0 0 20px; color: var(--ink); }
.mission__motto span { color: var(--blue); position: relative; display: inline-block; }
.mission__motto span { padding-bottom: .18em; }
.mission__motto span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: .12em; background: var(--gold); border-radius: 2px; }
.mission__lede { color: var(--slate); font-size: 18px; max-width: 60ch; margin: 0 auto; }

/* Pillars (mission points) */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-l)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar:hover::before { transform: scaleX(1); }
.pillar .num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold); display: block; margin-bottom: 12px; }
.pillar .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--wash); display: grid; place-items: center; margin-bottom: 18px; color: var(--blue); }
.pillar .ic svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 20px; font-weight: 800; font-family: var(--font-body); }
.pillar p { color: var(--slate); margin: 0; font-size: 15px; }

/* Athlete spotlight */
.athletes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.acard { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; color: #fff; box-shadow: var(--shadow); display: block; }
.acard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.acard:hover img { transform: scale(1.05); }
.acard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,47,76,.94) 8%, rgba(6,47,76,.15) 55%, rgba(6,47,76,0) 100%); }
.acard__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; }
.acard .medal { display: inline-block; background: var(--gold); color: var(--blue-dd); font-weight: 800; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.acard h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0; letter-spacing: .02em; text-transform: uppercase; }
.acard p { margin: 3px 0 0; font-size: 13px; opacity: .9; color:#fff; }

/* News cards */
.news { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ncard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: flex; flex-direction: column; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ncard__img { aspect-ratio: 16/10; background: var(--wash2) center/cover; }
.ncard__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ncard .tag { font-weight: 800; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.ncard h3 { font-size: 18px; font-weight: 800; font-family: var(--font-body); line-height: 1.25; margin: 0 0 10px; }
.ncard h3 a { color: var(--ink); }
.ncard h3 a:hover { color: var(--blue); }
.ncard p { color: var(--slate); font-size: 14px; margin: 0; }
.ncard .more { margin-top: auto; padding-top: 14px; font-weight: 800; font-size: 13px; color: var(--blue); }

/* Trophy cabinet */
.trophy { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 18px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); }
.tcard b { display: block; font-family: var(--font-display); font-size: 46px; color: var(--blue); line-height: 1; }
.tcard.gold b { color: #c99700; }
.tcard span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--slate); }

/* Partners */
.partners { background: linear-gradient(120deg, #e7f2fb 0%, #d7ebf6 45%, #e3f3ec 100%); position: relative; }
.partners .section__head { text-align: center; justify-content: center; }
.partners .section__head > div { text-align: center; }
.partners__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: center; padding: 16px 0; }
.partner { display: inline-flex; align-items: center; }
.partner img { max-height: 84px; width: auto; opacity: .95; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.partner:hover img { opacity: 1; transform: translateY(-2px); }

/* Recruit CTA band */
.recruit { position: relative; background: linear-gradient(115deg, var(--blue-d), var(--blue-dd)); color: #fff; overflow: hidden; }
.recruit::before { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(55,160,221,.5), transparent 70%); }
.recruit__in { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 70px; padding-bottom: 70px; }
.recruit h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px,4vw,52px); text-transform: uppercase; margin: 0; }
.recruit p { color: rgba(255,255,255,.85); margin: 12px 0 0; max-width: 46ch; }

/* Page/content */
.page-hero { background: var(--blue-dd); color: #fff; padding: 130px 0 60px; position: relative; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px,5vw,64px); margin: 0; }
.page-hero .eyebrow { color: var(--blue-l); margin-bottom: 12px; display:block; }
.content { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.content h2 { font-size: 30px; font-weight: 800; margin-top: 1.4em; }
.content h3 { font-size: 22px; font-weight: 800; }
.content img { border-radius: var(--radius); margin: 1.5em 0; }
.content ul { padding-left: 1.2em; }
.content blockquote { border-left: 4px solid var(--gold); margin: 1.5em 0; padding: .3em 0 .3em 1.2em; font-size: 20px; color: var(--blue-d); }

/* Athlete profile */
.medal-badge { background: var(--gold); color: var(--blue-dd); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; display: inline-block; }
.athlete-grid { display: grid; grid-template-columns: 1fr 330px; gap: 44px; align-items: start; }
.athlete-photo { border-radius: var(--radius); margin: 0 0 26px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.athlete-bio { font-size: 17px; color: var(--ink); }
.athlete-bio p { color: var(--slate); }
.athlete-links { display: flex; gap: 14px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.athlete-links .socials { margin-top: 0; }
.fact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.fact-card h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.fact-card > p { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 10px; font-size: 14px; }
.fact-card > p span { color: var(--slate); }
.fact-card > p strong { color: var(--ink); text-align: right; font-weight: 700; }
.medals-card .medal-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.medals-card .medal-row:last-child { border-bottom: 0; }
.medal-row__label { color: var(--slate); font-size: 13px; font-weight: 600; }
.medal-row__val { color: var(--blue-d); font-weight: 800; font-size: 14px; text-align: right; }
@media (max-width: 820px) { .athlete-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Trophy cabinet — fancy member medal cards */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mcard__media { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; color: #fff; }
.mcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mcard:hover .mcard__media img { transform: scale(1.06); }
.mcard__grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,47,76,.95) 6%, rgba(6,47,76,.35) 45%, rgba(6,47,76,0) 72%); }
.mcard__count { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.mcard__count b { font-family: var(--font-display); font-size: 16px; margin-right: 3px; }
.mcard__head { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; }
.mcard__badge { display: inline-block; background: var(--gold); color: var(--blue-dd); font-weight: 800; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.mcard__head h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; margin: 0; line-height: 1; }
.mcard__head p { margin: 5px 0 0; font-size: 13px; opacity: .9; }
.mcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.tier { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tier:last-of-type { border-bottom: 0; }
.tier__name { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.tier__raw { font-size: 13px; font-weight: 700; color: var(--blue-d); }
.chips { display: inline-flex; gap: 7px; }
.chip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 800 13px/1 var(--font-body); color: #4a3a00; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 5px rgba(0,0,0,.15); }
.chip--g { background: radial-gradient(circle at 32% 28%, #ffe38a, #f0b800); }
.chip--s { background: radial-gradient(circle at 32% 28%, #f4f7fb, #c2ccd6); color: #3a4753; }
.chip--b { background: radial-gradient(circle at 32% 28%, #e6a978, #c67c3e); color: #3d2410; }
.mcard__link { margin-top: 14px; font-weight: 800; font-size: 13px; color: var(--blue); }
.chip-legend { display: flex; gap: 22px; justify-content: center; margin-top: 30px; color: var(--slate); font-size: 13px; font-weight: 700; }
.chip-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chip-legend i.chip { width: 18px; height: 18px; }

/* Results table */
.results-table { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; box-shadow: var(--shadow); }
.results-head, .results-row { display: grid; grid-template-columns: 72px 1.5fr 1fr 1.2fr 120px; gap: 16px; padding: 15px 22px; align-items: center; min-width: 640px; }
.results-head { background: var(--blue-dd); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.results-row { border-top: 1px solid var(--line); font-size: 14px; }
.results-row:hover { background: var(--wash); }
.rt-year { font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--blue-d); }
.rt-loc { color: var(--slate); }
.ta-r { text-align: right; }
.results-row .place { font-weight: 800; color: var(--ink); }
.results-row .place--gold { background: var(--gold); color: var(--blue-dd); padding: 3px 11px; border-radius: 999px; }
.results-row small { display: block; color: var(--slate); font-size: 12px; margin-top: 3px; }

/* Events */
.events { display: flex; flex-direction: column; gap: 14px; }
.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.event__date { text-align: center; background: var(--wash); border-radius: 10px; padding: 12px 8px; }
.event__date b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--blue-d); line-height: 1; }
.event__date span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.event h3 { font-size: 19px; font-weight: 800; font-family: var(--font-body); margin: 0; }
.event p { color: var(--slate); margin: 4px 0 0; font-size: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: linear-gradient(180deg, var(--ink), #0a1c2c); color: #b9cde0; padding: 64px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer__brand .brand { color: #fff; font-size: 26px; margin-bottom: 14px; display: inline-block; }
.footer__brand p { max-width: 34ch; color: #9db6cb; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b9cde0; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #b9cde0; margin: 0; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--blue-dd); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
/* Socials on light backgrounds (athlete pages) */
.socials--dark a { background: var(--wash); color: var(--blue-d); }
.socials--dark a:hover { background: var(--blue); color: #fff; }

/* ============================================================
   Forms (Contact Form 7)
   ============================================================ */
.form-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 40px 40px 44px; }
.form-card h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.form-card .form-intro { color: var(--slate); margin: 0 0 24px; }
.wpcf7-form p { margin: 0 0 18px; }
.wpcf7-form label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=url], .wpcf7 input[type=tel],
.wpcf7 input[type=number], .wpcf7 input[type=date], .wpcf7 select, .wpcf7 textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fbfdff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18,115,184,.14);
}
.wpcf7 ::placeholder { color: #9db1c0; }
.wpcf7-submit {
  appearance: none; cursor: pointer; border: 0;
  background: var(--blue); color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: .02em;
  padding: 14px 30px; border-radius: 999px; box-shadow: 0 8px 22px rgba(18,115,184,.35);
  transition: transform .18s var(--ease), background .18s;
}
.wpcf7-submit:hover { background: var(--blue-d); transform: translateY(-2px); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7-response-output { border-radius: 10px; padding: 12px 16px !important; font-size: 14px; margin: 8px 0 0 !important; }
.wpcf7 .wpcf7-not-valid-tip { color: #c0392b; font-size: 13px; font-weight: 600; }
.wpcf7-form.two-col .cf7-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .wpcf7-form.two-col .cf7-grid { grid-template-columns: 1fr; } .form-card { padding: 28px 22px 32px; } }

/* For Athletes offer list */
.offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin: 0 0 8px; padding: 0; list-style: none; }
.offer li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 600; }
.offer li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); }
.offer li::after { content: "✓"; position: absolute; left: 4px; top: 2px; font-size: 12px; font-weight: 800; color: var(--blue-dd); }
@media (max-width: 560px) { .offer { grid-template-columns: 1fr; } }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #7f9bb2; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .pillars, .athletes, .news, .stats__grid { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .recruit__in { flex-direction: column; align-items: flex-start; }
  .event { grid-template-columns: 90px 1fr; }
  .event .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
  .athletes, .news, .pillars, .stats__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero__inner { padding-top: 120px; padding-bottom: 72px; }
  .nav.open { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #fff; padding: 18px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-list { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .nav.open .nav-list .navlink { color: var(--ink); }
  .nav.open .brand { color: var(--blue-d); }
}
@media (max-width: 400px) { .stats__grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   WooCommerce
   ============================================================ */
/* Result count + sorting row */
.woocommerce .woocommerce-result-count { color: var(--slate); font-size: 14px; float: left; margin: 8px 0 0; }
.woocommerce .woocommerce-ordering { float: right; margin: 0 0 28px; }
.woocommerce .woocommerce-ordering select.orderby,
.woocommerce select.orderby {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font: 600 14px/1 var(--font-body); color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234a6577' stroke-width='2' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 42px 12px 18px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce select.orderby:hover { border-color: var(--blue-l); }
.woocommerce select.orderby:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(18,115,184,.14); }

/* Product grid — kill WooCommerce's clearfix pseudo-elements that break the grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; margin: 0 !important; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product { list-style: none; width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: flex; flex-direction: column; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product a img { margin: 0; border-radius: 0; aspect-ratio: 3/4; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-body); font-weight: 800; font-size: 16px; padding: 16px 18px 2px; color: var(--ink); }
.woocommerce ul.products li.product .price { display: block; padding: 0 18px; color: var(--blue-d) !important; font-weight: 800; font-size: 18px; }
.woocommerce ul.products li.product .price del { color: var(--slate) !important; font-weight: 500; opacity: .6; }
.woocommerce ul.products li.product .button { margin: 14px 18px 20px; align-self: flex-start; }
.woocommerce span.onsale { background: var(--gold); color: var(--blue-dd); border-radius: 999px; font-weight: 800; min-height: 0; padding: 4px 12px; top: 12px; left: 12px; }

/* Buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--blue); color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 14px;
  border-radius: 999px; padding: 12px 24px; border: 0; transition: transform .18s var(--ease), background .18s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #respond input#submit:hover {
  background: var(--blue-d); color: #fff; transform: translateY(-2px);
}
.woocommerce .button.checkout-button, .woocommerce-cart .wc-proceed-to-checkout .checkout-button { background: var(--gold); color: var(--blue-dd); }

/* Single product */
.woocommerce div.product .product_title { font-size: clamp(26px,3vw,38px); font-weight: 800; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--blue-d); font-weight: 800; font-size: 26px; }
.woocommerce div.product form.cart div.quantity input { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; }
.woocommerce .quantity input.qty { height: auto; }

/* Notices */
.woocommerce-message, .woocommerce-info { border-top-color: var(--blue); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--blue); }

/* Cart & checkout tables */
.woocommerce table.shop_table { border-radius: var(--radius); }
.woocommerce-cart table.cart img { width: 64px; border-radius: 8px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
/* Coupon field */
.woocommerce .cart .coupon, .woocommerce-cart .coupon { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.woocommerce .coupon input#coupon_code, .woocommerce .coupon input.input-text {
  font: inherit !important; color: var(--ink) !important; background: #fbfdff !important; height: auto !important;
  border: 1.5px solid var(--line) !important; border-radius: 999px !important; padding: 12px 20px !important; min-width: 220px !important; margin: 0 !important;
}
.woocommerce .coupon input#coupon_code:focus { outline: none; border-color: var(--blue) !important; box-shadow: 0 0 0 4px rgba(18,115,184,.14); }

/* Checkout */
.woocommerce-checkout h3 { font-weight: 800; font-size: 20px; }
.woocommerce-checkout .form-row label { font-weight: 700; font-size: 14px; }
.woocommerce form.checkout #customer_details { margin-bottom: 28px; }
.woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { max-width: 100%; }
.woocommerce-checkout #order_review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.woocommerce-checkout #payment { background: var(--wash) !important; border-radius: 12px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); }
.woocommerce #payment #place_order, .woocommerce-checkout #place_order {
  background: var(--gold) !important; color: var(--blue-dd) !important; width: 100%; font-size: 16px; padding: 15px 24px; border-radius: 999px;
}
.select2-container--default .select2-selection--single { border: 1.5px solid var(--line) !important; border-radius: 10px !important; height: 46px !important; padding: 6px 8px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 32px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.woo-wrap { max-width: 1100px; }

/* Donation "name your price" */
.donation-any { color: var(--blue-d); font-weight: 800; }
.donation-field { margin: 0 0 22px; }
.donation-field > label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 10px; color: var(--ink); }
.donation-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.donation-preset { cursor: pointer; font: 800 14px var(--font-body); color: var(--blue-d); background: var(--wash); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 20px; transition: all .15s var(--ease); }
.donation-preset:hover { border-color: var(--blue); }
.donation-preset.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.donation-field input[type=number] { width: 180px; max-width: 100%; font: 700 18px var(--font-body); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.donation-field input[type=number]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18,115,184,.14); }

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 0 0 1em; margin-bottom: 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--wash); border-color: var(--line); border-radius: 999px 999px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 800; color: var(--slate); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--blue-d); }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 24px; font-weight: 800; }

/* Reviews */
.woocommerce #reviews #comments h2 { font-size: 22px; font-weight: 800; }
.woocommerce #reviews .woocommerce-noreviews { color: var(--slate); background: var(--wash); border-radius: 10px; padding: 14px 18px; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.woocommerce #review_form #respond { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); margin-top: 8px; }
.woocommerce #review_form #respond p { margin: 0 0 16px; }
.woocommerce #review_form #respond label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.woocommerce #review_form #respond input[type=text], .woocommerce #review_form #respond input[type=email], .woocommerce #review_form #respond textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fbfdff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.woocommerce #review_form #respond input:focus, .woocommerce #review_form #respond textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18,115,184,.14); }
.woocommerce p.stars a { color: var(--gold) !important; }
.woocommerce p.stars a::before { color: var(--gold); }
.woocommerce p.stars.selected a.active ~ a::before, .woocommerce p.stars a:hover ~ a::before { color: var(--line); }
.woocommerce-Reviews .comment-form-rating label { margin-bottom: 4px; }
