:root {
  --page-width: min(1400px, calc(100% - 40px));
  --red: #b72b22;
  --red-dark: #a3241d;
  --navy: #151a2c;
  --ink: #1f2541;
  --muted: #6f748a;
  --line: #eaebf2;
  --surface: #ffffff;
  --surface-alt: #fbfbfe;
  --shadow: 0 18px 34px rgba(31, 37, 65, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

body.lang-ar {
  direction: rtl;
}

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

button {
  font: inherit;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-container {
  width: var(--page-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(234, 235, 242, 0.9);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
}

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

.brand-logo {
  display: block;
  width: auto;
  height: 76px;
  object-fit: contain;
}

.brand-footer {
  width: fit-content;
  padding: 0;
  background: transparent;
}

.brand-footer .brand-logo {
  height: 64px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  border: 0;
  background: transparent;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

body.lang-ar .nav-panel {
  margin-left: 0;
  margin-right: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #414760;
}

.site-nav a.is-active {
  color: var(--red);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.16rem;
  border: 1px solid #d9dde7;
  border-radius: 14px;
  background: #ffffff;
}

.lang-pill {
  border: 0;
  border-radius: 12px;
  padding: 0.5rem 0.72rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-pill.is-active {
  background: var(--red);
  color: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.82rem 1.3rem;
  border-radius: 12px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-solid {
  color: #ffffff;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 12px 22px rgba(183, 43, 34, 0.18);
}

.button-outline {
  color: var(--red);
  background: #ffffff;
  border: 1.5px solid #dfb1aa;
}

.hero-section,
.services-section,
.contact-section,
.why-section,
.site-footer {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}

.hero-kicker {
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.09em;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: hero-line-reveal 1100ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

.hero-title span:nth-child(1) {
  animation-delay: 180ms;
}

.hero-title span:nth-child(2) {
  animation-delay: 1180ms;
}

.hero-title span:nth-child(3) {
  animation-delay: 2180ms;
}

.hero-accent {
  color: var(--red);
}

@keyframes hero-line-reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media,
.why-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #0b0f1b;
  box-shadow: var(--shadow);
}

.hero-media {
  aspect-ratio: 16 / 10;
}

.why-media {
  aspect-ratio: 16 / 9;
}

.hero-media img,
.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-section {
  background: var(--navy);
}

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

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1rem;
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-card:first-child {
  border-left: 0;
}

.icon-chip,
.check-chip {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #ffffff;
}

.stat-copy h2,
.service-card h3,
.feature-item h3,
.section-head h2,
.why-copy h2,
.footer-title {
  margin: 0;
}

.stat-copy h2 {
  font-size: 1rem;
  font-weight: 700;
}

.stat-copy p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.stat-copy strong {
  color: #ff6e62;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2,
.why-copy h2 {
  color: var(--ink);
  letter-spacing: -0.06em;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.section-text {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.service-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.why-copy {
  display: grid;
  gap: 0.8rem;
}

.why-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.feature-list {
  display: grid;
  gap: 0.8rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.check-chip {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.22rem;
  border-radius: 4px;
}

.check-chip svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
}

.feature-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.contact-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.contact-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  letter-spacing: -0.06em;
}

.contact-text {
  margin: 0;
  max-width: 42rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1.8rem;
  align-items: start;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.form-field {
  display: grid;
  gap: 0.6rem;
}

.field-span-full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid #e3e6f0;
  border-radius: 18px;
  background: var(--surface-alt);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  appearance: none;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a2a8bb;
}

.form-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #5f6579 50%),
    linear-gradient(135deg, #5f6579 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.8rem;
}

body.lang-ar .form-field select {
  background-position:
    18px calc(50% - 3px),
    24px calc(50% - 3px);
  padding-right: 1.1rem;
  padding-left: 2.8rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(183, 43, 34, 0.4);
  box-shadow: 0 0 0 4px rgba(183, 43, 34, 0.08);
}

.contact-actions {
  margin-top: 0.15rem;
}

.contact-submit {
  min-width: 194px;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  background: #f7f1f1;
  color: var(--red);
}

.contact-card-copy {
  display: grid;
  gap: 0.22rem;
}

.contact-card-label {
  color: #858ba0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.contact-card-arrow {
  color: #c6cada;
  font-size: 1rem;
}

.site-footer {
  background: var(--navy);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
}

.footer-brand p,
.footer-text,
.footer-links a {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

section[id],
footer[id] {
  scroll-margin-top: 88px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .why-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .why-copy {
    order: 0;
  }
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .stat-card:first-child {
    border-top: 0;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-row {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 0.5rem;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .site-nav,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a,
  .lang-switch,
  .header-cta,
  .button {
    width: 100%;
  }

  .site-nav a.is-active::after {
    left: 0;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero-section,
  .services-section,
  .contact-section,
  .why-section,
  .site-footer {
    padding: 1.35rem 0;
  }

  .hero-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: auto 1fr;
  }

  .contact-card-arrow {
    display: none;
  }

  .page-container {
    width: min(1400px, calc(100% - 24px));
  }

  .brand-logo {
    height: 58px;
  }

  .brand-footer .brand-logo {
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title span {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
