:root {
  --navy: #071b3a;
  --navy-soft: #12305d;
  --gold: #d9a83f;
  --sun: #f6be3c;
  --orange: #e86f2d;
  --cream: #fff8ea;
  --paper: #fffdf7;
  --ink: #101828;
  --muted: #667085;
  --line: rgba(255, 255, 255, 0.28);
  --shadow: 0 22px 70px rgba(7, 27, 58, 0.18);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body[data-lang="ar"] {
  font-family: Tahoma, Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

.page-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px clamp(14px, 4vw, 44px);
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 27, 58, 0.84), rgba(7, 27, 58, 0.18));
  backdrop-filter: blur(16px);
}

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

.logo-placeholder {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  opacity: 0.82;
}

.quick-nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-nav a {
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.language-toggle,
.modal-close {
  border: 0;
  cursor: pointer;
}

.language-toggle {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.scene-band {
  position: relative;
  isolation: isolate;
  color: #fff;
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.scene-band::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 27, 58, 0.36), rgba(7, 27, 58, 0.5)),
    linear-gradient(90deg, rgba(7, 27, 58, 0.78), rgba(7, 27, 58, 0.1));
}

[dir="rtl"] .scene-band::after {
  background:
    linear-gradient(180deg, rgba(7, 27, 58, 0.36), rgba(7, 27, 58, 0.5)),
    linear-gradient(270deg, rgba(7, 27, 58, 0.78), rgba(7, 27, 58, 0.1));
}

.hero {
  min-height: 92svh;
  display: grid;
  align-content: end;
  padding: 132px clamp(18px, 5vw, 70px) 28px;
}

.hero-content {
  max-width: 680px;
  padding-bottom: 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--sun);
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-header h2,
.intro-band h2,
.lead-copy h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(3.5rem, 16vw, 9rem);
}

.hero-copy {
  max-width: 34rem;
  margin: 16px 0 0;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  line-height: 1.65;
}

.hero-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  color: var(--navy);
  background: linear-gradient(135deg, var(--sun), var(--gold));
  box-shadow: 0 16px 36px rgba(246, 190, 60, 0.28);
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.hero-price-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero-price-strip span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(7, 27, 58, 0.46);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.intro-band,
.lead-section {
  display: grid;
  gap: 18px;
  padding: clamp(54px, 10vw, 94px) clamp(18px, 5vw, 70px);
  background:
    radial-gradient(circle at top left, rgba(246, 190, 60, 0.18), transparent 32rem),
    linear-gradient(135deg, #fffdf7, #edf5ff);
}

.intro-band p,
.lead-copy p,
.section-header p {
  max-width: 52rem;
  margin: 12px 0 0;
  color: inherit;
  line-height: 1.8;
}

.intro-band h2,
.lead-copy h2,
.section-header h2 {
  font-size: clamp(2rem, 7vw, 4.6rem);
}

.story-section {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 112px clamp(18px, 5vw, 70px) 42px;
}

.story-panel {
  display: grid;
  gap: 24px;
  max-width: 1180px;
}

.story-copy {
  max-width: 620px;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(2.45rem, 9vw, 5.8rem);
  line-height: 1;
}

.story-copy p {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vehicle-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  background: rgba(7, 27, 58, 0.48);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: start;
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.vehicle-card:hover,
.vehicle-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(246, 190, 60, 0.72);
  background: rgba(7, 27, 58, 0.66);
}

.vehicle-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.vehicle-card .year {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.price-row span {
  display: grid;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-weight: 900;
}

.price-row small {
  color: var(--muted);
  font-size: 0.72rem;
}

.floating-piece {
  position: absolute;
  inline-size: clamp(84px, 18vw, 210px);
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: floatPiece 6s ease-in-out infinite;
}

.floating-piece.one {
  inset-block-start: 18%;
  inset-inline-end: 8%;
}

.floating-piece.two {
  inset-block-end: 12%;
  inset-inline-start: 5%;
  animation-delay: -2s;
}

@keyframes floatPiece {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

.services-section {
  min-height: 92svh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 104px clamp(18px, 5vw, 70px);
}

.section-header {
  max-width: 780px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 980px;
}

.service-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  background: rgba(7, 27, 58, 0.54);
  cursor: pointer;
  text-align: start;
  backdrop-filter: blur(12px);
}

.service-card[aria-pressed="true"] {
  outline: 3px solid var(--sun);
}

.service-card strong {
  display: block;
  font-size: 1.25rem;
}

.service-card span {
  display: block;
  margin-top: 8px;
  line-height: 1.6;
}

.lead-section {
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.98), rgba(18, 48, 93, 0.92)),
    url("Summer-sample-Assets/Premium Sedans-01.jpg") center / cover;
  color: #fff;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.embedded-form,
.modal-shell {
  border-radius: 8px;
  padding: clamp(16px, 4vw, 28px);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(7, 27, 58, 0.16);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented legend {
  flex: 1 0 100%;
  margin-bottom: 2px;
  font-weight: 900;
}

.segmented label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(7, 27, 58, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
}

.expand-toggle,
.pdpl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.expand-toggle input,
.pdpl-check input,
.segmented input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.optional-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(7, 27, 58, 0.22);
  border-radius: 8px;
  background: rgba(7, 27, 58, 0.04);
}

.pdpl-check a {
  color: var(--navy-soft);
  text-decoration: underline;
  font-weight: 900;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--navy-soft);
  font-weight: 800;
}

.floating-service {
  position: fixed;
  z-index: 60;
  inset-block-end: 18px;
  inset-inline: 16px;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--sun), var(--gold));
  box-shadow: 0 18px 44px rgba(7, 27, 58, 0.25);
  cursor: pointer;
  font-weight: 950;
}

.lead-modal,
.confirm-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.lead-modal::backdrop,
.confirm-dialog::backdrop {
  background: rgba(7, 27, 58, 0.72);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  overflow-y: auto;
  max-height: calc(100svh - 24px);
}

.modal-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: 1.5rem;
}

.modal-summary {
  padding-inline-end: 44px;
}

.modal-summary h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.02;
}

.modal-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.modal-price span {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy);
  background: #fff3c4;
  font-weight: 950;
}

.confirm-dialog {
  padding: 24px;
  background: #fff;
}

.confirm-dialog h2 {
  margin: 0;
  color: var(--navy);
}

.confirm-dialog p {
  margin: 10px 0 0;
  color: var(--muted);
}

.translating main,
.translating .site-header,
.translating .floating-service {
  opacity: 0.22;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 720px) {
  .site-header {
    grid-template-columns: minmax(220px, 1fr) auto auto;
  }

  .quick-nav {
    grid-column: auto;
    justify-self: center;
  }

  .hero-price-strip {
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
  }

  .intro-band,
  .lead-section {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid,
  .optional-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-service {
    inset-block: 42% auto;
    inset-inline: auto 0;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl;
  }

  [dir="rtl"] .floating-service {
    inset-inline: 0 auto;
    border-radius: 0 8px 8px 0;
  }
}

@media (min-width: 1040px) {
  .story-panel {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: end;
  }

  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
