/* Akhtar Ali Foundation — site styles
   Palette: maroon from the foundation logo, trophy gold from the legacy booklet.
   Type: Archivo throughout; headlines use its condensed width for a scoreboard feel. */

:root {
  --maroon: #7E1449;
  --maroon-deep: #3D0923;
  --gold: #F0B83A;
  --ink: #1E171B;
  --muted: #6B5D64;
  --paper: #FFFFFF;
  --tint: #F7F1F3;
  --line: #E8DDE2;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --block: clamp(4rem, 9vw, 7rem);
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font); font-stretch: 75%; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .6em;
}
h1 { font-size: clamp(3rem, 8.5vw, 6.75rem); font-weight: 900; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.45rem; font-weight: 750; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.block { padding: var(--block) 0; }
.block--tint { background: var(--tint); }
.block--dark { background: var(--maroon-deep); color: #fff; }
.block--maroon { background: var(--maroon); color: #fff; }
.block--dark a, .block--maroon a { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 6px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold); color: var(--maroon-deep) !important; }
.btn--gold:hover { background: #F6CB66; }
.btn--maroon { background: var(--maroon); color: #fff !important; }
.btn--maroon:hover { background: var(--maroon-deep); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: rgba(255,255,255,.12); }
.block:not(.block--dark):not(.block--maroon) .btn--line:hover { background: var(--tint); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { height: 48px; width: auto; }
.brand span { font-stretch: 75%; font-weight: 800; font-size: 1.15rem; line-height: 1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--maroon); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
         flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem;
         border-bottom: 1px solid var(--line); }
  .site-header.open .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* Image slots: show a labelled placeholder until the file in data-img exists */
.ph {
  position: relative; background: var(--tint) center / cover no-repeat;
  border-radius: var(--radius); aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: .9rem; padding: 1rem;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(126,20,73,.05) 14px 15px);
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph.has-img { background-image: var(--src); }
.ph.has-img > .ph-label { display: none; }

/* Hero (index) */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(88vh, 860px); display: flex; align-items: flex-end;
  background: var(--maroon-deep) center / cover no-repeat;
}
.hero.has-img { background-image: var(--src); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,9,35,.25) 0%, rgba(61,9,35,.55) 45%, rgba(61,9,35,.94) 100%);
}
.hero .court { position: absolute; right: -14%; top: 50%; transform: translateY(-50%); width: min(56vw, 720px); height: auto; opacity: .22; }
@media (max-width: 700px) { .hero .court { display: none; } }
.hero.has-img .court { opacity: .12; }
.hero .wrap { position: relative; width: 100%; padding-top: 6rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero .kicker { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }
.hero h1 { margin-bottom: 1.25rem; max-width: 12ch; }
.hero .when { display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.hero .tagline { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.ph-label--hero { position: absolute; right: var(--gutter); bottom: 1rem; font-size: .8rem; color: rgba(255,255,255,.5); }
.hero.has-img .ph-label--hero { display: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 0; }
.stats div { border-top: 2px solid rgba(255,255,255,.3); padding-top: 1.25rem; }
.stats dt { font-stretch: 75%; font-weight: 900; font-size: clamp(2.6rem, 5.5vw, 4.25rem); line-height: 1; color: var(--gold); margin-bottom: .5rem; }
.stats dd { margin: 0; color: rgba(255,255,255,.85); }
.stats-note { margin-top: 3rem; font-size: 1.25rem; font-weight: 600; max-width: 52ch; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Split: text beside an image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem 2rem; }
.features > div { border-top: 3px solid var(--maroon); padding-top: 1.25rem; }
.features h3 { margin-bottom: .4rem; }
.features p { color: var(--muted); margin: 0; }
.block--dark .features > div { border-color: var(--gold); }
.block--dark .features p { color: rgba(255,255,255,.8); }

/* Packages */
.target { display: inline-block; background: var(--maroon); color: #fff; padding: .4rem .9rem; border-radius: 6px; font-weight: 700; margin-bottom: 2rem; }
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pkg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; }
.pkg h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.pkg .price { font-stretch: 75%; font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--maroon); margin-bottom: .25rem; }
.pkg .per { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; min-height: 1.4em; }
.pkg p:last-child { margin: 0; }
.pkg--title { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.pkg--title .price { color: var(--gold); }
.pkg--title .per { color: rgba(255,255,255,.75); }
.pkg-note { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .packages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .packages { grid-template-columns: 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; margin-top: 1.5rem; }
.benefits div { padding-left: 1rem; border-left: 3px solid var(--gold); }
.benefits h4 { font-size: 1.15rem; margin-bottom: .2rem; }
.benefits p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }
.subhead { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Contact band */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
.contact-grid h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: .5rem; }
.contact-grid p { margin: 0 0 .35rem; }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Footer */
.site-footer { background: var(--maroon-deep); color: rgba(255,255,255,.75); padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-brand { font-stretch: 75%; font-weight: 800; font-size: 1.4rem; color: #fff; line-height: 1.1; }
.footer-brand small { display: block; font-stretch: 100%; font-weight: 500; font-size: .9rem; color: var(--gold); margin-top: .35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-legal { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-legal p { margin: 0; }
.todo { background: var(--gold); color: var(--maroon-deep); padding: 0 .3rem; border-radius: 3px; font-weight: 600; }

/* Legacy page */
.page-hero { background: var(--maroon-deep); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.page-hero .split { align-items: end; }
.page-hero .years { color: var(--gold); font-weight: 700; font-size: 1.2rem; margin-bottom: .5rem; }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero .title { font-stretch: 75%; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.page-hero .intro { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 46ch; }
.page-hero .ph { background-color: rgba(255,255,255,.06); color: rgba(255,255,255,.55);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px); }

.pullquote { font-stretch: 75%; font-weight: 700; font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--maroon); margin: 2rem 0; padding: 0; border: 0; max-width: 24ch; }
.big-quote { margin: 0 auto; max-width: 900px; text-align: center; }
.big-quote p { font-stretch: 75%; font-weight: 700; font-style: italic; font-size: clamp(1.9rem, 4.5vw, 3.4rem); line-height: 1.12; color: var(--maroon); margin-bottom: 1rem; }
.big-quote cite { font-style: normal; font-weight: 600; color: var(--muted); }
.names { color: var(--muted); }

.accolades { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 3rem; }
.accolades li { break-inside: avoid; padding: .9rem 0 .9rem 1.1rem; border-left: 3px solid var(--gold); margin-bottom: .75rem; color: rgba(255,255,255,.9); }
.accolades li strong { display: block; color: #fff; font-stretch: 75%; font-size: 1.2rem; font-weight: 750; }
.arena { margin-top: clamp(3rem, 6vw, 4.5rem); }
.arena .ph { background-color: rgba(255,255,255,.06); color: rgba(255,255,255,.55);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px); }
.arena figcaption { margin-top: .75rem; color: rgba(255,255,255,.7); font-size: .95rem; }

.tributes { columns: 3 300px; column-gap: 1.25rem; }
.tribute { break-inside: avoid; margin: 0 0 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.tribute p { margin: 0 0 1rem; font-size: 1.02rem; }
.tribute footer { font-weight: 700; color: var(--maroon); }
.tribute footer span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

.gallery-set + .gallery-set { margin-top: 3rem; }
.gallery-set h3 { margin-bottom: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gallery .ph { aspect-ratio: 1; border-radius: 6px; }
