/* ============================================================
   RR Tours and Travels — Landing page styles
   Palette: deep navy + amber, cream light sections
   ============================================================ */

:root {
  --navy-900: #081522;
  --navy-800: #0b1f33;
  --navy-700: #123049;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --cream-50: #faf7f2;
  --cream-100: #f4efe6;
  --ink-900: #101826;
  --ink-600: #46566b;
  --white: #ffffff;
  --wa-green: #25d366;
  --wa-green-dark: #1da851;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 10px 30px rgba(8, 21, 34, .08);
  --shadow-card-hover: 0 18px 44px rgba(8, 21, 34, .14);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: linear-gradient(180deg, #081522 0%, #0b1f33 40%, #0d2440 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; }

.accent { color: var(--amber-500); }

/* ---------- 3D canvas backdrop ---------- */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

body > header, body > main, body > footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(245, 158, 11, .35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(245, 158, 11, .45); }
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .35);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-lg { font-size: 1.05rem; padding: 1rem 2rem; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled {
  background: rgba(8, 21, 34, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); }
.brand-mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-300));
  border-radius: 10px;
  padding: .45rem .6rem;
}
.brand-mark.small { font-size: .85rem; padding: .35rem .45rem; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; }
.brand-text small { font-size: .72rem; color: rgba(255, 255, 255, .65); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  font-size: .93rem;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber-400); }
.nav-cta { margin-left: .5rem; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .35rem;
  background: #081522;
  padding: 1rem 5vw 1.4rem;
}
.mobile-menu a { color: rgba(255, 255, 255, .85); padding: .55rem .25rem; font-weight: 500; }
.mobile-menu .btn { margin-top: .5rem; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  /* Transparent so the 3D scene behind shows through; body gradient carries the color */
  background: transparent;
  overflow: hidden;
}
.hero-inner {
  padding: calc(var(--nav-h) + 3rem) 0 6rem;
  max-width: 640px;
  margin-right: auto;
}
.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .78);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.4rem; }
.badge {
  font-size: .82rem;
  font-weight: 600;
  color: var(--amber-300);
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 999px;
  padding: .45rem .95rem;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .55);
  animation: cue-bob 2.2s ease-in-out infinite;
}
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Stats ---------- */
.stats {
  color: var(--white);
  padding: 4rem 0 4.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--amber-400);
}
.stat-label { display: block; margin-top: .35rem; font-size: .92rem; color: rgba(255, 255, 255, .65); }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
.section-head p { margin-top: .9rem; color: var(--ink-600); }
.dark { background: var(--navy-800); color: var(--white); }
.dark .section-head p { color: rgba(255, 255, 255, .65); }
.light { background: var(--cream-100); }
/* Opaque sections hide the fixed 3D canvas behind them */
.services, .why-us { background: var(--cream-50); }
.stats { background: linear-gradient(180deg, #0d2440, var(--navy-800)); }

/* ---------- Services cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.card-icon { font-size: 2.1rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.card p { font-size: .95rem; color: var(--ink-600); margin-bottom: 1.1rem; }
.card-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--amber-500);
}
.card-link:hover { color: var(--amber-400); }

/* ---------- Fleet (3D stage section) ---------- */
.fleet {
  /* Transparent: the fixed 3D canvas behind provides the vehicle visuals */
  background: transparent;
  overflow: hidden;
}
.fleet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}
.fleet-copy { max-width: 520px; }
.fleet-list { display: flex; flex-direction: column; gap: 1.15rem; margin: 2.2rem 0 2.4rem; }
.fleet-item {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.fleet-item:hover { border-color: rgba(245, 158, 11, .5); transform: translateX(6px); }
.fleet-item h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.fleet-item small { color: rgba(255, 255, 255, .55); font-weight: 500; }
.fleet-item p { font-size: .92rem; color: rgba(255, 255, 255, .68); margin-top: .35rem; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot-car { background: var(--amber-400); box-shadow: 0 0 12px var(--amber-400); }
.dot-bus { background: #4ade80; box-shadow: 0 0 12px #4ade80; }
.fleet-stage { position: relative; min-height: 420px; }
.stage-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .18), transparent 70%);
  filter: blur(10px);
}
.scroll-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, .08);
  margin: 0 5vw;
  border-radius: 999px;
  overflow: hidden;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-500), #4ade80);
  transition: width .12s linear;
}
.scroll-hint {
  text-align: center;
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
  padding: 1.2rem 0 2.2rem;
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.why-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease;
}
.why-item:hover { transform: translateY(-6px); }
.why-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  color: var(--amber-500);
  letter-spacing: .08em;
}
.why-item h3 { font-size: 1.08rem; margin: .7rem 0 .5rem; }
.why-item p { font-size: .92rem; color: var(--ink-600); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease;
}
.review-card:hover { transform: translateY(-6px); }
.stars { color: var(--amber-500); letter-spacing: .12em; margin-bottom: .8rem; }
.review-card blockquote { font-size: .98rem; font-style: italic; color: var(--ink-900); }
.review-card figcaption { margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--ink-600); }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, #0a1c2f, var(--navy-900));
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.contact-main h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.contact-main > p { margin-top: 1rem; color: rgba(255, 255, 255, .72); max-width: 30rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.contact-facts { list-style: none; margin-top: 2.2rem; display: grid; gap: .55rem; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .6);
  padding: 3.2rem 0 2.4rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1rem; color: var(--white); }
.footer-brand strong { font-family: var(--font-head); }
.site-footer p { font-size: .92rem; }
.site-footer a { color: var(--amber-400); }
.site-footer .fineprint { margin-top: 1.2rem; font-size: .8rem; color: rgba(255, 255, 255, .35); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------- Reveal system ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-layout { grid-template-columns: 1fr; }
  .fleet-stage { min-height: 300px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 62px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 4.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .card-grid, .review-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 4rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-lg { padding: .95rem 1.4rem; }
  .scroll-cue { display: none; }

  /* 3D canvas: dim on phones for readability/perf */
  #bg3d { opacity: .35; }
}
