@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f4f1;
  --ink: #16181b;
  --muted: #5d636b;
  --accent: #c8102e;
  --line: #e3e1dc;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  /* Pon Di Gas brand colors */
  --gold: #FED100;
  --green: #009B3A;
  --black: #111111;
  --lion-red: #D80530;
  --font-heading: "Rajdhani", var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4, .brand { font-family: var(--font-heading); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.15)), var(--hero-img, linear-gradient(135deg, #2b2f36, #5a1220)) center/cover; }
.hero .container { padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; margin: 0 0 16px; max-width: 14ch; }
.hero p { font-size: 1.2rem; max-width: 52ch; margin: 0 0 28px; opacity: .92; }
.page-banner { background: var(--bg-alt); padding: 64px 0 40px; }
.page-banner h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3rem); }
.page-banner p { margin: 0; color: var(--muted); max-width: 60ch; }

.btn { display: inline-block; padding: 12px 24px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 999px; font-weight: 600; }
.btn:hover { filter: brightness(1.1); }

/* sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-alt); }
section h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 24px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; overflow: hidden; }
.card img { margin: -24px -24px 16px; width: calc(100% + 48px); max-width: none; aspect-ratio: 16/9; object-fit: cover; }
.card h3 { margin: 4px 0; font-size: 1.15rem; }
.race-date { margin: 0; color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.race-venue, .race-notes { margin: 0; color: var(--muted); }
.race-meta { margin: 8px 0 0; font-weight: 600; }
.empty { color: var(--muted); font-style: italic; padding: 16px 0; }
.season { margin-bottom: 48px; }

/* sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; align-items: center; }
.sponsor { display: flex; align-items: center; justify-content: center; min-height: 100px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sponsor img { max-height: 64px; width: auto; }
.sponsor a { text-decoration: none; }
.sponsor-name { font-weight: 700; color: var(--muted); text-align: center; }

/* team */
.photo-slot { aspect-ratio: 4/5; background: linear-gradient(135deg, #e8e6e1, #d6d3cc); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

/* footer */
.site-footer { background: #101215; color: #c9cdd2; padding: 56px 0 32px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-note { border-top: 1px solid #2a2e34; margin-top: 32px; padding-top: 20px; font-size: .85rem; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 4px; }
  .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; }
  section.block { padding: 48px 0; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
