/* ===== Variables – gray base + brand #081726 as accent ===== */
:root {
  --brand: #081726;
  --brand-accent: rgba(8, 23, 38, 0.15);
  --bg-dark: #0f0f0f;
  --bg-card: #18181b;
  --bg-elevated: #1f1f23;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: #27272a;
  --border-subtle: rgba(39, 39, 42, 0.8);
  --accent: #e4e4e7;
  --accent-soft: rgba(228, 228, 231, 0.08);
  --overlay-dark: rgba(15, 15, 15, 0.85);
  --overlay-hover: rgba(15, 15, 15, 0.5);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
  --transition: 380ms cubic-bezier(0.33, 1, 0.68, 1);
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Trust strip (RealCar-inspired: contact/trust visible) ===== */
.trust-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border-bottom: 2px solid var(--brand);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.trust-strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
@media (max-width: 600px) {
  .trust-strip {
    font-size: 0.625rem;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.125rem 2rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: var(--bg-dark);
  padding: 0.875rem 2rem;
  box-shadow: var(--shadow);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.site-logo__img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.site-logo__text { color: inherit; }
.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav a[aria-current="page"] { color: var(--text-primary); border-bottom: 1px solid var(--brand); }

/* Hamburger: hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.site-header.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-header {
    top: 1.5rem;
    padding: 0.75rem 1rem;
  }
  .site-header.scrolled { padding: 0.6rem 1rem; }
  .site-logo { font-size: 1rem; }
  .site-logo__img { height: 1.75rem; }
  .site-nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--brand);
    transition: max-height var(--transition);
  }
  .site-header.nav-open .site-nav-wrap {
    max-height: 20rem;
  }
  .site-nav {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .site-nav a[aria-current="page"] { border-bottom: none; border-left: 3px solid var(--brand); }
}

/* ===== Index – split screen ===== */
.index-page { min-height: 100vh; position: relative; }
.index-tagline {
  position: absolute;
  top: 5.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
  padding: 0 2rem;
  text-align: center;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.index-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.index-half {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.index-half::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  transition: background var(--transition);
}
.index-half:hover::before { background: var(--overlay-hover); }
.index-half::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}
/* Backgrounds set inline in index.html so paths resolve relative to the page */
.index-half > * { position: relative; z-index: 1; text-align: center; }
.index-half h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.index-half p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.index-half .cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: 2px solid var(--brand);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.index-half:hover .cta {
  background: var(--brand);
  border-color: var(--brand);
}
.index-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.12), transparent);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

/* Index – mobile stack ===== */
@media (max-width: 768px) {
  .index-tagline { top: 3.5rem; font-size: 0.8rem; padding: 0 1rem; }
  .index-page main { min-height: 100vh; margin: 0; }
  .index-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    padding-top: 5.5rem; /* below trust strip + header so "Car Rental" doesn't overlap nav */
    min-height: 100vh;
    height: 100vh;
    box-sizing: border-box;
  }
  .index-half { min-height: 0; } /* use grid row height so first row starts below nav */
  .index-divider { left: 0; top: 50%; width: 100%; height: 1px; transform: translateY(-50%); }
  /* Lighter overlay on mobile so hero images are ~25% brighter */
  .index-half::before {
    background: rgba(15, 15, 15, 0.55);
  }
  .index-half:hover::before {
    background: rgba(15, 15, 15, 0.35);
  }
}

/* ===== Service pages – load animation ===== */
@keyframes service-hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes service-content-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.service-page .service-hero {
  animation: service-hero-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.service-page .service-content {
  animation: service-content-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* ===== Service pages ===== */
.service-page { padding-top: 6.25rem; min-height: 100vh; }
.service-hero {
  padding: clamp(5rem, 12vw, 8rem) 2rem;
  text-align: center;
  border-bottom: 2px solid var(--brand);
  background: var(--bg-dark);
}
.service-hero--rental {
  position: relative;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../Images/MercedesGLE53.png");
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.service-hero--rental::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.7) 0%, rgba(15, 15, 15, 0.88) 100%);
}
.service-hero--rental h1,
.service-hero--rental .lead {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.service-hero--rental .lead { color: var(--text-secondary); }
.service-hero--chauffeur {
  position: relative;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../Images/Chauffeur.png");
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.service-hero--chauffeur::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.7) 0%, rgba(15, 15, 15, 0.88) 100%);
}
.service-hero--chauffeur h1,
.service-hero--chauffeur .lead {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.service-hero--chauffeur .lead { color: var(--text-secondary); }
.service-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.service-hero .lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.service-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.service-content p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}
.service-intro {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 500;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.service-cta:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== Value props (RealCar-inspired: 3 benefit blocks) ===== */
.value-props {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 2px solid var(--brand);
}
.value-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.value-props__item {
  text-align: center;
  padding: 0 0.75rem;
}
.value-props__title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.value-props__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}
@media (max-width: 768px) {
  .value-props__grid { grid-template-columns: 1fr; gap: 2rem; }
  .value-props { padding: 2.5rem 1.5rem; }
}

/* ===== Fleet (car rental) ===== */
.fleet {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.fleet-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--text-primary);
}
.fleet-intro {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: 0.01em;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.fleet-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.fleet-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.fleet-card__image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}
.fleet-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.fleet-card:hover .fleet-card__image {
  transform: scale(1.04);
}
.fleet-card__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.fleet-card__title {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.fleet-card__meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.fleet-card__price {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.fleet-card__price-unit {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.fleet-card__cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}
.fleet-card__cta:hover {
  color: var(--text-primary);
  border-bottom-color: var(--brand);
}

/* ===== Vehicle detail page (car.html) ===== */
.car-page .vehicle-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2rem;
}
.vehicle-hero__loading {
  margin: 4rem auto;
  color: var(--text-secondary);
  text-align: center;
}
.vehicle-hero__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.vehicle-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.9) 100%);
}
.vehicle-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.vehicle-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.vehicle-hero__meta {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.vehicle-hero__desc {
  margin: 0 0 1.5rem;
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.vehicle-hero__cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.vehicle-hero__cta:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.vehicle-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 3rem;
  border-top: 2px solid var(--brand);
}
.vehicle-content__body p {
  margin: 0 0 1.15rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.vehicle-content__body p:last-child { margin-bottom: 0; }
.vehicle-specs {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.vehicle-features__title {
  margin: 1.5rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.vehicle-features {
  margin-top: 0;
  padding-left: 1.35rem;
}
.vehicle-features li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}
.vehicle-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.vehicle-gallery__item {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-elevated);
}
.vehicle-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Inquiry form (contact + car page) ===== */
.inquiry-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  border-top: 2px solid var(--brand);
}
.inquiry-section__inner { width: 100%; }
.inquiry-section__title {
  margin: 0 0 0.6rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.inquiry-section__lead {
  margin: 0 0 2rem;
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.inquiry-section__note {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.form-row { grid-column: 1 / -1; }
.form-row--half { grid-column: span 1; }
.form-row--submit { margin-top: 0.5rem; }
@media (max-width: 600px) {
  .inquiry-form { grid-template-columns: 1fr; }
  .form-row--half { grid-column: 1 / -1; }
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font);
  font-size: 1.02rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--brand);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
}
.form-submit {
  padding: 1.1rem 2rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.form-submit:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-hero .lead { max-width: 40ch; }

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  padding: 2.75rem 2rem;
  border-top: 2px solid var(--brand);
  background: var(--bg-card);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text-primary); }

/* ===== Utility ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
