/* Rev-Restore overrides — loaded after styles.css */

/* ---------- Pill buttons ---------- */
.btn,
.main-nav .nav-cta,
.form-panel .btn,
button[type="submit"] {
  border-radius: 999px !important;
  clip-path: none !important;
}
.btn { padding-left: 1.9em; padding-right: 1.9em; }
.main-nav .nav-cta { padding-left: 1.3em; padding-right: 1.3em; }

/* ---------- Bike backgrounds on page heroes ---------- */
.subpage-hero.has-bike {
  position: relative;
  background-color: #0b0b0b;
  background-image:
    linear-gradient(90deg, rgba(8,8,8,0.94) 0%, rgba(8,8,8,0.82) 40%, rgba(8,8,8,0.45) 75%, rgba(8,8,8,0.25) 100%),
    linear-gradient(0deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0) 35%),
    var(--hero-img);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.subpage-hero.has-bike .container { position: relative; z-index: 1; }

/* ---------- Bike background on the quote banner ---------- */
.cta-band {
  position: relative;
  background-color: #0b0b0b;
  background-image:
    linear-gradient(0deg, rgba(8,8,8,0.88), rgba(8,8,8,0.78)),
    url('bike-rear-three-quarter-red-lights-1920.jpg');
  background-size: cover;
  background-position: center;
}
.cta-band .container { position: relative; z-index: 1; }

/* Phones: darken more so text stays readable over the bike */
@media (max-width: 760px) {
  .subpage-hero.has-bike {
    background-image:
      linear-gradient(0deg, rgba(8,8,8,0.9), rgba(8,8,8,0.72)),
      var(--hero-img);
    background-position: center;
  }
}

/* ---------- Homepage hero: keep the headline readable over the bike ---------- */
.hero .img-slot { background-position: 70% center; }
.hero .img-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.7) 35%, rgba(8,8,8,0.15) 70%, rgba(8,8,8,0) 100%);
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero .img-slot::after { background: linear-gradient(0deg, rgba(8,8,8,0.85), rgba(8,8,8,0.6)); }
}

/* ---------- Footer social icons ---------- */
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #cfcfcf; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.footer-social a:hover { background: #d21a2c; border-color: #d21a2c; color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; display: block; }

/* ---------- Seasonal themes (switched on by seasonal.js) ---------- */
.season-ribbon {
  display: block; text-align: center; padding: 9px 16px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; color: #fff;
}
.season-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }

/* Halloween — pumpkin orange accents and bats */
.theme-halloween { --red: #e8650e; --red-bright: #ff8a2a; }
.theme-halloween .season-ribbon { background: linear-gradient(90deg, #2a0f3d, #e8650e, #2a0f3d); }
.theme-halloween .btn-primary,
.theme-halloween .main-nav .nav-cta { background-color: #e8650e !important; border-color: #e8650e !important; }
.theme-halloween .btn-primary:hover,
.theme-halloween .main-nav .nav-cta:hover { background-color: #ff8a2a !important; border-color: #ff8a2a !important; }
.theme-halloween .footer-social a:hover { background: #e8650e; border-color: #e8650e; }
.theme-halloween .hero .img-slot::before,
.theme-halloween .subpage-hero.has-bike::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 100%, rgba(232,101,14,0.28), transparent 60%);
}
.season-bat {
  position: absolute; color: #0a0a0a; filter: drop-shadow(0 0 6px rgba(232,101,14,0.55));
  animation-name: bat-fly; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.season-bat svg { width: 100%; height: auto; display: block; animation: bat-flap .35s ease-in-out infinite alternate; }
@keyframes bat-fly {
  0%   { transform: translate(-30vw, 0); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate(20vw, -6vh); }
  90%  { opacity: .9; }
  100% { transform: translate(70vw, 4vh); opacity: 0; }
}
@keyframes bat-flap { from { transform: scaleY(1); } to { transform: scaleY(0.55); } }

/* Christmas — keeps the brand red, adds green trim and snow */
.theme-xmas .season-ribbon { background: linear-gradient(90deg, #0f4d2a, #b3121f, #0f4d2a); }
.theme-xmas .site-header { box-shadow: inset 0 -3px 0 #0f6b3a; }
.theme-xmas .hero .img-slot::before,
.theme-xmas .subpage-hero.has-bike::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.12), transparent 55%);
}
.season-snow {
  position: absolute; border-radius: 50%; background: #fff;
  animation-name: snow-fall; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes snow-fall {
  0%   { transform: translate(0, -10px); }
  100% { transform: translate(40px, 105vh); }
}

/* ---------- Seasonal icons: in the header quote button (desktop) and left of the logo (mobile) ---------- */
.main-nav .nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.season-icon { display: inline-flex; width: 20px; height: 20px; margin-left: -4px; }
.season-icon svg, .season-mark svg { width: 100%; height: 100%; display: block; }
.season-mark { display: none; }
@media (max-width: 900px) {
  .season-mark {
    display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; margin-right: 10px;
    animation: season-bob 2.6s ease-in-out infinite;
  }
  .site-header .header-row { justify-content: flex-start; }
  .site-header .nav-toggle { margin-left: auto; }
}
@keyframes season-bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }

/* Halloween quote button: glowing pumpkin */
.theme-halloween .main-nav .nav-cta {
  box-shadow: 0 0 0 1px rgba(255,138,42,0.6), 0 0 18px rgba(232,101,14,0.55);
  background-image: radial-gradient(ellipse at 30% 30%, #ffa04d, #e8650e 60%, #b8460a) !important;
}
.theme-halloween .season-mark { filter: drop-shadow(0 0 6px rgba(232,101,14,0.7)); }

/* Christmas quote button: candy-cane red with gold glow */
.theme-xmas .main-nav .nav-cta {
  background-color: #b3121f !important; border-color: #b3121f !important;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.13) 0 8px, transparent 8px 16px) !important;
  box-shadow: 0 0 0 1px rgba(255,211,77,0.55), 0 0 16px rgba(255,211,77,0.35);
  color: #fff !important;
}
.theme-xmas .season-mark { filter: drop-shadow(0 0 6px rgba(255,211,77,0.6)); }

/* November — Bonfire Night & Black Friday: gold and purple, fireworks */
.theme-november { --red: #e0a800; --red-bright: #ffd34d; }
.theme-november .season-ribbon { background: linear-gradient(90deg, #1a0b2e, #6a2bb3, #e0a800, #6a2bb3, #1a0b2e); }
.theme-november .btn-primary,
.theme-november .main-nav .nav-cta { background-color: #e0a800 !important; border-color: #e0a800 !important; color: #111 !important; }
.theme-november .btn-primary:hover,
.theme-november .main-nav .nav-cta:hover { background-color: #ffd34d !important; border-color: #ffd34d !important; }
.theme-november .main-nav .nav-cta { box-shadow: 0 0 0 1px rgba(199,125,255,0.6), 0 0 18px rgba(255,211,77,0.45); }
.theme-november .footer-social a:hover { background: #e0a800; border-color: #e0a800; color: #111; }
.theme-november .hero .img-slot::before,
.theme-november .subpage-hero.has-bike::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 75% 0%, rgba(106,43,179,0.35), transparent 60%);
}
.season-burst { position: absolute; width: 0; height: 0; }
.season-burst i {
  position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%;
  animation: spark 1.5s ease-out forwards;
}
@keyframes spark {
  0%   { transform: rotate(var(--a)) translateX(0); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(var(--d)) translateY(18px); opacity: 0; }
}

/* ---------- Services: rusty > blasted > coated slider ---------- */
.rr-hero-split { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 56px; align-items: center; }
.rr-slider-wrap { width: 100%; max-width: 520px; justify-self: end; }
.rr-slider { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #1a1c1e; touch-action: none; user-select: none; border: 1px solid rgba(255,255,255,0.08); }
.rr-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rr-slider .stage-rusty { z-index: 1; } .rr-slider .stage-blasted { z-index: 2; } .rr-slider .stage-coated { z-index: 3; }
.rr-slider .handle { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; cursor: ew-resize; z-index: 4; }
.rr-slider .handle::after { content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.rr-slider .tag-lbl { position: absolute; bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: rgba(10,10,10,.75); color: #fff; z-index: 5; }
.rr-track { position: relative; margin-top: 14px; height: 4px; border-radius: 999px; background: #3a3d40; }
.rr-track .fill { position: absolute; top: 0; left: 0; bottom: 0; border-radius: 999px; background: var(--red, #d21a2c); }
.rr-track-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: #8d9195; }
.rr-track-labels .active { color: #fff; }
.rr-stage-desc { margin-top: 18px; min-height: 3.4em; color: #c4c7ca; transition: opacity .22s ease; }
.rr-stage-desc.fading { opacity: 0; }

/* ---------- Services: "what we can coat" filter grid ---------- */
.rr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.rr-chip { min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #ddd; font: inherit; font-weight: 600; cursor: pointer; }
.rr-chip[aria-pressed="true"] { background: var(--red, #d21a2c); border-color: var(--red, #d21a2c); color: #fff; }
.rr-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 220px; gap: 16px; }
.rr-tile { border-radius: 14px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background-size: cover; background-position: center; }
.rr-tile.dark { color: #111; }
.rr-tile[hidden] { display: none; }
.rr-tile .tag { align-self: flex-start; padding: 3px 11px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.75rem; font-weight: 600; opacity: .8; }
.rr-tile h3 { font-size: 1.35rem; margin: 0; }
.rr-tile p { margin: 4px 0 0; font-size: 0.85rem; font-weight: 600; opacity: .85; }

/* ---------- "Also available" list ---------- */
.rr-also { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 28px; }
.rr-also li { position: relative; padding-left: 20px; color: #c4c7ca; }
.rr-also li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--red, #d21a2c); }

@media (max-width: 900px) {
  .rr-hero-split { grid-template-columns: 1fr; gap: 34px; }
  .rr-slider-wrap { justify-self: stretch; max-width: none; }
  .rr-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 170px; }
  .rr-also { grid-template-columns: 1fr; }
}

/* Tiles with a real image: dark fade at the bottom so the label stays readable */
.rr-tile.has-img { position: relative; color: #fff !important; background-size: cover; background-position: center; }
.rr-tile.has-img::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.1) 100%); }
.rr-tile.has-img > * { position: relative; }
