:root {
  --ink: #211f1c;
  --muted: #655f57;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded8ce;
  --brand: #ba4f2c;
  --brand-dark: #71351f;
  --green: #2f6252;
  --gold: #d19a3c;
  --shadow: 0 20px 55px rgba(33, 31, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(222, 216, 206, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a,
.header-call {
  text-decoration: none;
}

.site-nav a:hover,
.header-call:hover {
  color: var(--brand);
}

.header-call {
  min-width: max-content;
  color: var(--brand-dark);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100svh - 77px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(20, 19, 17, 0.78), rgba(20, 19, 17, 0.44), rgba(20, 19, 17, 0.08)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Mount_Crosby_Road_North_Tivoli.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  content: "";
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 247, 0));
}

.hero-content {
  width: min(880px, 100%);
  padding: clamp(80px, 11vw, 150px) clamp(20px, 6vw, 72px) clamp(52px, 8vw, 94px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.image-band .eyebrow,
.contact-section .eyebrow {
  color: #ffcb74;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(33, 31, 28, 0.12);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--brand);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 850px;
  margin: 42px 0 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.hero-facts div {
  padding: 16px;
  background: rgba(18, 17, 16, 0.38);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.62);
}

dd {
  margin: 4px 0 0;
  font-weight: 760;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
  margin-bottom: 38px;
}

.section-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.intro {
  padding-top: clamp(42px, 6vw, 82px);
}

.intro-grid,
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.details-grid article,
.quote-panel,
.terms-list p {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(33, 31, 28, 0.05);
}

.intro-grid article,
.details-grid article {
  padding: 24px;
}

.intro-grid p,
.details-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.rates-section {
  background: #f1eee8;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rate-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(33, 31, 28, 0.07);
}

.featured-rate {
  border-color: rgba(186, 79, 44, 0.45);
  box-shadow: var(--shadow);
}

.licence {
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rate-card p:not(.licence) {
  margin: 0;
  color: var(--muted);
}

.rate-card dl {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}

.rate-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rate-card dd {
  color: var(--brand-dark);
  font-size: 1.3rem;
  font-weight: 900;
}

.image-band {
  min-height: 410px;
  display: grid;
  align-items: end;
  padding: clamp(50px, 8vw, 88px) clamp(20px, 5vw, 72px);
  background-image:
    linear-gradient(90deg, rgba(20, 19, 17, 0.78), rgba(20, 19, 17, 0.42)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Brisbane_River_downstream_from_Colleges_Crossing%2C_Queensland%2C_2022%2C_01.jpg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.image-band h2 {
  max-width: 720px;
}

.bike-showcase {
  position: relative;
}

.filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bike-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.bike-filter-bar label {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
}

.bike-filter-bar label:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

#filter-all:focus-visible ~ .bike-filter-bar label[for="filter-all"],
#filter-learner:focus-visible ~ .bike-filter-bar label[for="filter-learner"],
#filter-lams:focus-visible ~ .bike-filter-bar label[for="filter-lams"],
#filter-r:focus-visible ~ .bike-filter-bar label[for="filter-r"],
#filter-moped:focus-visible ~ .bike-filter-bar label[for="filter-moped"] {
  outline: 3px solid rgba(186, 79, 44, 0.35);
  outline-offset: 3px;
}

#filter-all:checked ~ .bike-filter-bar label[for="filter-all"],
#filter-learner:checked ~ .bike-filter-bar label[for="filter-learner"],
#filter-lams:checked ~ .bike-filter-bar label[for="filter-lams"],
#filter-r:checked ~ .bike-filter-bar label[for="filter-r"],
#filter-moped:checked ~ .bike-filter-bar label[for="filter-moped"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.bike-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bike-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(33, 31, 28, 0.07);
}

.bike-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7e0d6;
}

.bike-card div {
  padding: 20px;
}

.bike-type {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bike-card p:not(.bike-type) {
  margin: 12px 0 0;
  color: var(--muted);
}

#filter-learner:checked ~ .bike-gallery .bike-card:not(.learner),
#filter-lams:checked ~ .bike-gallery .bike-card:not(.lams),
#filter-r:checked ~ .bike-gallery .bike-card:not(.r-class),
#filter-moped:checked ~ .bike-gallery .bike-card:not(.moped) {
  display: none;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: center;
  background: #272520;
  color: #fff;
}

.about-copy p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.quote-panel {
  padding: clamp(26px, 4vw, 42px);
  background: #fff;
  color: var(--ink);
}

blockquote {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.14;
}

.terms-section {
  padding-top: 0;
}

.terms-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.terms-list p {
  margin: 0;
  padding: 20px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background: var(--green);
  color: #fff;
}

.contact-section p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.contact-actions {
  margin-top: 0;
}

.contact-actions .button {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 26px clamp(20px, 5vw, 72px);
  background: #171614;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.site-footer p {
  max-width: 640px;
  margin: 0;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-facts,
  .section-heading,
  .rate-grid,
  .intro-grid,
  .details-grid,
  .about-section,
  .terms-list,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .bike-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .contact-actions .button {
    width: auto;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .header-call {
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .image-band {
    min-height: 360px;
  }

  .bike-gallery {
    grid-template-columns: 1fr;
  }
}
