/* ==========================================================================
   About Us page
   ========================================================================== */

/* Page hero */
.page-hero { position: relative; min-height: 76vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 16s ease-out both; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,22,51,.92) 0%, rgba(10,33,80,.7) 45%, rgba(10,33,80,.25) 100%), linear-gradient(0deg, rgba(6,22,51,.7), transparent 45%); }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.page-hero .container { position: relative; z-index: 2; padding: 170px 0 150px; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb27f, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 620px; }
.page-hero .eyebrow { color: #9fc0ff; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 26px; display: flex; gap: 10px; }
.crumbs a:hover { color: #fff; }

/* Sticky in-page menu */
.subnav { position: sticky; top: 66px; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 18px 18px; font-weight: 700; font-size: .92rem; color: var(--body); border-bottom: 3px solid transparent; transition: color .25s, border-color .25s; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--blue-600); border-color: var(--blue-600); }

/* Heritage intro */
.heritage-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.h-stat { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
.h-stat:nth-child(2) { background: var(--navy-800); border-color: var(--navy-800); }
.h-stat:nth-child(2) strong, .h-stat:nth-child(2) span { color: #fff; }
.h-stat:nth-child(3) { background: var(--blue-600); border-color: var(--blue-600); }
.h-stat:nth-child(3) strong, .h-stat:nth-child(3) span { color: #fff; }
.h-stat strong { display: block; font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; color: var(--navy-700); line-height: 1; margin-bottom: 10px; }
.h-stat span { font-size: .95rem; line-height: 1.45; display: block; }
.quote { margin: 30px 0 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--orange); font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.55; }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline-section { background: var(--bg-soft); }

/* Year jump bar: every date visible at a glance */
.years-bar { position: sticky; top: 125px; z-index: 40; margin: 0 auto 70px; width: fit-content; max-width: 100%; background: #fff; border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 14px 40px -20px rgba(6,22,51,.3); padding: 6px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.years-bar::-webkit-scrollbar { display: none; }
.years-bar a { flex: none; padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--muted); transition: background .3s, color .3s; }
.years-bar a:hover { color: var(--ink); }
.years-bar a.is-active { background: var(--blue-600); color: #fff; }
.years-bar a.modern.is-active { background: var(--green); }

.timeline { position: relative; max-width: 1100px; margin: 0 auto; }
.tl-track, .tl-fill { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; }
.tl-track { background: #d9e1ee; }
.tl-fill { background: linear-gradient(180deg, var(--blue-600) 0%, var(--blue-500) 55%, var(--green) 75%, var(--green) 100%); clip-path: inset(0 0 100% 0); }

.tl-era { position: relative; z-index: 2; text-align: center; margin: 0 auto 60px; max-width: 640px; padding: 34px 30px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl-era + .tl-item { margin-top: 0; }
.tl-era .eyebrow { justify-content: center; }
.tl-era h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.tl-era p { margin: 0; }
.tl-era.modern .eyebrow { color: #4f9a24; }
.tl-era.modern { margin-top: 30px; }

.tl-item { position: relative; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: start; margin-bottom: 50px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { grid-column: 2; justify-self: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #c3cee0; margin-top: 34px; position: relative; z-index: 2; transition: border-color .5s, background .5s, transform .5s var(--ease); }
.tl-item.is-active .tl-dot { border-color: var(--blue-600); background: var(--blue-600); box-shadow: 0 0 0 8px rgba(28,79,168,.15); transform: scale(1.1); }
.tl-item.modern.is-active .tl-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 8px rgba(108,179,63,.18); }

.tl-card { grid-row: 1; background: #fff; border-radius: var(--radius-lg); padding: 30px 32px; border: 1px solid var(--line); position: relative; transition: box-shadow .4s, transform .8s var(--ease), opacity .8s var(--ease); }
.tl-card:hover { box-shadow: var(--shadow); }
.tl-item:nth-of-type(odd) .tl-card { grid-column: 1; }
.tl-item:nth-of-type(even) .tl-card { grid-column: 3; }
/* little pointer towards the line */
.tl-card::before { content: ""; position: absolute; top: 38px; width: 16px; height: 16px; background: #fff; border: 1px solid var(--line); transform: rotate(45deg); }
.tl-item:nth-of-type(odd) .tl-card::before { right: -9px; border-left: 0; border-bottom: 0; }
.tl-item:nth-of-type(even) .tl-card::before { left: -9px; border-right: 0; border-top: 0; }

.tl-year { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-bottom: 14px; background: linear-gradient(90deg, var(--navy-700), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-item.modern .tl-year { background: linear-gradient(90deg, #2f7d18, var(--green)); -webkit-background-clip: text; background-clip: text; }
.tl-year small { font-size: .5em; letter-spacing: -.02em; }
.tl-card h4 { font-size: 1.2rem; margin-bottom: 10px; }
.tl-card p { font-size: .97rem; margin: 0; }
.tl-card img { width: calc(100% + 64px); max-width: none; margin: 22px -32px -30px; aspect-ratio: 16/8; object-fit: cover; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.tl-tag { display: inline-block; margin-top: 16px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }

/* Scroll-in animation for cards */
.tl-item .tl-card { opacity: 0; }
.tl-item:nth-of-type(odd) .tl-card { transform: translateX(-50px); }
.tl-item:nth-of-type(even) .tl-card { transform: translateX(50px); }
.tl-item.is-visible .tl-card { opacity: 1; transform: none; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 70px; aspect-ratio: 21/8; }
.team-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.team-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,22,51,.75), rgba(6,22,51,0) 50%); }
.team-banner figcaption { position: absolute; left: 36px; bottom: 30px; z-index: 2; color: #fff; font-weight: 700; font-size: 1.15rem; max-width: 520px; }
.team-banner figcaption span { display: block; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.75); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member { position: relative; }
.member-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: #eef2f8; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.member:hover .member-photo img { transform: scale(1.06); }
.member-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,79,168,.55), transparent 45%); opacity: 0; transition: opacity .4s; }
.member:hover .member-photo::after { opacity: 1; }
.member-social { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.member:hover .member-social { opacity: 1; transform: none; }
.member-social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--blue-600); display: grid; place-items: center; }
.member-social svg { width: 16px; height: 16px; }
.member h3 { font-size: 1.12rem; margin: 18px 0 2px; }
.member p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   Values
   ========================================================================== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.value { padding: 34px; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.value .v-num { font-size: .8rem; font-weight: 800; letter-spacing: .15em; color: var(--orange); margin-bottom: 18px; display: block; }
.value h3 { color: #fff; }
.value p { margin: 0; font-size: .97rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr; }
  .team-banner { aspect-ratio: 16/9; }
}
@media (max-width: 760px) {
  .page-hero { min-height: 70vh; }
  .page-hero .container { padding: 140px 0 110px; }
  .subnav { top: 60px; }
  .years-bar { top: 118px; border-radius: 14px; margin-bottom: 44px; }
  .tl-track, .tl-fill { left: 13px; }
  .tl-item { grid-template-columns: 28px 1fr; gap: 16px; margin-bottom: 30px; }
  .tl-dot { grid-column: 1; grid-row: 1; margin-top: 30px; width: 22px; height: 22px; }
  .tl-item:nth-of-type(odd) .tl-card, .tl-item:nth-of-type(even) .tl-card { grid-column: 2; transform: translateX(30px); }
  .tl-item.is-visible .tl-card { transform: none; }
  .tl-item .tl-card::before { left: -9px !important; right: auto !important; border: 1px solid var(--line); border-right: 0; border-top: 0; }
  .tl-card { padding: 24px; }
  .tl-card img { width: calc(100% + 48px); margin: 18px -24px -24px; }
  .tl-era { margin-left: 44px; text-align: left; padding: 26px 22px; }
  .tl-era .eyebrow { justify-content: flex-start; }
  .heritage-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .member-social { opacity: 1; transform: none; right: 10px; bottom: 10px; }
  .team-banner figcaption { left: 20px; bottom: 18px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-item .tl-card { opacity: 1; transform: none !important; }
  .page-hero > img { animation: none; }
}

/* Offset in-page anchors below the fixed header + sticky menu */
section[id] { scroll-margin-top: 110px; }

/* ==========================================================================
   Sponsorship (Leigh Leopards red & black)
   ========================================================================== */
.sponsor {
  --leo-red: #c8102e;
  position: relative; overflow: hidden; color: #f3d9dc;
  padding: clamp(80px, 10vw, 130px) 0;
  background-color: #3d0a10;
  /* subtle leopard-print rosettes */
  background-image:
    radial-gradient(ellipse 14px 10px at 20px 24px, rgba(0,0,0,.35) 60%, transparent 62%),
    radial-gradient(ellipse 10px 13px at 62px 58px, rgba(0,0,0,.3) 60%, transparent 62%),
    radial-gradient(ellipse 12px 9px at 92px 18px, rgba(0,0,0,.28) 60%, transparent 62%),
    radial-gradient(ellipse 9px 12px at 40px 92px, rgba(0,0,0,.3) 60%, transparent 62%),
    linear-gradient(120deg, #2a060b 0%, #5b0d16 55%, #7d111d 100%);
  background-size: 110px 110px, 110px 110px, 110px 110px, 110px 110px, 100% 100%;
}
.sponsor h2 { color: #fff; }
.sponsor .eyebrow { color: #ff9aa6; }
.sponsor-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.sponsor-badge { display: flex; align-items: center; gap: 18px; margin: 6px 0 28px; }
.sponsor-badge img { width: 93px; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
.sponsor-badge small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff9aa6; }
.sponsor-badge strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.15; }
.sponsor-badge span { font-size: .9rem; color: rgba(255,255,255,.7); }
.sponsor-copy p { font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 560px; }
.sponsor-tagline { font-size: 1.35rem !important; line-height: 1.45; color: #fff !important; border-left: 4px solid var(--leo-red); padding-left: 22px; margin: 28px 0 34px; }
.btn--light { background: #fff; color: #5b0d16; }
.btn--light:hover { background: #ffe9ec; transform: translateY(-2px); }
.sponsor-media { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); border: 6px solid rgba(255,255,255,.08); }
.sponsor-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1s var(--ease); }
.sponsor-media:hover img { transform: scale(1.05); }
.sponsor-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.sponsor-card { padding: 28px 30px; border-radius: var(--radius-lg); background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.1); }
.sponsor-card h3 { color: #fff; font-size: 1.15rem; margin: 10px 0 6px; }
.sponsor-card p { margin: 0; font-size: .93rem; color: rgba(255,255,255,.7); }
.s-tag { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff9aa6; }
@media (max-width: 900px) {
  .sponsor-feature, .sponsor-more { grid-template-columns: 1fr; }
  .sponsor-media { aspect-ratio: 4/3; max-width: 520px; }
}

/* Leigh Cables difference: four values */
.values--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .values--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .values--4 { grid-template-columns: 1fr; } }

/* Community sponsorships */
.community-intro { margin-top: 80px; max-width: 760px; }
.community-intro h3 { color: #fff; font-size: 1.6rem; }
.community-intro p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.sponsor .sponsor-more { grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
@media (max-width: 1100px) { .sponsor .sponsor-more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sponsor .sponsor-more { grid-template-columns: 1fr; } }

/* Keep slide-in timeline cards from widening the page on mobile (clip keeps sticky year bar working) */
.timeline-section { overflow-x: clip; }
