:root {
  --brand-primary: #173b35;
  --brand-primary-dark: #0e2924;
  --brand-accent: #d8b878;
  --brand-background: #f7f4ed;
  --brand-surface: #ffffff;
  --brand-text: #202725;
  --brand-muted: #737a76;
  --topbar-height: 2.35rem;
  --nav-height: 4.5rem;
  --header-height: calc(var(--topbar-height) + var(--nav-height));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  background-color: var(--brand-background);
  color: var(--brand-text);
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.site-topbar {
  height: var(--topbar-height);
  background: var(--brand-primary-dark);
  border-bottom: 1px solid rgba(216, 184, 120, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
}

.site-topbar__inner {
  height: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.site-topbar__items {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex-wrap: wrap;
}

.site-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-topbar__item:hover {
  color: var(--brand-accent);
}

.site-topbar__item svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--brand-accent);
}

.site-topbar__location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.site-topbar__location svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--brand-accent);
}

.site-header__main {
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-header.is-scrolled,
.site-header--solid {
  background-color: rgba(14, 41, 36, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 184, 120, 0.15);
  box-shadow: 0 8px 32px rgba(14, 41, 36, 0.12);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .site-header__main {
  background: linear-gradient(
    to bottom,
    rgba(14, 41, 36, 0.55),
    rgba(14, 41, 36, 0.15)
  );
}

.site-header.is-scrolled .site-header__main,
.site-header--solid .site-header__main {
  background: transparent;
}

@media (max-width: 640px) {
  .site-topbar {
    font-size: 0.6875rem;
  }

  .site-topbar__inner {
    padding-inline: 0.75rem;
    gap: 0.5rem;
  }

  .site-topbar__items {
    gap: 0.65rem;
  }

  .site-topbar__email-text {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 1px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  background: var(--brand-accent);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #e4c992;
  box-shadow: 0 8px 24px rgba(216, 184, 120, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: transparent;
  border: 1px solid var(--brand-primary);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: #fff;
}

.btn-ghost {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
  text-align: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
  background: var(--brand-primary-dark);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 41, 36, 0.78) 0%,
    rgba(14, 41, 36, 0.62) 45%,
    rgba(14, 41, 36, 0.8) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__brands {
  margin-bottom: 1.75rem;
}

.hero__brand-ar {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero__brand-en {
  margin-top: 0.5rem;
  font-size: clamp(1.125rem, 2.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
}

.hero__title {
  font-size: clamp(1.35rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  max-width: 22ch;
  margin-inline: auto;
}

.hero__subtitle {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42rem;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-map {
  padding: 0.55rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: rgba(23, 59, 53, 0.04);
  border: 1px solid rgba(23, 59, 53, 0.18);
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-map:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Fixed floating contact buttons — bottom left */
.fab-stack {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 41, 36, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(14, 41, 36, 0.35);
}

.fab--whatsapp {
  background: #25d366;
}

.fab--phone {
  background: var(--brand-primary);
}

.fab svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 380px) {
  .fab-stack {
    left: 0.65rem;
    bottom: 0.65rem;
  }

  .fab {
    width: 2.85rem;
    height: 2.85rem;
  }
}

/* Section system */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-primary-dark);
}

.section-subtitle {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--brand-muted);
  max-width: 38rem;
}

.section-divider {
  width: 3rem;
  height: 2px;
  background: var(--brand-accent);
  margin-top: 1.25rem;
}

/* Cards */
.service-card,
.branch-card,
.contact-card,
.process-card {
  background: var(--brand-surface);
  border: 1px solid rgba(23, 59, 53, 0.08);
  border-radius: 2px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.service-card:hover,
.branch-card:hover,
.process-card:hover {
  border-color: rgba(216, 184, 120, 0.45);
  box-shadow: 0 12px 40px rgba(23, 59, 53, 0.06);
  transform: translateY(-2px);
}

.service-card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-dark) 100%
  );
}

.branch-card {
  padding: 1.5rem;
  height: 100%;
}

.branch-card__icon {
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.branch-card__city {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.5rem;
}

.branch-card__address {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--brand-muted);
}

/* Image fallback */
.img-cover {
  object-fit: cover;
  width: 100%;
  background: linear-gradient(
    145deg,
    #1a4a42 0%,
    var(--brand-primary-dark) 100%
  );
}

.img-cover.is-missing {
  min-height: 12rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--brand-primary-dark);
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 41, 36, 0.82);
}

/* Process */
.process-card {
  padding: 1.5rem;
  position: relative;
}

.process-card__num {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(216, 184, 120, 0.35);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Page hero (inner) */
.page-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(
    160deg,
    var(--brand-primary-dark) 0%,
    var(--brand-primary) 100%
  );
  color: #fff;
}

.breadcrumb {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--brand-accent);
}

/* Mobile menu */
.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

[dir="rtl"] .mobile-drawer {
  transform: translateX(-100%);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Footer */
.site-footer {
  background: var(--brand-primary-dark);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--brand-accent);
}

/* Form (UI only) */
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(23, 59, 53, 0.15);
  border-radius: 2px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(23, 59, 53, 0.12);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--brand-muted);
}
