/* ============================================================
   RAMBLIN' MAN RV — Brand Stylesheet
   Colors: Navy #1a2744 | Gold #e8a317 | White #fff | Gray #f5f6f8
   ============================================================ */

:root {
  --navy:  #1a2744;
  --navy2: #0f1a30;
  --gold:  #e8a317;
  --gold2: #c98f0f;
  --white: #ffffff;
  --gray:  #f5f6f8;
  --text:  #2d2d2d;
  --muted: #6b7280;
  --radius: 6px;
  --transition: 0.25s ease;
}

/* ── Reset & Base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }
.text-center { text-align: center; }
.gold { color: var(--gold); }
.navy { color: var(--navy); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); border-color: var(--navy2); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.section-label { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.15; color: var(--navy); margin-bottom: 22px; text-transform: uppercase; letter-spacing: 0.5px; }
.section-title.white { color: var(--white); }
.shop-segment { margin-bottom: 52px; }
.shop-segment-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid #eceef4; padding-bottom: 12px; margin-bottom: 26px; }
.shop-segment-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.4px; }
.shop-segment-head span { font-size: 0.85rem; color: var(--muted); }
.shop-segment-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.shop-segment-nav a { padding: 7px 16px; border-radius: 20px; background: #f4f5f8; color: var(--navy); font-size: 0.82rem; font-weight: 700; text-decoration: none; transition: var(--transition); }
.shop-segment-nav a:hover { background: var(--gold); color: var(--navy); }
.section-sub { font-size: 1.15rem; color: var(--muted); max-width: 700px; }
.section-sub.center { margin: 0 auto; text-align: center; }

/* ── TOP BAR ─────────────────────────────── */
.top-bar { background: var(--navy2); color: var(--white); font-size: 0.8rem; padding: 6px 20px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.top-bar a { color: var(--white); opacity: 0.85; }
.top-bar a:hover { opacity: 1; color: var(--gold); }

/* ── Tech header login ────────────────── */
.nav-tech-login { position: relative; margin-left: auto; }
.nav-tech-btn {
  background: var(--gold); color: var(--navy); border: none; border-radius: 4px;
  padding: 4px 12px; font-size: 0.78rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
}
.nav-tech-btn:hover { background: #f5b932; }
.nav-tech-drop {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: #0d1829; border: 2px solid var(--gold); border-radius: 10px;
  min-width: 230px; z-index: 9999; box-shadow: 0 8px 30px rgba(0,0,0,0.55);
}
.nav-tech-drop.open { display: block; }
.nav-tech-drop::before {
  content: ''; position: absolute; top: -8px; right: 18px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 8px solid var(--gold);
}
.nav-tech-drop-inner { padding: 18px; }
.nav-tech-drop-title { font-size: 0.82rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.nav-tech-drop-inner select,
.nav-tech-drop-inner input[type="text"],
.nav-tech-drop-inner input[type="password"] {
  width: 100%; background: #1a2744; color: #fff; border: 1px solid #2e3f60;
  border-radius: 5px; padding: 8px 10px; font-size: 0.83rem; margin-bottom: 9px;
  box-sizing: border-box; outline: none;
}
.nav-tech-drop-inner select:focus,
.nav-tech-drop-inner input[type="text"]:focus,
.nav-tech-drop-inner input[type="password"]:focus { border-color: var(--gold); }
.nav-tech-submit {
  width: 100%; background: var(--gold); color: var(--navy); border: none;
  border-radius: 5px; padding: 9px; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: background 0.2s; margin-bottom: 8px;
}
.nav-tech-submit:hover:not(:disabled) { background: #f5b932; }
.nav-tech-submit:disabled { opacity: 0.6; cursor: not-allowed; }
#navTechMsg { font-size: 0.75rem; min-height: 16px; }
.nav-tech-setup-link { display: block; font-size: 0.72rem; color: #9ca3af; text-align: center; margin-top: 4px; }
.nav-tech-setup-link:hover { color: var(--gold); }

/* ── NAV ─────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 1000; }
#upgrade, #maintenance, #repair { scroll-margin-top: 84px; }
.site-nav { background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; padding: 0 24px; max-width: 1400px; margin: 0 auto; height: 68px; gap: 12px; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 56px; width: auto; background: transparent; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-center { flex: 1; justify-content: center; }
.nav-right { flex-shrink: 0; }
.nav-sep { display: inline-block; width: 1px; height: 16px; background: rgba(255,255,255,0.22); flex-shrink: 0; margin: 0 2px; }
.nav-links a, .nav-drop > a { color: rgba(255,255,255,0.88); font-size: 0.88rem; font-weight: 500; padding: 8px 12px; border-radius: 4px; transition: var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-drop > a:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold); }
.nav-drop { position: relative; }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--navy); min-width: 220px; border-top: 2px solid var(--gold); border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 100; }
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 18px; color: rgba(255,255,255,0.85); font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-drop-menu a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }
.nav-cta { background: var(--gold); color: var(--navy) !important; font-weight: 700 !important; padding: 9px 18px !important; border-radius: var(--radius) !important; }
.nav-cta:hover { background: var(--gold2) !important; color: var(--navy) !important; }
.nav-find-tech { background: transparent !important; color: var(--gold) !important; font-weight: 700 !important; padding: 7px 14px !important; border-radius: var(--radius) !important; border: 2px solid var(--gold) !important; transition: var(--transition) !important; }
.nav-find-tech:hover { background: var(--gold) !important; color: var(--navy) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: transparent; border: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); transition: var(--transition); border-radius: 2px; }

/* ── HERO ─────────────────────────────────── */
.hero { position: relative; height: 90vh; min-height: 560px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,18,38,0.52) 35%, rgba(10,18,38,0.12) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 10vh 48px 0; max-width: 920px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 24px; padding: 6px 14px; color: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; backdrop-filter: blur(4px); width: fit-content; }
.hero-badge .dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 18px; white-space: nowrap; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust-row { display: flex; align-items: center; gap: 28px; margin-top: 28px; }
.hero-google { display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; }
.hero-g-logo { width: 46px; height: 46px; flex-shrink: 0; }
.hero-google-info { display: flex; flex-direction: column; gap: 2px; }
.hero-google-label { color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.hero-google-score { display: flex; align-items: center; gap: 8px; }
.hero-google-score strong { color: var(--white); font-size: 1.55rem; font-weight: 800; line-height: 1; }
.hero-stars { color: #FBBC05; font-size: 1.15rem; letter-spacing: 2px; line-height: 1; }
/* Reviews section Google badge */
.reviews-google-link { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); border-radius: 60px; padding: 14px 30px; margin-top: 18px; transition: background 0.2s; }
.reviews-google-link:hover { background: rgba(255,255,255,0.14); }
.reviews-g-logo { width: 40px; height: 40px; flex-shrink: 0; }
.reviews-google-info { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.reviews-google-label { color: rgba(255,255,255,0.72); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.reviews-google-score { display: flex; align-items: center; gap: 10px; }
.reviews-rating-num { color: var(--white); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.reviews-stars { color: #FBBC05; font-size: 1.5rem; letter-spacing: 3px; line-height: 1; }
.hero-bbb { display: flex; align-items: center; text-decoration: none; }
.hero-bbb img { height: 60px; width: auto; opacity: 0.95; transition: opacity 0.3s; }
.hero-bbb img:hover { opacity: 1; }
.hero-dots { position: absolute; bottom: 32px; right: 48px; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ── PARTNERS STRIP ───────────────────────── */
.partners { background: var(--white); border-bottom: 1px solid #e8eaf0; }
.partners-inner { padding: 32px 24px; }
.partners h3 { text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.partners-logos img { height: 36px; width: auto; filter: grayscale(1) opacity(0.6); transition: var(--transition); }
.partners-logos img:hover { filter: none; opacity: 1; }

/* ── SERVICES CAROUSEL ────────────────────── */
.services-section { background: var(--gray); }
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.45s ease; }
.service-card { flex: 0 0 calc(100%/3); position: relative; height: 360px; overflow: hidden; cursor: pointer; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover img { transform: scale(1.06); }
.service-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,18,38,0.85) 40%, rgba(10,18,38,0.2) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.service-card-overlay h3 { color: var(--white); font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.service-card-overlay p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 14px; }
.service-card-overlay a { color: var(--gold); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: var(--transition); }
.carousel-btn:hover { background: var(--gold); color: var(--navy); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dot { width: 8px; height: 8px; background: var(--muted); border-radius: 50%; cursor: pointer; transition: var(--transition); border: none; }
.carousel-dot.active { background: var(--gold); width: 20px; border-radius: 4px; }

/* ── HOW IT WORKS ─────────────────────────── */
.how-it-works { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; position: relative; }
.steps::before { content: ''; position: absolute; top: 32px; left: 16.5%; right: 16.5%; height: 2px; background: #e0e3ea; z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step-icon { width: 64px; height: 64px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.4rem; color: var(--navy); box-shadow: 0 4px 20px rgba(232,163,23,0.3); }
.step-num { position: absolute; top: -6px; right: calc(50% - 44px); width: 22px; height: 22px; background: var(--navy); color: var(--white); border-radius: 50%; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.step p { font-size: 0.9rem; color: var(--muted); }
.step-note { text-align: center; margin-top: 32px; font-size: 0.82rem; color: var(--muted); font-style: italic; }

/* ── PARTS / SHOP ─────────────────────────── */
.shop-section { background: var(--gray); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.product-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.product-img { position: relative; height: 200px; overflow: hidden; background: #f0f0f0; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-body p { font-size: 0.88rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.product-btns { display: flex; gap: 8px; }
.product-btns .btn { flex: 1; justify-content: center; font-size: 0.82rem; padding: 10px 12px; }

/* ── FEATURES 4-COL ───────────────────────── */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.feature-card { background: var(--gray); border-radius: 10px; padding: 32px 24px; text-align: center; transition: var(--transition); }
.feature-card:hover { background: var(--navy); }
.feature-card:hover .feature-title { color: var(--white); }
.feature-card:hover .feature-desc { color: rgba(255,255,255,0.75); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* Homepage Why Ramblin' Man cards: keep every title and description on shared baselines. */
.home-why .feature-card {
  display: grid;
  grid-template-rows: 48px 1.4em 1fr;
  align-content: start;
}
.home-why .feature-icon {
  min-height: 32px;
  line-height: 1;
}
.home-why .feature-title {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.35;
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}
.home-why .feature-desc { align-self: start; padding-top: 10px; }

/* About Us — three Core Values centered as a balanced site-standard row */
.core-values-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 48px auto 0; }

/* ── TESTIMONIAL ──────────────────────────── */
/* ── GOOGLE REVIEWS CAROUSEL ── */
.reviews-section { background: var(--navy); }
.reviews-carousel-wrap { position: relative; display: flex; align-items: stretch; gap: 12px; }
.reviews-track-outer { overflow: hidden; flex: 1; }
.reviews-track { display: flex; gap: 24px; transition: transform 0.45s cubic-bezier(.4,0,.2,1); align-items: stretch; }
.review-card {
  min-width: calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  width: calc(33.333% - 16px);
  background: none;
  border: none;
  border-radius: 0;
  padding: 28px 24px 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  height: auto;
  overflow: hidden;
}
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.review-text {
  color: rgba(255,255,255,0.88);
  font-size: .92rem;
  line-height: 1.65;
  font-style: italic;
  flex: 1;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  min-width: 0;
}
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-name { color: var(--white); font-weight: 700; font-size: .95rem; }
.review-source { color: #aaa; font-size: .8rem; }
.review-arrow {
  background: rgba(195,155,60,0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.review-arrow:hover { background: var(--gold); color: var(--navy); }
.reviews-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.reviews-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(195,155,60,0.3); cursor: pointer; transition: background .2s;
}
.reviews-dots .dot.active { background: var(--gold); }
@media(max-width:900px) {
  .review-card { min-width: calc(50% - 12px); }
}
@media(max-width:600px) {
  .review-card { min-width: 100%; }
  .review-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ── PHOTO CAROUSEL ──────────────────────── */
.photo-carousel-wrap {
  overflow: hidden;
  background: var(--navy-dark, #070e1e);
  padding: 0;
  height: 300px;
  position: relative;
}
.photo-carousel-track {
  display: flex;
  gap: 6px;
  height: 100%;
  animation: photoScroll 32s linear infinite;
  will-change: transform;
}
.photo-carousel-wrap:hover .photo-carousel-track { animation-play-state: paused; }
.photo-carousel-item {
  flex-shrink: 0;
  width: 360px;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}
.photo-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@keyframes photoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media(max-width:768px) {
  .photo-carousel-wrap { height: 220px; }
  .photo-carousel-item { width: 260px; }
}

/* ── GALLERY STRIP (services page) ─────────────── */
.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); height: 280px; gap: 4px; overflow: hidden; }
.gallery-strip-item { overflow: hidden; }
.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-strip-item:hover img { transform: scale(1.05); }

/* ── BLOG ─────────────────────────────────── */
.blog-section { background: var(--gray); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.blog-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* Cards with a single destination work as one large, accessible click target. */
.rm-clickable-container { cursor: pointer; }
.rm-clickable-container:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.blog-card-img { height: 200px; overflow: hidden; background: var(--gray); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 22px; }
.blog-meta { font-size: 0.75rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.blog-card-body a { color: var(--gold); font-size: 0.85rem; font-weight: 600; }

/* ── CTA SECTION ──────────────────────────── */
/* ── FRANCHISE CTA ───────────────────────── */
.franchise-cta-section {
  background: linear-gradient(135deg, #0a1226 0%, #1a2a0a 50%, #0a1226 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.franchise-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(195,155,60,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.franchise-cta-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.franchise-cta-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 24px;
  margin-bottom: 20px;
}
.franchise-cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.franchise-cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.franchise-cta-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 36px;
}
.franchise-point {
  color: rgba(255,255,255,0.9);
  font-size: 0.97rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.franchise-point span { color: #5ddb5d; font-size: 1.1rem; }
.btn-franchise {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: var(--transition);
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(195,155,60,0.35);
}
.btn-franchise:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 50px rgba(195,155,60,0.5);
}
@media(max-width:600px) {
  .franchise-cta-section { padding: 60px 20px; }
  .franchise-cta-points { gap: 12px; }
}

/* ── NAV FRANCHISE LINK ──────────────────── */
.nav-franchise-link {
  background: rgba(195,155,60,0.15) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(195,155,60,0.4);
  border-radius: 4px;
  padding: 4px 10px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.03em;
  transition: var(--transition);
}
.nav-franchise-link:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.cta-section { background: var(--navy); padding: 100px 0; text-align: center; }
.cta-section h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.cta-section h2 em { color: var(--gold); font-style: italic; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ── CONTACT ──────────────────────────────── */
.contact-section { background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 500px; }
.contact-img { position: relative; overflow: hidden; background: #1a2744; display: flex; align-items: center; justify-content: center; }
.contact-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.contact-form-wrap { padding: 64px 56px; background: var(--white); }
.contact-form-wrap h2 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.contact-form-wrap p { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 1.5px solid #d8dbe6; border-radius: var(--radius); padding: 11px 14px; font-size: 0.92rem; font-family: inherit; transition: var(--transition); outline: none; color: var(--text); background: var(--white); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,163,23,0.12); }
.form-group textarea { height: 110px; resize: vertical; }

/* Vehicle information */
.vehicle-widget { border:1px solid #d8dbe6; border-radius:10px; padding:16px; background:#fff; }
.vehicle-widget label { display:block; font-size:.8rem; font-weight:700; color:var(--navy); margin-bottom:5px; }
.vehicle-widget input, .vehicle-widget select { width:100%; border:1.5px solid #d8dbe6; border-radius:6px; padding:10px 12px; font:inherit; color:var(--text); background:#fff; }
.vehicle-widget input:focus, .vehicle-widget select:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(232,163,23,.12); }
.vehicle-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.vehicle-grid-wide { grid-column:1/-1; }
.vehicle-widget .optional { color:var(--muted); font-weight:500; }
.vehicle-manual-note, .vehicle-dropdown-note { color:var(--muted); font-size:.76rem; line-height:1.45; }
.vehicle-manual-note { padding:9px 10px; border-radius:6px; background:#f5f6f8; }
.vehicle-dropdown-note { margin-top:10px; }
@media (max-width:620px) { .vehicle-grid { grid-template-columns:1fr; } .vehicle-grid-wide { grid-column:auto; } }
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: var(--muted); }
.form-check input { width: auto; }

/* ── EVENTS MAP ───────────────────────────── */
.events-map-section { background: var(--white); }
#events-map, #tech-map, #unified-map, #locator-map { border-radius: 10px; border: 1px solid #dde0ea; }

/* ── EVENT CARDS ──────────────────────────── */
.events-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.event-card { background: var(--white); border: 1px solid #e0e3ea; border-radius: 10px; padding: 22px; display: flex; gap: 18px; align-items: flex-start; transition: var(--transition); }
.event-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(232,163,23,0.12); }
.event-date-box { background: var(--navy); color: var(--white); border-radius: 8px; padding: 10px 14px; text-align: center; min-width: 56px; flex-shrink: 0; }
.event-date-box .month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.event-date-box .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-info h3 { font-size: 0.98rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.event-info p { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.event-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.event-tag { font-size: 0.7rem; background: rgba(232,163,23,0.12); color: var(--gold2); border-radius: 20px; padding: 2px 10px; font-weight: 600; }

/* ── TECH TRACKER ─────────────────────────── */
.tech-tracker-section { background: var(--gray); }
.tech-status-panel { background: var(--navy); color: var(--white); border-radius: 10px; padding: 28px; }
.tech-status-panel h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--gold); }
.tech-list { display: flex; flex-direction: column; gap: 14px; }
.tech-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(255,255,255,0.07); border-radius: 8px; }
.tech-avatar { width: 44px; height: 44px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); font-size: 0.9rem; flex-shrink: 0; }
.tech-info { flex: 1; }
.tech-info strong { display: block; font-size: 0.95rem; }
.tech-info span { font-size: 0.78rem; opacity: 0.7; }
.tech-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-active { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
.dot-traveling { background: var(--gold); box-shadow: 0 0 0 3px rgba(232,163,23,0.25); }
.dot-onsite { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
.dot-offline { background: var(--muted); }

/* ── Map pin styles ──────────────────────── */
/* Rally pin — gold circle with emoji */
.map-pin-rally { background: #e8a317; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; border: 3px solid #1a2744; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

/* Tech current pin — navy badge with status dot */
.map-pin-tech { background: #1a2744; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 8px; white-space: nowrap; box-shadow: 0 3px 12px rgba(0,0,0,0.4); display: inline-flex; align-items: center; gap: 6px; border: 2.5px solid #22c55e; }
.map-pin-tech .pin-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Tech future pin — semi-transparent with dashed border */
.map-pin-future { background: rgba(26,39,68,0.7); color: rgba(255,255,255,0.9); font-size: 0.68rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; border: 1.5px dashed #3b82f6; box-shadow: 0 2px 6px rgba(0,0,0,0.25); display: inline-flex; align-items: center; gap: 4px; }
.map-pin-future .pin-date { font-size: 0.6rem; opacity: 0.75; margin-left: 2px; }

/* Legacy pin classes (kept for backward compat) */
.tech-map-pin { background: #1a2744; color: #fff; font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.4); display: inline-flex; align-items: center; gap: 5px; }
.tech-map-pin .tech-pin-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tech-map-pin.future-pin { background: rgba(26,39,68,0.65); border: 1.5px dashed #3b82f6; font-size: 0.65rem; padding: 3px 8px; }
.tech-map-pin .tech-pin-date { font-size: 0.6rem; opacity: 0.7; margin-right: 2px; }

/* MarkerCluster overrides */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(26,39,68,0.5) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--navy) !important; color: #fff !important; font-weight: 700; font-family: Inter, sans-serif; }

/* ── Unified map responsive ─────────────── */
@media (max-width: 900px) {
  .locator-grid { grid-template-columns: 1fr; }
}

/* ── STATS BAR ────────────────────────────── */


/* ── ABOUT SPLIT ──────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.about-split-img { position: relative; min-height: 480px; overflow: hidden; }
.about-split-img img { width: 100%; height: 100%; object-fit: cover; }
.about-split-content { padding: 64px 56px; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.about-split-content .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.about-split-content p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }

/* ── TEAM CARDS ───────────────────────────── */
/* ── Legacy small team grid (kept for any other use) ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.team-card { text-align: center; }
.team-photo { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 4px solid var(--gold); background: var(--gray); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--muted); }

/* ── Bio team cards ── */
.team-bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 40px;
}
.team-bio-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: stretch;
  height: 100%;
  background: var(--white);
  border: 1px solid #e4e8ef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s;
}
.team-bio-card:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.11); }
.team-bio-card:nth-child(even) { grid-template-columns: 1fr 260px; }
.team-bio-card:nth-child(even) .team-bio-photo { order: 2; }
.team-bio-card:nth-child(even) .team-bio-body  { order: 1; }
.team-bio-photo { position: relative; min-height: 300px; overflow: hidden; }
.team-bio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.team-bio-body { padding: 36px 36px 36px 0; }
.team-bio-card:nth-child(even) .team-bio-body { padding: 36px 0 36px 36px; }
.team-bio-header { margin-bottom: 10px; }
.team-bio-header h3 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.team-bio-title { font-size: 0.88rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.team-bio-text { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin: 16px 0 20px; }
.team-bio-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.badge { display: inline-flex; align-items: center; gap: 5px; background: var(--gray); color: var(--navy); font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.team-connect-btn { font-size: 0.9rem; padding: 12px 28px; }

/* ── FOOTER ───────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); }
.footer-main { display: grid; grid-template-columns: 280px 1fr 1fr 240px; gap: 40px; padding: 60px 24px 40px; max-width: 1200px; margin: 0 auto; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.85rem; transition: var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; transition: var(--transition); color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-newsletter h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.footer-newsletter p { font-size: 0.82rem; margin-bottom: 14px; line-height: 1.5; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 10px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: var(--white); font-size: 0.88rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button { background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 0.88rem; transition: var(--transition); }
.newsletter-form button:hover { background: var(--gold2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 20px; transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ── PAGE HERO (inner pages) ──────────────── */
.page-hero { background: var(--navy); background-size: cover; background-position: center; padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,18,38,0.72); z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ── MODAL ────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 12px; padding: 36px; max-width: 520px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.modal p { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .core-values-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-drop-menu { position: static; display: none; box-shadow: none; border-top: none; padding-left: 16px; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .hero-content { padding: 6vh 24px 0; }
  .hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); white-space: normal; }
  .hero-trust-row { gap: 20px; margin-top: 20px; }
  .hero-stars { font-size: 1.2rem; }
  .hero-bbb img { height: 48px; }
  .hero-dots { right: 24px; bottom: 24px; }
  .service-card { flex: 0 0 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .core-values-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-img { height: 280px; }
  .contact-form-wrap { padding: 40px 24px; }
  .about-split { grid-template-columns: 1fr; }
  .about-split-img { min-height: 300px; }
  .about-split-content { padding: 40px 24px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-bio-card,
  .team-bio-card:nth-child(even) { grid-template-columns: 1fr; }
  .team-bio-card:nth-child(even) .team-bio-photo,
  .team-bio-card:nth-child(even) .team-bio-body { order: unset; }
  .team-bio-photo { min-height: 240px; }
  .team-bio-body,
  .team-bio-card:nth-child(even) .team-bio-body { padding: 28px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); height: 200px; gap: 3px; }

  .products-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { height: 80vh; }
  .section-pad { padding: 48px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-bio-header h3 { font-size: 1.3rem; }
  .team-connect-btn { width: 100%; justify-content: center; }
  /* gallery-strip removed */
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}

/* ── HOME RALLY LIST ───────────────────────── */
.home-rally-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.home-rally-card { min-height: 116px; background: var(--white); border: 1px solid #e0e3ea; border-radius: 10px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.home-rally-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(232,163,23,0.12); }
.home-rally-date { background: var(--navy); color: var(--white); border-radius: 8px; min-width: 54px; padding: 8px 7px; text-align: center; flex-shrink: 0; }
.home-rally-date span { display: block; font-size: 0.63rem; letter-spacing: .08em; opacity: .75; }
.home-rally-date strong { display: block; font-size: 1.4rem; line-height: 1.1; }
.home-rally-card h3 { color: var(--navy); font-size: 1rem; margin: 0 0 4px; }
.home-rally-card p { color: var(--muted); font-size: .8rem; line-height: 1.4; margin: 2px 0; }
.home-rally-empty { text-align: center; color: var(--muted); padding: 24px; }
@media (max-width: 900px) { .home-rally-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-rally-grid { grid-template-columns: 1fr; } }

/* Home rally schedule stays visually paired with the map. */
.home-map-section { background:var(--gray); }
.home-map-heading { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:18px; margin-bottom:24px; }
.home-map-heading .section-title { margin-bottom:5px; }
.home-events-map-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:22px; align-items:stretch; }
.home-map-frame { position:relative; min-width:0; width:100%; height:500px; background:var(--white); border:1px solid #dfe3eb; border-radius:14px; overflow:hidden; box-shadow:0 8px 28px rgba(10,26,63,.08); box-sizing:border-box; }
#unified-map { display:block; width:100%; height:100%; border:0; border-radius:inherit; box-sizing:border-box; }
.home-map-key { position:absolute; z-index:500; top:14px; right:14px; display:flex; align-items:center; gap:15px; padding:9px 13px; background:rgba(255,255,255,.96); border:1px solid #cfd5df; border-radius:9px; box-shadow:0 3px 12px rgba(10,26,63,.14); color:var(--navy); font-size:.76rem; font-weight:800; }
.home-map-key-item { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.home-map-key-rally { position:relative; display:inline-block; flex:0 0 18px; width:18px; height:18px; background:var(--gold); border:2px solid var(--navy); border-radius:50% 50% 50% 0; transform:rotate(-45deg); box-shadow:0 1px 3px rgba(10,26,63,.22); }
.home-map-key-rally::after { content:''; position:absolute; width:5px; height:5px; left:4.5px; top:4.5px; border-radius:50%; background:var(--navy); }
.home-map-key-tech { display:inline-flex; flex:0 0 22px; width:22px; height:22px; align-items:center; justify-content:center; border-radius:50%; color:#fff; background:var(--navy); border:2px solid #fff; box-shadow:0 0 0 2px var(--gold),0 1px 3px rgba(10,26,63,.22); font-size:.66rem; font-weight:900; line-height:1; }
.home-rally-panel { display:flex; flex-direction:column; min-height:0; width:100%; height:500px; overflow:hidden; box-sizing:border-box; background:var(--white); border:1px solid #dfe3eb; border-radius:14px; padding:22px; box-shadow:0 8px 28px rgba(10,26,63,.08); }
.home-rally-panel h3 { color:var(--navy); font-size:1.05rem; margin:0 0 5px; }
.home-rally-panel>p { color:var(--muted); font-size:.78rem; line-height:1.45; margin:0 0 14px; }
.home-map-rally-list { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; gap:7px; max-height:none; overflow-y:auto; overscroll-behavior:contain; padding-right:4px; }
.home-rally-list-item { display:flex; gap:11px; align-items:center; padding:9px; border:1px solid transparent; border-radius:9px; text-decoration:none; transition:.18s ease; }
.home-rally-list-item:hover,.home-rally-list-item:focus-visible { background:#fff8e8; border-color:rgba(232,163,23,.45); outline:none; }
.home-rally-list-date { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:44px; min-height:46px; background:var(--navy); color:var(--white); border-radius:7px; line-height:1; }
.home-rally-list-date small { color:var(--gold); font-size:.55rem; font-weight:800; letter-spacing:.06em; margin-bottom:3px; }
.home-rally-list-date strong { font-size:1.05rem; }
.home-rally-list-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.home-rally-list-copy>strong { color:var(--navy); font-size:.8rem; line-height:1.3; }
.home-rally-list-copy>span { color:var(--muted); font-size:.7rem; line-height:1.35; }
.home-rally-all-link { margin-top:auto; padding-top:16px; color:var(--navy); font-size:.8rem; font-weight:800; text-decoration:none; }
.home-rally-all-link:hover,.home-rally-all-link:focus-visible { color:#a96e00; text-decoration:underline; }
.home-rally-marker-wrap { background:transparent; border:0; }
.home-rally-marker { position:relative; display:block; width:26px; height:26px; background:var(--gold); border:3px solid var(--navy); border-radius:50% 50% 50% 0; transform:rotate(-45deg); box-shadow:0 3px 8px rgba(10,26,63,.3); }
.home-rally-marker::after { content:''; position:absolute; width:7px; height:7px; left:7px; top:7px; border-radius:50%; background:var(--navy); }
.home-tech-marker-wrap { background:transparent; border:0; }
.home-tech-marker { display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; color:#fff; background:var(--tech-color); border:3px solid #fff; box-shadow:0 0 0 2px var(--navy),0 3px 8px rgba(10,26,63,.28); font-size:.73rem; font-weight:900; }
.home-tech-popup-label { margin:0 0 2px !important; color:var(--gold-dark); font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.home-map-panel-links { display:grid; flex:0 0 auto; gap:6px; margin-top:8px; }
.leaflet-popup.home-map-popup { max-width:calc(100% - 48px); }
.leaflet-popup.home-map-popup .leaflet-popup-content-wrapper { max-width:100%; box-sizing:border-box; }
.leaflet-popup.home-map-popup .leaflet-popup-content { max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; }
.home-rally-popup { font-family:Inter,Arial,sans-serif; padding:3px; }
.home-rally-popup h3 { margin:0 0 7px; color:var(--navy); font-size:.98rem; }
.home-rally-popup p { margin:0 0 11px; color:#566074; font-size:.8rem; line-height:1.5; }
.home-rally-popup a { display:inline-block; color:var(--navy); background:var(--gold); border-radius:5px; padding:7px 11px; font-size:.76rem; font-weight:800; text-decoration:none; }
.home-map-fallback { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; background:var(--navy); color:var(--white); text-align:center; padding:24px; }
.home-map-fallback strong { color:var(--gold); font-size:1.05rem; }
.home-map-fallback span { max-width:300px; color:#d6dbe5; font-size:.82rem; }
@media (max-width:800px) { .home-events-map-layout { grid-template-columns:1fr; } .home-map-frame,.home-rally-panel { height:420px; } #unified-map,.home-map-fallback { height:100%; } .home-rally-all-link { margin-top:8px; } }
@media (max-width:520px) { .home-map-actions { width:100%; } .home-map-heading .btn { width:100%; justify-content:center; } .home-map-frame,.home-rally-panel { height:360px; } .home-rally-panel { padding:17px; } #unified-map,.home-map-fallback { height:100%; } .home-map-key { top:10px; right:10px; left:10px; justify-content:center; gap:10px; font-size:.72rem; } }

/* Accessible password visibility control */
.password-control{position:relative;width:100%;min-width:0}
.password-control>input{width:100%;padding-right:68px!important;box-sizing:border-box}
.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#18304f;font:700 .78rem Inter,Arial,sans-serif;padding:6px 7px;border-radius:5px;cursor:pointer}
.password-toggle:hover,.password-toggle:focus-visible{background:#eef2f7;outline:2px solid #e8a317;outline-offset:1px}

/* ── Legal documents (Terms & Conditions, Privacy Policy) ── */
.legal-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:48px; align-items:start; }
@media (max-width:960px){ .legal-layout { grid-template-columns:1fr; gap:28px; } }
.legal-toc { position:sticky; top:100px; background:var(--white); border-radius:12px; padding:24px; box-shadow:0 2px 16px rgba(10,26,63,0.08); border-top:4px solid var(--gold); }
@media (max-width:960px){ .legal-toc { position:static; } }
.legal-toc h4 { font-size:0.8rem; font-weight:800; color:var(--navy); text-transform:uppercase; letter-spacing:0.09em; margin-bottom:14px; }
.legal-toc ol { list-style:none; counter-reset:toc; margin:0; padding:0; max-height:60vh; overflow-y:auto; }
@media (max-width:960px){ .legal-toc ol { max-height:none; } }
.legal-toc li { counter-increment:toc; margin-bottom:7px; }
.legal-toc a { display:block; font-size:0.82rem; line-height:1.45; color:var(--muted); text-decoration:none; padding-left:26px; position:relative; }
.legal-toc a::before { content:counter(toc) "."; position:absolute; left:0; color:var(--gold); font-weight:700; font-size:0.76rem; }
.legal-toc a:hover { color:var(--navy); }
.legal-doc { background:var(--white); border-radius:12px; padding:44px 48px; box-shadow:0 2px 16px rgba(10,26,63,0.08); }
@media (max-width:600px){ .legal-doc { padding:28px 22px; } }
.legal-meta { display:flex; flex-wrap:wrap; gap:10px 22px; padding-bottom:18px; margin-bottom:26px; border-bottom:2px solid var(--gray); font-size:0.82rem; color:var(--muted); }
.legal-meta strong { color:var(--navy); }
.legal-doc h2 { font-size:1.18rem; font-weight:800; color:var(--navy); margin:34px 0 12px; padding-top:8px; scroll-margin-top:110px; }
.legal-doc h2:first-of-type { margin-top:0; }
.legal-doc h2 .legal-num { color:var(--gold); margin-right:8px; }
.legal-doc h3 { font-size:0.98rem; font-weight:700; color:var(--navy); margin:20px 0 8px; }
.legal-doc p { font-size:0.92rem; color:#3a4060; line-height:1.8; margin-bottom:13px; }
.legal-doc ul, .legal-doc ol { padding-left:22px; margin-bottom:14px; }
.legal-doc li { font-size:0.9rem; color:#3a4060; line-height:1.75; margin-bottom:8px; }
.legal-doc a { color:var(--gold2); font-weight:600; }
.legal-doc a:hover { color:var(--navy); }
.legal-doc table { width:100%; border-collapse:collapse; margin:16px 0 20px; font-size:0.85rem; }
.legal-doc th { background:var(--navy); color:var(--white); padding:10px 12px; text-align:left; font-weight:700; }
.legal-doc td { padding:10px 12px; border-bottom:1px solid #e0e3ea; color:#3a4060; vertical-align:top; line-height:1.6; }
.legal-doc tr:nth-child(even) td { background:#f7f8fa; }
.legal-callout { border:2px solid var(--gold); background:#fffbf0; border-radius:10px; padding:20px 22px; margin:20px 0; }
.legal-callout p:last-child { margin-bottom:0; }
.legal-callout h3 { margin-top:0; }
.legal-note { background:var(--gray); border-left:4px solid var(--navy); border-radius:0 8px 8px 0; padding:16px 20px; margin:18px 0; }
.legal-note p:last-child { margin-bottom:0; }
.legal-contact-block { background:var(--navy); color:var(--white); border-radius:10px; padding:22px 24px; margin-top:14px; }
.legal-contact-block p { color:rgba(255,255,255,0.85); margin-bottom:6px; font-size:0.9rem; }
.legal-contact-block a { color:var(--gold); }
.legal-back-top { display:inline-block; font-size:0.78rem; font-weight:700; color:var(--gold2); text-decoration:none; margin-top:6px; }

/* Required Terms & Conditions agreement on message forms */
.form-check-terms { align-items:flex-start; line-height:1.5; }
.form-check-terms input { margin-top:3px; flex-shrink:0; }
.form-check-terms label { cursor:pointer; }
.form-check-terms a { color:var(--gold2); font-weight:700; text-decoration:underline; }
.form-check-terms a:hover { color:var(--navy); }
.form-check-terms .req { color:#c0392b; font-weight:700; }
.contact-form-wrap .form-check-terms, .contact-form-wrap .form-check-terms label { color:rgba(255,255,255,0.85); }
.contact-form-wrap .form-check-terms a { color:var(--gold); }

/* Required Terms agreement at online purchase checkout */
.checkout-terms { margin:18px 0 14px; padding:12px 0; border-top:1px solid #e6e8ef; border-bottom:1px solid #e6e8ef; }
.checkout-terms label { color:var(--ink); font-size:.88rem; }
