/* ---- RW E-Bike Sales — classic & trustworthy ---- */

:root {
  --navy: #1c2b45;
  --navy-deep: #142035;
  --navy-soft: #2c3f61;
  --cream: #faf7f1;
  --tint: #f1ede4;
  --ink: #232833;
  --muted: #5c6470;
  --accent: #2c5dc8; /* logo royal blue */
  --accent-soft: #9db9ea;
  --volt: #7dc41f; /* logo bolt green — small energetic touches only */
  --line: #e2dccf;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 32, 53, 0.1);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 148px; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--cream); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); color: var(--navy); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); margin-bottom: 14px; }
.section--navy h2 { color: var(--cream); }
h3 { font-size: 1.1rem; }

.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.kicker--light { color: var(--accent-soft); }
.section__lead { max-width: 620px; color: var(--muted); margin-bottom: 32px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; background: var(--navy); color: var(--cream);
  font-weight: 700; text-decoration: none; border: 2px solid var(--navy);
  padding: 12px 26px; border-radius: 6px; cursor: pointer; font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); transform: translateY(-1px); }
.btn--lg { padding: 15px 34px; font-size: 1.05rem; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.btn--light { background: var(--volt); border-color: var(--volt); color: var(--navy-deep); }
.btn--light:hover { background: #8fd42e; border-color: #8fd42e; }
.btn--nav { padding: 9px 18px; font-size: 0.95rem; }
.btn--card { width: 100%; text-align: center; padding: 10px 16px; font-size: 0.95rem; }
.btn--disabled { background: #a9aeb6; border-color: #a9aeb6; cursor: default; pointer-events: none; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  /* solid white so the logo's white background blends in seamlessly */
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  transition: box-shadow 0.25s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(20, 32, 53, 0.12); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 132px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo { height: 120px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
/* :not(.btn) keeps the navy link color from overriding the call button's cream text */
.nav__links a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---- Hero ---- */
.hero {
  padding: 220px 0 96px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(44, 93, 200, 0.09), transparent 60%),
    linear-gradient(180deg, var(--tint), var(--cream));
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 760px; }
.hero__lead { font-size: 1.2rem; color: var(--muted); margin: 20px 0 30px; }
.hero__lead strong { color: var(--navy); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; }
.hero__points li {
  font-weight: 700; font-size: 0.92rem; color: var(--navy);
  padding-left: 22px; position: relative;
}
.hero__points li::before { content: "✓"; position: absolute; left: 0; color: var(--volt); }

/* ---- Trust bar ---- */
.trust { background: var(--navy); color: var(--cream); padding: 56px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.trust__item h3 { color: var(--accent-soft); margin-bottom: 8px; }
.trust__item p { font-size: 0.95rem; color: #cdd4e0; }

/* ---- Inventory ---- */
.inventory__filters { display: flex; gap: 10px; margin-bottom: 30px; }
.chip {
  background: transparent; border: 1.5px solid var(--navy); color: var(--navy);
  font-weight: 700; font-size: 0.9rem; padding: 7px 20px; border-radius: 999px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip:hover { background: rgba(28, 43, 69, 0.08); }
.chip.active { background: var(--navy); color: var(--cream); }

.inventory__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.bike {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.bike--sold { opacity: 0.72; }
.bike__media { position: relative; aspect-ratio: 4 / 3; background: var(--tint); }
.bike__media img { width: 100%; height: 100%; object-fit: cover; }
.bike__placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: #b4ab99; font-size: 0.85rem; font-weight: 600;
}
.bike__badge {
  position: absolute; top: 12px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.bike__badge--type { right: 12px; background: var(--navy); color: var(--cream); }
.bike__badge--sold { left: 12px; background: #9c2b2b; color: #fff; }
.bike__badge--sale { left: 12px; background: var(--volt); color: var(--navy-deep); }
.bike__badge--count { top: auto; bottom: 12px; right: 12px; background: rgba(20, 32, 53, 0.75); color: #fff; }
.bike__media--multi { cursor: pointer; }
.bike__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bike__body h3 { color: var(--navy); margin-bottom: 4px; }
.bike__price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--accent); }
.bike__sizes { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.bike__features { list-style: none; margin-bottom: 18px; flex: 1; }
.bike__features li {
  font-size: 0.92rem; color: var(--muted); padding-left: 18px; position: relative; margin-bottom: 4px;
}
.bike__features li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.inventory__note { margin-top: 30px; color: var(--muted); font-size: 0.95rem; }
.inventory__note a { color: var(--navy); font-weight: 700; }

/* ---- E-Trikes ---- */
.etrikes__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.etrikes__copy p { color: #cdd4e0; margin-bottom: 18px; }
.etrikes__list { list-style: none; margin-bottom: 26px; }
.etrikes__list li { padding-left: 24px; position: relative; margin-bottom: 8px; color: #e6e2d6; }
.etrikes__list li::before { content: "✓"; position: absolute; left: 0; color: var(--volt); }

.etrikes__photo, .about__photo {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3;
}
.etrikes__photo { object-fit: contain; }

/* ---- About ---- */
.about__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center; }
.about__copy p { margin-bottom: 16px; color: var(--ink); }
.about__sig { font-family: var(--serif); color: var(--navy); font-weight: 700; margin-top: 8px; }

/* ---- Contact ---- */
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 44px; }
.contact__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px; transition: transform 0.15s;
}
.contact__item:hover { transform: translateY(-3px); }
.contact__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.contact__item strong { font-size: 1.15rem; color: var(--navy); }
.contact__sub { font-size: 0.88rem; color: var(--muted); }

.contact__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow); max-width: 720px;
}
.form__hp { position: absolute; left: -9999px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 24px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form__field span { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.form__field em { font-weight: 400; color: var(--muted); }
.form__field input, .form__field textarea {
  border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 14px;
  font-family: var(--sans); font-size: 1rem; background: var(--cream); color: var(--ink);
}
.form__field input:focus, .form__field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ---- Footer ---- */
.footer { background: var(--navy-deep); color: #aab4c6; padding: 44px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* logo PNG is transparent — white card keeps the navy shapes visible on the navy footer */
.footer__logo { height: 220px; width: auto; background: #fff; padding: 14px 20px; border-radius: 12px; }
.footer__meta { text-align: right; font-size: 0.92rem; }
.footer__slogan { font-family: var(--serif); font-style: italic; color: var(--accent-soft); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .trust__grid, .inventory__grid { grid-template-columns: repeat(2, 1fr); }
  .etrikes__inner, .about__inner { grid-template-columns: 1fr; }
  .about__art { max-width: 380px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 112px; }
  .section { padding: 64px 0; }
  .hero { padding: 160px 0 70px; }
  .trust__grid, .inventory__grid, .contact__grid, .form__grid { grid-template-columns: 1fr; }
  .nav__inner { height: 96px; }
  .nav__logo { height: 84px; }
  .footer__logo { height: 160px; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 96px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 24px 24px; gap: 16px; box-shadow: 0 12px 24px rgba(20, 32, 53, 0.15);
  }
  .nav__links.open { display: flex; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Owner login link (Bob's shortcut to admin.html) */
.footer__admin { color: inherit; opacity: 0.75; text-underline-offset: 2px; }
.footer__admin:hover { opacity: 1; }
