/* Harrycab13 / RideNow marketing home — matches shared.css palette */
.rn-home {
  --rn-primary: var(--primary, #1a56db);
  --rn-primary-dark: var(--primary-dark, #1e429f);
  --rn-gradient: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800, #1f2937);
  background: var(--gray-50, #f9fafb);
  line-height: 1.6;
}

.rn-home a { text-decoration: none; }
.rn-home a:not(.rn-btn) { color: inherit; }

.rn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}

.rn-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Same asset as legacy home: carhire/assets/images/logo.webp */
.rn-header .rn-logo {
  flex-shrink: 0;
  line-height: 0;
}
.rn-header .rn-logo img {
  height: 100px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}
.rn-logo__footer-img {
  height: auto;
  max-height: 120px;
  max-width: 220px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.rn-nav { display: flex; align-items: center; gap: 1.5rem; }
.rn-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600, #4b5563);
  transition: color 0.2s;
}
.rn-nav a:hover { color: var(--rn-primary); }

.rn-header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.rn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm, 8px);
  border: none;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
}
.rn-btn--primary {
  background: var(--rn-gradient);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35);
}
.rn-btn--primary:hover,
.rn-btn--primary:focus,
.rn-btn--primary:active {
  filter: brightness(1.05);
  color: #fff !important;
}
/* .rn-home a { color: inherit } must not override primary buttons */
.rn-home .rn-header__actions a.rn-btn--primary,
.rn-home .rn-hero__cta a.rn-btn--primary {
  color: #fff !important;
}
.rn-btn--outline {
  background: #fff;
  color: var(--rn-primary);
  border: 1.5px solid var(--rn-primary);
}
.rn-btn--outline:hover { background: var(--primary-light, #ebf5ff); }
.rn-btn--ghost {
  background: transparent;
  color: var(--gray-700, #374151);
  border: 1px solid var(--gray-300, #d1d5db);
}
.rn-btn--lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

.rn-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.25rem;
}

.rn-hero {
  background: var(--rn-gradient);
  color: #fff;
  overflow: hidden;
}
.rn-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.rn-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.rn-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.rn-hero__lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}
.rn-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.rn-hero__cta .rn-btn--outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.rn-hero__cta .rn-btn--outline:hover { background: rgba(255,255,255,0.2); }
.rn-hero__phone {
  font-size: 0.95rem;
  opacity: 0.9;
}
.rn-hero__phone a { color: #fff; font-weight: 700; text-decoration: underline; }
.rn-hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.rn-hero__visual img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.rn-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.rn-section--alt { background: #fff; }
.rn-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.rn-section__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900, #111827);
  margin-bottom: 0.5rem;
}
.rn-section__head p { color: var(--gray-600); font-size: 1rem; }

.rn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding: 0 1.25rem 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.rn-stat-card {
  background: #fff;
  border-radius: var(--border-radius, 12px);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.rn-stat-card__value {
  display: block;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--rn-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.rn-stat-card span { font-size: 0.9rem; color: var(--gray-600); font-weight: 500; }

.rn-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.rn-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.rn-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  height: 100%;
}
.rn-card:hover {
  border-color: var(--rn-primary);
  box-shadow: var(--shadow);
}
.rn-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light, #ebf5ff);
  color: var(--rn-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.rn-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}
.rn-card p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1rem; }
.rn-card .rn-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rn-primary);
}
.rn-card .rn-link:hover { text-decoration: underline; }

.rn-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.rn-step {
  text-align: center;
  padding: 1.25rem;
}
.rn-step__num {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--rn-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.rn-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.rn-step p { font-size: 0.85rem; color: var(--gray-600); }

.rn-faq { max-width: 720px; margin: 0 auto; }
.rn-faq details {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.rn-faq summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rn-faq summary::-webkit-details-marker { display: none; }
.rn-faq summary::after { content: '+'; color: var(--rn-primary); font-size: 1.25rem; font-weight: 700; }
.rn-faq details[open] summary::after { content: '−'; }
.rn-faq details[open] summary { border-bottom: 1px solid var(--gray-100); }
.rn-faq__body {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.rn-faq__body a { color: var(--rn-primary); font-weight: 600; }

.rn-cta-band {
  background: var(--rn-gradient);
  color: #fff;
  border-radius: var(--border-radius-lg, 16px);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 0 1.25rem 4rem;
  max-width: calc(1200px - 2.5rem);
  margin-left: auto;
  margin-right: auto;
}
.rn-cta-band h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.rn-cta-band p { opacity: 0.9; margin-bottom: 1.25rem; }
/* White pill on blue band (do not use .rn-btn--primary — white text + no bg on live) */
.rn-home .rn-cta-band a.rn-btn.rn-btn--cta-light {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.8rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #1a56db !important;
  border: 2px solid #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22) !important;
  filter: none !important;
}
.rn-home .rn-cta-band a.rn-btn.rn-btn--cta-light:hover,
.rn-home .rn-cta-band a.rn-btn.rn-btn--cta-light:focus {
  background-color: #f0f4ff !important;
  color: #1e429f !important;
  border-color: #f0f4ff !important;
}

.rn-footer {
  background: var(--gray-900, #111827);
  color: var(--gray-300);
  padding: 3rem 1.25rem 1.5rem;
}
.rn-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.rn-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.rn-footer ul { list-style: none; padding: 0; }
.rn-footer li { margin-bottom: 0.4rem; }
.rn-footer a:hover { color: #fff; }
.rn-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-700);
  font-size: 0.85rem;
  text-align: center;
  color: var(--gray-500);
}

@media (max-width: 992px) {
  .rn-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .rn-hero__lead { margin-left: auto; margin-right: auto; }
  .rn-hero__cta { justify-content: center; }
  .rn-hero__visual { order: -1; }
  .rn-hero__visual img { max-height: 220px; }
  .rn-grid-3, .rn-steps { grid-template-columns: repeat(2, 1fr); }
  .rn-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .rn-header__inner { min-height: 0; padding: 0.65rem 1rem; }
  .rn-header .rn-logo img { height: 64px; }
  .rn-nav-toggle { display: block; }
  .rn-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    align-items: flex-start;
    gap: 0.75rem;
  }
  .rn-nav.is-open { display: flex; }
  .rn-header__inner { position: relative; flex-wrap: wrap; }
  .rn-stats { grid-template-columns: 1fr; margin-top: 0; padding-top: 2rem; }
  .rn-grid-3, .rn-grid-2, .rn-steps { grid-template-columns: 1fr; }
  .rn-footer__inner { grid-template-columns: 1fr; }
}
