/*
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
  2. Remove default margins and padding
  3. Reset all borders.
*/

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

/*
  1. Use a consistent sensible line-height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  3. Use a more readable tab size.
  4. Use the user's configured `sans` font-family by default.
  5. Use the user's configured `sans` font-feature-settings by default.
  6. Use the user's configured `sans` font-variation-settings by default.
  7. Disable tap highlights on iOS.
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  tab-size: 4; /* 3 */
  font-family: --theme(
    --default-font-family,
    ui-sans-serif,
    system-ui,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji'
  ); /* 4 */
  font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */
  font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  3. Reset the default border style to a 1px solid border.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
  Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/*
  Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
  Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

/*
  Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
  1. Use the user's configured `mono` font-family by default.
  2. Use the user's configured `mono` font-feature-settings by default.
  3. Use the user's configured `mono` font-variation-settings by default.
  4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: --theme(
    --default-mono-font-family,
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    'Liberation Mono',
    'Courier New',
    monospace
  ); /* 1 */
  font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */
  font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */
  font-size: 1em; /* 4 */
}

/*
  Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
  Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
  Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
  Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
  Make lists unstyled by default.
*/

ol,
ul,
menu {
  list-style: none;
}

/*
  1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
      This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/*
  1. Inherit font styles in all browsers.
  2. Remove border radius in all browsers.
  3. Remove background color in all browsers.
  4. Ensure consistent opacity for disabled states in all browsers.
*/

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  border-radius: 0; /* 2 */
  background-color: transparent; /* 3 */
  opacity: 1; /* 4 */
}

/*
  Restore default font weight.
*/

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

/*
  Restore indentation.
*/

:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}

/*
  Restore space after button.
*/

::file-selector-button {
  margin-inline-end: 4px;
}

/*
  Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
*/

::placeholder {
  opacity: 1;
}

/*
  Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
  crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
*/

@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
  (contain-intrinsic-size: 1px) /* Safari 17+ */ {
  ::placeholder {
    color: color-mix(in oklab, currentcolor 50%, transparent);
  }
}

/*
  Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
  Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
  1. Ensure date/time inputs have the same height when empty in iOS Safari.
  2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
*/

::-webkit-date-and-time-value {
  min-height: 1lh; /* 1 */
  text-align: inherit; /* 2 */
}

/*
  Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
*/

::-webkit-datetime-edit {
  display: inline-flex;
}

/*
  Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
*/

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}

/*
  Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
*/

::-webkit-calendar-picker-indicator {
  line-height: 1;
}

/*
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
  Correct the inability to style the border radius in iOS Safari.
*/

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
  appearance: button;
}

/*
  Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
  Make elements with the HTML hidden attribute stay hidden by default.
*/

[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}



:root {
  --blue: #0793d0;
  --blue-dark: #0877a8;
  --green: #6bbf3c;
  --green-dark: #286b40;
  --ink: #15343d;
  --cream: #f7f4e9;
  --white: #fffefa;
  --line: rgba(21, 52, 61, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }

.site-header {
  min-height: 96px;
  display: grid;
  grid-template-columns: 280px 1fr 190px;
  align-items: center;
  gap: 28px;
  max-width: 1440px;
  margin: auto;
  padding: 10px 4vw;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.logo-link { width: 230px; height: 78px; display: flex; align-items: center; }
.logo-link img { width: 138px; }
nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 48px); font-weight: 700; }
nav a { padding: 10px 0 7px; border-bottom: 3px solid transparent; }
nav a:hover { border-color: var(--green); }
.utility-nav {
  min-height: 42px;
  max-width: 1440px;
  margin: auto;
  padding: 0 4vw;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 800;
}
.utility-nav span { margin-right: auto; color: #aee67e; letter-spacing: .09em; text-transform: uppercase; }
.utility-nav a { display: inline-flex; gap: 5px; }
.utility-nav a:hover { color: #aee67e; }

.button {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,52,61,.14); }
.button-small { min-height: 48px; padding: 0 20px; }
.button-blue { background: var(--blue); color: white; }
.button-blue:hover { background: var(--blue-dark); }
.button-green { background: var(--green); color: #103220; }
.button-outline { border: 2px solid var(--blue); color: var(--blue-dark); background: rgba(255,255,255,.58); }

.hero {
  max-width: 1440px;
  margin: auto;
  min-height: 670px;
  display: grid;
  grid-template-columns: 43% 57%;
  padding: 20px 4vw 54px;
  overflow: hidden;
}
.hero-copy { padding: 72px 5vw 30px 1vw; align-self: center; position: relative; z-index: 2; }
.eyebrow {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  margin: 0;
}
h1 { font-size: clamp(52px, 5.2vw, 78px); line-height: .98; max-width: 690px; }
.hero-intro { font-size: 20px; line-height: 1.55; max-width: 550px; margin: 28px 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.microcopy { font-size: 13px; opacity: .68; margin: 16px 4px; }
.hero-image {
  min-height: 570px;
  border-radius: 70px 16px 70px 180px;
  background:
    linear-gradient(120deg, rgba(9,147,208,.08), rgba(107,191,60,.05)),
    url("assets/bba-hero.png") center/cover;
  position: relative;
  box-shadow: 0 24px 70px rgba(21,52,61,.12);
}
.hero-sticker {
  position: absolute;
  left: -52px;
  bottom: 40px;
  background: var(--white);
  border: 8px solid var(--green);
  border-radius: 28px 28px 28px 8px;
  padding: 20px 28px;
  transform: rotate(-2deg);
  box-shadow: 0 12px 34px rgba(21,52,61,.18);
}
.hero-sticker strong, .hero-sticker span { display: block; }
.hero-sticker strong { font-family: Georgia, serif; font-size: 21px; }
.hero-sticker span { color: var(--blue-dark); margin-top: 5px; }

.goal-section { max-width: 1440px; margin: auto; padding: 100px 4vw; background: var(--white); border-radius: 56px 56px 0 0; }
.section-heading { display: grid; grid-template-columns: 1.5fr .75fr; column-gap: 70px; align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { font-size: clamp(40px, 4vw, 62px); line-height: 1.02; }
.section-heading > p:last-child { line-height: 1.7; font-size: 17px; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.goal-card { border-radius: 28px; overflow: hidden; position: relative; background: #eaf5e2; min-height: 560px; display: flex; flex-direction: column; }
.goal-number { position: absolute; right: 18px; top: 15px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: white; color: var(--blue-dark); font-weight: 900; }
.goal-photo { height: 220px; background-image: url("assets/bba-goals.png"); background-repeat: no-repeat; background-size: 322% auto; filter: saturate(.9); }
.goal-advocate .goal-photo { background-position: 0 42%; }
.goal-educate .goal-photo { background-position: 50% 42%; }
.goal-community .goal-photo { background-position: 100% 42%; }
.goal-educate { background: #e7f3fa; }
.goal-community { background: #f3f0df; }
.goal-content { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.goal-content h3 { font-size: 42px; color: var(--green-dark); }
.goal-summary { font-size: 19px; line-height: 1.35; font-weight: 800; }
.goal-content p:not(.goal-summary) { line-height: 1.6; margin-top: 0; }
.goal-content a { margin-top: auto; font-weight: 900; color: var(--blue-dark); display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }

.ride-section { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; padding: 30px 4vw 100px; background: var(--white); }
.ride-card { border-radius: 32px; padding: 48px; min-height: 470px; }
.ride-card h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.05; }
.ride-card > p, .event-feature p { font-size: 18px; line-height: 1.6; }
.ride-feature { background: var(--ink); color: white; }
.ride-feature .eyebrow { color: #80d6fa; }
.ride-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.ride-details div { background: rgba(255,255,255,.1); padding: 18px; border-radius: 16px; }
.ride-details span, .ride-details strong { display: block; }
.ride-details span { color: #aee67e; font-size: 13px; text-transform: uppercase; font-weight: 900; margin-bottom: 7px; }
.event-feature {
  background:
    linear-gradient(to top, rgba(8,119,168,.95), rgba(8,119,168,.12)),
    url("assets/bba-goals.png") 100% 45%/325% auto no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-feature .eyebrow { color: white; }
.text-link { font-size: 18px; font-weight: 900; border-bottom: 2px solid white; padding-bottom: 8px; align-self: flex-start; }

.about-section { max-width: 1325px; margin: 80px auto; padding: 72px; border-radius: 40px; background: #dff2d5; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; }
.about-section h2 { font-size: clamp(40px, 4vw, 58px); line-height: 1.06; }
.about-section > div:last-child { font-size: 18px; line-height: 1.65; }

.page-hero {
  max-width: 1325px;
  min-height: 610px;
  margin: 34px auto 80px;
  padding: 80px 7vw;
  border-radius: 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,42,50,.94) 0%, rgba(12,42,50,.7) 48%, rgba(12,42,50,.06) 82%); }
.page-hero > * { position: relative; max-width: 760px; }
.page-hero .eyebrow { color: #aee67e; }
.page-hero h1 { font-size: clamp(54px, 7vw, 92px); }
.page-hero > p:not(.eyebrow) { font-size: 20px; line-height: 1.55; margin: 26px 0; }
.page-hero .button { align-self: flex-start; }
.bikebus-hero, .educate-hero { background-image: url("assets/bba-goals.png"); background-size: 310% auto; background-position: 50% 45%; }
.pedal-hero, .community-hero { background-image: url("assets/bba-hero.png"); }
.advocate-hero { background-image: url("assets/bba-goals.png"); background-size: 310% auto; background-position: 0 45%; }
.split-section, .responsible-section { max-width: 1220px; margin: 0 auto 100px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 0 30px; }
.split-section h2, .responsible-section h2, .faq-section > h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.split-section > div:last-child { font-size: 18px; line-height: 1.7; }
.dark-link { color: var(--blue-dark); border-color: var(--blue-dark); display: inline-block; margin-top: 16px; }
.faq-section { max-width: 1325px; margin: 0 auto 90px; padding: 70px; border-radius: 44px; background: var(--white); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.faq-grid article { padding: 28px; border-radius: 22px; background: #eaf5e2; }
.faq-grid article:nth-child(even) { background: #e7f3fa; }
.faq-grid h3 { font-size: 24px; }
.faq-grid p { line-height: 1.6; }
.feature-stats { max-width: 1220px; margin: -120px auto 100px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-radius: 28px; box-shadow: 0 20px 60px rgba(21,52,61,.15); }
.feature-stats div { padding: 34px; border-right: 1px solid var(--line); }
.feature-stats div:last-child { border: 0; }
.feature-stats strong, .feature-stats span { display: block; }
.feature-stats strong { font-family: Georgia, serif; color: var(--blue-dark); font-size: 50px; }
.feature-stats span { font-weight: 800; margin-top: 7px; }
.responsible-section { background: #dff2d5; padding: 65px; border-radius: 40px; }
.responsible-section li { margin-bottom: 17px; line-height: 1.55; font-size: 17px; }
.three-up { max-width: 1325px; margin: 0 auto 100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 30px; }
.three-up article { padding: 42px 34px; border-radius: 28px; background: var(--white); min-height: 330px; }
.three-up article:nth-child(2) { background: #e7f3fa; }
.three-up article:nth-child(3) { background: #eaf5e2; }
.three-up span { color: var(--blue-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.three-up h2 { font-size: 36px; margin-top: 28px; }
.three-up p { line-height: 1.65; }
.three-up a { color: var(--blue-dark); font-weight: 900; }

footer { padding: 64px 5vw 36px; background: #14343d; color: white; display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 30px; }
footer img { width: 200px; background: white; border-radius: 12px; }
footer p { font-family: Georgia, serif; font-size: 24px; }
footer div { display: flex; gap: 22px; font-weight: 700; }
footer small { grid-column: 1 / -1; opacity: .6; border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; }

:focus-visible { outline: 4px solid var(--green); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-copy { padding: 54px 2vw; }
  .hero-image { min-height: 500px; }
  .hero-sticker { left: 20px; }
  .section-heading, .goal-grid, .ride-section, .about-section { grid-template-columns: 1fr; }
  .split-section, .responsible-section, .three-up { grid-template-columns: 1fr; gap: 30px; }
  .feature-stats { grid-template-columns: repeat(2, 1fr); margin-left: 30px; margin-right: 30px; }
  .faq-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 10px; }
  .goal-card { min-height: 520px; }
  footer { grid-template-columns: 1fr; }
  footer small { grid-column: 1; }
}

@media (max-width: 560px) {
  .site-header { min-height: 76px; padding: 5px 20px; }
  .logo-link { width: 150px; height: 62px; }
  .logo-link img { width: 106px; }
  .site-header > .button { display: none; }
  .utility-nav { overflow-x: auto; justify-content: flex-start; white-space: nowrap; padding: 0 20px; }
  .utility-nav span { display: none; }
  .hero { padding: 0 20px 36px; }
  .hero-copy { padding: 42px 0 24px; }
  h1 { font-size: 48px; }
  .hero-actions .button { width: 100%; }
  .hero-image { min-height: 380px; border-radius: 36px 12px 50px 70px; }
  .hero-sticker { display: none; }
  .goal-section, .ride-section { padding-left: 20px; padding-right: 20px; }
  .goal-section { padding-top: 70px; }
  .goal-card { min-height: 500px; }
  .ride-card { padding: 32px 24px; }
  .ride-details { grid-template-columns: 1fr; }
  .about-section { margin: 40px 20px; padding: 38px 26px; }
  .page-hero { margin: 20px; min-height: 560px; padding: 44px 26px; border-radius: 34px; }
  .page-hero h1 { font-size: 52px; }
  .feature-stats { grid-template-columns: 1fr 1fr; margin: -68px 20px 70px; }
  .feature-stats div { padding: 24px 18px; }
  .feature-stats strong { font-size: 38px; }
  .split-section, .responsible-section, .three-up { padding-left: 20px; padding-right: 20px; }
  .responsible-section { margin-left: 20px; margin-right: 20px; padding: 38px 26px; }
  .faq-section { margin: 0 20px 60px; padding: 40px 22px; }
  footer { padding: 50px 24px 30px; }
  footer div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
