/* ==========================================================================
   Epic Bikes — Stylesheet
   Blue (#0a3d91) + Red (#d62828) palette · Casual Aussie tone · Responsive
   ========================================================================== */

/* --- Reset & Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #0a3d91; text-decoration: none; transition: color .2s; }
a:hover { color: #d62828; }
:focus-visible {
  outline: 3px solid #d62828;
  outline-offset: 2px;
  border-radius: 4px;
}
ul, ol { list-style: none; }
address { font-style: normal; }

/* --- Skip Link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #0a3d91;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* --- Container ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Brand --------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #0a3d91;
}
.brand:hover { color: #0a3d91; }
.brand-mark { flex-shrink: 0; }
.brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.brand-accent { color: #d62828; }
.brand--light { color: #ffffff; }
.brand--light:hover { color: #ffffff; }

/* --- Site Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid #e8f0fe;
  box-shadow: 0 1px 8px rgba(10,61,145,.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* --- Nav Toggle (hamburger) ---------------------------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0a3d91;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Primary Nav --------------------------------------------------------- */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  padding: .5rem .85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  color: #1a1a2e;
  transition: background .2s, color .2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e8f0fe;
  color: #0a3d91;
}
.nav-cta a {
  background: #0a3d91 !important;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta a:hover { background: #d62828 !important; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.btn-primary { background: #0a3d91; color: #ffffff; }
.btn-primary:hover { background: #073274; color: #ffffff; }
.btn-ghost {
  background: transparent;
  color: #0a3d91;
  border: 2px solid #0a3d91;
}
.btn-ghost:hover { background: #e8f0fe; color: #0a3d91; transform: translateY(-1px); }
.btn-light { background: #ffffff; color: #0a3d91; }
.btn-light:hover { background: #e8f0fe; color: #0a3d91; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin-bottom: 1rem; }

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: #d62828;
  margin-bottom: .5rem;
}
.eyebrow--light { color: #ffd166; }
.hl { color: #d62828; }
.muted { color: #6b7280; font-size: .9rem; }
.lnk { font-weight: 600; color: #0a3d91; }
.lnk:hover { color: #d62828; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  min-height: 520px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-hills { width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-lede { font-size: 1.15rem; color: #4a5568; margin: 1rem 0 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: .95rem;
}
.hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card svg { filter: drop-shadow(0 8px 24px rgba(10,61,145,.12)); }

/* --- Trust Bar ----------------------------------------------------------- */
.band {
  background: #0a3d91;
  padding: 1.25rem 0;
}
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-bar li {
  color: #ffffff;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* --- Sections ------------------------------------------------------------- */
.section { padding: 4rem 0; }
.section.alt { background: #f5f9ff; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head p { color: #6b7280; }

/* --- Grid ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* --- Feature Cards ------------------------------------------------------- */
.feature {
  background: #ffffff;
  border: 1px solid #e8f0fe;
  border-radius: 16px;
  padding: 2rem;
  transition: box-shadow .25s, transform .25s;
}
.feature:hover {
  box-shadow: 0 8px 32px rgba(10,61,145,.1);
  transform: translateY(-3px);
}
.feature-ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a3d91;
  margin-bottom: 1rem;
}

/* --- Cards --------------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid #e8f0fe;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(10,61,145,.1);
  transform: translateY(-3px);
}

/* --- Ticks List ---------------------------------------------------------- */
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .75rem;
  font-size: .95rem;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0a3d91;
  font-weight: 800;
}

/* --- Split Layout -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-media svg { border-radius: 16px; }

/* --- Page Hero (inner pages) --------------------------------------------- */
.page-hero {
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero--service {
  background: linear-gradient(135deg, #0a3d91 0%, #1448a8 100%);
  color: #ffffff;
}
.page-hero--bikes {
  background: linear-gradient(135deg, #0a3d91 0%, #1a4fbf 100%);
  color: #ffffff;
}
.page-hero--contact {
  background: linear-gradient(135deg, #0a3d91 0%, #0d4599 100%);
  color: #ffffff;
}
.page-hero h1 { color: #ffffff; margin-bottom: 1rem; }
.page-hero p { max-width: 600px; margin: 0 auto 1.5rem; color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* --- Pricing Cards -------------------------------------------------------- */
.price {
  background: #ffffff;
  border: 1px solid #e8f0fe;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.price:hover {
  box-shadow: 0 8px 32px rgba(10,61,145,.1);
  transform: translateY(-3px);
}
.price--featured {
  border-color: #d62828;
  box-shadow: 0 4px 24px rgba(214,40,40,.12);
}
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #d62828;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-tag {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.price-tag strong { font-size: 1.6rem; color: #0a3d91; }
.price .note {
  font-size: .85rem;
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 0;
}

/* --- Chips --------------------------------------------------------------- */
.chip {
  background: #ffffff;
  border: 1px solid #e8f0fe;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
  transition: box-shadow .2s, transform .2s;
}
.chip:hover { box-shadow: 0 4px 16px rgba(10,61,145,.08); transform: translateY(-2px); }

/* --- Steps --------------------------------------------------------------- */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.steps li::before {
  display: none;
}
.steps h3 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}

/* --- Testimonial Quotes --------------------------------------------------- */
.quote {
  background: #ffffff;
  border-left: 4px solid #d62828;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  transition: box-shadow .25s;
}
.quote:hover { box-shadow: 0 4px 20px rgba(10,61,145,.08); }
.quote p { font-style: italic; color: #4a5568; margin-bottom: .75rem; }
.quote footer { font-size: .9rem; color: #1a1a2e; }

/* --- CTA Strip ------------------------------------------------------------ */
.cta-strip {
  background: #d62828;
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #ffffff; font-size: 1.6rem; margin-bottom: .25rem; }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 0; }

/* --- Bike Cards ----------------------------------------------------------- */
.bike-card {
  background: #ffffff;
  border: 1px solid #e8f0fe;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.bike-card:hover {
  box-shadow: 0 8px 32px rgba(10,61,145,.12);
  transform: translateY(-4px);
}
.bike-card-img {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bike-card-body { padding: 1.5rem; }
.bike-card-body h3 { margin-bottom: .25rem; }
.bike-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .6rem;
  border-radius: 6px;
  margin-bottom: .5rem;
}
.bike-tag--mtb { background: #d6f5e0; color: #166534; }
.bike-tag--road { background: #dbeafe; color: #1e40af; }
.bike-tag--ebike { background: #fef3c7; color: #92400e; }
.bike-tag--kids { background: #fce7f3; color: #9d174d; }
.bike-tag--commuter { background: #e0e7ff; color: #3730a3; }
.bike-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #0a3d91;
  margin-bottom: .5rem;
}

/* --- Filter Tabs --------------------------------------------------------- */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: .5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid #e8f0fe;
  background: #ffffff;
  color: #1a1a2e;
  cursor: pointer;
  transition: all .2s;
}
.filter-tab:hover,
.filter-tab.active {
  background: #0a3d91;
  color: #ffffff;
  border-color: #0a3d91;
}

/* --- Contact Form -------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: #1a1a2e;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #e8f0fe;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #0a3d91;
  box-shadow: 0 0 0 3px rgba(10,61,145,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: #9ca3af; margin-top: .3rem; margin-bottom: 0; }

/* --- Contact Info Cards --------------------------------------------------- */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.info-card {
  background: #ffffff;
  border: 1px solid #e8f0fe;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.info-card h4 { margin-bottom: .35rem; }
.info-card p { font-size: .9rem; color: #6b7280; margin-bottom: 0; }
.info-card a { color: #0a3d91; font-weight: 600; }

/* --- Map Placeholder ----------------------------------------------------- */
.map-placeholder {
  background: #e8f0fe;
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.map-placeholder svg { width: 100%; height: 100%; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: #0a3d91;
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.site-footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #ffd166; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { order: -1; }
  .hero-card svg { max-height: 260px; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav ul {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid #e8f0fe;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: none;
  }
  .site-nav ul.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .75rem 1rem; border-radius: 8px; }
  .nav-cta { margin-top: .5rem; }
  .nav-cta a { text-align: center; }

  .hero { padding: 2rem 0; min-height: auto; }
  .hero-card { display: none; }
  .section { padding: 3rem 0; }
  .trust-bar { gap: 1.5rem; font-size: .85rem; }
  .cta-inner { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .filter-tabs { gap: .35rem; }
  .filter-tab { padding: .4rem .9rem; font-size: .8rem; }
}

/* --- Utility Animations --------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section { animation: fadeInUp .5s ease-out; }

/* --- Reduced Motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
