/* ====================================================================
   ASPA WEBSITE - MAIN STYLESHEET
   ====================================================================
   Built mobile-first: base rules below target small screens; larger
   layouts are added inside @media (min-width: ...) blocks further down.
   Structure:
     1. CSS variables (brand colors, spacing, type scale)
     2. Reset / base element styles
     3. Layout utilities (container, section spacing)
     4. Header / navigation (incl. mobile hamburger menu)
     5. Buttons & forms
     6. Reusable components (cards, stats, carousel, tags, footer)
     7. Page-specific tweaks
     8. Media queries (tablet, desktop)
   ==================================================================== */

/* ---------- 1. CSS VARIABLES ---------- */
:root {
  /* Brand palette - from ASPA_Website_Brief.md Section 2 */
  --color-navy: #061A3F;      /* primary - headers/backgrounds */
  --color-blue-deep: #29398E; /* secondary */
  --color-blue: #0086FF;      /* primary brand blue - CTAs, accents, logo */
  --color-blue-light: #0BC0EF;/* highlights/accents */
  --color-offwhite: #F1F2F1;  /* backgrounds, section breaks */
  --color-white: #FFFFFF;
  --color-text: #17203A;      /* body text, derived dark tone for readability */
  --color-text-muted: #5B6478;
  --color-accent-gold: #FFD758; /* announcement bar (desktop) accent */

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --radius: 10px;
  --header-height: 64px;

  /* Type */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. RESET / BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--space-sm); color: var(--color-navy); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }

/* ---------- 3. LAYOUT UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}
.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-lg); }
.section--flush-top { padding-top: 0; }
.section--navy { background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-blue-deep) 100%); color: var(--color-white); }
.section--navy h2, .section--navy h3 { color: var(--color-white); }
/* Flipped gradient variant - used on Home's "Ready to Get Involved?"
   closing CTA only, so it reads as a mirror of the hero above it
   rather than an exact repeat. Other .section--navy CTAs (What We Do,
   For Brands, For Service Providers) keep the standard direction. */
.section--navy--flip { background: linear-gradient(180deg, var(--color-blue-deep) 0%, var(--color-navy) 100%); }
.section--offwhite { background: var(--color-offwhite); }
.section-heading { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: var(--space-lg); }
.section-heading p { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Announcement bar (Home page only) - plain link styled as a slim
   full-width strip above the header. See index.html for markup. */
.announcement-bar {
  display: block;
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 0.55rem var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.announcement-bar:hover,
.announcement-bar:focus-visible { background: var(--color-blue-deep); text-decoration: underline; }
.announcement-bar-text { display: inline-block; }
/* Mobile (base): show the copy below the stats strip, hide the one
   above the header. Flipped at 640px+ in the Tablet and up media
   query further down this file. */
.announcement-bar--top { display: none; }

/* Desktop bar only: gold/amber accent (same --color-accent-gold used
   for Driveway's "Apply Now" button) instead of navy, so it stands
   out as a distinct notice strip rather than blending into the navy
   header right below it - dark navy text for contrast on the light
   gold background. Scrolls as a slow, continuous ticker (two copies
   of the text back to back, translated left by exactly 50% of the
   track's width so the loop is seamless) since desktop's wider bar
   has room for the motion to read as a ticker rather than a jitter;
   the mobile copy (.announcement-bar--mobile) stays static navy. */
.announcement-bar--top {
  background: var(--color-accent-gold);
  color: var(--color-navy);
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
}
.announcement-bar--top:hover,
.announcement-bar--top:focus-visible { background: #E6BE45; text-decoration: none; }
/* Single copy of the text, starting just off the right edge (padding-
   left: 100%) and animating fully past the left edge (translateX
   -100%) - only ever one instance on screen, with a brief blank gap
   before it re-enters from the right, rather than two copies visible
   at once. */
.announcement-bar-track {
  display: inline-block;
  padding-left: 100%;
  animation: announcement-ticker 36s linear infinite;
}
.announcement-bar--top:hover .announcement-bar-track,
.announcement-bar--top:focus-visible .announcement-bar-track { animation-play-state: paused; }
@keyframes announcement-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- 4. HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(6, 26, 63, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand img { height: 32px; width: auto; }
/* Tagline next to the logo — 2 lines of 2 words each, left-aligned,
   same color as the nav links (.main-nav a) so it reads as part of
   the header rather than a separate heading. */
.brand span {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-navy);
  text-align: left;
}

/* Hamburger button - mobile only */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin-inline: auto;
  background: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Main nav - collapses to a full-width dropdown panel on mobile */
.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid rgba(6, 26, 63, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.main-nav.is-open { max-height: 480px; }
.main-nav ul { display: flex; flex-direction: column; padding: var(--space-xs) 0; }
.main-nav a {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid rgba(6, 26, 63, 0.05);
}
.main-nav a.is-active { color: var(--color-blue); }

/* "Members Portal" - a button-styled CTA link inside the nav list,
   not a plain text link like its siblings (and not the old dynamic
   login-aware icon this replaced). */
.main-nav a.nav-cta {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border-bottom: none;
  margin-top: var(--space-xs);
}
.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.is-active { background: var(--color-blue-deep); color: var(--color-white); }

/* ---------- 5. BUTTONS & FORMS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-blue); color: var(--color-white); }
.btn-primary:hover { background: var(--color-blue-deep); }
.btn-outline { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-navy); }
.btn-outline--dark { color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline--dark:hover { background: var(--color-navy); color: var(--color-white); }
/* Gold/amber accent button - relies on --color-gold, which is only
   defined under .driveway-page (see the DRIVEWAY PAGE block below).
   Not for use outside that page. */
.btn-gold { background: var(--color-gold); color: var(--color-navy); }
.btn-gold:hover { background: #B8941F; }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Forms - single column, thumb-friendly (mobile-first principle, Section 3) */
.form { display: flex; flex-direction: column; gap: var(--space-sm); max-width: 520px; }
.form.form--wide { max-width: 100%; }
.form label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; display: block; }
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #C7CBD6;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 134, 255, 0.15);
}
.form-note { font-size: 0.8rem; color: var(--color-text-muted); }
.form-inline { display: flex; flex-direction: column; gap: var(--space-sm); }

/* Inline form result states (Become a Partner / Express Interest) -
   on successful submission the <form> itself is hidden and this
   message is shown in its place instead of a native alert(); on
   failure this stays hidden and .form-error-text below is shown
   inline near the submit button instead, so the visitor can retry
   without losing what they've already typed. Designed for use on a
   .section--navy background (white/light text on dark blue). */
.form-result {
  text-align: center;
  padding: var(--space-lg) 0;
}
.form-result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-white);
}
.form-result h3 { color: var(--color-white); margin-bottom: var(--space-xs); }
.form-result p { color: rgba(255, 255, 255, 0.8); }
.form-error-text {
  color: #FFD7D7;
  font-size: 0.85rem;
  font-weight: 600;
}
/* Light-background variant - Contact page's form sits on a plain white
   section, not a .section--navy like Become a Partner / Express
   Interest, so the white-on-dark colors above would be invisible. */
.form-result--light .form-result-icon { background: rgba(0, 134, 255, 0.12); color: var(--color-blue-deep); }
.form-result--light h3 { color: var(--color-navy); }
.form-result--light p { color: var(--color-text-muted); }
.form-error-text--light { color: #B3261E; }

/* ---------- 6. REUSABLE COMPONENTS ---------- */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-blue-deep) 100%);
  color: var(--color-white);
  padding-block: var(--space-2xl) var(--space-xl);
  text-align: center;
}
/* Background photo + navy tint - same 75% tint used on the Driveway
   page's hero/keep sections (see .driveway-tint-section in this file)
   so background-image visibility reads consistently across the site. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/main-background.png');
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 63, 0.75);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--color-white); }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto var(--space-lg); text-align: center; }
.hero-bg-note { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: var(--space-md); }

/* Page header (for interior pages, shorter than home hero) */
.page-header {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-blue-deep) 100%);
  color: var(--color-white);
  padding-block: var(--space-xl) var(--space-lg);
  text-align: center;
}
.page-header h1 { color: var(--color-white); }
.page-header p { color: rgba(255,255,255,0.8); max-width: 640px; margin-inline: auto; }

/* Stats strip - stacks on mobile, row on desktop (Section 3 mobile-first) */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  text-align: center;
}
.stat .stat-number { font-size: 2.25rem; font-weight: 800; color: var(--color-blue); }
.stat .stat-label { color: var(--color-text-muted); font-weight: 600; }

/* Horizontal scroll / swipeable row - used for council, categories,
   partner logos, testimonials on mobile per Section 3 of the brief. */
.scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scroll-row > * { scroll-snap-align: start; flex: 0 0 auto; }

/* Auto-scrolling variant (Partner Logos on for-brands.html) - no
   scroll-snap, since snapping fights the sub-pixel auto-scroll
   animation driven by initAutoScroll() in js/main.js. */
.scroll-row--auto { scroll-snap-type: none; }
.scroll-row--auto > * { scroll-snap-align: none; }

/* Council member card */
.council-card {
  width: 220px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid rgba(6,26,63,0.08);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.council-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-xs);
  background: var(--color-offwhite);
}
.council-card .name { font-weight: 700; color: var(--color-navy); }
.council-card .role { font-size: 0.75rem; font-weight: 700; color: var(--color-blue); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.2rem; }
.council-card .title { font-size: 0.85rem; color: var(--color-text-muted); }

/* Blue variant - used for council cards on Home + About (brief calls
   for a "premium" feel; solid brand-blue cards with white text give
   more visual weight than the default white card). */
.council-card--blue .name { color: var(--color-blue-deep); }
.council-card--blue .role { color: var(--color-blue-light); }
.council-card--blue .title { color: var(--color-navy); }

.council-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  justify-content: center;
  justify-items: center;
}

/* Full council grid (about.html) - flex + wrap + center instead of a
   fixed-column grid, so an incomplete last row (e.g. 9 members across
   4 columns leaves 1 on its own) still centers instead of hugging the
   left edge. Kept as a separate modifier so it doesn't affect the
   .scroll-row + .council-grid combo used for the horizontal-swipe
   council previews on index.html / for-brands.html. */
.council-grid--full {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Logo strip (recognition / partner logos / press) */
.logo-strip { align-items: center; }
.logo-strip img,
.logo-placeholder {
  height: 60px;
  width: 140px;
  object-fit: contain;
}
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-offwhite);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* Testimonial carousel */
.testimonial-card {
  width: 280px;
  background: var(--color-white);
  border: 1px solid rgba(6,26,63,0.08);
  border-radius: var(--radius);
  padding: var(--space-md);
}
/* Home page only - 20% wider than the base card used on
   for-service-providers.html, which stays at the default width. */
.testimonial-card--wide { width: 336px; }
.testimonial-card .quote { font-style: italic; margin-bottom: var(--space-sm); }
.testimonial-card .person { display: flex; align-items: center; gap: var(--space-xs); }
.testimonial-card .person img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--color-offwhite);
}
.testimonial-card .person .name { font-weight: 700; font-size: 0.9rem; color: var(--color-navy); }
.testimonial-card .person .role { font-size: 0.8rem; color: var(--color-text-muted); }
/* Home page only (.testimonial-card--wide is already scoped there) -
   person photo 20% bigger than the sitewide default above (44px ->
   53px), without touching Driveway's (hidden) testimonials which
   reuse the same base .testimonial-card markup. Must come AFTER the
   ".testimonial-card .person img" rule above - both selectors have
   equal specificity, so whichever is later in the file wins; this one
   needs to win here. */
.testimonial-card--wide .person img { width: 53px; height: 53px; }

/* Carousel controls (used for testimonials + event galleries) */
.carousel-wrap { position: relative; }
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(6,26,63,0.15);
  background: var(--color-white);
  font-size: 1.1rem;
  cursor: pointer;
}
.carousel-btn:hover { background: var(--color-offwhite); }

/* Side arrows (Home > Industry Voices) - float at the vertical
   center of .carousel-wrap's left/right edges instead of a prev/next
   pair below the row. Each auto-hides via the `hidden` attribute
   (see initCarouselSideArrows() in js/main.js) once the row has
   nothing left to scroll in that direction. */
.carousel-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(6,26,63,0.15);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(6,26,63,0.15);
  font-size: 1.3rem;
  cursor: pointer;
}
.carousel-side-btn:hover { background: var(--color-offwhite); }
.carousel-side-btn--prev { left: var(--space-sm); }
.carousel-side-btn--next { right: var(--space-sm); }

/* Chairman's Message "note" (about.html) - dark blue card with a
   circular photo on the left (top on mobile) and the message text on
   the right, signed off with the name bottom-right. Mobile-first:
   stacks vertically by default, goes side-by-side at the desktop
   breakpoint (see the (min-width: 900px) media query below).

   This card's look (white fill, thin border, rounded corners) is now
   the About page's site-wide card standard - see .about-card just
   below, which .chairman-note builds on. .chairman-note itself only
   carries the layout that's specific to THIS section (photo + text
   arrangement), not the visual card styling. */
.chairman-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.chairman-note-photo {
  flex-shrink: 0;
}
.chairman-note-photo img {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-offwhite);
}
.chairman-note-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.chairman-note-text {
  font-style: italic;
  color: var(--color-text);
}
.chairman-note-name {
  font-weight: 700;
  align-self: center;
  color: var(--color-navy);
}
.chairman-note-name .role {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   ABOUT PAGE
   White/off-white .about-card system for the light sections
   (Mission/Vision panels, pillar descriptions, Chairman's Message,
   Recognition), plus dedicated dark-navy treatments for the hero,
   the Mission/Vision tab bar, and the Founder tile - those three
   stay navy regardless of the white/off-white alternation elsewhere
   on the page (see the .section / .section--offwhite classes on
   each <section> in about.html for the alternation itself).

   Note: "0.5px border" from the design spec renders as 1px here -
   sub-pixel borders aren't reliably supported across browsers/
   displays. border-radius is a bespoke 12px for this card family
   specifically (the sitewide --radius token used by buttons and
   other components elsewhere is 10px; kept separate on purpose so
   changing one doesn't silently change the other). */
.about-card {
  background: var(--color-white);
  border: 1px solid rgba(6, 26, 63, 0.12);
  border-radius: 12px;
  padding: var(--space-lg);
}

/* Hero - dark navy gradient with a small logo badge above the heading */
.about-hero {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-blue-deep) 100%);
  color: var(--color-white);
  padding-block: var(--space-2xl) var(--space-xl);
  text-align: center;
}
.about-hero-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: rgba(6, 26, 63, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hero-badge img { width: 34px; height: 34px; object-fit: contain; }
.about-hero h1 { color: var(--color-white); margin-bottom: var(--space-xs); }
.about-hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.75); max-width: 560px; margin-inline: auto; }

/* Mission/Vision - tab bar is its own full-bleed dark navy band (a
   direct child of <section>, not .container, so it spans edge to
   edge without needing negative margins); panel content below sits
   in the normal .container and follows the page's white/off-white
   alternation like everything else. */
.about-tabs-bar {
  background: var(--color-navy);
}
.about-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
}
.about-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem var(--space-md);
  border-radius: 999px;
  cursor: pointer;
}
.about-tab.is-active {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}
.about-tab-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding-block: var(--space-lg);
}
.about-tab-panel[hidden] { display: none; }
.about-tab-label {
  display: block;
  color: var(--color-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  margin-bottom: var(--space-xs);
}
.about-tab-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: var(--color-offwhite);
}
@media (min-width: 768px) {
  .about-tab-panel { grid-template-columns: 1fr 1fr; }
}

/* Six Pillars - one full-bleed photo tile per pillar (3x2 desktop,
   stacked mobile). Each tile carries a fixed navy tint over the photo
   so white centered text stays legible while the photo underneath
   still reads through. The tile shows its title by default; on
   hover, the title is swapped for the pillar's description instead
   of showing both (see .pillar-tile-desc below). Touch devices don't
   get :hover, so the JS at the bottom of about.html toggles the same
   swap via .is-active on tap. */
.pillar-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 900px) {
  .pillar-tile-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pillar-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 63, 0.8);
}
.pillar-tile-title,
.pillar-tile-desc {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  text-align: center;
  padding: 0 var(--space-md);
}
.pillar-tile-title {
  font-weight: 700;
  font-size: 1.15rem;
}
.pillar-tile-desc {
  display: none;
  font-size: 0.9rem;
  line-height: 1.5;
}
.pillar-tile:hover .pillar-tile-title,
.pillar-tile.is-active .pillar-tile-title {
  display: none;
}
.pillar-tile:hover .pillar-tile-desc,
.pillar-tile.is-active .pillar-tile-desc {
  display: block;
}

/* Founder - dark navy team-tile: circular photo (same size as the
   Chairman's Message photo, see .chairman-note-photo img), thin blue
   accent bar, name/title/bio directly on the dark band (no separate
   white card). Single founder, so the tile is centered rather than
   in a row. */
.founder-tile {
  max-width: 630px;
  margin-inline: auto;
  text-align: center;
}
.founder-tile img {
  display: block;
  width: 144px;
  height: 144px;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}
.founder-tile-accent {
  width: 56px;
  height: 4px;
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue) 100%);
}
.founder-tile-name {
  margin-top: var(--space-sm);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
}
.founder-tile-title {
  color: var(--color-blue-light);
  font-weight: 600;
  font-size: 0.9rem;
}
.founder-tile-bio {
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

/* Recognition (WAF) - certificate as a small supporting image next to
   the text, not centered alone as the section's sole visual. No hard
   border/frame on the image itself - it should read as a designed
   page element, not a scanned photo. */
.recognition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.recognition-card img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  cursor: pointer;
}
@media (min-width: 768px) {
  .recognition-card { flex-direction: row; align-items: center; text-align: left; }
}

/* Newsletter signup strip */
.newsletter-strip {
  background: var(--color-blue-deep);
  color: var(--color-white);
  text-align: center;
}
.newsletter-strip h2 { color: var(--color-white); }
.newsletter-strip .form { margin-inline: auto; }

/* Event card */
.event-card {
  background: var(--color-white);
  border: 1px solid rgba(6,26,63,0.08);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.event-card.event-card--featured { border-color: var(--color-blue); border-width: 2px; }
/* Event title as a link (e.g. "Auto Components Show" -> the official
   event site) - inherits the plain navy heading look by default (see
   the sitewide `a { color: inherit; text-decoration: none; }` rule)
   so it reads as a normal title, with a hover/focus underline as the
   only signal that it's clickable. */
.event-card h2 a:hover,
.event-card h2 a:focus-visible { text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); color: var(--color-text-muted); font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-sm); }
.event-meta span { display: inline-flex; align-items: center; gap: 0.3em; }
.event-gallery {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: var(--space-sm);
}
.event-gallery img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  flex: 0 0 auto;
  background: var(--color-offwhite);
}
.event-gallery-viewall { text-align: center; margin-top: var(--space-sm); }

/* Wider modal variant - the newsletter download modal (.modal) is
   sized for a form; the "View All" event photo grid needs more room. */
/* Full-screen photo lightbox ("View All" on events.html) - one photo
   at a time, sized to fit the viewport without cropping
   (object-fit: contain), with prev/next arrows. Reuses .modal-overlay
   for the dark backdrop + open/close toggle, but skips the boxed
   white .modal card entirely in favor of a full-screen dark stage. */
.lightbox-overlay { background: rgba(0, 0, 0, 0.92); flex-direction: column; }
.lightbox-close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 210;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 210;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: var(--space-sm); }
.lightbox-next { right: var(--space-sm); }
.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox-stage img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  text-align: center;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 63, 0.6);
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  z-index: 200;
}
.modal-overlay.is-open { display: flex; }

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
  padding-block: var(--space-xl) var(--space-lg);
}
.site-footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-grid a { display: block; padding: 0.3rem 0; color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-md);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ============================================================
   DRIVEWAY PAGE (for-service-providers.html)
   Driveway is ASPA's membership programme, styled as a premium
   sub-brand within the ASPA family: same fonts/layout language and
   core palette, plus one extra accent - gold/amber - scoped to this
   page only via --color-gold on .driveway-page (set on <body> here),
   not added as a sitewide token. Used sparingly: the hero's "Apply
   Now" button (.btn-gold) and the "What We Stand For" statement.

   Both the hero and the "What does not change" section use the same
   dark-navy-tint-over-photo treatment (see .driveway-tint-section,
   shared by both so their opacity always stays in sync).
   ============================================================ */
.driveway-page { --color-gold: #D4AF37; }

/* Shared full-bleed photo + navy tint treatment - hero uses
   hero-workshop.png, "What does not change" uses workshop2.png (see
   .driveway-hero::before / .driveway-keep-section::before below for
   which image each one loads). Tint is intentionally heavy (0.75) so
   the photo underneath reads as a subtle backdrop, not a competing
   visual - if the image hasn't been dropped in yet, the tint alone
   still reads as a plain dark navy section. */
.driveway-tint-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-blue-deep) 100%);
  color: var(--color-white);
  text-align: center;
}
.driveway-tint-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.driveway-tint-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 63, 0.75);
}
.driveway-tint-section .container { position: relative; z-index: 1; }
.driveway-tint-section h2 { color: var(--color-white); }

/* Hero */
.driveway-hero { padding-block: var(--space-2xl) var(--space-xl); }
.driveway-hero::before { background-image: url('../images/driveway/hero-workshop.png'); }
.driveway-hero-logo { height: 120px; margin: 0 auto var(--space-md); display: block; }
.driveway-hero h1 { color: var(--color-white); font-size: 2.25rem; max-width: 780px; margin-inline: auto; }
.driveway-hero .lead { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: var(--space-sm) auto var(--space-lg); }
.driveway-hero .btn { width: auto; padding-inline: 2rem; }

/* "Driveway" (what it is) - two-column split, image stacks below the
   text on mobile. Contained image (not full-bleed), full clarity, no
   tint. */
.driveway-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 768px) {
  .driveway-split { grid-template-columns: 1fr 1fr; }
}
.driveway-split-media img {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: cover;
  border-radius: 12px;
}

/* "What You Get With Driveway" - icon sits to the left of its title
   (no circular icon frame), card text below. */
.driveway-offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .driveway-offer-grid { grid-template-columns: repeat(3, 1fr); }
}
.driveway-offer-card {
  background: var(--color-white);
  border: 1px solid rgba(6, 26, 63, 0.08);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: left;
}
.driveway-offer-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.driveway-offer-head img { width: 31px; height: 31px; object-fit: contain; flex-shrink: 0; }
.driveway-offer-head h3 { margin: 0; }
.driveway-offer-card p { color: var(--color-text-muted); margin: 0; }

/* "What does not change" - same photo+tint treatment as the hero
   (see .driveway-tint-section above), white text throughout since it
   now sits on a dark background. Checkmarks are a plain blue
   character, not an icon file. */
.driveway-keep-section::before { background-image: url('../images/driveway/workshop2.png'); }
/* Heavier tint than the shared .driveway-tint-section::after (0.75) -
   the text here was hard to read against the photo, so the image's
   visibility is cut by a further 20% (0.25 -> 0.05) versus the hero. */
.driveway-keep-section::after { background: rgba(6, 26, 63, 0.95); }
.driveway-keep-section .section-heading p { color: rgba(255, 255, 255, 0.75); }
.driveway-keep-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
}
.driveway-keep-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.driveway-keep-item p { color: var(--color-white); margin: 0; }
.driveway-check { color: var(--color-blue); font-weight: 800; font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; }
.driveway-keep-closing { text-align: center; font-weight: 700; color: var(--color-white); margin-top: var(--space-lg); }

/* Chip list (Who Can Join / Industry Tie-Ups) - short category tags,
   centered and wrapping evenly. */
.driveway-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 760px;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}
.driveway-chip-list li {
  background: var(--color-white);
  border: 1px solid rgba(6, 26, 63, 0.12);
  border-radius: 999px;
  padding: 0.5rem var(--space-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

/* Checklist (Eligibility / What You Gain) - same blue-checkmark idea
   as .driveway-keep-list (see "What does not change" above), but
   left independent since that one must stay pixel-for-pixel
   unchanged; this version also sits on regular white/off-white
   sections rather than a dark tinted one, and goes 2-column at
   tablet width once there's enough items to justify it (Eligibility:
   8, What You Gain: 16). */
.driveway-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm) var(--space-lg);
  max-width: 780px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .driveway-checklist { grid-template-columns: 1fr 1fr; }
}
.driveway-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.driveway-checklist-item p { margin: 0; }

/* Step flow (How to Join) - numbered circles connected by arrows,
   wrapping to a centered stack on narrow screens. Steps 1 and 2 are
   <a> links (to #eligibility and #express-interest-form); 3-5 are
   plain text, so .driveway-step styling has to work on either tag. */
.driveway-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 1010px;
  margin-inline: auto;
}
.driveway-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 130px;
  min-height: 130px;
  padding: var(--space-sm);
  background: var(--color-white);
  border: 1px solid rgba(6, 26, 63, 0.1);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
a.driveway-step:hover { background: var(--color-offwhite); }
.driveway-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-blue-deep);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.driveway-step-arrow {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  align-self: center;
  margin-top: 18px;
}
@media (max-width: 639px) {
  .driveway-steps { flex-direction: column; align-items: center; }
  .driveway-step-arrow { display: none; }
}

/* FAQ accordion - plain <details>/<summary>, no JS needed. */
.driveway-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 760px;
  margin-inline: auto;
}
.driveway-faq-item {
  background: var(--color-white);
  border: 1px solid rgba(6, 26, 63, 0.1);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.driveway-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.driveway-faq-item summary::-webkit-details-marker { display: none; }
.driveway-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-blue);
  flex-shrink: 0;
}
.driveway-faq-item[open] summary::after { content: "\2212"; }
.driveway-faq-item p {
  margin: var(--space-sm) 0 0;
  color: var(--color-text-muted);
}

/* ---------- 8. MEDIA QUERIES ---------- */

/* Tablet and up */
@media (min-width: 640px) {
  .announcement-bar--top { display: block; }
  .announcement-bar--mobile { display: none; }
  .btn-row { flex-direction: row; justify-content: center; }
  .btn { width: auto; padding-inline: 2rem; }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .stats-strip--3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop and up */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-bottom: none;
  }
  .main-nav ul { flex-direction: row; align-items: center; gap: var(--space-md); }
  .main-nav a { padding: 0; border-bottom: none; }
  .main-nav a.nav-cta { padding: 0.6rem 1.1rem; margin-top: 0; }

  .council-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(5, 1fr); }

  .form-inline { flex-direction: row; }
  .form-inline input { flex: 1; }
  .form-inline button { width: auto; }

  .chairman-note {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-lg);
  }
  .chairman-note-body { flex: 1; }
  .chairman-note-name { align-self: flex-end; text-align: right; }
}

/* ---------- 9. MOBILE ONLY (max-width: 639px) ----------
   Everything below is scoped to phones specifically - it must NOT
   affect the 640px tablet layout or the 900px desktop layout, so it
   lives in its own max-width query rather than as a mobile-first
   base rule the tablet/desktop breakpoints would need to re-override. */
@media (max-width: 639px) {
  /* 1. Mobile nav dropdown - center every item's label/pill instead
     of left-aligning, and give the panel more room + breathing room
     below the last item (Members Portal) instead of ending flush
     against it. */
  .main-nav ul { text-align: center; padding-bottom: var(--space-md); }
  .main-nav.is-open { max-height: 560px; }

  /* 3. "Partner With Us" / "Join the Network" (wherever they appear)
     - 20% narrower instead of the full-width default, and centered
     in both flex (.btn-row) and plain block contexts. */
  .btn-cta {
    width: 80%;
    margin-inline: auto;
    align-self: center;
  }

  /* 5. Driveway hero's "Apply Now" - matches the same 80%-width
     treatment as the CTAs above instead of its own auto/pill sizing.
     Needs to repeat the .driveway-hero .btn selector (not just
     .btn-cta alone) to out-specificity the unconditional
     ".driveway-hero .btn { width: auto; }" rule earlier in this file. */
  .driveway-hero .btn.btn-cta {
    width: 80%;
    margin-inline: auto;
  }

  /* 4. About page Mission/Vision tab images - 15% shorter so the tab
     bar and image both fit without scrolling up when switching tabs.
     4/3 -> width/height 1.3333, height = 0.75x width; 15% shorter
     height = 0.6375x width, i.e. width/height ~1.57. */
  .about-tab-image { aspect-ratio: 1.57; }
}
