/* =========================================================
   Alice Ruppert — Recruiting Homepage
   Palette derived from N1 League + TRU + montage imagery
   ========================================================= */
:root {
  --navy-900: #08182a;
  --navy-800: #0c2138;
  --navy-700: #122d48;   /* matches montage backdrop */
  --navy-600: #173a5c;
  --ink:      #2c3659;   /* N1 navy */
  --gold:     #d4b380;   /* N1 gold */
  --gold-bright: #e7caa0;
  --sky:      #9ec6de;   /* TRU light blue */
  --teal:     #1f7f93;
  --cream:    #f5f3ee;
  --muted:    rgba(245, 243, 238, 0.66);
  --line:     rgba(212, 179, 128, 0.22);
  --card:     rgba(255, 255, 255, 0.035);
  --card-brd: rgba(255, 255, 255, 0.09);
  --shadow:   0 24px 60px -22px rgba(0, 0, 0, 0.7);
  --radius:   18px;
  --maxw:     1180px;
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* offset anchor targets so section headings clear the sticky header */
#top, section[id] { scroll-margin-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cream);
  background: var(--navy-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* page-wide ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(31, 127, 147, 0.30), transparent 60%),
    radial-gradient(800px 700px at 0% 18%, rgba(23, 58, 92, 0.55), transparent 55%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 60%, #061320 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }

h1, h2, h3, .display {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  color: var(--gold);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(8, 24, 42, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 24, 42, 0.92);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink);
  border: 1.5px solid var(--gold);
  color: var(--gold-bright);
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand .name {
  font-family: "Oswald", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.95rem;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link {
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); transition: color 0.2s var(--ease); position: relative;
}
.nav-links a.link:hover { color: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.92rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s var(--ease),
    background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1c1407;
  box-shadow: 0 10px 26px -12px rgba(212, 179, 128, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(212, 179, 128, 0.9); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-brd); color: var(--cream);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--sky); background: rgba(158, 198, 222, 0.1); }
.btn-sm { padding: 9px 16px; font-size: 0.84rem; }
.icon-btn {
  width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 11px;
  background: rgba(255, 255, 255, 0.05); border-color: var(--card-brd); color: var(--cream);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 86px) 0 clamp(30px, 5vw, 60px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .fn {
  display: block; font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--cream);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem); opacity: 0.92;
}
.hero h1 .ln {
  display: block; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.005em; line-height: 0.88;
  font-size: clamp(3.6rem, 12vw, 7.2rem);
  background: linear-gradient(180deg, #fff 6%, var(--gold-bright) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--muted);
  max-width: 46ch; margin-bottom: 26px;
}
.hero .lede strong { color: var(--cream); font-weight: 600; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; font-size: 0.84rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--card-brd); color: var(--cream);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.pill .flag { font-size: 1rem; line-height: 1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero image */
.hero-figure { position: relative; }
.hero-figure .frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(158, 198, 222, 0.28);
  box-shadow: var(--shadow);
  background: var(--navy-700);
}
.hero-figure .frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(8, 24, 42, 0.55);
  border-radius: var(--radius);
}
.hero-figure img.montage { width: 100%; height: auto; display: block; }
.badge-row {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(8, 22, 37, 0.74); backdrop-filter: blur(6px);
  border: 1px solid var(--card-brd);
}
.badge-row img { height: 30px; width: auto; }
.badge-row .sep { width: 1px; height: 24px; background: var(--card-brd); }
.badge-row span { font-size: 0.72rem; line-height: 1.15; color: var(--muted); max-width: 130px; }
.badge-row span b { color: var(--cream); font-weight: 600; display: block; }

/* ---------------- Stats strip ---------------- */
.stats { margin-top: clamp(36px, 6vw, 64px); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  background: var(--card); border: 1px solid var(--card-brd);
  border-radius: 16px; padding: 22px 20px; position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}
.stat .num {
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1; color: var(--cream);
}
.stat .num small { font-size: 0.5em; color: var(--gold); font-weight: 600; }
.stat .lbl {
  margin-top: 8px; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}

/* ---------------- Sections ---------------- */
section.block { padding: clamp(56px, 9vw, 110px) 0; }
.sec-head { max-width: 60ch; margin-bottom: 42px; }
.sec-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700; margin-top: 12px;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.04rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-copy p strong { color: var(--cream); font-weight: 600; }
.facts {
  background: var(--card); border: 1px solid var(--card-brd);
  border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow);
}
.facts dl { display: grid; grid-template-columns: 1fr; }
.facts .row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.facts .row:last-child { border-bottom: none; }
.facts dt {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  font-weight: 600;
}
.facts dd { font-weight: 600; text-align: right; color: var(--cream); }
.facts dd a:hover { color: var(--gold-bright); }

/* Club & League */
.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.club-card {
  background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 30px; display: flex; gap: 22px; align-items: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.club-card:hover { transform: translateY(-4px); border-color: var(--line); }
.club-card .logo {
  flex: 0 0 auto; width: 92px; height: 92px; border-radius: 14px;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-brd);
}
.club-card .logo img { max-height: 70px; max-width: 70px; width: auto; }
.club-card h3 { font-size: 1.18rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.club-card .tag { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin: 4px 0 8px; }
.club-card p { color: var(--muted); font-size: 0.95rem; }

/* Contact / CTA */
.cta-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(31, 127, 147, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(36px, 6vw, 70px); text-align: center;
}
.cta-panel h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); text-transform: uppercase; }
.cta-panel p { color: var(--muted); max-width: 52ch; margin: 16px auto 30px; font-size: 1.08rem; }
.cta-panel .cta-row { justify-content: center; }
/* flags (emoji) */
.flag { font-size: 1.02em; line-height: 1; }
.flag-group { white-space: nowrap; }

/* Profile: keep heading using full column width when inline with facts */
.about-main .sec-head { max-width: none; margin-bottom: 30px; }

/* International experience */
.intl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.intl-card {
  background: var(--card); border: 1px solid var(--card-brd); border-radius: var(--radius);
  padding: 28px 30px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.intl-card:hover { transform: translateY(-4px); border-color: var(--line); }
.intl-card h3 {
  font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 18px;
}
.intl-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.intl-list li {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.intl-list li:last-child { padding-bottom: 0; border-bottom: none; }
.intl-list .flag-group { flex: 0 0 auto; font-size: 1.25rem; line-height: 1; letter-spacing: 2px; }
.intl-list .intl-text { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.4; }
.intl-list .intl-text b { color: var(--cream); font-weight: 600; }
.intl-list .badge {
  flex: 0 0 auto; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 0.78rem;
  color: #1c1407; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 3px 11px; border-radius: 999px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 20px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-grid .brand .name { font-size: 0.86rem; }
.site-footer .meta { color: var(--muted); font-size: 0.82rem; }
.site-footer .social { display: flex; gap: 10px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .intl-grid { grid-template-columns: 1fr; }
  .club-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 460px) {
  .nav .name { display: none; }
  .stat { padding: 18px 16px; }
  .club-card { flex-direction: column; text-align: center; gap: 16px; }
  .facts dd { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .club-card { transition: none; }
}
