/* ---------- Design tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-text: #1a1f2b;
  --color-muted: #5b6472;
  --color-accent: #997b49; /* brand gold */
  --color-accent-dark: #7d6439;
  --max-width: 1080px;
  --radius: 10px;
  --gap: 1.5rem;
  --font: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 96px; /* top bar 40 + nav bar 56 — kept in sync so the hero fills the rest of the viewport */
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.2;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--color-surface);
}

/* .section content is left-aligned, so don't auto-center the (shared) .lead paragraph
   (page-hero leads are .page-hero, not .section, so they stay centered) */
.section .lead {
  margin-left: 0;
}

/* Space stacked body paragraphs — the global reset zeroes <p> margins */
.section .container > p + p {
  margin-top: 1rem;
}

/* Service detail pages — uses the standard container width (.container) */
.service-page h2 {
  margin: 1.75rem 0 1rem;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Top utility bar — pure black */
.topbar {
  background: #000;
  color: #fff;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.topbar-contact:hover {
  text-decoration: none;
  opacity: 0.8;
}

.topbar-contact svg {
  width: 15px;
  height: 15px;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.topbar-social a {
  display: inline-flex;
  color: #fff;
  opacity: 0.85;
}

.topbar-social a:hover {
  opacity: 1;
}

.topbar-social svg {
  width: 16px;
  height: 16px;
}

/* Main nav bar — #23242a */
.navbar {
  position: relative;
  background: #23242a;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.navbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
}

.navbar-contact:hover {
  text-decoration: none;
  opacity: 0.8;
}

.navbar-contact svg {
  width: 17px;
  height: 17px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

.nav-menu a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

/* "Account" is a dead label — a trigger, not a link */
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.dropdown-toggle:hover {
  color: #fff;
}

.dropdown-toggle .caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 175px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #2c2e36;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 5;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
}

.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

/* ---------- Hero (video background) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: calc(100vh - var(--header-h)); /* header + hero fill exactly one viewport */
  min-height: 420px;
  overflow: hidden;
  background: #23242a;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 1.5rem;
  color: #fff;
}

.hero-eyebrow {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.hero-text {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Our Services ---------- */
/* Upper banner — full width, dark with a subtle geometric texture */
.services-banner {
  padding: 3.5rem 0 4rem;
  text-align: center;
  background-color: #23242a;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 42px);
}

/* Diamond photo: rotate the frame, counter-rotate the image so it stays upright */
.services-diamond {
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 3px solid #fff;
  transform: rotate(45deg);
}

.services-diamond-img {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg) scale(1.42);
  background-image: url('/assets/images/services-logo.webp');
  background-size: cover;
  background-position: center;
}

.services-title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.services-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--color-accent);
}

/* Lower grid — constrained inside .container */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 0;
  text-align: center;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.service-icon svg {
  width: 34px;
  height: 34px;
}

.service h3 {
  margin-bottom: 0.75rem;
}

.service p {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Match the smaller button dimensions used on the fleet page */
.service .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Reusable centered uppercase section heading with accent underline */
.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.85rem auto 2.5rem;
  background: var(--color-accent);
}

/* ---------- Our Fleet carousel ---------- */
.fleet-carousel {
  position: relative;
}

.fleet-viewport {
  overflow: hidden;
}

.fleet-track {
  display: flex;
  transition: transform 0.4s ease;
}

.fleet-card {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 1rem;
  text-align: center;
}

.fleet-photo {
  height: 130px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  /* Placeholder until real photos exist — swap for url('/assets/images/fleet/<name>.png') */
  background: linear-gradient(135deg, #eef1f5 0%, #dfe4ea 100%);
  background-size: cover;
  background-position: center;
}

.fleet-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

/* Match the smaller button dimensions used on the fleet page */
.fleet-card .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Keep the specs on their own centered row so the button drops below it */
.fleet-card .fleet-specs {
  display: flex;
  justify-content: center;
}

.fleet-specs {
  display: inline-flex;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.fleet-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fleet-specs svg {
  width: 16px;
  height: 16px;
}

.fleet-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1a1f2b;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.fleet-arrow:hover {
  background: #000;
}

.fleet-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.fleet-arrow svg {
  width: 20px;
  height: 20px;
}

.fleet-prev { left: -6px; }
.fleet-next { right: -6px; }

.fleet-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.fleet-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.2s ease;
}

.fleet-dot.is-active {
  background: var(--color-accent);
}

@media (max-width: 900px) {
  .fleet-card {
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (max-width: 560px) {
  .fleet-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .fleet-photo {
    height: 200px;
  }
}

/* ---------- Fleet page — stacked vehicle rows ---------- */
.fleet-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.fleet-item {
  display: grid;
  grid-template-columns: 3fr 2fr; /* image 60% / text 40% */
  gap: 2.5rem;
  align-items: center;
  height: 100%;
  scroll-margin-top: var(--header-h); /* sticky header offset when jumped to via #<vehicle-id> */
}

.fleet-item-media {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef1f5 0%, #dfe4ea 100%); /* shows while the image loads */
}

.fleet-item-body h2 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
}

.fleet-item-body > p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.fleet-item .fleet-specs {
  margin: 0 0 1.25rem;
}

/* Smaller, less shouty Book Now button on fleet rows */
.fleet-item .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  margin-left: 1.5rem;
  margin-top: -0.5rem;
}

@media (max-width: 720px) {
  .fleet-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fleet-item-media {
    height: 220px;
  }
}

.lead {
  color: var(--color-muted);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.cta-feedback {
  margin-top: 1rem;
  color: var(--color-accent-dark);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-dark {
  background: #1a1f2b;
  color: #fff;
  border-color: #1a1f2b;
}

.btn-dark:hover {
  background: #000;
  border-color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid #e6e9ef;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-muted);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 5.25rem 0;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f7fa 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  margin-bottom: 3rem;
}

/* ---------- Card extras (fleet) ---------- */
.card-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
  align-items: start;
}

/* "Ready to Book?" CTA panel (contact page) */
.booking-cta {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.booking-cta p {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.booking-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .booking-cta-actions {
    flex-direction: column;
  }

  .booking-cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  margin-bottom: 0.75rem;
}

.info-list .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

/* ---------- Book Your Reservation (image bg + embedded widget) ---------- */
.book-reservation {
  padding: 4rem 0 4.5rem;
  scroll-margin-top: var(--header-h); /* sticky header offset when jumped to via #book */
  text-align: center;
  background: #f8f8f8;
}

.book-reservation-title {
  margin-bottom: 2rem;
  color: var(--color-text); /* same as the fleet section title */
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.book-reservation-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--color-accent);
}

/* Reservations page: tint the content section to match the home booking section */
.page-reservations .section {
  background: #f8f8f8;
}

/* ---------- Reservation widget (MyLimoBiz) ---------- */
.reservation-widget {
  margin-top: 1.5rem;
}

/* Inside the Book Your Reservation banner the title already provides the gap */
.book-reservation .reservation-widget {
  margin-top: 0;
}

/* The loader replaces the link with an iframe.ores4iframe and
   auto-sizes its height; reserve space to avoid a layout jump. */
.reservation-widget .ores4iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #23242a;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

/* Heading with brand-gold accent bar (was blue in the reference) */
.footer-heading {
  position: relative;
  margin-bottom: 1.25rem;
  padding-left: 14px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.05em;
  background: var(--color-accent);
}

.footer-about {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: #fff;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #23242a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    padding: 0.5rem 0;
  }

  /* Account submenu sits inline in the mobile menu, toggled open by tap */
  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0.25rem 0 0 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    display: none;
  }

  .dropdown-menu.open {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .topbar-social-label {
    display: none;
  }

  .navbar-contact span {
    display: none;
  }
}
