:root {
  --ink: #102a4c;
  --navy: #071a31;
  --blue: #0c4177;
  --blue-2: #17609b;
  --gold: #f0bd35;
  --gold-soft: #ffe7a5;
  --ice: #eaf5fb;
  --paper: #f7fbfe;
  --white: #ffffff;
  --muted: #52677c;
  --line: #c9dce8;
  --shadow: 0 18px 45px rgba(3, 20, 39, 0.18);
  --radius: 1.25rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  border-radius: .5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 2.5rem)); margin-inline: auto; }

.topline {
  padding: .42rem 1rem;
  color: #d7e8f5;
  background: #03111f;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(7, 26, 49, .96);
  box-shadow: 0 10px 30px rgba(2, 15, 29, .18);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--white); text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong { display: block; font: 700 1.16rem/1.1 var(--serif); color: var(--gold); }
.brand span { display: block; margin-top: .25rem; color: #d5e4ef; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-list { display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; padding: .7rem .85rem; border-radius: 999px; color: #e6f0f6; font-size: .91rem; font-weight: 700; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--gold); color: var(--navy); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.25); border-radius: .65rem; padding: .55rem .75rem; color: white; background: transparent; }

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy) url("rugby-hero.png") center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,16,31,.97) 0%, rgba(5,28,53,.86) 48%, rgba(5,25,44,.42) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 9px; background: repeating-linear-gradient(90deg, var(--gold) 0 70px, var(--blue-2) 70px 140px, #69b66c 140px 210px); }
.hero-content { position: relative; z-index: 1; padding: 7rem 0 8rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.08; text-wrap: balance; }
h1 { max-width: 800px; font-size: clamp(3.2rem, 7vw, 6.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.25rem); letter-spacing: -.035em; }
h3 { font-size: 1.4rem; }
.hero-lead { max-width: 700px; margin: 1.4rem 0 0; color: #e5eff6; font-size: clamp(1.12rem, 2vw, 1.45rem); }
.hero-crest { position: relative; margin-inline: auto; width: min(330px, 72vw); filter: drop-shadow(0 20px 38px rgba(0,0,0,.45)); }
.hero-crest::before { content: ""; position: absolute; z-index: -1; inset: 12%; border-radius: 50%; background: rgba(255,255,255,.82); filter: blur(30px); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .75rem 1.2rem; border: 2px solid var(--gold); border-radius: .7rem; background: var(--gold); color: var(--navy); font-weight: 850; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.17); }
.button:hover { background: #ffd66b; border-color: #ffd66b; transform: translateY(-1px); }
.button.secondary { background: rgba(7,26,49,.35); color: white; }
.button.secondary:hover { background: white; border-color: white; color: var(--navy); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section.blue { color: var(--white); background: var(--navy); }
.section.ice { background: linear-gradient(145deg, #eef8fd, #dceff8); }
.section.gold-rule { border-top: 7px solid var(--gold); }
.section-heading { max-width: 760px; margin-bottom: 3rem; }
.section-heading p:last-child { color: var(--muted); font-size: 1.08rem; }
.blue .section-heading p:last-child { color: #c5d8e5; }
.kicker { margin: 0 0 .6rem; color: var(--blue-2); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.blue .kicker { color: var(--gold); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.split-copy > p { color: var(--muted); font-size: 1.06rem; }
.split-copy .lead { color: var(--ink); font-size: 1.25rem; }
.feature-image { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.feature-image img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.caption { margin: 0; padding: .85rem 1rem; color: var(--muted); background: white; font-size: .8rem; }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.value { position: relative; overflow: hidden; min-height: 230px; padding: 1.55rem; border: 1px solid rgba(255,255,255,.13); border-radius: 1rem; background: linear-gradient(150deg, rgba(23,96,155,.55), rgba(7,26,49,.8)); }
.value::before { content: attr(data-number); display: block; margin-bottom: 1.4rem; color: var(--gold); font: 800 .8rem/1 var(--sans); letter-spacing: .13em; }
.value p { margin-bottom: 0; color: #cddce7; font-size: .93rem; }

.match-strip { position: relative; overflow: hidden; padding: 2.5rem 0; color: white; background: linear-gradient(100deg, #0a3d6c, #0f5890); }
.match-strip::after { content: ""; position: absolute; top: 0; right: 4%; width: 90px; height: 100%; background: repeating-linear-gradient(135deg, transparent 0 15px, rgba(240,189,53,.8) 15px 24px, transparent 24px 41px); opacity: .65; }
.match-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr repeat(2, .7fr); align-items: center; gap: 2rem; }
.match-grid strong { display: block; color: var(--gold); font: 700 1.25rem var(--serif); }
.match-grid span { color: #d8e7f0; font-size: .9rem; }

.gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1rem; }
.gallery figure { position: relative; overflow: hidden; min-height: 320px; margin: 0; border-radius: 1rem; background: #d9e6ee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 2.8rem 1rem 1rem; color: white; background: linear-gradient(transparent, rgba(2,15,30,.88)); font-size: .82rem; }

.page-hero { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0; color: white; background: var(--navy); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 50%, rgba(23,96,155,.55), transparent 42%), linear-gradient(100deg, #06172b, #0b3155); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: var(--gold); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(3rem, 6vw, 5.8rem); }
.page-hero p:last-child { max-width: 720px; margin: 1.1rem 0 0; color: #ccdeea; font-size: 1.2rem; }

.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: 110px; width: 2px; background: var(--line); }
.timeline-row { display: grid; grid-template-columns: 90px 1fr; gap: 3rem; align-items: start; }
.timeline-date { color: var(--blue); font: 800 1.15rem var(--serif); text-align: right; }
.timeline-card { position: relative; padding: 0 0 2rem; }
.timeline-card::before { content: ""; position: absolute; top: .35rem; left: -2.375rem; width: 12px; height: 12px; border: 4px solid var(--paper); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--blue); }
.timeline-card p { margin-top: .55rem; color: var(--muted); }

.stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { padding: 1.3rem; border-left: 5px solid var(--gold); background: var(--ice); }
.stat strong { display: block; color: var(--blue); font: 700 2rem var(--serif); }
.stat span { color: var(--muted); font-size: .9rem; }

.quote { position: relative; margin: 0; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.quote::before { content: "“"; position: absolute; top: .3rem; left: 1.2rem; color: var(--gold-soft); font: 700 7rem/1 var(--serif); }
.quote p { position: relative; margin: 0; color: var(--ink); font: 400 clamp(1.25rem, 2.1vw, 1.7rem)/1.5 var(--serif); }
.quote footer { margin-top: 1.2rem; color: var(--muted); font-weight: 750; }

.impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.impact-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 9px 26px rgba(6,35,60,.08); }
.impact-card .number { color: var(--blue-2); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.impact-card p { margin-bottom: 0; color: var(--muted); }

.cause-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cause-logos figure { display: grid; place-items: center; min-height: 170px; margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.cause-logos img { max-height: 115px; object-fit: contain; }

.requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.requirement { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.requirement b:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: white; }
.requirement h3 { margin-bottom: .35rem; }
.requirement p { margin: 0; color: var(--muted); font-size: .94rem; }

.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.step { counter-increment: steps; padding: 1.7rem; border-top: 5px solid var(--gold); border-radius: 0 0 1rem 1rem; background: white; box-shadow: 0 9px 26px rgba(6,35,60,.08); }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 1.5rem; color: var(--blue-2); font-weight: 850; letter-spacing: .12em; }
.step p { color: var(--muted); }

.contact-panel { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: white; box-shadow: var(--shadow); }
.contact-copy { padding: clamp(2rem, 5vw, 4rem); }
.contact-copy p { color: #cadbe6; }
.contact-links { display: grid; gap: .7rem; margin-top: 1.5rem; }
.contact-links a { width: fit-content; color: var(--gold); font-weight: 800; overflow-wrap: anywhere; }
.contact-image { min-height: 380px; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }

.notice { margin-top: 2rem; padding: 1rem 1.2rem; border-left: 5px solid var(--gold); background: #fff8e5; color: #5e4a13; }

.site-footer { padding: 4rem 0 2rem; color: #d4e1ea; background: #03111f; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 74px; }
.footer-brand strong { display: block; color: var(--gold); font: 700 1.25rem var(--serif); }
.footer-brand span { color: #99afc0; font-size: .84rem; }
.footer-title { margin: 0 0 .8rem; color: white; font-weight: 800; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { width: fit-content; color: #b9cbd8; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #849bac; font-size: .8rem; }

:focus-visible { outline: 3px solid #ffce4d; outline-offset: 3px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-list { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; padding: .8rem 1.25rem 1.2rem; border-top: 1px solid rgba(255,255,255,.12); background: var(--navy); }
  .nav-list.open { display: grid; }
  .nav-list a { border-radius: .5rem; }
  .hero { min-height: auto; }
  .hero-grid, .split, .contact-panel { grid-template-columns: 1fr; }
  .hero-crest { width: 235px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .impact-grid, .steps { grid-template-columns: 1fr; }
  .cause-logos { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .match-grid { grid-template-columns: 1fr 1fr; }
  .match-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container, .narrow { width: min(100% - 1.35rem, 1160px); }
  .topline { font-size: .65rem; }
  .brand img { width: 49px; height: 49px; }
  .brand span { display: none; }
  .nav-wrap { min-height: 70px; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .hero-content { padding: 5rem 0 6rem; }
  .values, .gallery, .requirements, .stat-pair, .match-grid, .cause-logos, .footer-grid { grid-template-columns: 1fr; }
  .gallery figure:first-child, .match-grid > :first-child, .footer-grid > :first-child { grid-column: auto; }
  .gallery figure { min-height: 260px; }
  .timeline::before { left: 8px; }
  .timeline-row { grid-template-columns: 1fr; gap: .3rem; padding-left: 2.3rem; }
  .timeline-date { text-align: left; }
  .timeline-card::before { left: -2.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
