/* ============================================
   EzRideLV — Red Rock Canyon E-Bike Tours
   ============================================ */

:root {
  --canyon-red: #b13d27;
  --canyon-red-dark: #8e2f1c;
  --sandstone: #faf5ee;
  --sand-deep: #f0e6d8;
  --charcoal: #2b2420;
  --ink: #40352e;
  --gold: #d99a3d;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(43, 36, 32, 0.08);
  --shadow-md: 0 8px 28px rgba(43, 36, 32, 0.14);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sandstone);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--canyon-red); text-decoration: none; }
a:hover { color: var(--canyon-red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 600;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-alt { background: var(--sand-deep); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--canyon-red);
  margin-bottom: 12px;
}

.section h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }
.section .lede { font-size: 1.15rem; max-width: 720px; color: var(--ink); opacity: 0.92; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--canyon-red);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(177, 61, 39, 0.35);
}
.btn-primary:hover { background: var(--canyon-red-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--canyon-red);
  border: 2px solid var(--canyon-red);
}
.btn-outline:hover { background: var(--canyon-red); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(250, 245, 238, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}
.site-header.scrolled .brand, .site-header.solid .brand { color: var(--charcoal); }
.brand .brand-mark { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.site-header.scrolled .nav-links a, .site-header.solid .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.nav-cta {
  background: var(--canyon-red);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 999px;
}
.nav-links a.nav-cta:hover { background: var(--canyon-red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}
.site-header.scrolled .nav-toggle span, .site-header.solid .nav-toggle span { background: var(--charcoal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 20, 15, 0.55) 0%, rgba(30, 20, 15, 0.25) 45%, rgba(30, 20, 15, 0.6) 100%);
  z-index: -1;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 140px 24px 90px; width: 100%; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  max-width: 760px;
  margin-bottom: 22px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.4);
}
.hero .hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 52px;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-badge strong { font-size: 1.5rem; font-family: var(--font-display); color: var(--gold); }
.hero-badge span { font-size: 0.85rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: 170px 0 80px;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.55; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 20, 15, 0.5), rgba(30, 20, 15, 0.65));
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); max-width: 800px; }
.page-hero p { max-width: 680px; margin-top: 14px; font-size: 1.12rem; color: rgba(255,255,255,0.92); }

/* ---------- Feature / highlight cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 48px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--canyon-red), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: 0.98rem; opacity: 0.9; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 34px;
  margin-top: 40px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 1.02rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--canyon-red);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') center / 100% no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') center / 100% no-repeat;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 30px;
}
.split .split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.split h3 { font-size: 1.6rem; margin-bottom: 14px; }
.split p + p { margin-top: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid .tall img { height: 100%; }

.gallery-masonry {
  columns: 3 320px;
  column-gap: 18px;
  margin-top: 48px;
}
.gallery-masonry figure {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.gallery-masonry img { width: 100%; transition: transform 0.35s ease; }
.gallery-masonry figure:hover img { transform: scale(1.04); }
.gallery-masonry figcaption { padding: 12px 16px; font-size: 0.9rem; color: var(--ink); opacity: 0.85; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial .stars { color: var(--gold); letter-spacing: 3px; font-size: 1.1rem; }
.testimonial blockquote { font-size: 0.98rem; font-style: normal; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--canyon-red), var(--gold));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.testimonial .who strong { display: block; font-size: 0.98rem; color: var(--charcoal); }
.testimonial .who span { font-size: 0.83rem; opacity: 0.7; }

.rating-banner {
  margin-top: 56px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.rating-banner .big { font-family: var(--font-display); font-size: 2.2rem; color: var(--charcoal); font-weight: 700; }
.rating-banner p { opacity: 0.85; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 44px; max-width: 820px; }
.faq-list details {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 22px 56px 22px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--canyon-red);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 26px 24px; opacity: 0.92; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; margin-top: 48px; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 640px;
}
.compare th, .compare td { padding: 20px 22px; text-align: left; vertical-align: top; }
.compare thead th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.compare thead th:first-child { width: 22%; }
.compare tbody tr:nth-child(even) { background: var(--sandstone); }
.compare tbody th {
  font-weight: 700;
  color: var(--canyon-red);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.compare td { font-size: 0.96rem; }
.compare td.win { position: relative; }
.compare td.win::before { content: "★ "; color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 96px 0;
  color: var(--white);
  text-align: center;
  background: var(--charcoal);
  overflow: hidden;
}
.cta-band .hero-bg { opacity: 0.45; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,20,15,0.55), rgba(30,20,15,0.7));
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { max-width: 620px; margin: 0 auto 32px; font-size: 1.12rem; color: rgba(255,255,255,0.92); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 48px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 18px; font-size: 1.3rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; }
.contact-list .ci {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  background: var(--sand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--canyon-red);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 12px; }
.footer-brand .brand-mark { color: var(--gold); }
.site-footer .tagline { font-size: 0.95rem; opacity: 0.8; max-width: 300px; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s;
}
.social-row a:hover { background: var(--canyon-red); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  opacity: 0.7;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split .split-media img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .testimonial-grid, .gallery-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 34px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .site-header.scrolled .nav-links a, .site-header.solid .nav-links a { color: var(--white); font-size: 1.1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle { z-index: 110; }
}

/* ---------- Booking modal (Rezdy embed) ---------- */
body.modal-open { overflow: hidden; }
.booking-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.booking-modal.open { display: block; }
.bm-overlay { position: absolute; inset: 0; background: rgba(43, 36, 32, 0.62); backdrop-filter: blur(3px); }
.bm-dialog {
  position: relative;
  margin: 4vh auto;
  width: min(940px, calc(100% - 28px));
  height: 90vh;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: var(--charcoal);
  color: var(--white);
}
.bm-head h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--white); margin: 0; }
.bm-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}
.bm-close:hover { background: var(--canyon-red); }
.bm-frame { flex: 1; width: 100%; border: 0; background: var(--white); }
.bm-foot {
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--sandstone);
  border-top: 1px solid var(--sand-deep);
  text-align: center;
}
@media (max-width: 640px) {
  .bm-dialog { margin: 0; width: 100%; height: 100dvh; border-radius: 0; }
}

/* ---------- Contact form ---------- */
.contact-form-card { grid-column: 1 / -1; margin-top: 26px; padding: 42px 44px 44px; }
.contact-form-card .form-intro { margin: -8px 0 22px; font-size: 0.98rem; opacity: 0.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--sandstone);
  border: 1.5px solid transparent;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(43, 36, 32, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  font-family: var(--font-body);
  color: rgba(64, 53, 46, 0.5);
}
.form-grid input:hover,
.form-grid textarea:hover { background: #fdf9f2; }
.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--canyon-red);
  box-shadow: 0 0 0 4px rgba(177, 61, 39, 0.12);
}
.form-grid textarea { min-height: 180px; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.form-status { font-size: 0.95rem; }
.form-status.ok { color: #2e7d43; }
.form-status.err { color: var(--canyon-red); }
@media (max-width: 640px) {
  .contact-form-card { padding: 30px 24px 34px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
}
