/* =========================================================
   Rider's Space Garage & Customs — Site Stylesheet
   Built on Bootstrap 5 (CDN). This file layers brand identity,
   custom components (hero, cards, lightbox, testimonials) and
   responsive refinements on top of the Bootstrap grid/utilities.
   ========================================================= */

:root {
  --rs-navy: #161f5e;
  --rs-navy-dark: #0e1544;
  --rs-orange: #f4601e;
  --rs-orange-dark: #d64b0f;
  --rs-cream: #fff7f0;
  --rs-ink: #1a1a1a;
  --rs-gray: #6b7280;
  --rs-border: #e9e4dc;
  --rs-radius: 14px;
  --rs-shadow: 0 10px 30px rgba(22, 31, 94, 0.10);
  --rs-shadow-lg: 0 20px 45px rgba(22, 31, 94, 0.18);
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--rs-ink);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: "Rajdhani", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

a { text-decoration: none; }

.text-orange { color: var(--rs-orange) !important; }
.text-navy { color: var(--rs-navy) !important; }
.bg-navy { background-color: var(--rs-navy) !important; }
.bg-navy-dark { background-color: var(--rs-navy-dark) !important; }
.bg-orange { background-color: var(--rs-orange) !important; }
.bg-cream { background-color: var(--rs-cream) !important; }

.btn-orange {
  background-color: var(--rs-orange);
  border-color: var(--rs-orange);
  color: #fff;
  font-weight: 600;
  letter-spacing: .3px;
  border-radius: 50px;
  padding: 0.7rem 1.6rem;
  transition: all .25s ease;
}
.btn-orange:hover, .btn-orange:focus {
  background-color: var(--rs-orange-dark);
  border-color: var(--rs-orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(244, 96, 30, .35);
}
.btn-outline-light-custom {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-outline-light-custom:hover {
  background: #fff;
  color: var(--rs-navy);
}
.btn-outline-navy {
  border: 2px solid var(--rs-navy);
  color: var(--rs-navy);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: all .25s ease;
}
.btn-outline-navy:hover {
  background: var(--rs-navy);
  color: #fff;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rs-orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .6rem;
}
.section-eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--rs-orange);
  display: inline-block;
  border-radius: 3px;
}

.section-pad { padding: 5rem 0; }
@media (max-width: 767.98px) { .section-pad { padding: 3rem 0; } }

/* ---------- Navbar ---------- */
.rs-navbar {
  background: rgba(14, 21, 68, 0.97);
  backdrop-filter: blur(6px);
  transition: all .3s ease;
  padding-top: .7rem;
  padding-bottom: .7rem;
}
/* Explicit white hamburger icon + visible border — don't rely on Bootstrap's
   navbar-dark/navbar-light context, since this bar always sits on a dark navy bg. */
.rs-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.35);
  padding: .4rem .6rem;
}
.rs-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(244,96,30,.35);
}
.rs-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.rs-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
}
.rs-navbar .navbar-brand .brand-text {
  font-family: "Rajdhani", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: .5px;
}
.rs-navbar .navbar-brand .brand-text small {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  color: var(--rs-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.rs-navbar .navbar-brand img {
  height: 42px;
  width: auto;
  border-radius: 8px;
}
.rs-navbar .nav-link {
  color: #e7e9f7 !important;
  font-weight: 600;
  font-size: .95rem;
  padding: .5rem 1rem !important;
  position: relative;
}
.rs-navbar .nav-link.active,
.rs-navbar .nav-link:hover {
  color: #fff !important;
}
.rs-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 3px;
  background: var(--rs-orange);
  border-radius: 3px;
}
.rs-navbar.scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  padding-top: .4rem;
  padding-bottom: .4rem;
}
.rs-navbar .btn-orange { padding: .55rem 1.3rem; font-size: .9rem; }
.topbar {
  background: var(--rs-navy-dark);
  color: #cfd3ef;
  font-size: .82rem;
}
.topbar a { color: #cfd3ef; }
.topbar a:hover { color: var(--rs-orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--rs-navy);
  padding-top: 90px; /* clears the fixed navbar so hero content never sits under it */
}
@media (max-width: 767.98px) {
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 3rem; }
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,21,68,.92) 10%, rgba(14,21,68,.65) 55%, rgba(244,96,30,.35) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero .display-1, .hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.hero p.lead { color: #e7e9f7; }
.hero-badges { gap: .6rem; }
.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero-badge i { color: var(--rs-orange); margin-right: 6px; }

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border-radius: 50px;
  padding: .4rem .9rem .4rem .4rem;
  box-shadow: var(--rs-shadow);
}
.rating-pill .stars { color: #ffb400; font-size: .85rem; }
.rating-pill .g-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; color: #4285F4;
  box-shadow: 0 0 0 1px #eee inset;
}

/* Hero carousel dots (Bootstrap carousel indicators re-styled) */
.hero .carousel-indicators { z-index: 3; bottom: 1.2rem; }
.hero .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .5;
}
.hero .carousel-indicators .active { opacity: 1; background: var(--rs-orange); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 9rem 0 4.5rem;
  background: linear-gradient(120deg, var(--rs-navy) 0%, var(--rs-navy-dark) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(244,96,30,.25), transparent 40%);
}
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb { margin-bottom: 0; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: #cfd3ef; font-weight: 600; font-size: .9rem; }
.page-hero .breadcrumb-item.active { color: var(--rs-orange); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #7079b0; }

/* ---------- Cards ---------- */
.card-rs {
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: #fff;
  transition: all .3s ease;
  height: 100%;
}
.card-rs:hover { box-shadow: var(--rs-shadow-lg); transform: translateY(-6px); }

.service-card {
  padding: 2rem 1.6rem;
  border-radius: var(--rs-radius);
  border: 1px solid var(--rs-border);
  background: #fff;
  height: 100%;
  transition: all .3s ease;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--rs-shadow-lg);
  transform: translateY(-6px);
}
.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: var(--rs-cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--rs-orange);
  margin-bottom: 1.2rem;
  transition: all .3s ease;
}
.service-card:hover .service-icon { background: var(--rs-orange); color: #fff; }

.feature-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(244,96,30,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--rs-orange);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- Gallery / Lightbox ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--rs-radius);
  cursor: pointer;
  aspect-ratio: 4 / 5;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,21,68,.85) 0%, rgba(14,21,68,0) 55%);
  display: flex; align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-weight: 700; font-size: .95rem; }
.gallery-overlay .zoom-icon {
  position: absolute; top: 1rem; right: 1rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--rs-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gallery-filter .btn {
  border-radius: 50px;
  font-weight: 600;
  font-size: .88rem;
  padding: .5rem 1.2rem;
  border: 2px solid var(--rs-border);
  color: var(--rs-navy);
  background: #fff;
}
.gallery-filter .btn.active,
.gallery-filter .btn:hover {
  background: var(--rs-orange);
  border-color: var(--rs-orange);
  color: #fff;
}

#lightboxModal .modal-content {
  background: transparent;
  border: none;
}
#lightboxModal .modal-body { padding: 0; text-align: center; }
#lightboxModal img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
#lightboxModal .btn-close {
  filter: invert(1);
  opacity: 1;
  position: absolute;
  top: -2.5rem;
  right: 0;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.lightbox-nav:hover { background: var(--rs-orange); border-color: var(--rs-orange); }
.lightbox-nav.prev { left: -3.2rem; }
.lightbox-nav.next { right: -3.2rem; }
@media (max-width: 991.98px) {
  .lightbox-nav.prev { left: .5rem; }
  .lightbox-nav.next { right: .5rem; }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  padding: 2rem;
  height: 100%;
}
.testimonial-card .stars { color: #ffb400; font-size: .9rem; letter-spacing: 2px; }
.testimonial-card .quote-mark {
  font-size: 2.5rem;
  color: var(--rs-orange);
  opacity: .25;
  font-family: Georgia, serif;
  line-height: 1;
}
.avatar-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--rs-navy);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stat-box { text-align: center; }
.stat-box .num {
  font-family: "Rajdhani", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--rs-orange);
}
.stat-box .label { color: #cfd3ef; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Process steps ---------- */
.process-step { position: relative; text-align: center; padding: 0 1rem; }
.process-step .step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--rs-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
  margin: 0 auto 1rem;
  border: 4px solid var(--rs-cream);
  box-shadow: var(--rs-shadow);
}
.process-line {
  position: absolute; top: 32px; left: 50%; width: 100%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--rs-border) 0 8px, transparent 8px 14px);
  z-index: -1;
}

/* ---------- Footer ---------- */
.rs-footer { background: var(--rs-navy-dark); color: #c7cbe6; }
.rs-footer h5, .rs-footer h6 { color: #fff; }
.rs-footer a { color: #c7cbe6; }
.rs-footer a:hover { color: var(--rs-orange); }
.rs-footer .list-unstyled li { margin-bottom: .55rem; }
.rs-footer .social-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all .25s ease;
}
.rs-footer .social-icon:hover { background: var(--rs-orange); transform: translateY(-3px); color: #fff; }
.footer-bottom { background: #0a0f38; font-size: .85rem; }

/* ---------- Misc ---------- */
.sticky-cta {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 1050;
}
.sticky-cta .btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: var(--rs-shadow-lg);
}
.back-to-top {
  position: fixed; bottom: 1.2rem; left: 1.2rem; z-index: 1050;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--rs-navy); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--rs-shadow-lg);
  border: none;
}
.back-to-top.show { display: flex; }

/* Reveal-on-scroll: content is ALWAYS fully visible and readable — with JS
   disabled, before scripts load, or to search-engine/social crawlers that
   don't scroll. JS only adds a subtle slide-up polish as sections enter view;
   it never controls whether content is shown. */
.reveal { opacity: 1; transform: translateY(10px); transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { transform: translateY(0); }

.map-wrap { border-radius: var(--rs-radius); overflow: hidden; box-shadow: var(--rs-shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

.badge-soft {
  background: rgba(244,96,30,.1);
  color: var(--rs-orange-dark);
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 50px;
  font-size: .78rem;
  letter-spacing: .5px;
}

.timeline { border-left: 3px solid var(--rs-border); margin-left: 1rem; }
.timeline .timeline-item { position: relative; padding: 0 0 2rem 2rem; }
.timeline .timeline-item::before {
  content: "";
  position: absolute; left: -9px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--rs-orange); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rs-orange);
}

.faq-accordion .accordion-button { font-weight: 700; color: var(--rs-navy); }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--rs-orange); background: var(--rs-cream); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }

.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--rs-border);
  padding: .75rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--rs-orange);
  box-shadow: 0 0 0 .2rem rgba(244,96,30,.15);
}

.whatsapp-float {
  background: #25D366;
}
.whatsapp-float:hover { background: #1ebe5b; }

.hours-table td { padding: .4rem 0; border: none; }
.hours-table tr:last-child td { font-weight: 700; color: var(--rs-orange); }

.brand-strip img { max-height: 40px; opacity: .55; filter: grayscale(1); transition: all .25s ease; }
.brand-strip img:hover { opacity: 1; filter: grayscale(0); }

.cta-band {
  background: linear-gradient(120deg, var(--rs-orange) 0%, var(--rs-orange-dark) 100%);
}

.member-card { text-align: center; }
.member-card .avatar-circle {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--rs-navy);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  margin: 0 auto 1rem;
  border: 5px solid var(--rs-cream);
}

.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  background: #fff; box-shadow: 0 -8px 25px rgba(0,0,0,.12);
  display: none;
}
@media (max-width: 767.98px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 64px; }
  .sticky-cta, .back-to-top { bottom: 5rem; }
}
.mobile-cta-bar a {
  flex: 1; text-align: center; padding: .8rem 0; font-weight: 700; font-size: .85rem;
  color: var(--rs-navy);
}
.mobile-cta-bar a.call { background: var(--rs-navy); color: #fff; }
.mobile-cta-bar a.whatsapp { background: #25D366; color: #fff; }
