/* ==========================================================
   SFL All Black FC: shared look for every page
   Same colours and type as the documents and the donation page
   ========================================================== */
:root {
  --ink: #15140F;
  --gold: #C28A1B;
  --gold-dark: #8A6212;
  --gold-light: #F3E9CE;
  --body: #20211C;
  --grey: #55554F;
  --cream: #F6F4EE;
  --rule: #D8D5CC;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: 'Source Sans 3', 'PingFang HK', 'PingFang SC', 'Microsoft JhengHei', 'Microsoft YaHei', 'Noto Sans TC', 'Noto Sans SC', Helvetica, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--grey); letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: 0.9375rem; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .lang { color: var(--grey); font-weight: 400; }
.nav .lang[aria-current="true"] { color: var(--ink); font-weight: 700; }
.nav .lang + .lang { margin-left: -0.75rem; }
.nav .button { border: 2px solid var(--gold); padding: 0.5rem 1.25rem; min-height: 0; }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--rule); background: var(--white); border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; min-height: 48px; padding: 0.7rem 1.5rem; border-radius: 4px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--ink) !important; font-weight: 700; text-decoration: none; text-align: center;
}
.button.ghost { background: transparent; color: var(--white) !important; border-color: var(--white); }
.button.dark { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero (home) and page titles ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,20,15,0.88) 0%, rgba(21,20,15,0.6) 45%, rgba(21,20,15,0.05) 80%); }
.hero .container { position: relative; z-index: 1; padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero-text { max-width: 600px; display: flex; flex-direction: column; gap: 1.25rem; }
.hero h1 { color: var(--white); font-size: 3.5rem; font-weight: 700; }
.hero p { font-size: 1.25rem; line-height: 1.5; }
.page-title { background: var(--ink); color: var(--white); border-bottom: 3px solid var(--gold); }
.page-title .container { padding-top: 3rem; padding-bottom: 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.page-title h1 { color: var(--white); font-size: 2.75rem; }
.page-title p { max-width: 720px; font-size: 1.1875rem; color: var(--gold-light); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.eyebrow { color: var(--gold-dark); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.section.dark .eyebrow, .hero .eyebrow, .page-title .eyebrow { color: var(--gold); }
.section h2 { font-size: 2.125rem; }
.section h3 { font-size: 1.3125rem; }
.title-rule { display: flex; align-items: center; }
.title-rule::before { content: ""; width: 72px; height: 3px; background: var(--gold); }
.title-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.lead { font-size: 1.25rem; line-height: 1.55; }
.lead strong { color: var(--gold-dark); }
.small { font-size: 0.875rem; color: var(--grey); }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
.split img, .photo { width: 100%; border-radius: 6px; object-fit: cover; }
.photo.wide { max-height: 420px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }

/* ---------- Figures strip ---------- */
.stats { background: var(--gold-light); }
.stats .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
.stat-number { font-size: 1.75rem; font-weight: 700; color: var(--gold-dark); line-height: 1.2; }
.stat-label { font-size: 0.9375rem; color: var(--body); }

/* ---------- Cards ---------- */
.card { background: var(--white); border-top: 3px solid var(--gold); border-radius: 6px; box-shadow: 0 8px 28px rgba(21,20,15,0.08); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.card-tag { color: var(--gold-dark); font-size: 0.875rem; font-weight: 700; }
.card-body .more { margin-top: auto; font-weight: 700; }
.tile { background: var(--cream); border-left: 3px solid var(--gold); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.375rem; }
.section.cream .tile { background: var(--white); }
.tile h3 { font-size: 1.125rem; }
.quote { background: var(--gold-light); border-left: 4px solid var(--gold); padding: 1.5rem 1.75rem; font-size: 1.1875rem; font-style: italic; }
.quote cite { display: block; margin-top: 0.75rem; font-size: 0.9375rem; font-style: normal; color: var(--gold-dark); font-weight: 700; }
.letters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.letter { background: var(--white); border-top: 3px solid var(--gold); border-radius: 6px; padding: 1rem 0.5rem; text-align: center; }
.letter b { display: block; font-size: 2rem; color: var(--gold-dark); line-height: 1; margin-bottom: 0.375rem; }

/* ---------- Values with the upright video beside them ---------- */
.values-video { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1.5rem; align-items: stretch; }
.values-video .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.values-video .letter { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.values-video .letter b { font-size: 3rem; margin-bottom: 0.5rem; }
.video-short { aspect-ratio: 9 / 16; background: var(--ink); border-top: 3px solid var(--gold); border-radius: 6px; overflow: hidden; }
.video-short iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play { width: 100%; height: 100%; border: 0; padding: 1rem; background: linear-gradient(160deg, #2b2a22, var(--ink)); color: var(--white); font: inherit; font-weight: 700; font-size: 1.125rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; }
.video-play small { font-weight: 400; font-size: 0.875rem; color: var(--gold-light); }
.video-play.with-still { position: relative; justify-content: flex-end; padding-bottom: 1.75rem; background: linear-gradient(180deg, rgba(21,20,15,0.15) 0%, rgba(21,20,15,0.3) 36%, rgba(21,20,15,0.98) 60%), url('../images/video_values.jpg') center top / cover no-repeat, var(--ink); }
.video-play.with-still .play-icon { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); margin: 0; box-shadow: 0 6px 24px rgba(0,0,0,0.45); }
.video-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.play-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); position: relative; margin-bottom: 0.5rem; }
.play-icon::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }

/* ---------- Academy: team cards ---------- */
.team-card img { height: 230px; }
.team-photo { display: block; }
.facts { margin: 0.25rem 0 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; }
.facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 0; }
.team-join { grid-column: span 2; justify-content: center; gap: 0.875rem; padding: 2rem; border-left: 0; border-top: 3px solid var(--gold); border-radius: 6px; box-shadow: 0 8px 28px rgba(21,20,15,0.08); }
.team-join h3 { font-size: 1.5rem; }

/* ---------- Academy: the season, team by team and term by term ---------- */
.season { display: flex; flex-direction: column; gap: 1rem; }
.picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.picker button { min-height: 48px; min-width: 64px; padding: 0.5rem 1.125rem; border: 2px solid var(--rule); border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; }
.picker button small { font-weight: 400; font-size: 0.8125rem; color: var(--grey); }
.picker button:hover { border-color: var(--gold); }
.picker button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.picker button[aria-pressed="true"] small { color: var(--gold-light); }
.picker.terms button { flex: 1 1 160px; }
.picker.terms button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.picker.terms button[aria-pressed="true"] small { color: var(--ink); }
.picker button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.season-panel { background: var(--cream); border-top: 3px solid var(--gold); border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.season-panel[hidden] { display: none; }
.season-panel + .season-panel { margin-top: 0.5rem; }
.season-top { display: flex; flex-direction: column; gap: 0.375rem; }
.season-top h3 { font-size: 1.625rem; }
.dots { font-size: 0.9375rem; color: var(--grey); }
.dots span + span::before { content: " · "; }
.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.season-card { background: var(--white); border-left: 3px solid var(--gold); padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.season-card.wide { grid-column: 1 / -1; }
.season-card h4 { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.season-card .strong { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }

/* ---------- Academy handbook ---------- */
.contents { margin: 0; padding: 1.25rem 1.5rem 1.25rem 2.75rem; background: var(--cream); border-left: 3px solid var(--gold); display: flex; flex-direction: column; gap: 0.375rem; font-weight: 600; }
.chapter { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.chapter h2 { display: flex; align-items: center; gap: 0.875rem; font-size: 1.625rem; }
.chapter-number { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.rules { margin: 0; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.rules li::marker { color: var(--gold-dark); font-weight: 700; }
#teams, #season, #programme, #register, #volunteer, #mentoring { scroll-margin-top: 80px; }
.card-body h3 + .card-tag { margin-top: -0.25rem; }

/* ---------- Tables and lists ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th { background: var(--ink); color: var(--white); text-align: left; padding: 0.625rem 0.875rem; }
td { padding: 0.625rem 0.875rem; border: 1px solid var(--rule); }
tr:nth-child(even) td { background: var(--cream); }
.ticks { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ticks li::marker { color: var(--gold); }

/* ---------- Team ---------- */
.person { text-align: center; display: flex; flex-direction: column; gap: 0.25rem; }
.person img, .person .initials { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; border-bottom: 3px solid var(--gold); }
.person .initials { background: var(--gold-light); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; }
.person-name { font-weight: 700; color: var(--ink); margin-top: 0.5rem; }
.person-role { color: var(--gold-dark); font-weight: 600; font-size: 0.9375rem; }
.person-note { font-size: 0.875rem; color: var(--grey); }

/* ---------- Events ---------- */
.event { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.event:last-child { border-bottom: 1px solid var(--rule); }
.event-date { font-weight: 700; color: var(--gold-dark); }
.event h3 { font-size: 1.1875rem; margin-bottom: 0.25rem; }
.event img { margin-top: 0.75rem; border-radius: 6px; max-height: 260px; width: 100%; object-fit: cover; }
.section.dark .event { border-color: #3a3930; }
.section.dark .event-date { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--gold-light); border-top: 3px solid var(--gold); font-size: 0.9375rem; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-footer a { color: var(--gold-light); }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.newsletter-band { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid #3a3930; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.625rem; }
.newsletter input { min-height: 48px; padding: 0.5rem 0.875rem; border: 1px solid #55554F; border-radius: 4px; background: #24231c; color: var(--white); font: inherit; min-width: 0; }
.newsletter input::placeholder { color: #b9b6a8; }
.newsletter input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.newsletter .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter .button { cursor: pointer; font: inherit; font-weight: 700; }
.newsletter .button[disabled] { opacity: 0.6; cursor: default; }
.newsletter-note { grid-column: 1 / -1; font-size: 0.8125rem; color: #b9b6a8; }
.newsletter-note.good { color: var(--gold-light); font-weight: 600; font-size: 0.9375rem; }
.newsletter-note.bad { color: #ffb4a8; font-size: 0.9375rem; }
.footer-note { border-top: 1px solid #3a3930; }
.footer-note .container { display: block; padding-top: 1rem; padding-bottom: 1rem; font-size: 0.8125rem; }

/* ---------- Menu button instead of the full menu (the menu needs about 1150px) ---------- */
@media (max-width: 1150px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--gold); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.5rem 1.25rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }
  .nav .button { margin-top: 0.75rem; padding: 0.75rem 1.25rem; }
  .nav .lang + .lang { margin-left: 0; }
}

/* ---------- WhatsApp button, shown on phones and tablets only ---------- */
.whatsapp-button { display: none; }
@media (max-width: 900px) {
  .whatsapp-button { display: inline-flex; align-items: center; gap: 0.5rem; position: fixed; right: 1rem; bottom: 1rem; z-index: 30; min-height: 48px; padding: 0.625rem 1rem; border-radius: 999px; background: var(--ink); color: var(--white); border: 2px solid var(--gold); font-weight: 700; font-size: 0.9375rem; text-decoration: none; box-shadow: 0 6px 20px rgba(21,20,15,0.35); }
  .whatsapp-button svg { color: var(--gold); }
  .footer-note .container { padding-bottom: 4.5rem; }
}
@media print { .whatsapp-button { display: none; } }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .letters, .values-video .letters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values-video { grid-template-columns: 1fr; }
  .values-video .letter { font-size: 1rem; padding: 1rem 0.5rem; }
  .values-video .letter b { font-size: 2rem; }
  .team-join { grid-column: auto; padding: 1.5rem; }
  .season-grid { grid-template-columns: 1fr; }
  .season-panel { padding: 1.125rem; }
  .picker button { flex: 1 1 22%; padding: 0.5rem; }
  .video-short { width: 100%; max-width: 320px; margin: 0 auto; }
  .stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .container { grid-template-columns: 1fr; }
  .newsletter-band, .newsletter { grid-template-columns: 1fr; }
  .hero img { object-position: 55% 40%; }
  .hero h1 { font-size: 2.5rem; }
  .hero .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero::after { background: rgba(21,20,15,0.72); }
  .page-title h1 { font-size: 2.125rem; }
  .section { padding: 2.75rem 0; }
  .section h2 { font-size: 1.75rem; }
  .event { grid-template-columns: 1fr; gap: 0.25rem; }
}
