/* ==========================================================================
   Novalux Travel — site stylesheet
   Contents
     1. Tokens
     2. Base
     3. Layout helpers
     4. Header & navigation
     5. Site search
     6. Buttons & links
     7. Home hero
     8. Page header
     9. Quote bar & forms
    10. Sections
    11. Cards & photos
    12. Home page photo blocks
    13. Why us, filters, steps, quotes, call-to-action
    14. Destinations
    15. Gallery & lightbox
    16. Contact aside
    17. Footer and floating WhatsApp button
    18. Animations & scroll reveals
    19. Responsive
    20. Reduced motion
   ========================================================================== */


/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --k: #000;          /* black */
  --k2: #161616;
  --g: #c9a227;       /* gold */
  --g2: #e2c25a;      /* light gold */
  --w: #fff;
  --l: #eee;          /* light grey */
  --m: #6b6b6b;       /* muted text */
  --gn: #0a7d3b;      /* green (text and lines on white) */
  --gn2: #1fb85f;     /* bright green (on dark backgrounds) */
  --gn3: #063d1e;     /* deep green */
  --wa: #25d366;      /* WhatsApp brand green */
  --r: 6px;           /* corner radius */
}


/* 2. Base
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem/1.65 Manrope, system-ui, sans-serif;
  color: var(--k);
  background: var(--w);
}

h1, h2, h3, .logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; }

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--g);
  outline-offset: 3px;
}

label {
  display: grid;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 700;
}

input, select, textarea {
  font: inherit;
  padding: .7rem;
  border: 1px solid #bbb;
  border-radius: var(--r);
  background: var(--w);
  width: 100%;
}

/* SVG icon sprite at the top of each page; icons use <use href="#i-name"> */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

/* Visually hidden, still read by screen readers */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* 3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap   { width: min(1180px, 92%); margin: auto; }
.center { text-align: center; }
.mt     { margin-top: 2rem; }
.full   { grid-column: 1 / -1; }

.lead {
  font-size: 1.15rem;
  max-width: 62ch;
}
.center .lead {
  margin: 0 auto 1.5rem;
}

.grid { display: grid; gap: 1.4rem; }
.g2   { grid-template-columns: repeat(2, 1fr); }
.g3   { grid-template-columns: repeat(3, 1fr); }
.g4   { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}

.split.about {              /* text beside a photo or card */
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}


/* 4. Header & navigation
   -------------------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem 4%;
  background: var(--w);
  color: var(--k);
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--g), var(--gn)) 1;     /* gold to green rule */
  transition: box-shadow .3s;
}
.top.sc {                 /* added by main.js once the page scrolls */
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.logo {
  display: inline-block;
  color: var(--w);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.top .logo img {
  display: block;
  height: 64px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav a {
  color: var(--k);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--gn);
}
.nav a.btn {
  color: var(--k);
}

/* Gold underline that grows under the hovered / current link */
.nav a:not(.btn) {
  position: relative;
  padding: .2rem 0;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:not(.btn):hover::after,
.nav a[aria-current]::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  padding: .5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger i {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: var(--g);
}


/* 5. Site search (in the header)
   -------------------------------------------------------------------------- */
.sb {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--m);
}
.sb svg {
  position: absolute;
  left: .75rem;
  pointer-events: none;
}
.sb input {
  width: 9.5rem;
  padding: .5rem .8rem .5rem 2.2rem;
  border: 1px solid #bbb;
  border-radius: 99px;
  font-size: .9rem;
  transition: width .25s ease, border-color .2s;
}
.sb input:focus {
  width: 15rem;
  border-color: var(--gn);
  outline-offset: 2px;
}
.sb input::-webkit-search-cancel-button {
  cursor: pointer;
}

.sres {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  width: 22rem;
  max-width: 92vw;
  max-height: 70vh;
  padding: .4rem;
  list-style: none;
  overflow: auto;
  background: var(--w);
  border: 1px solid #d5d5d5;
  border-top: 3px solid var(--gn);
  border-radius: var(--r);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.sres[hidden] { display: none; }

.sres a {
  display: block;
  padding: .55rem .7rem;
  color: var(--k);
  text-decoration: none;
  border-radius: 4px;
}
.sres a b {
  display: block;
  font-size: .95rem;
  font-weight: 700;
}
.sres a small {
  display: block;
  color: var(--m);
  font-size: .82rem;
  line-height: 1.35;
}
.sres a span {
  color: var(--g);
  font-size: .78rem;
  font-weight: 700;
}
.sres a:hover,
.sres a[aria-selected=true] {
  background: var(--l);
}
.sres mark {
  background: none;
  color: inherit;
  box-shadow: inset 0 -.4em 0 rgba(201, 162, 39, .45);
}
.sres .none {
  padding: .8rem .7rem;
  color: #444;
  font-size: .9rem;
}
.sres .none a {
  display: inline;
  padding: 0;
  color: var(--k);
  font-weight: 700;
  border-bottom: 2px solid var(--gn);
}

/* Results sit inside .nav, so undo the nav link styling for them */
.nav .sres a {
  padding: .55rem .7rem;
  color: var(--k);
  font-size: 1rem;
  font-weight: 400;
}
.nav .sres a::after   { display: none; }
.nav .sres a:hover    { color: var(--k); }
.nav .sres .none a    { padding: 0; border-bottom: 2px solid var(--gn); }


/* 6. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--g);
  color: var(--k);
  font: 700 .95rem Manrope, sans-serif;
  border: 2px solid var(--g);
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover        { background: var(--g2); transform: translateY(-2px); }
.btn.sm           { padding: .5rem 1rem; }
.btn.dk           { background: var(--k); color: var(--g); border-color: var(--k); }
.btn.ghost        { background: transparent; color: var(--w); border-color: var(--w); }
.btn.ghost:hover  { color: var(--g); border-color: var(--g); }

/* WhatsApp button: brand green with the WhatsApp logo */
.btn.wabtn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--wa);
  border-color: var(--wa);
  color: var(--k);
}
.btn.wabtn:hover {
  background: #4ae58a;
  border-color: #4ae58a;
  color: var(--k);
}
.btn.wabtn svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.lnk {
  color: var(--g);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}
.lnk-light { color: var(--gn); }          /* readable on white backgrounds */


/* 7. Home hero
   Text on the left, a crossfading photo reel on the right.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 0;
  background: var(--k);
  color: var(--w);
  overflow: hidden;
}
.hero h1 {
  animation: rise .9s ease both;
}
.hero p {
  max-width: 56ch;
  margin-top: 1.4rem;
  color: #ccc;
  font-size: 1.15rem;
  animation: rise .9s .15s ease both;
}
.hero .row {
  animation: rise .9s .3s ease both;
}

.heroin {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.reel {
  position: relative;
  aspect-ratio: 4 / 3;
}
.reel::before {           /* gold offset frame */
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 2px solid var(--g);
  border-radius: var(--r);
  animation: fade 1s .9s ease both;
}
.frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
  border-radius: var(--r);
  animation: wipe 1.2s .25s cubic-bezier(.2, .7, .2, 1) both;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: sl 12s infinite both;
}
.slide:first-child   { opacity: 1; }
.slide:nth-child(2)  { animation-delay: 6s; }

.road {
  height: 90px;
  margin-top: 3rem;
  background:
    linear-gradient(90deg, var(--gn2) 50%, transparent 0) 0 50% / 60px 3px repeat-x,
    #0d0d0d;
  animation: drive 6s linear infinite;
}


/* 8. Page header (inner pages)
   -------------------------------------------------------------------------- */
.phead {
  padding: 4rem 0;
  background: var(--k);
  color: var(--w);
  border-bottom: 4px solid var(--gn);
}
.phead p {
  max-width: 56ch;
  margin-top: 1rem;
  color: #ccc;
}


/* 9. Quote bar & forms
   -------------------------------------------------------------------------- */
.qb {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr .8fr .6fr auto;
  gap: .8rem;
  align-items: end;
  margin-top: -2.2rem;
  padding: 1.2rem;
  background: var(--w);
  border: 2px solid var(--g);
  border-radius: var(--r);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  animation: rise .9s .5s ease both;
}

.cf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.note {
  color: #1a6b2b;
  font-weight: 700;
}


/* 10. Sections
   -------------------------------------------------------------------------- */
.sec {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.grey  { background: var(--l); }
.black { background: var(--k); color: var(--w); }
.black .lead { margin-bottom: 1.5rem; color: #ccc; }
.nt    { padding-top: 0; }   /* a .sec that follows another section directly */


/* 11. Cards & photos
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.4rem;
  border-radius: var(--r);
}
.card small { color: var(--m); }
.card.light { background: var(--w); border: 1px solid #d5d5d5; }
.card.dark  { background: var(--k); color: var(--w); }
.card.dark p  { flex: 1; color: #ccc; }
.card.dark h4 { color: var(--g); font-weight: 500; }

/* Photo box inside a card; the image zooms slowly on hover */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: .6rem;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, #222, #3a3a3a 60%, var(--g));
}
.ph.car {
  background: linear-gradient(135deg, var(--l), #d9d9d9 65%, var(--g));
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .ph img {
  transform: scale(1.06);
}

/* About photo: fills its column next to the text */
.about-photo {
  aspect-ratio: 4 / 3;
}

/* Check-mark list (About page "What we do") */
.ticks {
  display: grid;
  gap: .7rem;
  margin-top: .8rem;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 1.8rem;
  color: #ccc;
}
.ticks li::before {
  content: "";
  position: absolute;
  top: .45em;
  left: .1rem;
  width: .9rem;
  height: .5rem;
  border-bottom: 2px solid var(--gn2);
  border-left: 2px solid var(--gn2);
  transform: rotate(-45deg);
}

/* Spec lists on fleet cards */
dl { display: grid; gap: .1rem; flex: 1; font-size: .9rem; }
dt { margin-top: .5rem; font-weight: 700; }
dd { margin: 0; color: #444; }


/* 12. Home page photo blocks
   -------------------------------------------------------------------------- */

/* Vehicle categories */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 0 0 2rem;
}
.cat {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  color: var(--w);
  text-decoration: none;
  border-bottom: 4px solid var(--gn);
  border-radius: var(--r);
}
.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.cat:hover img,
.cat:focus-visible img {
  transform: scale(1.06);
}
.cat span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  font: 600 1.6rem "Cormorant Garamond", Georgia, serif;
}

/* Two-photo strip (large photo + small photo) */
.strip {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.4rem;
  height: clamp(240px, 44vw, 480px);
}
.band {
  position: relative;
  overflow: hidden;
  background: #111;
  border-bottom: 4px solid var(--gn);
  border-radius: var(--r);
}
.band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 13. Why us, filters, steps, quotes, call-to-action
   -------------------------------------------------------------------------- */
.why {
  padding-top: 1rem;
  border-top: 3px solid var(--gn);
}
.why p {
  margin-top: .4rem;
  color: #444;
}

.chips {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
}
.chips span,
.chips button {
  padding: .5rem 1.1rem;
  background: none;
  color: inherit;
  font: 600 .9rem Manrope, sans-serif;
  border: 1px solid var(--gn);
  border-radius: 99px;
}
.chips button    { cursor: pointer; }
.chips button.on { background: var(--gn); border-color: var(--gn); color: var(--w); }
.flt             { margin-bottom: 2rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  padding: 1.4rem;
  background: var(--w);
  border-top: 3px solid var(--gn);
  border-radius: var(--r);
}
.steps li::before {
  content: counter(s);
  display: block;
  color: var(--gn);
  font: 700 2.2rem "Cormorant Garamond", serif;
}
.steps b {
  display: block;
  margin-bottom: .3rem;
}

blockquote {
  padding: 2rem;
  background: var(--l);
  border-left: 4px solid var(--gn);
  border-radius: var(--r);
  font: 500 1.35rem/1.4 "Cormorant Garamond", serif;
}
cite {
  display: block;
  margin-top: 1rem;
  color: var(--m);
  font: 700 .9rem Manrope, sans-serif;
}

.cta {
  padding: 5rem 0;
  background:
    radial-gradient(60% 120% at 50% 120%, rgba(31, 184, 95, .3), transparent),
    var(--k);
  color: var(--w);
  text-align: center;
  border-top: 4px solid var(--gn);
}
.cta p    { color: #ccc; }
.cta .row { justify-content: center; }


/* 14. Destinations
   -------------------------------------------------------------------------- */
.dg { margin-bottom: 3rem; }

.dest {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 130px;
  padding: 1rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--k), #333);
  color: var(--w);
  font: 600 1.4rem "Cormorant Garamond", serif;
  text-decoration: none;
  border-bottom: 4px solid var(--g);
  border-radius: var(--r);
  transition: transform .2s;
}
.dest:hover { transform: translateY(-4px); }
.dest::after {            /* green underline that sweeps in on hover */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--gn2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.dest:hover::after { transform: scaleX(1); }


/* 15. Gallery & lightbox
   -------------------------------------------------------------------------- */
.mas {
  column-count: 3;
  column-gap: 1.4rem;
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1.4rem;
  padding: 0;
  overflow: hidden;
  background: #111;
  border: 0;
  border-radius: var(--r);
  break-inside: avoid;
  cursor: pointer;
}
.tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.05);
}
.tile span {              /* caption slides up on hover */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: var(--w);
  font: 600 1.3rem "Cormorant Garamond", Georgia, serif;
  text-align: left;
  translate: 0 100%;
  transition: translate .4s ease;
}
.tile:hover span,
.tile:focus-visible span {
  translate: none;
}
@media (hover: none) {
  .tile span { translate: none; }
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, .94);
  animation: fade .25s ease;
}
.lb[hidden] { display: none; }

.lb figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 0;
  color: var(--w);
}
.lb figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  border: 2px solid var(--g);
  border-radius: var(--r);
  animation: zoom .4s cubic-bezier(.2, .7, .2, 1);
}
.lb figcaption {
  font: 600 1.5rem "Cormorant Garamond", Georgia, serif;
}

.x {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: var(--w);
  font-size: 2.5rem;
  cursor: pointer;
}
.pv,
.nx {
  width: 48px;
  height: 48px;
  background: none;
  color: var(--g);
  font-size: 1.8rem;
  line-height: 1;
  border: 2px solid var(--g);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pv:hover,
.nx:hover {
  background: var(--g);
  color: var(--k);
}


/* 16. Contact aside
   -------------------------------------------------------------------------- */
aside {
  align-self: start;
  padding: 2rem;
  background: var(--k);
  color: var(--w);
  border-top: 4px solid var(--gn);
  border-radius: var(--r);
}
aside h3 { margin-bottom: .6rem; color: var(--g); }
aside p  { margin-bottom: 1.4rem; color: #ccc; }
aside a:not(.btn) { display: inline; color: var(--g); }


/* 17. Footer and floating WhatsApp button
   -------------------------------------------------------------------------- */
footer {
  padding: 4rem 0 1.5rem;
  background: linear-gradient(180deg, #000 0%, #04180c 45%, var(--gn3) 100%);
  color: #ccc;
  border-top: 4px solid var(--gn2);
}
footer p  { margin-top: .6rem; }
footer h4 { margin-bottom: .6rem; color: var(--g); }
footer a {
  display: block;
  margin: .25rem 0;
  font-size: .92rem;
  text-decoration: none;
}
footer a:hover { color: var(--g); }
footer p a {               /* links inside text, e.g. phone and email */
  display: inline;
  color: var(--g);
}

.fgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2rem;
}
footer .logo {
  margin-bottom: .8rem;
  padding: .4rem .8rem;
  background: var(--w);
  border-radius: var(--r);
}
footer .logo img {
  display: block;
  height: 70px;
  width: auto;
}

footer .btn.wabtn {
  margin: .9rem 0 0;
  padding: .7rem 1.3rem;
  font-size: .92rem;
}

/* Social media icons */
.socials {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}
footer a.sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  color: var(--g2);
  border: 2px solid var(--g2);
  border-radius: 50%;
  transition: background .2s, color .2s, transform .2s;
}
footer a.sbtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
footer a.sbtn:hover {
  background: var(--g);
  color: var(--k);
  transform: translateY(-2px);
}

.copy {
  margin-top: 3rem;
  padding-top: 1.2rem;
  font-size: .85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .2);
}


/* Floating WhatsApp button (fixed, bottom-right on every page) */
.wafab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;                /* above the page, below the gallery lightbox */
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--wa);
  color: var(--w);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: transform .2s, background .2s;
}
.wafab::before {            /* pulsing ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}
.wafab svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.wafab:hover {
  background: #4ae58a;
  transform: scale(1.08);
}


/* 18. Animations & scroll reveals
   -------------------------------------------------------------------------- */
@keyframes rise  { from { opacity: 0; transform: translateY(24px); } }
@keyframes drive { to { background-position: -60px 50%, 0 0; } }
@keyframes fade  { from { opacity: 0; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}
@keyframes zoom  { from { opacity: 0; transform: scale(.94); } }
@keyframes wipe  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes sl {           /* hero reel: fade in, hold, fade out while zooming */
  0%        { opacity: 0; transform: scale(1); }
  8%, 50%   { opacity: 1; }
  58%, 100% { opacity: 0; transform: scale(1.09); }
}

/* main.js tags elements with .rv (photos) or .fd (everything else), sets a
   stagger delay in --d, and adds .in when they scroll into view. The hidden
   state only applies when the "js" class is on <html>. */
.js .rv img {
  clip-path: inset(0 0 100% 0);
  scale: 1.18;
}
.js .rv.in img {
  clip-path: inset(0);
  scale: 1;
  transition:
    clip-path 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
    scale 1.5s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
    transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js .cat span {
  opacity: 0;
}
.js .cat.in span {
  opacity: 1;
  transition: opacity .6s ease calc(var(--d, 0s) + .45s);
}
.js .fd {
  opacity: 0;
  translate: 0 18px;
}
.js .fd.in {
  opacity: 1;
  translate: none;
  transition:
    opacity .7s ease var(--d, 0s),
    translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
    transform .2s;
}
.pop {                    /* fleet filter: matching cards pop back in */
  animation: rise .5s var(--d, 0s) ease both;
}


/* 19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .qb              { grid-template-columns: 1fr 1fr; }
  .split, .split.about, .fgrid { grid-template-columns: 1fr; }
  .heroin          { grid-template-columns: 1fr; }
  .reel            { margin-right: 14px; margin-bottom: 14px; }
  .cats            { grid-template-columns: repeat(2, 1fr); }
  .mas             { column-count: 2; }

  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 4%;
    background: var(--w);
    border-bottom: 4px solid var(--g);
  }
  .nav.open { display: flex; }

  .sb                          { width: 100%; margin: .2rem 0 .6rem; }
  .sb input, .sb input:focus   { width: 100%; font-size: 1rem; }
  .sres                        { left: 0; right: auto; width: 100%; }
}

@media (max-width: 600px) {
  .g2, .g3, .g4, .steps, .qb, .cf { grid-template-columns: 1fr; }

  .strip { grid-template-columns: 1fr; height: auto; }
  .band  { aspect-ratio: 4 / 3; }

  .lb {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-content: center;
  }
  .lb figure { grid-row: 1; }
  .pv, .nx   { position: absolute; bottom: 1.2rem; }
  .pv        { left: 1rem; }
  .nx        { right: 1rem; }
}

@media (max-width: 560px) {
  .wafab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  footer { padding-bottom: 5rem; }       /* keeps the copyright line clear of the button */
}

@media (max-width: 420px) {
  .mas { column-count: 1; }
}


/* 20. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
