:root {
  --ink: #10141f;
  --muted: #626b7f;
  --line: #e5e9f2;
  --paper: #f7f8fb;
  --white: #ffffff;
  --gold: #d7a64b;
  --gold-dark: #a8751f;
  --green: #157f5b;
  --blue: #1d4f8f;
  --shadow: 0 22px 60px rgba(16, 20, 31, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(16, 20, 31, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(170px, 18vw, 230px);
  height: 62px;
  object-fit: contain;
}

.site-header.scrolled .brand-logo,
.site-header.menu-open .brand-logo {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover {
  opacity: 1;
}

.header-cta,
.btn,
.text-link {
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .header-cta,
.site-header.menu-open .header-cta {
  border-color: var(--line);
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 13, 22, 0.86) 0%, rgba(8, 13, 22, 0.54) 42%, rgba(8, 13, 22, 0.14) 100%),
    linear-gradient(0deg, rgba(8, 13, 22, 0.9) 0%, rgba(8, 13, 22, 0) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #17120a;
  box-shadow: 0 14px 30px rgba(215, 166, 75, 0.26);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-secondary.dark {
  border-color: rgba(16, 20, 31, 0.18);
  color: var(--ink);
  background: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 42px 0 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-band span {
  display: grid;
  min-height: 76px;
  place-items: center;
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.with-action {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--gold-dark);
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article,
.car-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(16, 20, 31, 0.06);
}

.service-grid article {
  padding: 28px;
}

.service-grid p,
.car-body p,
.split p,
.cta-section p {
  color: var(--muted);
}

.icon,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eaf4ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.fleet {
  padding-top: 36px;
}

.fleet-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 26px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.car-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.car-card.featured {
  border-color: rgba(215, 166, 75, 0.55);
  box-shadow: var(--shadow);
}

.car-gallery {
  position: relative;
  padding: 12px;
}

.car-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe5ed;
}

.main-photo {
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-badge {
  position: absolute;
  left: 22px;
  top: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.photo-count {
  color: var(--gold);
}

.gallery-nav {
  position: absolute;
  top: calc(50% - 32px);
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.72);
  color: var(--white);
  font-size: 25px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.gallery-prev {
  left: 22px;
}

.gallery-next {
  right: 22px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.thumb-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: #dfe5ed;
  cursor: pointer;
  opacity: 0.72;
}

.thumb-photo.active {
  outline: 3px solid var(--gold);
  opacity: 1;
}

.car-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.car-body .btn {
  width: 100%;
  margin-top: auto;
}

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.car-meta span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.all-photos {
  padding-top: 28px;
}

.all-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.all-photo-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(16, 20, 31, 0.08);
}

.all-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.all-photo-card span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.all-photo-card:hover img {
  transform: scale(1.04);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 5px;
  color: var(--muted);
}

.cta-section {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 20, 31, 0.92), rgba(16, 20, 31, 0.76)),
    url("assets/hero-amirbodcars.png") center/cover;
  color: var(--white);
}

.cta-section h2 {
  margin-bottom: 8px;
}

.cta-section p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 18px 48px;
  background: rgba(5, 7, 11, 0.92);
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(1100px, 100%);
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 38px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header.menu-open .nav,
  .site-header.menu-open .header-cta {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.menu-open .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .site-header.menu-open .nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-header.menu-open .header-cta {
    margin-top: 8px;
  }

  .hero-content {
    width: min(720px, calc(100% - 36px));
  }

  .trust-band,
  .service-grid,
  .fleet-grid,
  .all-photos-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .with-action,
  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 158px;
    height: 50px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 13, 22, 0.88), rgba(8, 13, 22, 0.54)),
      linear-gradient(0deg, rgba(8, 13, 22, 0.94), rgba(8, 13, 22, 0.08));
  }

  .hero-content {
    padding-top: 120px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-stats,
  .trust-band,
  .service-grid,
  .fleet-grid,
  .all-photos-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .trust-band span {
    min-height: 58px;
  }

  .btn,
  .contact-actions,
  .hero-actions {
    width: 100%;
  }

  .filter-btn {
    flex: 1 1 46%;
  }

  .cta-section {
    padding: 28px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
