/* ============================================================
   Wheel Good Bicycle Repair Co. — retro-futurism (outrun) theme
   ============================================================ */

:root {
  /* palette pulled from the shop logo's sunset */
  --navy-950: #0a0e1a;
  --navy-900: #0d1321;
  --navy-800: #151b2e;
  --navy-700: #1e2640;
  --ink: #10152a;

  --sun-yellow: #ffc94a;
  --sun-orange: #f7931e;
  --sun-orange-2: #ef7f1a;
  --sun-red: #e8590c;
  --sun-red-2: #d1420a;

  --cream: #fdf3e2;
  --cream-dim: #cfc4ae;

  --font-display: "Press Start 2P", "Courier New", monospace;
  --font-body: "Space Mono", "Courier New", monospace;

  --radius: 0px;
  --shadow-hard: 6px 6px 0 var(--navy-950);
  --shadow-hard-sm: 4px 4px 0 var(--navy-950);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--sun-orange); }
h3 { font-size: 1rem; color: var(--sun-yellow); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-decoration: none;
  padding: 16px 22px;
  border: 3px solid var(--navy-950);
  box-shadow: var(--shadow-hard);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  background: var(--sun-orange);
  color: var(--navy-950);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--navy-950);
}

.btn:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--sun-yellow), var(--sun-red));
  color: var(--navy-950);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 6px 6px 0 var(--navy-700);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(4px);
  border-bottom: 3px solid var(--sun-red);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.brand img {
  height: 44px;
  width: auto;
  image-rendering: pixelated;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1.3;
}

.brand-text span {
  display: block;
  font-size: 0.55rem;
  color: var(--sun-orange);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sun-orange);
  border-color: var(--sun-orange);
}

.nav-links .btn {
  font-size: 0.65rem;
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--cream);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.7rem;
  padding: 14px 16px;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 3px solid var(--sun-red);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid var(--navy-700);
  }

  .nav-links .btn {
    margin: 14px 24px;
  }
}

/* ---------- hero / sunset ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  text-align: center;
  background:
    linear-gradient(180deg, var(--sun-yellow) 0%, var(--sun-orange) 30%, var(--sun-red) 62%, var(--sun-red-2) 78%, var(--navy-900) 100%);
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .page-hero { padding: 30px 0; }
  section { padding: 32px 0; }

  .container { padding: 0 18px; }

  h1 { font-size: 1.3rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.8rem; }

  body { font-size: 15px; }

  .hero-logo { max-width: 150px; margin-bottom: 16px; }
  .hero p.tagline { font-size: 0.9rem; }

  .btn { font-size: 0.6rem; padding: 12px 16px; }
  .hero-ctas { gap: 12px; }

  .card { padding: 16px; }
  .card .icon { font-size: 1.4rem; margin-bottom: 8px; }

  .brand-text { font-size: 0.65rem; }
  .brand-text span { font-size: 0.45rem; }
  .brand img { height: 34px; }
}

.hero::after {
  /* horizon scanline bands, echoing the logo's sunset stripes */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(10, 14, 26, 0.18) 0px,
    rgba(10, 14, 26, 0.18) 3px,
    transparent 3px,
    transparent 14px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-logo {
  max-width: 220px;
  margin: 0 auto 24px;
  image-rendering: pixelated;
}

.hero h1 {
  color: var(--navy-950);
  text-shadow: 2px 2px 0 rgba(253, 243, 226, 0.35);
}

.hero p.tagline {
  color: var(--navy-950);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* small page hero used on interior pages */
.page-hero {
  padding: 56px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--sun-orange-2), var(--sun-red-2));
  border-bottom: 4px solid var(--navy-950);
}

.page-hero h1 {
  color: var(--navy-950);
}

.page-hero p {
  color: var(--navy-950);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- generic sections ---------- */
section {
  padding: 64px 0;
}

.section-alt {
  background: var(--navy-800);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--navy-800);
  border: 3px solid var(--navy-700);
  box-shadow: var(--shadow-hard-sm);
  padding: 26px;
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

/* ---------- pricing table ---------- */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 40px;
  border: 3px solid var(--navy-700);
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--navy-800);
}

.price-table caption {
  font-family: var(--font-display);
  color: var(--sun-yellow);
  text-align: left;
  padding: 14px 18px;
  background: var(--navy-700);
  font-size: 0.85rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--navy-700);
}

.price-table th {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--sun-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-table td.price {
  color: var(--sun-yellow);
  white-space: nowrap;
  font-weight: bold;
}

.price-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .table-scroll {
    overflow-x: visible;
    border: 3px solid var(--navy-700);
    margin-bottom: 24px;
  }

  .price-table {
    min-width: 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tr {
    padding: 12px 14px;
    border-bottom: 2px solid var(--navy-700);
  }

  .price-table tr:last-child {
    border-bottom: none;
  }

  .price-table td {
    padding: 2px 0;
    border-bottom: none;
  }

  .price-table td:first-child {
    font-family: var(--font-display);
    font-size: 0.6rem;
    line-height: 1.6;
    color: var(--sun-yellow);
    padding-bottom: 8px;
  }

  .price-table td:nth-child(2) {
    font-size: 0.8rem;
    color: var(--cream-dim);
    padding-bottom: 8px;
  }

  .price-table td.price {
    font-size: 0.8rem;
  }

  .price-table td.price::before {
    content: "Price: ";
    font-family: var(--font-body);
    font-weight: normal;
    color: var(--sun-orange);
  }

  .price-table caption {
    font-size: 0.6rem;
    padding: 12px 14px;
  }
}

.note {
  font-size: 0.85rem;
  color: var(--cream-dim);
}

/* ---------- booking embed ---------- */
.booking-embed {
  border: 4px solid var(--sun-orange);
  min-height: 640px;
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-embed iframe {
  width: 100%;
  height: 640px;
  border: none;
}

@media (max-width: 600px) {
  .booking-embed,
  .booking-embed iframe {
    min-height: 420px;
    height: 420px;
  }
}

.booking-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--cream-dim);
}

.booking-placeholder code {
  display: block;
  margin-top: 12px;
  padding: 12px;
  background: var(--navy-900);
  color: var(--sun-yellow);
  font-size: 0.8rem;
  word-break: break-all;
}

/* ---------- hours / info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--navy-700);
}

.info-table td:last-child {
  text-align: right;
  color: var(--sun-yellow);
}

/* ---------- contact form ---------- */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--sun-orange);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--navy-800);
  border: 2px solid var(--navy-700);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sun-orange);
}

.map-embed {
  border: 4px solid var(--sun-orange);
  height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3) contrast(1.1);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 3px solid var(--sun-red);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h3 {
  font-size: 0.75rem;
}

.social-links {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.social-links a {
  text-decoration: none;
  border: 2px solid var(--navy-700);
  padding: 8px 12px;
  font-size: 0.8rem;
}

.social-links a:hover {
  border-color: var(--sun-orange);
  color: var(--sun-orange);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--cream-dim);
  border-top: 1px solid var(--navy-700);
  padding-top: 20px;
}

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
