/* HPRDS design system — structure from DESIGN-bmw.md, colours from the HPRDS brand (logo navy + red). */
:root {
  /* Brand action colour: HPRDS logo navy (takes the "corporate blue" role) */
  --primary: #374c99;
  --primary-active: #283a7d;
  --primary-disabled: #d6d6d6;
  /* Brand accent: HPRDS red — accents, stripe and small labels only, never a CTA fill */
  --accent: #e3001a;
  --accent-soft: #d42f40;
  --leaf: #3aa346;

  --ink: #262626;
  --body: #3c3c3c;
  --body-strong: #1a1a1a;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --hairline: #e6e6e6;
  --hairline-strong: #cccccc;

  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-card: #fafafa;
  --surface-strong: #ebebeb;
  --surface-dark: #161d33;
  --surface-dark-elevated: #222b47;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #bbc0cf;

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px; --s-section: 80px;
  --max: 1440px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography tokens ---------- */
.display-xl { font-size: 64px; line-height: 1.05; font-weight: 700; }
.display-lg { font-size: 48px; line-height: 1.1; font-weight: 700; }
.display-md { font-size: 32px; line-height: 1.15; font-weight: 700; }
.display-sm { font-size: 24px; line-height: 1.25; font-weight: 700; }
.title-lg { font-size: 20px; line-height: 1.3; font-weight: 700; }
.title-md { font-size: 18px; line-height: 1.4; font-weight: 700; }
.title-sm { font-size: 16px; line-height: 1.4; font-weight: 700; }
.body-md { font-size: 16px; font-weight: 300; line-height: 1.55; }
.body-sm { font-size: 14px; font-weight: 300; line-height: 1.55; }
.caption { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: .5px; }
.label { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 1.5px; text-transform: uppercase; }
.lead { font-size: 18px; color: var(--body-strong); font-weight: 300; }

/* ---------- Brand stripe (the logo's navy / red / green, used like the M stripe: divider only) ---------- */
.brand-stripe { height: 4px; background: linear-gradient(90deg, var(--primary) 0 33.33%, var(--accent) 33.33% 66.66%, var(--leaf) 66.66% 100%); }
.brand-stripe.short { width: 72px; margin-bottom: var(--s-lg); }

/* ---------- Utility bar + top nav ---------- */
.util-bar { background: var(--surface-dark); color: var(--on-dark-soft); }
.util-bar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: var(--s-md); }
.util-bar a { color: var(--on-dark-soft); }
.util-bar a:hover { color: var(--on-dark); }
.util-bar .group { display: flex; gap: var(--s-lg); }

.top-nav { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.top-nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--s-lg); }
.top-nav .logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--s-xl); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 400; letter-spacing: .3px; color: var(--ink); padding: 26px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: var(--s-md); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 12px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 14px 32px; border-radius: 0; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .5px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active, .btn-primary:hover { background: var(--primary-active); }
.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--hairline-strong); padding: 13px 31px; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark); padding: 13px 31px; }
.btn-on-dark:hover { background: var(--on-dark); color: var(--surface-dark); }
.btn-sm { height: 40px; padding: 10px 20px; }
.link-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
.link-cta::after { content: "›"; font-size: 18px; line-height: 1; color: var(--primary); transition: transform .15s; }
.link-cta:hover { color: var(--primary); }
.link-cta:hover::after { transform: translateX(3px); }
.on-dark .link-cta { color: var(--on-dark); }
.on-dark .link-cta::after { color: var(--on-dark); }

/* ---------- Sections / bands ---------- */
.section { padding: var(--s-section) 0; }
.section-soft { background: var(--surface-soft); }
.band-dark { background: var(--surface-dark); color: var(--on-dark-soft); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--on-dark); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-lg); margin-bottom: var(--s-xxl); }
.section-head .kicker { color: var(--accent); margin-bottom: var(--s-sm); display: block; }
.band-dark .kicker { color: #ff6b78; }
.section-head p { max-width: 560px; margin-top: var(--s-md); }

/* Hero */
.hero { position: relative; background: var(--surface-dark); color: var(--on-dark); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; min-height: 620px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--s-section) var(--s-xxl) var(--s-section) 0; }
.hero-copy .kicker { color: #ff6b78; margin-bottom: var(--s-lg); }
.hero-copy h1 { color: var(--on-dark); margin-bottom: var(--s-lg); }
.hero-copy p { color: var(--on-dark-soft); font-size: 18px; max-width: 480px; margin-bottom: var(--s-xl); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-md); }
.hero-media { position: relative; margin-right: calc(-1 * var(--gutter)); min-height: 420px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; left: var(--s-xl); bottom: var(--s-xl); display: flex; gap: var(--s-xs); z-index: 2; }
.hero-dots button { width: 32px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; }
.hero-dots button::before { content: ""; display: block; height: 24px; margin-top: -10px; }

/* Page hero (inner pages) */
.page-hero { background: var(--surface-dark); color: var(--on-dark); padding: var(--s-section) 0; position: relative; overflow: hidden; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat; opacity: .28; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--on-dark); max-width: 900px; }
.page-hero p { color: var(--on-dark-soft); max-width: 640px; margin-top: var(--s-lg); font-size: 18px; }
.breadcrumb { display: flex; gap: var(--s-xs); color: var(--on-dark-soft); margin-bottom: var(--s-lg); }
.breadcrumb a:hover { color: var(--on-dark); }

/* Quick-service strip under hero (4-up) */
.service-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--hairline); }
.service { padding: var(--s-xl) var(--s-lg); border-right: 1px solid var(--hairline); }
.service:last-child { border-right: 0; }
.service .num { color: var(--accent); margin-bottom: var(--s-sm); display: block; }
.service h3 { margin-bottom: var(--s-xs); }

/* Split (about) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-section); align-items: center; }
.split-media { background: var(--surface-card); }
.split-media img { width: 100%; aspect-ratio: 16/12; object-fit: cover; }
.split-copy h2 { margin-bottom: var(--s-lg); }
.split-copy p + p { margin-top: var(--s-md); }
.split-copy .link-cta { margin-top: var(--s-xl); }

/* Spec cells (stats) */
.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.spec-cell { padding: var(--s-lg); border-right: 1px solid var(--hairline); }
.spec-cell:last-child { border-right: 0; }
.spec-cell .value { font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.spec-cell .label { color: var(--muted); margin-top: var(--s-xs); display: block; }
.band-dark .spec-row { border-color: rgba(255,255,255,.14); }
.band-dark .spec-cell { border-color: rgba(255,255,255,.14); }
.band-dark .spec-cell .value { color: var(--on-dark); }
.band-dark .spec-cell .label { color: var(--on-dark-soft); }

/* Vision / mission (on dark) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.pillar { background: var(--surface-dark-elevated); padding: var(--s-xl); }
.pillar .label { color: #ff6b78; display: block; margin-bottom: var(--s-md); }
.pillar p { color: var(--on-dark-soft); }

/* Cards */
.grid { display: grid; gap: var(--s-lg); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--canvas); display: flex; flex-direction: column; }
.card-photo { background: var(--surface-card); overflow: hidden; }
.card-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-photo img { transform: scale(1.03); }
.card-body { padding: var(--s-lg) 0 0; display: flex; flex-direction: column; gap: var(--s-xs); flex: 1; }
.card-body .meta { color: var(--accent); }
.card-body p { color: var(--body); font-size: 14px; }
.card-body .link-cta { margin-top: auto; padding-top: var(--s-md); }
.section-soft .card { background: transparent; }
.card.boxed { padding: var(--s-lg); }
.card.boxed .card-photo { margin: calc(-1 * var(--s-lg)) calc(-1 * var(--s-lg)) 0; }

/* Focus areas (icon tiles) */
.focus-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.focus { padding: var(--s-xl) var(--s-lg); border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: var(--s-md); background: var(--canvas); }
.focus img { width: 48px; height: 48px; object-fit: contain; }

/* Category tabs */
.tabs { display: flex; gap: var(--s-xl); border-bottom: 1px solid var(--hairline); margin-bottom: var(--s-xxl); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Help (get involved) cards on dark */
.help-card { position: relative; overflow: hidden; background: var(--surface-dark-elevated); display: flex; flex-direction: column; }
.help-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; opacity: .9; }
.help-card .body { padding: var(--s-lg); display: flex; justify-content: space-between; align-items: center; gap: var(--s-md); }
.help-card h3 { color: var(--on-dark); font-size: 18px; }

/* Testimonials */
.quote { padding: var(--s-xl); background: var(--canvas); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: var(--s-lg); }
.quote blockquote { margin: 0; color: var(--body); }
.quote blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .6; font-weight: 700; color: var(--accent); margin-bottom: var(--s-sm); }
.quote cite { font-style: normal; }
.quote cite strong { display: block; color: var(--ink); font-size: 16px; }
.quote cite span { color: var(--muted); }
.quote-feature { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-section); align-items: start; }
.quote-feature blockquote { margin: 0; font-size: 24px; line-height: 1.45; font-weight: 300; color: var(--on-dark); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-xs); }
.gallery button { padding: 0; border: 0; background: var(--surface-card); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease, opacity .2s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery [hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14, 18, 32, .94); display: none; align-items: center; justify-content: center; padding: var(--s-xxl); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); width: 48px; height: 48px; cursor: pointer; font-size: 22px; }
.lightbox .lb-close { top: var(--s-lg); right: var(--s-lg); }
.lightbox .lb-prev { left: var(--s-lg); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s-lg); top: 50%; transform: translateY(-50%); }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-section); }
.founder-card { background: var(--surface-soft); padding: var(--s-xl); align-self: start; position: sticky; top: 104px; }
.founder-card .monogram { width: 96px; height: 96px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 700; margin-bottom: var(--s-lg); }
.founder-card dl { margin: var(--s-lg) 0 0; display: grid; gap: var(--s-md); }
.founder-card dt { color: var(--muted); }
.founder-card dd { margin: 4px 0 0; color: var(--ink); font-weight: 400; }
.prose p + p { margin-top: var(--s-lg); }
.prose h2 { margin: var(--s-xxl) 0 var(--s-lg); }
.trait-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--hairline); margin-top: var(--s-xl); }
.trait-list div { padding: var(--s-lg) var(--s-lg) var(--s-lg) 0; border-bottom: 1px solid var(--hairline); }
.trait-list strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }

/* Donate */
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table th, .bank-table td { text-align: left; padding: 20px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.bank-table th { width: 40%; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.bank-table td { color: var(--ink); font-size: 18px; font-weight: 700; }
.copy-btn { margin-left: var(--s-sm); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: transparent; border: 1px solid var(--hairline-strong); padding: 4px 10px; cursor: pointer; color: var(--ink); vertical-align: middle; }
.copy-btn.done { border-color: var(--leaf); color: var(--leaf); }
.panel { border: 1px solid var(--hairline); padding: var(--s-xl); }

/* Contact */
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.contact-item { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-lg); padding: var(--s-lg) 0; border-bottom: 1px solid var(--hairline); }
.contact-item .label { color: var(--muted); }
.contact-item a, .contact-item address { color: var(--ink); font-size: 18px; font-weight: 700; font-style: normal; }
.contact-item a:hover { color: var(--primary); }
.map-frame { width: 100%; height: 100%; min-height: 420px; border: 0; background: var(--surface-card); }

/* CTA band */
.cta-band { position: relative; background: var(--surface-dark); color: var(--on-dark); padding: var(--s-section) 0; overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--cta-img) center/cover no-repeat; opacity: .25; }
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--on-dark); margin: 0 auto var(--s-md); max-width: 760px; }
.cta-band p { color: var(--on-dark-soft); margin: 0 auto var(--s-xl); max-width: 560px; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.footer { background: var(--surface-soft); color: var(--body); padding: 64px 0 var(--s-xl); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--s-xxl); padding-bottom: var(--s-xxl); border-bottom: 1px solid var(--hairline); }
.footer img { height: 44px; width: auto; margin-bottom: var(--s-lg); }
.footer h4 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: var(--s-md); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--primary); }
.footer address { font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-md); padding-top: var(--s-lg); color: var(--muted); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.sr-skip:focus { left: 16px !important; top: 8px; z-index: 200; background: var(--primary); color: #fff; padding: 8px 16px; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-slide { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav-links { gap: var(--s-lg); }
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .display-xl { font-size: 52px; }
  .display-lg { font-size: 40px; }
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
  .top-nav.open .nav-links { display: flex; position: fixed; inset: 72px 0 0 0; background: var(--canvas); flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-lg) var(--gutter); overflow-y: auto; }
  .top-nav.open .nav-links a { display: block; padding: 18px 0; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--hairline); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: var(--s-xxl) 0; }
  .hero-media { margin: 0 calc(-1 * var(--gutter)); min-height: 0; aspect-ratio: 16/10; }
  .service-strip, .spec-row { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .spec-cell:nth-child(2) { border-right: 0; }
  .spec-cell:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .band-dark .spec-cell:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,.14); }
  .grid-4, .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .founder-grid, .quote-feature { grid-template-columns: 1fr; gap: var(--s-xxl); }
  .founder-card { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --s-section: 56px; }
  .display-xl { font-size: 40px; }
  .display-lg { font-size: 32px; }
  .display-md { font-size: 26px; }
  .util-bar .hide-sm { display: none; }
  .top-nav .logo img { height: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .service-strip, .spec-row, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .spec-cell { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .band-dark .spec-cell { border-bottom-color: rgba(255,255,255,.14); }
  .spec-cell:last-child, .service:last-child { border-bottom: 0; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .trait-list { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr; gap: var(--s-xs); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-xl); }
  .footer-bottom { flex-direction: column; }
  .quote-feature blockquote { font-size: 20px; }
  .bank-table th, .bank-table td { display: block; width: 100%; padding: 6px 0; border: 0; }
  .bank-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .lightbox { padding: var(--s-md); }
}
