/* دش ورسيفر — mobile-first, RTL */
:root {
  --c-bg: #0a1628;
  --c-surface: #0f1f3a;
  --c-elev: #132949;
  --c-text: #f0f4f8;
  --c-muted: #9bb0c8;
  --c-line: rgba(201, 162, 39, 0.18);
  --c-accent: #c9a227;
  --c-blue: #2a6a9a;
  --c-blue-dark: #1e4a6e;
  --c-wa: #25d366;
  --c-wa-dark: #1aad52;
  --font: "Tajawal", system-ui, "Segoe UI", "Arabic UI Text", sans-serif;
  --r: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --safe: env(safe-area-inset-bottom, 0px);
  --sticky-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  padding-bottom: calc(var(--sticky-h) + var(--safe) + 0.5rem);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--c-accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #e4c24f;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 2000;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Layout */
.container {
  width: min(1080px, 100% - 1.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--c-bg) 95%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 3.25rem;
}

.site-logo {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--c-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 1.1rem;
  margin-inline: auto;
  background: var(--c-text);
  border-radius: 1px;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  padding: 0.5rem 1rem 1rem;
  gap: 0.15rem;
  box-shadow: var(--shadow);
}

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

.site-nav a {
  color: var(--c-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--c-text);
  background: var(--c-elev);
}

.site-nav__wa {
  margin-top: 0.4rem;
  text-align: center;
  background: var(--c-wa) !important;
  color: #06210f !important;
  font-weight: 800 !important;
  border: none !important;
}

.site-nav__wa:hover {
  background: var(--c-wa-dark) !important;
}

@media (min-width: 900px) {
  .site-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.25rem 0.5rem;
  }

  .site-nav a {
    padding: 0.45rem 0.6rem;
  }

  .site-nav__wa {
    margin: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn--call {
  background: var(--c-blue);
  color: #fff;
  border-color: var(--c-blue-dark);
}

.btn--call:hover {
  background: var(--c-blue-dark);
  color: #fff;
}

.btn--wa {
  background: var(--c-wa);
  color: #06210f;
  border-color: var(--c-wa-dark);
  font-weight: 800;
}

.btn--wa:hover {
  background: var(--c-wa-dark);
  color: #041a0b;
}

.btn--map {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.btn--map:hover {
  background: color-mix(in srgb, var(--c-accent) 12%, transparent);
  color: #f0d780;
}

.btn--lg {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 1.5rem 0 2.5rem;
  background: linear-gradient(165deg, var(--c-bg) 0%, #0c1a30 50%, #0a1426 100%);
  border-bottom: 1px solid var(--c-line);
}

.hero__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 2rem;
    row-gap: 1.25rem;
  }

  .hero__text:not(.hero__text--actions) {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .hero__text--actions {
    grid-column: 1;
    grid-row: 2;
  }
}

.hero__title {
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #fff;
}

.hero__lede {
  margin: 0 0 1.25rem;
  color: var(--c-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 500px) {
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 320px;
}

@media (min-width: 800px) {
  .hero__img {
    max-height: 340px;
  }
}

/* Trust */
.trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--c-muted);
}

.trust-badges li {
  position: relative;
  padding-right: 1.1rem;
}

.trust-badges li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--c-wa);
  font-weight: 800;
  font-size: 0.75em;
  top: 0.15em;
}

/* Section block */
.section {
  padding: 2.75rem 0;
  scroll-margin-top: 4.5rem;
}

.section--alt {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.section__title {
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #fff;
  line-height: 1.25;
}

.section__kicker,
.section__lede {
  color: var(--c-muted);
  max-width: 70ch;
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
}

.section__kicker {
  margin-top: 0.35rem;
}

/* Service grid */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--c-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card__icon {
  color: var(--c-accent);
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

.card__text {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.card__visual {
  margin-top: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.card__visual img {
  width: 100%;
  object-fit: cover;
  max-height: 200px;
}

/* Areas */
.area-tags {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.45rem;
  align-items: center;
}

.area-tag {
  display: inline-block;
  background: var(--c-elev);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.area-disclaimer {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-muted);
}

/* Why */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 50ch;
}

.why-list li {
  position: relative;
  padding-right: 1.35rem;
  color: var(--c-muted);
}

.why-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--c-accent);
  font-weight: 800;
}

/* Process */
.process-steps {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--c-muted);
  line-height: 1.8;
  max-width: 50ch;
}

.process-steps li {
  margin-bottom: 0.5rem;
  padding-right: 0.25rem;
}

.process-steps li::marker {
  color: var(--c-accent);
  font-weight: 800;
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery li {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-elev);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  min-height: 120px;
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

.gallery__wide {
  aspect-ratio: 21/9;
  min-height: 200px;
  object-fit: cover;
}

/* FAQ */
.faq {
  max-width: 48rem;
  margin: 0 auto;
}

.faq__item {
  background: var(--c-elev);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq__item summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: left;
  color: var(--c-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1rem 0.9rem;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--c-line);
  padding-top: 0.75rem;
}

/* Contact */
.section--contact {
  padding-bottom: calc(2.5rem + var(--sticky-h));
}

@media (min-width: 900px) {
  .section--contact {
    padding-bottom: 2.75rem;
  }
}

.contact__phone {
  text-align: center;
  margin: 0.5rem 0 0.25rem;
}

.phone-link {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--c-accent);
}

.contact__address {
  text-align: center;
  color: var(--c-muted);
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
}

.contact__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  max-width: 24rem;
  margin: 0 auto 1.5rem;
}

@media (min-width: 480px) {
  .contact__row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }

  .contact__row .btn {
    min-width: 8rem;
  }
}

.map-box {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.map-box__frame {
  width: 100%;
  max-width: 100%;
  height: 260px;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: var(--c-elev);
}

.map-box__link {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding: 1.5rem 0 2rem;
  background: #060d18;
  margin-top: 0;
}

@media (min-width: 900px) {
  .site-footer {
    margin-bottom: 0;
  }
}

@media (max-width: 899px) {
  .site-footer {
    padding-bottom: calc(2rem + var(--sticky-h));
  }
}

.site-footer__inner {
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.4rem;
  color: var(--c-muted);
  font-size: 0.95rem;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.9rem;
  color: #6a7a8a;
}

.link-muted {
  color: #8a9cb0;
  text-decoration: none;
}

.link-muted:hover {
  color: var(--c-accent);
}

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  border-top: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-bg) 96%, #000 4%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.35rem 0.5rem calc(0.35rem + var(--safe));
  gap: 0.35rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
  .mobile-cta {
    display: none;
  }
}

.mobile-cta__btn {
  flex: 1 1 33.33%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sticky-h);
  max-height: var(--sticky-h);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  line-height: 1.15;
  padding: 0.2rem 0.25rem;
}

.mobile-cta__call {
  background: var(--c-blue);
  color: #fff;
}

.mobile-cta__wa {
  background: var(--c-wa);
  color: #041a0b;
}

.mobile-cta__map {
  background: var(--c-elev);
  color: var(--c-accent);
  border: 1px solid var(--c-line);
}

.mobile-cta__btn:hover,
.mobile-cta__btn:focus {
  filter: brightness(1.08);
}

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

  * {
    transition: none !important;
  }
}
