/* Rohwerder Rental – shared site styles
   Slideshow heroes, dark-section motion, logo intro animation. */

/* ===== Base ===== */
body { color: #181818; background: #fbfcfa; }
.section-kicker { color: #68B818; letter-spacing: .08em; text-transform: uppercase; }
.focus-ring:focus-visible { outline: 3px solid rgba(104, 184, 24, .42); outline-offset: 3px; }

/* ===== Hero slideshow ===== */
.hero-bg { background-color: #181818; }
.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.2s ease, transform 6.8s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(24, 24, 24, .92), rgba(24, 24, 24, .62) 48%, rgba(24, 24, 24, .28)),
    linear-gradient(0deg, rgba(24, 24, 24, .48), rgba(24, 24, 24, .08) 45%, rgba(24, 24, 24, .44));
}

/* ===== Subtle motion in dark sections =====
   Soft light reflections drift across, evoking road / headlights. */
.dark-motion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.dark-motion > * {
  position: relative;
  z-index: 1;
}
.dark-motion::before,
.dark-motion::after {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -70%;
  width: 60%;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}
.dark-motion::before {
  background: linear-gradient(100deg, transparent 0%, rgba(104, 184, 24, .16) 50%, transparent 100%);
  animation: dm-pass 17s ease-in-out infinite;
}
.dark-motion::after {
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .08) 50%, transparent 100%);
  animation: dm-pass 17s ease-in-out infinite 8.5s;
}
@keyframes dm-pass {
  0%   { transform: translateX(0) skewX(-8deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(300%) skewX(-8deg); opacity: 0; }
}

/* ===== Brand intro (plays once per session) ===== */
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 38%, #20271d 0%, #181818 62%, #121212 100%);
  animation: bi-curtain .65s ease 1.75s forwards;
}
.no-intro .brand-intro { display: none !important; }
.brand-intro__stage {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: 24px;
}
.brand-intro__logo {
  width: min(58vw, 250px);
  height: auto;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
  animation: bi-logo 1s cubic-bezier(.22, .61, .36, 1) .6s forwards;
}
.brand-intro__road {
  position: relative;
  width: min(64vw, 290px);
  height: 6px;
}
.brand-intro__road-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4F8E13, #68B818 55%, #7ED321);
  box-shadow: 0 0 20px rgba(104, 184, 24, .55);
  transform: scaleX(0);
  transform-origin: left center;
  animation: bi-draw 1s cubic-bezier(.5, .1, .2, 1) .15s forwards;
}
.brand-intro__dash {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .92) 0 10px, transparent 10px 26px);
  background-size: 26px 2px;
  background-repeat: repeat-x;
  opacity: 0;
  animation: bi-dash .7s ease .95s forwards;
}
@keyframes bi-logo { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bi-draw { to { transform: scaleX(1); } }
@keyframes bi-dash { to { opacity: .8; } }
@keyframes bi-curtain { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .dark-motion::before,
  .dark-motion::after { animation: none; opacity: 0; }
  .brand-intro { display: none !important; }
  .brand-intro__logo,
  .brand-intro__road-fill,
  .brand-intro__dash { animation: none; opacity: 1; transform: none; }
}
