:root {
  --navy: #061a33;
  --navy-2: #0d2b52;
  --blue: #0877df;
  --orange: #ff7a1a;
  --ink: #122235;
  --muted: #657383;
  --line: #e2e8ef;
  --soft: #f4f7fa;
  --white: #ffffff;
  --metal: #8a96a3;
  --shadow: 0 24px 70px rgba(6, 26, 51, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Arabic", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(8, 119, 223, 0.12), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(255, 122, 26, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 239, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(8, 119, 223, 0.13);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 26, 51, 0.08);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-inline-start: auto;
}

.nav-links a {
  color: #34485c;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(6, 26, 51, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.language-select select {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--navy);
  background: #e8f3ff;
  font: inherit;
  cursor: pointer;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #075db0);
  box-shadow: 0 16px 32px rgba(8, 119, 223, 0.24);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.button.primary.light {
  background: var(--white);
  color: var(--navy);
}

.button.secondary.dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.88fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(31px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy p,
.ba-copy p,
.insurance-card p,
.contact-copy p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-badges span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #33485c;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(6, 26, 51, 0.05);
}

.hero-media {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--navy);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
}

.hero-brand {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 48px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  color: var(--white);
  background: rgba(6, 26, 51, 0.8);
  box-shadow: 0 14px 34px rgba(6, 26, 51, 0.24);
  backdrop-filter: blur(14px);
}

.hero-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
}

.hero-brand-mark img {
  width: 28px;
  height: 28px;
  min-height: 0;
  object-fit: contain;
}

.hero-brand strong,
.hero-brand small {
  display: block;
}

.hero-brand strong {
  font-size: 14px;
  line-height: 1.2;
}

.hero-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 26, 51, 0.44));
}

.hero-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  color: var(--white);
  background: rgba(6, 26, 51, 0.76);
  backdrop-filter: blur(14px);
}

.hero-card strong {
  display: block;
  font-size: 30px;
}

.hero-card span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.services,
.process,
.branches,
.gallery,
.contact {
  background: var(--soft);
}

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

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

.service-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(6, 26, 51, 0.06);
}

.service-card {
  min-height: 235px;
  padding: 26px;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: var(--blue);
  background: #e8f3ff;
  font-weight: 900;
}

.service-card p,
.step-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.why {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  background: var(--white);
}

.why-panel {
  position: sticky;
  top: 112px;
  align-self: start;
}

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

.why-grid div {
  min-height: 84px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 900;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  min-height: 230px;
  padding: 24px;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
}

.workmanship {
  background: var(--white);
}

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(6, 26, 51, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.work-card div {
  padding: 22px;
}

.work-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: var(--white);
}

.ba-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.ba-image {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 22px;
}

.ba-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.before img {
  filter: grayscale(0.8) contrast(0.85);
}

.after img {
  filter: saturate(1.12) contrast(1.04);
}

.ba-image span {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 26, 51, 0.72);
  font-weight: 900;
}

.insurance {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.insurance-card {
  max-width: 900px;
}

.insurance h2,
.insurance .eyebrow {
  color: var(--white);
}

.insurance-card p {
  color: rgba(255, 255, 255, 0.76);
}

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

.branch-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 240px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 250, 0.88)),
    var(--white);
  box-shadow: 0 14px 34px rgba(6, 26, 51, 0.06);
}

.branch-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 119, 223, 0.18), transparent 68%);
}

.branch-card span {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 40px;
  border-radius: 999px;
  color: var(--blue);
  background: #e8f3ff;
  font-size: 12px;
  font-weight: 900;
}

.branch-card strong {
  color: var(--navy);
  font-size: 26px;
}

.branch-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.branch-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #075db0);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(8, 119, 223, 0.22);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(6, 26, 51, 0.08);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 26, 51, 0.62));
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-weight: 900;
}

.cta-section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 26, 51, 0.94), rgba(6, 26, 51, 0.76)),
    url("generated-repair-bay.jpg") center/cover;
}

.cta-section h2 {
  max-width: 760px;
  color: var(--white);
}

.cta-section p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.75;
}

.contact {
  display: block;
}

.contact-copy {
  max-width: 820px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: var(--navy);
  font-weight: 900;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--blue);
}

label {
  display: grid;
  gap: 8px;
  color: #263e54;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d7e0e8;
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 4px solid rgba(8, 119, 223, 0.14);
  border-color: var(--blue);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(150px, 0.65fr));
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #05162c;
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  line-height: 1.65;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-group strong {
  color: var(--white);
}

.footer-group a,
.footer-group span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .scroll-progress {
  right: 0;
  left: auto;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .socials {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

html[dir="rtl"] .brand strong,
html[dir="rtl"] .brand small,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .why-panel,
html[dir="rtl"] .ba-copy,
html[dir="rtl"] .insurance-card,
html[dir="rtl"] .contact-copy,
html[dir="rtl"] .footer-brand p {
  text-align: right;
}

html[dir="rtl"] .ba-image span {
  right: 16px;
  left: auto;
}

html[dir="rtl"] .hero-brand {
  right: 24px;
  left: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: clamp(18px, 5vw, 72px);
    left: clamp(18px, 5vw, 72px);
    z-index: 51;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: #e8f3ff;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .why,
  .before-after,
  .contact {
    grid-template-columns: 1fr;
  }

  .why-panel {
    position: static;
  }

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

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

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

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

@media (max-width: 760px) {
  .site-header {
    min-height: 74px;
    padding: 10px 16px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 190px;
    font-size: 13px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .language-select span {
    display: none;
  }

  .language-select {
    padding: 6px;
  }

  .hero-brand {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 10px 12px;
  }

  html[dir="rtl"] .hero-brand {
    right: 14px;
    left: auto;
  }

  .hero-brand strong {
    font-size: 12px;
  }

  .hero-brand small {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 42px 18px 58px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  h2 {
    font-size: 31px;
  }

  .hero-actions,
  .trust-badges {
    display: grid;
  }

  .hero-media,
  .hero-media img {
    min-height: 340px;
  }

  .section {
    padding: 58px 18px;
  }

  .service-grid,
  .workmanship-grid,
  .why-grid,
  .process-steps,
  .branch-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .ba-frame {
    grid-template-columns: 1fr;
  }

  .ba-image,
  .ba-image img {
    min-height: 260px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 10px;
  }

  .brand > span:last-child {
    display: none;
  }
}
