/* =====================================================
   The Bike Shop Albrighton — Shared Stylesheet
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #156082;
  --blue-dark:  #0E2841;
  --orange:     #E97132;
  --orange-dk:  #c45e20;
  --cream:      #FFFFF7;
  --white:      #ffffff;
  --light-grey: #E8E8E8;
  --border:     #d0cfc5;
  --text:       #1a1a1a;
  --muted:      #5a5a5a;
  --card-bg:    #F9F9F9;
  --radius:     6px;
  --shadow:     0 2px 8px rgba(0,0,0,0.12);
  --price-col-width: 120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ======================================================
   BANNER STRIP — full image, no cropping
   ====================================================== */
.banner-strip {
  position: relative;
  z-index: 500;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.banner-strip img {
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0;
}


/* ======================================================
   NAVIGATION
   ====================================================== */
nav {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-logo-text {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-logo-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  color: #ffffffcc;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
}

/* ======================================================
   HERO — now ALWAYS below banner
   ====================================================== */
.hero {
  margin-top: -1px; 
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: stretch;

  /* ⭐ Push hero down by banner height */
  margin-top: 0; /* banner height is natural now */
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(14,40,65,0.85) 0%,
    rgba(14,40,65,0.5) 60%,
    rgba(14,40,65,0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
  padding: 64px 48px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-content h1 span { color: var(--orange); }

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ======================================================
   PAGE HERO BANNER
   ====================================================== */
.page-hero {
  background: var(--blue-dark);
  color: var(--white);
  padding: 52px 24px 44px;
  text-align: center;
}
.page-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.page-hero p  { max-width: 640px; margin: 0 auto; opacity: 0.85; }

/* ======================================================
   CONTAINER & SECTIONS
   ====================================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section.section { padding: 48px 0; }

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 28px 24px;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
footer h4 { color: var(--white); font-size: 0.88rem; margin-bottom: 8px; }
footer a  { color: rgba(255,255,255,0.75); }
footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 20px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 11px 26px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--orange-dk); }
.btn:active { transform: scale(0.98); }

.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ======================================================
   FORM ELEMENTS
   ====================================================== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.88rem;
  color: var(--blue-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.93rem;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,96,130,0.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }

/* ======================================================
   CARDS
   ====================================================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ======================================================
   STATUS BADGES
   ====================================================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-stock  { background: #d4edda; color: #155724; }
.badge-sold   { background: #f8d7da; color: #721c24; }

/* ======================================================
   ALERTS
   ====================================================== */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error   { background: #f8d7da; color: #721c24; }

/* ======================================================
   SECTION HEADINGS
   ====================================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.section-title-orange {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}
.section-sub { color: var(--muted); }

/* ======================================================
   CONTACT ROW
   ====================================================== */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.contact-row .icon { flex-shrink: 0; width: 18px; margin-top: 2px; }

/* ======================================================
   RESPONSIVE HELPERS
   ====================================================== */
@media (max-width: 720px) {
  .nav-logo-text span { display: none; }
  .nav-links a { padding: 7px 10px; font-size: 0.85rem; }
}
@media (max-width: 520px) {
  .nav-logo-text { font-size: 0.9rem; }
}

/* ======================================================
   ACCESSIBILITY & FOCUS
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

a:focus,
button:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(21,96,130,0.12);
  border-color: var(--blue);
}

.btn:focus { box-shadow: 0 0 0 4px rgba(233,113,50,0.12); }
.btn-blue:focus { box-shadow: 0 0 0 4px rgba(21,96,130,0.12); }

/* ======================================================
   SERVICE LIST
   ====================================================== */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 820px;
}
.service-list li {
  display: grid;
  grid-template-columns: 1fr var(--price-col-width);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-grey);
}

.service-list .service-name {
  position: relative;
}
.service-list .service-name::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(var(--price-col-width) + 12px);
  top: 50%;
  border-bottom: 1px dotted var(--border);
  transform: translateY(-50%);
}
.service-list .service-name > span {
  position: relative;
  background: var(--cream);
  padding-right: 6px;
}

.service-list .service-price {
  text-align: right;
  font-weight: 700;
  color: var(--blue);
}

@media (max-width: 520px) {
  .service-list li { grid-template-columns: 1fr; }
  .service-list .service-price { text-align: left; margin-top: 6px; }
  .service-list .service-name::before { display: none; }
}

/* ======================================================
   SCREEN READER UTILITY
   ====================================================== */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ======================================================
   PRINT
   ====================================================== */
@media print {
  .service-list .service-name::before { display: none; }
  .service-list .service-price { text-align: left; }
}
