:root {
  color-scheme: light;
  --ink: #202124;
  --charcoal: #34343b;
  --graphite: #56565e;
  --muted: #75716c;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: #e4ddd2;
  --orange: #f58220;
  --orange-dark: #cf6418;
  --gold: #f7b84a;
  --mist: #fff8ee;
  --shadow: 0 24px 70px rgba(32, 33, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body[data-language="ar"] {
  font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Noto Sans Arabic", "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

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

button {
  font: inherit;
}

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

.site-header.is-elevated {
  color: var(--charcoal);
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 1px 0 rgba(32, 33, 36, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  width: clamp(220px, 20vw, 320px);
  height: auto;
  display: grid;
  align-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-header.is-elevated .brand {
  opacity: 1;
  pointer-events: auto;
}

.brand img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-dark {
  opacity: 0;
}

.site-header.is-elevated .logo-light {
  opacity: 0;
}

.site-header.is-elevated .logo-dark {
  opacity: 1;
}

nav,
.header-tools,
.hero-actions,
.clientele {
  display: flex;
  align-items: center;
}

nav {
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 850;
}

.header-tools {
  justify-self: end;
  gap: 10px;
}

.language-toggle,
.header-action,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
}

.language-toggle {
  padding: 10px 14px;
  color: inherit;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.header-action {
  padding: 10px 18px;
  color: var(--white);
  background: var(--orange);
}

.site-header.is-elevated .header-action {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(32, 33, 36, 0.88) 0%, rgba(32, 33, 36, 0.68) 38%, rgba(32, 33, 36, 0.16) 72%),
    linear-gradient(0deg, rgba(245, 130, 32, 0.2), rgba(32, 33, 36, 0.02));
}

[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(32, 33, 36, 0.88) 0%, rgba(32, 33, 36, 0.68) 38%, rgba(32, 33, 36, 0.16) 72%),
    linear-gradient(0deg, rgba(245, 130, 32, 0.2), rgba(32, 33, 36, 0.02));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(770px, calc(100% - 36px));
  margin-inline-start: clamp(18px, 7vw, 96px);
  padding-top: 86px;
  color: var(--white);
}

.hero-brand {
  width: min(540px, 82vw);
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 42px;
  background: transparent;
  box-shadow: none;
}

.hero-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-brand .eyebrow {
  margin: 0;
  color: #f58220;
  font-size: clamp(1.35rem, 2.1vw, 2.05rem);
  font-weight: 850;
  line-height: 1.18;
  text-align: center;
  text-transform: none;
  width: 100%;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.brand-underline {
  width: min(112px, 32%);
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: #f58220;
  box-shadow: 0 6px 20px rgba(245, 130, 32, 0.42);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

[dir="rtl"] .eyebrow {
  text-transform: none;
}

[dir="rtl"] .hero-brand .eyebrow {
  font-size: clamp(1.2rem, 1.9vw, 1.78rem);
}

h1,
h2,
h3,
p,
span,
a {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 6.45vw, 5.45rem);
  line-height: 1.07;
  letter-spacing: 0;
}

[dir="rtl"] h1 {
  max-width: 15ch;
  line-height: 1.24;
  font-weight: 900;
}

h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}

[dir="rtl"] h2 {
  line-height: 1.28;
  font-weight: 850;
}

h3 {
  margin: 0 0 10px;
  color: var(--charcoal);
  font-size: 1.25rem;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  padding: 12px 18px;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(245, 130, 32, 0.3);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.quick-panel {
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -58px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-panel article {
  min-height: 132px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
}

.quick-panel strong {
  display: block;
  color: var(--orange);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
}

.quick-panel span,
.section-copy p,
.mission-band p,
.service-cards p,
.quality p,
.branch-card p,
.branch-card span,
.contact p,
.contact-panel span {
  color: var(--muted);
  line-height: 1.65;
}

.section,
.mission-band,
.quality,
.contact {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(80px, 12vw, 138px) 0;
}

.intro,
.quality,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.section-copy p {
  max-width: 620px;
  font-size: 1.04rem;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  grid-template-rows: 230px 230px;
  gap: 14px;
}

.photo-mosaic img,
.service-cards img,
.quality > img,
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-mosaic img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-mosaic .large {
  grid-row: span 2;
}

.mission-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 7vw, 78px);
  align-items: center;
  padding: clamp(70px, 10vw, 116px) clamp(20px, 5vw, 72px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 130, 32, 0.96), rgba(247, 184, 74, 0.92)),
    var(--orange);
  box-shadow: var(--shadow);
}

.mission-band h2,
.mission-band p,
.mission-band .eyebrow {
  color: var(--white);
}

.mission-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.department-grid span,
.clientele span {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 950;
}

.department-grid span {
  color: var(--charcoal);
  border: 1px solid rgba(245, 130, 32, 0.24);
  background: linear-gradient(180deg, var(--white), var(--mist));
}

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

.service-cards article,
.branch-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(32, 33, 36, 0.03);
}

.service-cards article {
  overflow: hidden;
}

.service-cards img {
  height: 260px;
}

.service-cards h3,
.service-cards p {
  margin-inline: 24px;
}

.service-cards h3 {
  margin-top: 24px;
}

.service-cards p {
  margin-bottom: 26px;
}

.quality {
  padding: clamp(80px, 12vw, 138px) 0;
}

.quality > img {
  min-height: 540px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.clientele {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.clientele span {
  min-height: 48px;
  color: var(--orange-dark);
  border: 1px solid rgba(245, 130, 32, 0.24);
  background: var(--mist);
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 260px;
  gap: 14px;
  padding-top: 0;
}

.gallery img {
  border-radius: 8px;
}

.gallery img:first-child {
  grid-row: span 2;
}

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

.branch-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.branch-card a,
.contact-panel a:not(.button) {
  color: var(--orange-dark);
  font-weight: 950;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  padding: clamp(80px, 12vw, 138px) 0;
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(245, 130, 32, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

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

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    width: 168px;
    height: auto;
  }

  .language-toggle,
  .header-action {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 92vh;
  }

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

  .hero-brand {
    width: min(350px, 78vw);
  }

  h1 {
    font-size: clamp(2.35rem, 10.7vw, 3.8rem);
  }

  .quick-panel,
  .intro,
  .mission-band,
  .quality,
  .contact,
  .department-grid,
  .service-cards,
  .branch-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: -34px;
  }

  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 230px);
  }

  .photo-mosaic .large,
  .gallery img:first-child {
    grid-row: auto;
  }

  .quality > img {
    min-height: 320px;
  }

  .gallery {
    grid-auto-rows: 240px;
  }
}

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