/* ==========================================================================
   KhmerMoto — Motorbike Rental, Phnom Penh
   Palette inspired by Khmer textiles: deep temple maroon, monk-robe saffron,
   old-gold leaf, palm-sugar cream.
   ========================================================================== */
:root {
  --maroon: #0d2c52;        /* deep temple blue (was maroon) */
  --maroon-dark: #071a33;   /* midnight navy */
  --saffron: #2f9ddb;       /* royal sky blue accent (was saffron) */
  --gold: #5fb2f0;          /* bright blue for ornaments/marks (was gold) */
  --gold-light: #8fd0f7;    /* ice-blue highlight text (was gold-light) */
  --cream: #f2f7fc;         /* cool paper */
  --paper: #ffffff;
  --ink: #14293e;           /* blue-black ink */
  --ink-soft: #4f6479;      /* slate blue-gray */
  --green: #2e6b4f;
  --shadow: 0 18px 50px rgba(8, 26, 48, .14);
  --radius: 16px;
  --font-body: "Kantumruy Pro", "Outfit", system-ui, sans-serif;
  --font-display: "Outfit", "Kantumruy Pro", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Repeating khbach ornament (data-URI SVG) ---------- */
.kbach, .kbd {
  height: 26px;
  background-color: var(--maroon);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26' viewBox='0 0 48 26'%3E%3Cg fill='none' stroke='%239fd4f7' stroke-width='1.6'%3E%3Cpath d='M6 26C6 17 13 13 13 6a7 7 0 0 1 14 0c0-3 2-5 5-5s5 2 5 5a7 7 0 0 1 5 6c0 5-6 9-16 14z'/%3E%3Ccircle cx='13' cy='14' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--maroon-dark);
  color: var(--cream);
  font-size: .82rem;
  padding: 6px 0;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar__item a { color: var(--gold-light); margin-left: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 44, 82, .12);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(8, 26, 48, .12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 48px; width: auto; max-width: 260px; object-fit: contain; }
.brand--footer .brand__logo { height: 64px; }
.brand__mark { width: 42px; height: 42px; border-radius: 9px; box-shadow: 0 4px 12px rgba(13,44,82,.25); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--maroon); letter-spacing: .2px; }
.brand__text em { font-style: normal; font-size: .72rem; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; white-space: nowrap; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--maroon); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Buttons (Khmer gold aesthetic) ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  padding: 10px 22px; border-radius: 25px; font-size: .95rem;
  transition: transform .18s, box-shadow .18s, background .18s; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--full { width: 100%; text-align: center; }
.btn--gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #1a1a1a; border-color: #ffd700;
  box-shadow: 0 3px 10px rgba(212, 175, 55, .3);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212, 175, 55, .4); }
.btn--maroon {
  background: var(--maroon); color: var(--cream); border-color: rgba(212, 175, 55, .45);
  box-shadow: 0 3px 10px rgba(8, 26, 48, .25);
}
.btn--maroon:hover { box-shadow: 0 4px 15px rgba(212, 175, 55, .3); }
.btn--outline { border-color: #d4af37; color: #f2d492; background: transparent; }
.btn--outline:hover { background: rgba(212, 175, 55, .12); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; color: var(--cream); }
.hero__bg {
  position: absolute; inset: 0; overflow: hidden;
  background: #041224;                      /* fallback tint while video loads */
}
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
}
@keyframes videoBreath { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__video { animation: videoBreath 2.2s ease-out forwards; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(100deg, rgba(4, 18, 36, .5) 0%, rgba(8, 32, 60, .35) 45%, rgba(6, 20, 38, .2) 100%);
}
.hero__pattern {
  position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23bfdcff' stroke-width='1.1'%3E%3Cpath d='M28 6l6 10-6 10-6-10zM28 26l6 10-6 10-6-10z'/%3E%3Ccircle cx='28' cy='16' r='2'/%3E%3Ccircle cx='28' cy='36' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.hero__content { position: relative; z-index: 2; padding: 70px 0; max-width: 720px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.5px; }
.hero h1 .gold { color: var(--gold-light); }
.hero__sub { margin-top: 16px; font-size: 1.08rem; color: rgba(240, 247, 253, .9); max-width: 560px; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__stats {
  list-style: none; display: flex; gap: 34px; margin-top: 46px; padding-top: 22px;
  border-top: 1px solid rgba(143, 208, 247, .25); flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-light); }
.hero__stats span { font-size: .82rem; color: rgba(240, 247, 253, .75); }

/* ---------- Shared section bits ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head + * { margin-top: 4px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .75rem; font-weight: 700;
  color: var(--saffron); margin-bottom: 10px;
}
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--maroon); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Why us ---------- */
.why { background: var(--paper); }
.why__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.why__images { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.why__images figure { margin: 0; }
.why__images figure:nth-child(2) { margin-top: 44px; }
.why__images img { border-radius: var(--radius); height: 340px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.why__badge {
  position: absolute; bottom: -10px; left: -14px; background: var(--maroon); color: var(--cream);
  border-radius: 14px; padding: 16px 20px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow);
}
.why__badge-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold-light); }
.why__badge-txt { font-size: .78rem; line-height: 1.3; }
.why__text p { margin: 0 0 18px; }
.checklist { list-style: none; margin: 6px 0 26px; }
.checklist li { padding: 7px 0 7px 30px; position: relative; }
.checklist li::before {
  content: "✦"; position: absolute; left: 4px; top: 7px; color: var(--gold);
}
.checklist--gold li::before { content: "☸"; }

/* ---------- Fleet ---------- */
.fleet { background: linear-gradient(180deg, var(--cream), #eaf3fb 90%); }
.fleet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.bike-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(126, 190, 240, .25);
  display: flex; flex-direction: column; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.bike-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(8, 26, 48, .2); }
/* Promo banner: balanced 1fr 1fr grid — image column + text column, no dead space */
.bike-card--wide {
  grid-column: span 3;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; padding: 24px; align-items: center;
  border-color: rgba(212, 175, 55, .45);                       /* gold accent border */
  box-shadow: 0 18px 50px rgba(212, 175, 55, .14), var(--shadow); /* soft gold shadow */
}
.bike-card--wide .bike-card__img { width: 100%; height: 340px; border-radius: 12px; }
.bike-card--wide .bike-card__img img { height: 100%; }
/* Catalog posters: show the whole artwork, never crop it */
.bike-card__img { position: relative; background: #f2e8d8; }
.bike-card__img img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s; }
.bike-card:hover .bike-card__img img { transform: scale(1.05); }
.bike-card__img--contain { background: #fff; display: flex; align-items: center; justify-content: center; }
.bike-card__img--contain img { height: 250px; object-fit: contain; padding: 14px 16px; }
.bike-card--featured .bike-card__img--contain img { height: 330px; }
.bike-card--wide .bike-card__body { padding: 0; gap: 14px; justify-content: center; }
.bike-card--wide .bike-card__desc { font-size: .95rem; line-height: 1.55; }
.bike-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bike-card__body h3 { color: var(--maroon); font-size: 1.15rem; }
.bike-card__desc { font-size: .9rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span {
  font-size: .72rem; font-weight: 600; color: #5a181a;
  background: #fff8e7; border: 1px solid #d4af37;
  padding: 3px 10px; border-radius: 999px;
}
.bike-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon); display: flex; align-items: baseline; gap: 4px; }
.price span { font-size: .78rem; color: var(--ink-soft); font-weight: 500; }
.flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--saffron); color: #07203c; font-size: .74rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.flag--green { background: var(--green); color: #eafff4; }

/* Inline Kbach divider: gold line with a centered ornament (used in cards) */
.kbach-line {
  display: flex; align-items: center; gap: 10px;
  color: #d4af37; font-size: .78rem;
}
.kbach-line::before, .kbach-line::after {
  content: ""; flex: 1; height: 1px;
}
.kbach-line::before { background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .85)); }
.kbach-line::after  { background: linear-gradient(90deg, rgba(212, 175, 55, .85), transparent); }

/* ---------- Pricing ---------- */
.pricing { background: var(--maroon); color: var(--cream); }
.pricing .h2 { color: var(--gold-light); }
.pricing .section-head p:last-child { color: rgba(240,247,253,.75); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.price-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(143, 208, 247, .3);
  border-radius: var(--radius); padding: 30px 26px; position: relative;
}
.price-card h3 { font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); }
.price-card__num { font-family: var(--font-display); font-size: 2.9rem; font-weight: 800; margin: 10px 0 14px; }
.price-card__num span { font-size: 1.2rem; color: var(--gold-light); }
.price-card ul { list-style: none; }
.price-card li { padding: 6px 0; color: rgba(240,247,253,.88); font-size: .93rem; }
.price-card__tag { font-size: .87rem; color: rgba(240, 247, 253, .78); margin: 2px 0 10px; min-height: 44px; }
.price-card--gold .price-card__tag { color: rgba(240, 247, 253, .92); }
.price-card--gold {
  background: linear-gradient(160deg, var(--gold) 0%, var(--saffron) 100%);
  color: #f4faff; transform: scale(1.04); box-shadow: 0 24px 60px rgba(3, 14, 28, .4);
}
.price-card--gold h3, .price-card--gold .price-card__num { color: #ffffff; }
.price-card--gold .price-card__num span { color: rgba(255, 255, 255, .8); }
.price-card--gold li { color: rgba(240, 247, 253, .95); }
.pricing__note { text-align: center; margin-top: 34px; color: rgba(240,247,253,.85); font-size: .95rem; }

/* ---------- Rides ---------- */
.rides { background: var(--paper); }
.rides__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ride-card {
  border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow);
  background: var(--cream); transition: transform .25s;
}
.ride-card:hover { transform: translateY(-6px); }
.ride-card img { height: 220px; width: 100%; object-fit: cover; }
.ride-card__body { padding: 22px 24px 26px; }
.ride-card__tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--saffron); border: 1px solid rgba(126,190,240,.5);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.ride-card h3 { color: var(--maroon); margin-bottom: 8px; }
.ride-card p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Culture showcase (cinematic split-screen) ---------- */
.culture { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.culture__split {
  display: grid; grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: minmax(250px, auto);
  gap: 28px 32px;
  margin-bottom: 48px;
}
.culture__cell {
  margin: 0; position: relative; overflow: hidden; border-radius: 12px;
  box-shadow: var(--shadow); border: 1px solid rgba(126, 190, 240, .35);
}
.culture__cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s;
}
.culture__cell:hover img { transform: scale(1.04); filter: saturate(1.08) brightness(1.04); }
.culture__cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 30px 20px 14px; font-size: .85rem; font-weight: 600; color: #eaf5ff;
  background: linear-gradient(180deg, transparent, rgba(5, 20, 38, .82));
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s;
}
.culture__cell:hover figcaption, .culture__cell:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.culture__cell--feature { grid-row: span 2; }
.culture__band { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.culture__band p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 22px; }
.culture__etiquette {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 16px; padding: 0;
}
.culture__etiquette li {
  background: var(--paper); border: 1px solid rgba(126, 190, 240, .45);
  border-radius: 999px; padding: 9px 18px; font-size: .88rem; color: var(--ink);
  box-shadow: 0 6px 16px rgba(8, 26, 48, .08);
}
.culture__cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
}
.landmark-card {
  background: var(--paper); border: 1px solid rgba(126, 190, 240, .4);
  border-radius: 12px; padding: 26px 22px; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.landmark-card:hover {
  transform: translateY(-8px); border-color: rgba(56, 168, 235, .6);
  box-shadow: 0 22px 46px rgba(8, 26, 48, .16);
}
.landmark-card__glyph {
  font-size: 2rem; display: inline-flex; width: 62px; height: 62px; align-items: center;
  justify-content: center; margin: 0 auto; border-radius: 50%;
  background: rgba(126, 190, 240, .16); border: 1px solid rgba(126, 190, 240, .45);
  transition: transform .35s, background .35s;
}
.landmark-card:hover .landmark-card__glyph { transform: scale(1.12) rotate(-4deg); background: rgba(56, 168, 235, .2); }
.landmark-card h3 { color: var(--maroon); font-size: 1.05rem; }
.landmark-card p { font-size: .87rem; color: var(--ink-soft); flex: 1; }
.landmark-card a { font-size: .82rem; font-weight: 700; color: var(--saffron); }
.landmark-card a:hover { text-decoration: underline; }

/* ---------- Phnom Penh visiting places ---------- */
.dest { background: var(--paper); }
.dest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.dest__card {
  background: var(--cream); border: 1px solid rgba(126, 190, 240, .35);
  border-radius: 12px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.dest__card:hover {
  transform: translateY(-8px); border-color: rgba(56, 168, 235, .6);
  box-shadow: 0 22px 46px rgba(8, 26, 48, .16);
}
.dest__head { display: flex; align-items: center; gap: 12px; }
.dest__glyph {
  flex: 0 0 auto; font-size: 1.4rem; display: inline-flex; width: 46px; height: 46px;
  align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(126, 190, 240, .16); border: 1px solid rgba(126, 190, 240, .45);
  transition: transform .35s, background .35s;
}
.dest__card:hover .dest__glyph { transform: scale(1.12) rotate(-4deg); background: rgba(56, 168, 235, .2); }
.dest__card h3 { color: var(--maroon); font-size: 1.02rem; }
.dest__card > p { font-size: .88rem; color: var(--ink-soft); flex: 1; }
.dest__tip {
  font-size: .82rem; line-height: 1.5; color: var(--ink);
  background: rgba(126, 190, 240, .14); border: 1px dashed rgba(126, 190, 240, .55);
  border-radius: 10px; padding: 10px 12px;
}
.dest__tip b { color: var(--saffron); }
.dest__map { font-size: .82rem; font-weight: 700; color: var(--saffron); }
.dest__map:hover { text-decoration: underline; }

/* Auto-cycling photo slider inside each destination card (lightboxed on click) */
.dest__slider { margin: 0 0 2px; height: 190px; overflow: hidden; }
.dest__slider img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s ease, transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s;
}
.dest__slider img.slide-fade { opacity: 0; }
.dest__card:hover .dest__slider img { transform: scale(1.05); }

/* ---------- Visit our garage / Google Maps ---------- */
.location { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.location__grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 28px 32px; align-items: center;
}
.location__map {
  position: relative; overflow: hidden; border-radius: 12px;
  box-shadow: var(--shadow); border: 1px solid rgba(126, 190, 240, .4);
  background: #0a1c33; aspect-ratio: 4 / 3;
}
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location__label {
  text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; font-weight: 700;
  color: var(--saffron); margin-bottom: 8px;
}
.location__info h3 { color: var(--maroon); font-size: 1.45rem; margin-bottom: 10px; }
.location__addr { color: var(--ink-soft); font-size: .98rem; }
.location__list { list-style: none; margin-top: 12px; }
.location__list li {
  padding: 10px 0; border-bottom: 1px dashed rgba(126, 190, 240, .45);
  font-size: .95rem;
}
.location__cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.gallery__grid figure {
  overflow: hidden; border-radius: 12px; position: relative; box-shadow: var(--shadow);
}
.gallery__grid img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s, filter .5s; filter: saturate(.92); }
.gallery__grid figure:hover img { transform: scale(1.07); filter: saturate(1.1); }
.gallery__grid figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(143, 208, 247, .5); border-radius: var(--radius);
}

/* ---------- Asset photo carousel (auto-cycling ticker) ---------- */
.carousel-section { background: var(--paper); padding-bottom: 70px; }
.carousel {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.carousel__track {
  display: flex; gap: 16px; width: max-content;
  animation: carouselScroll 55s linear infinite;
  will-change: transform;
}
.carousel:hover .carousel__track,
.carousel:focus-within .carousel__track { animation-play-state: paused; }
.carousel__group { display: flex; gap: 16px; }
.carousel__item {
  flex: 0 0 auto; height: 240px; margin: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; position: relative;
  background: var(--paper); border: 1px solid rgba(126, 190, 240, .35);
  box-shadow: var(--shadow);
  transition: border-color .3s, box-shadow .3s;
}
.carousel__item:hover {
  border-color: rgba(56, 168, 235, .65);
  box-shadow: 0 18px 40px rgba(8, 26, 48, .2);
}
.carousel__item img { height: 100%; width: auto; display: block; }
@keyframes carouselScroll { to { transform: translateX(calc(-50% - 8px)); } }

/* Khmer-gold manual navigation buttons (shared by both carousels) */
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 600 1.35rem/1 var(--font-display);
  color: #1a1a1a; cursor: pointer; z-index: 2;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border: 1.5px solid #ffd700;
  box-shadow: 0 8px 22px rgba(8, 26, 48, .28);
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.carousel__btn:hover {
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, .45);
  filter: brightness(1.08);
}
.carousel__btn:active { transform: translateY(-50%); }
.carousel__btn--prev { left: 18px; }
.carousel__btn--next { right: 18px; }

/* Culture carousel section — Khmer-gold headers */
.carousel-section--culture { background: var(--cream); padding-bottom: 84px; }
.carousel-section--culture .eyebrow { color: #b8860b; }
.h2-gold { color: #d4af37; }

/* ---------- Quotes ---------- */
.quotes { background: var(--maroon-dark); color: var(--cream); }
.quotes .h2 { color: var(--gold-light); }
.quotes .eyebrow { color: var(--saffron); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.quote {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(143, 208, 247, .22);
  border-radius: var(--radius); padding: 26px; position: relative;
}
.quote::before {
  content: "“"; font-family: var(--font-display); font-size: 3.4rem; color: var(--gold);
  position: absolute; top: 4px; left: 16px; opacity: .5;
}
.quote p { font-size: .95rem; margin-top: 26px; color: rgba(240,247,253,.92); }
.quote footer { margin-top: 16px; font-size: .82rem; color: var(--gold-light); font-weight: 600; }

/* ---------- Booking ---------- */
.book { background: linear-gradient(180deg, var(--cream), #f3e3c8); }
.book__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.book__info p { margin-bottom: 18px; }
.contact-list { list-style: none; margin-top: 20px; }
.contact-list li { padding: 10px 0; border-bottom: 1px dashed rgba(126,190,240,.45); font-size: .95rem; }
.book__form {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 38px; border: 1px solid rgba(126,190,240,.3); margin-top: 14px;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--maroon); letter-spacing: .4px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid rgba(13, 44, 82, .2);
  border-radius: 10px; background: #fff; outline: none; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(126, 190, 240, .2);
}
.form-status { margin-top: 14px; font-size: .9rem; color: var(--green); font-weight: 600; }
.form-status.error { color: var(--maroon); }

/* ---------- Footer ---------- */
.footer { background: var(--maroon-dark); color: #e2e8f0; }
.footer a { color: #e2e8f0; }
.footer a:hover { color: #ffd700; }
.footer .kbach { background-color: transparent; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 54px 0 30px;
}
.brand--footer .brand__text strong { color: var(--gold-light); }
.brand--footer .brand__text em { color: #e2e8f0; }
.footer__tag { margin-top: 14px; font-size: .92rem; max-width: 300px; }
.footer h4 { color: var(--gold-light); margin-bottom: 14px; font-size: 1rem; }
.footer__nav { display: flex; flex-direction: column; gap: 9px; }
.footer__nav a, .footer p { color: #e2e8f0; font-size: .92rem; }
.footer__nav a:hover { color: #ffd700; }
.footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 28px; border-top: 1px solid rgba(212, 175, 55, .25); font-size: .8rem;
  color: #e2e8f0;
}
.credits-link { background: none; border: 0; color: var(--gold-light); cursor: pointer; font-size: .8rem; text-decoration: underline; }
dialog {
  margin: auto; border: 0; border-radius: var(--radius); padding: 30px; max-width: 560px;
  background: var(--paper); color: var(--ink);
}
dialog::backdrop { background: rgba(6, 18, 34, .6); backdrop-filter: blur(3px); }
dialog h3 { color: var(--maroon); margin-bottom: 14px; }
.credits { list-style: none; max-height: 46vh; overflow: auto; margin-bottom: 18px; }
.credits li { padding: 5px 0; font-size: .85rem; border-bottom: 1px dashed rgba(126,190,240,.4); }

/* ---------- Brand sizing (long official name) ---------- */
.brand__text strong { font-size: 1.02rem; letter-spacing: .2px; }
.brand--footer .brand__text strong { font-size: 1.1rem; }
.footer__social { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.footer__social a {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-size: .92rem; margin: 0; color: #ffffff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(212, 175, 55, .4);
  padding: 9px 16px; border-radius: 999px; transition: background .2s, transform .2s, color .2s, border-color .2s;
}
.footer__social a:hover { background: rgba(212, 175, 55, .18); border-color: rgba(212, 175, 55, .8); color: #ffd700; transform: translateX(3px); }

/* ---------- Floating action buttons ---------- */
.fabs { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: 0 12px 30px rgba(6, 18, 34, .3); transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 36px rgba(6, 18, 34, .4); }
.fab--fb { background: #1877f2; color: #fff; }
.fab--tg { background: #2aabee; color: #fff; }

@media (max-width: 720px) {
  .fabs { right: 14px; bottom: 14px; }
  .fab { width: 48px; height: 48px; font-size: 1.25rem; }
}

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 30px; bottom: 148px; width: 46px; height: 46px;
  border-radius: 50%; border: 0; cursor: pointer; z-index: 60;
  background: var(--maroon); color: var(--gold-light); font-size: 1rem;
  box-shadow: 0 10px 30px rgba(8,26,48,.35); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
@media (max-width: 720px) {
  .to-top { right: 16px; bottom: 138px; }
}

/* ---------- Responsive video players (assets/videos) ---------- */
.video-frame {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(126, 190, 240, .3);
  background: #0a1c33; margin: 30px auto 34px;
}
.video-frame video, .video-frame iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0; display: block;
}
.video-caption {
  text-align: center; color: var(--ink-soft); font-size: .92rem;
  margin: -18px auto 0; max-width: 640px;
}
.video-caption kbd { font-family: var(--font-body); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .fleet__grid, .rides__grid, .quotes__grid, .pricing__grid { grid-template-columns: 1fr 1fr; }
  .dest__grid { grid-template-columns: 1fr 1fr; }
  .location__grid { grid-template-columns: 1fr; gap: 40px; }
  .location__map { aspect-ratio: 16 / 10; }
  .bike-card--wide { grid-column: span 2; }
  .bike-card--wide .bike-card__img { height: 300px; }
  .why__grid, .book__grid { grid-template-columns: 1fr; gap: 44px; }
  .culture__split { grid-template-columns: 1fr; grid-auto-rows: minmax(260px, auto); }
  .culture__cell--feature { grid-row: auto; }
  .culture__cards { grid-template-columns: 1fr 1fr; }
  .why__images { order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__content { padding: 56px 0; }
}
@media (max-width: 720px) {
  .topbar { padding: 8px 0; }
  .topbar__inner { justify-content: center; }
  .topbar__item:first-child { display: none; }
  .topbar__item--right a { margin-left: 0; margin-right: 14px; }

  .section { padding: 62px 0; }
  .section-head { margin-bottom: 38px; }
  .header__inner { padding: 8px 0; }
  .brand__logo { height: 40px; max-width: 190px; }

  /* slide-in nav */
  .nav {
    position: fixed; top: 0; right: -300px; width: min(78vw, 280px); height: 100vh; height: 100dvh;
    background: var(--maroon-dark); flex-direction: column; align-items: flex-start;
    padding: 90px 30px 30px; gap: 24px; transition: right .3s ease; z-index: 55;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
  }
  .nav.open { right: 0; }
  .nav a { color: var(--cream); font-size: 1.08rem; padding: 4px 0; }
  .nav a.btn { margin-top: 8px; margin-bottom: 40px; }
  .nav-toggle { display: block; z-index: 60; padding: 12px; margin-right: -12px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-toggle.open { position: fixed; right: calc(min(78vw, 280px) - 78px); }
  .nav-toggle.open span { background: var(--gold-light); }
  body.nav-locked { overflow: hidden; }

  /* hero */
  .hero { min-height: 88vh; min-height: 88svh; align-items: flex-end; }
  .hero__content { padding: 64px 0 46px; max-width: 100%; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { flex: 1 1 auto; text-align: center; }
  .hero__stats { gap: 22px 30px; margin-top: 34px; }
  .hero__stats strong { font-size: 1.4rem; }

  /* grids go single-column */
  .why, .quotes { padding-bottom: 54px; }
  .why__grid, .book__grid { gap: 40px; }
  .why__images { gap: 20px; }
  .why__images img { height: 300px; }
  .why__badge { padding: 12px 16px; }
  .why__badge-num { font-size: 1.5rem; }

  .fleet__grid, .rides__grid, .quotes__grid, .pricing__grid, .gallery__grid { grid-template-columns: 1fr; gap: 26px; }
  .ride-card img { height: clamp(170px, 52vw, 220px); }
  .gallery__grid img { height: clamp(190px, 55vw, 230px); }
  .carousel__item { height: clamp(140px, 44vw, 170px); -webkit-tap-highlight-color: transparent; }
  .carousel__item img { object-position: center; }
  .carousel__btn { width: 40px; height: 40px; font-size: 1.1rem; }
  .carousel__btn--prev { left: 10px; }
  .carousel__btn--next { right: 10px; }
  .pricing__grid { gap: 24px; }
  .price-card--gold { transform: none; }
  .bike-card--featured { grid-row: span 1; }
  .bike-card--wide { grid-column: span 1; grid-template-columns: 1fr; padding: 20px; }
  .bike-card--wide .bike-card__img { width: 100%; height: auto; }
  .bike-card--wide .bike-card__img--contain img { height: auto; max-height: 300px; }
  .video-frame { margin: 24px auto 26px; }
  .video-caption { margin-top: 2px; }

  .culture__split { gap: 22px 24px; grid-auto-rows: minmax(230px, auto); }
  .culture__cards { grid-template-columns: 1fr; gap: 22px 24px; }
  .landmark-card { padding: 22px 18px; }
  .culture__etiquette li { font-size: .82rem; padding: 8px 14px; }
  .dest__grid { grid-template-columns: 1fr; gap: 22px 24px; }
  .dest__card { padding: 22px 18px; }
  .dest__slider { height: clamp(170px, 52vw, 210px); }
  .dest__map, .landmark-card a { display: inline-block; padding: 8px 0; }
  .location__list li { padding: 9px 0; }
  .location__grid { gap: 26px; }
  .location__map { aspect-ratio: 4 / 3; }
  .location__info h3 { font-size: 1.25rem; }

  /* booking form */
  .book__form { padding: 24px 20px; margin-top: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .btn { padding: 12px 24px; }

  /* footer */
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 26px; }
  .footer__nav { gap: 12px; }
  .footer__legal { flex-direction: column; text-align: center; }

  /* floating buttons */
  .fabs { right: 14px; bottom: 14px; }
  .fab { width: 50px; height: 50px; font-size: 1.3rem; }
  .to-top { right: 16px; bottom: 132px; }
}
@media (max-width: 420px) {
  .container { width: 90%; }
  .hero h1 { font-size: 2rem; }
  .hero__stats { gap: 16px 22px; }
  .hero__stats li { gap: 0; }
  .why__images { grid-template-columns: 1fr; }
  .why__images figure:nth-child(2) { margin-top: 0; }
  .why__images img { height: 250px; }
  .gallery__grid img { height: 200px; }
  .carousel__item { height: 148px; }
  .dest__slider { height: clamp(150px, 56vw, 175px); }
  .ride-card img { height: clamp(150px, 56vw, 185px); }
  .bike-card--wide .bike-card__img--contain img { max-height: 250px; }
  .price-card__tag { min-height: 0; }
}
/* very short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__content { padding: 40px 0; }
}

/* ==========================================================================
   ANIMATIONS & INTERACTIONS
   ========================================================================== */

/* ---- Hero entrance (on load, no JS needed) ---- */
.hero h1, .hero__sub, .hero__cta, .hero__stats {
  opacity: 0; animation: heroIn .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero h1     { animation-delay: .15s; }
.hero__sub   { animation-delay: .30s; }
.hero__cta   { animation-delay: .45s; }
.hero__stats { animation-delay: .60s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll reveal variants (JS adds .visible; CSS picks the motion) ---- */
.reveal { transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); will-change: opacity, transform; }
.reveal[data-reveal="left"]  { transform: translateX(-46px); }
.reveal[data-reveal="right"] { transform: translateX(46px); }
.reveal[data-reveal="zoom"]  { transform: scale(.88); }
.reveal[data-reveal="up"], .reveal:not([data-reveal]) { transform: translateY(26px); }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Interactive images: blue corner frame + shine sweep ---- */
.img-hover { position: relative; overflow: hidden; cursor: zoom-in; border-radius: 12px; }
.img-hover img { transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s; }
.img-hover::before, .img-hover::after {
  content: ""; position: absolute; width: 34px; height: 34px; z-index: 3;
  border: 3px solid rgba(143, 208, 247, .95); opacity: 0; transition: opacity .35s, transform .35s;
  pointer-events: none;
}
.img-hover::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; transform: translate(8px, 8px); }
.img-hover::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; transform: translate(-8px, -8px); }
.img-hover:hover::before, .img-hover:hover::after,
.img-hover:focus-visible::before, .img-hover:focus-visible::after { opacity: 1; transform: translate(0, 0); }
.img-hover .shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%);
  transform: translateX(-110%); transition: transform .8s ease;
}
.img-hover:hover .shine { transform: translateX(110%); }
.img-hover:hover img, .img-hover:focus-visible img { transform: scale(1.06); filter: saturate(1.08) brightness(1.04); }

/* ---- Gallery: full natural proportion + caption reveal ---- */
.gallery__grid figure { cursor: zoom-in; }
.gallery__grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 26px 18px 14px; font-size: .85rem; font-weight: 600; color: #eaf5ff;
  background: linear-gradient(180deg, transparent, rgba(5, 20, 38, .82));
  opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s;
}
.gallery__grid figure:hover figcaption, .gallery__grid figure:focus-visible figcaption { opacity: 1; transform: translateY(0); }

/* ---- Bike cards: glossy tilt + blue glow frame ---- */
.bike-card { transform-style: preserve-3d; will-change: transform; }
.bike-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  border: 2px solid rgba(143, 208, 247, .0); transition: border-color .35s, box-shadow .35s;
}
.bike-card:hover { border-color: rgba(56, 168, 235, .55); box-shadow: 0 26px 60px rgba(8, 26, 48, .18), 0 0 0 4px rgba(56, 168, 235, .10); }
.bike-card:hover::after { border-color: rgba(143, 208, 247, .55); }
.bike-card .gloss {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 40%);
  border-radius: inherit;
}
.bike-card:hover .gloss { opacity: 1; }

/* ---- Buttons: shine sweep + press ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(.97); }

/* ---- Price cards: blue glow lift ---- */
.price-card { transition: transform .35s, box-shadow .35s, border-color .35s; }
.price-card:hover { transform: translateY(-8px); border-color: rgba(143, 208, 247, .75); box-shadow: 0 24px 50px rgba(8, 26, 48, .3); }
.price-card--gold:hover { box-shadow: 0 30px 70px rgba(3, 14, 28, .45); }

/* ---- Ride cards + video ---- */
.ride-card { transition: transform .35s, box-shadow .35s; }
.ride-card:hover { box-shadow: 0 26px 60px rgba(8, 26, 48, .2); }
.ride-card img { transition: transform .5s; }
.ride-card:hover img { transform: scale(1.05); }
/* Service card images are lightbox triggers: pointer cursor + zoom-on-hover cue */
.ride-card__media { margin: 0; border-radius: 0; cursor: pointer; }
.ride-card__media:hover img { transform: scale(1.07); }
.video-frame { transition: transform .4s, box-shadow .4s; }
.video-frame:hover { box-shadow: 0 26px 60px rgba(8, 26, 48, .26), 0 0 0 4px rgba(56, 168, 235, .12); }

/* ---- Kbach divider: gentle drift ---- */
.kbach { animation: kbachDrift 12s linear infinite; background-size: 48px 26px; }
@keyframes kbachDrift { from { background-position-x: 0; } to { background-position-x: 48px; } }

/* ---- Quote hover ---- */
.quote { transition: transform .35s, border-color .35s; }
.quote:hover { transform: translateY(-6px); border-color: rgba(143, 208, 247, .5); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 16, 32, .88); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s; padding: 4vmin;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 88vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  transform: scale(.86); transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.lightbox.open img { transform: scale(1); }
.lightbox figcaption {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #cfe9ff; font-size: .9rem; text-align: center; max-width: 80vw;
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(143, 208, 247, .5); background: rgba(8, 32, 60, .6); color: #cfe9ff;
  font-size: 1.05rem; cursor: pointer; transition: transform .2s, background .2s;
}
.lightbox__close:hover { transform: rotate(90deg); background: rgba(14, 44, 82, .8); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(143, 208, 247, .5); background: rgba(8, 32, 60, .6); color: #cfe9ff;
  font-size: 1.1rem; cursor: pointer; transition: background .2s, transform .2s;
}
.lightbox__nav:hover { background: rgba(14, 44, 82, .8); transform: translateY(-50%) scale(1.08); }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

/* ---- Accessibility: honour reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1, .hero__sub, .hero__cta, .hero__stats { opacity: 1; animation: none; }
  .carousel__track { animation: none; }
}
