/* تركيب وصيانة مكيفات الطائف — خفيف للأداء */
:root {
  --blue: #0a4d8c;
  --blue-light: #e8f4fc;
  --blue-mid: #1a6bb8;
  --white: #ffffff;
  --silver: #8b95a5;
  --silver-bg: #f4f6f8;
  --text: #1c2430;
  --shadow: 0 4px 24px rgba(10, 77, 140, 0.08);
  --radius: 12px;
  --sticky-h: 64px;
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --wa-green-light: #3fe67a;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  text-align: right;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0));
}

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

a {
  color: var(--blue-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-light);
  box-shadow: var(--shadow);
}

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

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--blue-mid);
}

.nav-toggle {
  display: none;
  background: var(--blue-light);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--white) 55%);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__visual {
  margin: 0;
}

.hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 480 / 300;
  object-fit: cover;
  background: var(--blue-light);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--blue);
  line-height: 1.3;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 38em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(10, 77, 140, 0.25);
}

.btn--primary:hover {
  background: var(--blue-mid);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}

.wa-icon {
  flex-shrink: 0;
  width: 1.35em;
  height: 1.35em;
  display: block;
}

.wa-icon--inline {
  display: inline-block;
  vertical-align: -0.2em;
  margin-inline-end: 0.25rem;
  width: 1.1em;
  height: 1.1em;
}

.btn--whatsapp {
  background: linear-gradient(165deg, var(--wa-green-light) 0%, var(--wa-green) 42%, #1ea34d 100%);
  color: #fff;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.12) inset,
    0 6px 18px rgba(18, 140, 126, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  min-height: 2.75rem;
  padding-inline: 1.1rem;
}

.btn--whatsapp:hover {
  color: #fff;
  background: linear-gradient(165deg, #4ef08e 0%, var(--wa-green) 40%, #199948 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 22px rgba(18, 140, 126, 0.55);
}

.btn--whatsapp:active {
  transform: translateY(1px);
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.footer-wa:hover {
  text-decoration: underline;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions--center {
  justify-content: center;
}

/* Sections */
.section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.section--alt {
  background: var(--silver-bg);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--blue);
}

.section__intro {
  margin: 0 0 1.75rem;
  color: var(--silver);
  max-width: 42em;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 77, 140, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__media {
  margin: 0;
  background: var(--silver-bg);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 220;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--blue);
}

.card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
}

.card .btn {
  align-self: flex-start;
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--blue-light);
}

.why-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
}

.why-item__icon img {
  width: 56px;
  height: 56px;
  display: block;
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--blue);
}

.why-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.92);
  padding: 2rem 0 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer__bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  opacity: 0.85;
}

.site-footer__credit {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0.88;
}

.site-footer__credit-brand {
  font-weight: 700;
  opacity: 1;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.site-footer__credit-brand:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

/* Sticky CTA bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--sticky-h);
  padding: 0.35rem;
  padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--blue-light);
}

.sticky-cta__call,
.sticky-cta__wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--white);
  padding: 0.85rem 0.6rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.sticky-cta__call {
  background: linear-gradient(165deg, var(--blue-mid) 0%, var(--blue) 55%, #063a66 100%);
  box-shadow: 0 4px 14px rgba(10, 77, 140, 0.35);
}

.sticky-cta__wa {
  background: linear-gradient(165deg, var(--wa-green-light) 0%, var(--wa-green) 45%, #169e4a 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.45);
  border-color: rgba(255, 255, 255, 0.55);
}

.sticky-cta__wa .wa-icon {
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.sticky-cta__call:hover,
.sticky-cta__wa:hover {
  filter: brightness(1.06);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.sticky-cta__call:active,
.sticky-cta__wa:active {
  transform: scale(0.98);
}

/* Service page */
.page-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: var(--blue-light);
}

.page-hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .page-hero__grid {
    grid-template-columns: 1fr minmax(200px, 320px);
  }
}

.page-hero__figure {
  margin: 0;
}

.page-hero__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 400 / 220;
  object-fit: cover;
  background: var(--silver-bg);
}

.page-hero__lead {
  margin: 0;
  max-width: 42rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  color: var(--blue);
}

.breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--silver);
}

.breadcrumb a {
  color: var(--blue-mid);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--blue);
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
  color: var(--blue-mid);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
}

.cta-inline {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--blue-light);
  border-radius: var(--radius);
  text-align: center;
}

.cta-inline p {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--blue);
}

.section-cta__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .section-cta__grid {
    grid-template-columns: minmax(200px, 340px) 1fr;
  }
}

.section-cta__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 400 / 180;
  object-fit: cover;
}

.section-cta__grid .section__intro {
  margin-bottom: 1rem;
}

.service-detail__head {
  margin-bottom: 0;
}

.service-detail__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 42rem;
}

.service-detail__body {
  margin-top: 1.75rem;
}

/* Gallery slider */
.gallery-slider {
  --slides: 6;
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: 0 2.75rem;
  outline: none;
}

.gallery-slider:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.gallery-slider__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  background: var(--silver-bg);
  box-shadow: var(--shadow);
}

.gallery-slider__track {
  display: flex;
  width: calc(var(--slides) * 100%);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slider__track {
    transition: none;
  }
}

.gallery-slider__slide {
  flex: 0 0 calc(100% / var(--slides));
  margin: 0;
  min-width: 0;
}

.gallery-slider__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(10, 77, 140, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-slider__btn:hover {
  background: var(--blue-mid);
}

.gallery-slider__btn:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-slider__btn--prev {
  inset-inline-start: 0;
}

.gallery-slider__btn--next {
  inset-inline-end: 0;
}

.gallery-slider__caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  min-height: 1.5em;
}

.gallery-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-slider__dot:hover {
  background: var(--blue-light);
}

.gallery-slider__dot.is-active {
  background: var(--blue);
  transform: scale(1.15);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FAQ accordion */
.section--faq {
  background: linear-gradient(165deg, #f0f7fc 0%, #e4eef6 45%, #f8fafc 100%);
  position: relative;
}

.section--faq::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--blue-mid), var(--blue), var(--blue-mid), transparent);
  opacity: 0.35;
}

.faq-section__head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.faq-section__badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(10, 77, 140, 0.12);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(10, 77, 140, 0.06);
}

.faq-section__title {
  margin-bottom: 0.5rem;
}

.faq-section__intro {
  margin-inline: auto;
  margin-bottom: 0;
}

.faq-accordion {
  max-width: 44rem;
  margin-inline: auto;
}

.faq-details {
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(10, 77, 140, 0.1);
  box-shadow: 0 4px 18px rgba(10, 77, 140, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-details:hover {
  border-color: rgba(10, 77, 140, 0.18);
  box-shadow: 0 8px 28px rgba(10, 77, 140, 0.1);
}

.faq-details[open] {
  border-color: rgba(26, 107, 184, 0.35);
  box-shadow: 0 10px 36px rgba(10, 77, 140, 0.12);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

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

.faq-summary::marker {
  content: none;
}

.faq-summary:hover {
  background: var(--blue-light);
}

.faq-details[open] .faq-summary {
  background: linear-gradient(180deg, var(--blue-light) 0%, rgba(232, 244, 252, 0.5) 100%);
  border-bottom: 1px solid rgba(10, 77, 140, 0.1);
}

.faq-summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid var(--blue-mid);
  border-bottom: 2px solid var(--blue-mid);
  transform: rotate(-45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: -0.2rem;
}

.faq-details[open] .faq-summary::after {
  transform: rotate(45deg);
  margin-top: 0.15rem;
}

.faq-panel {
  padding: 0 1.25rem 1.2rem;
  animation: faq-open 0.35s ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel {
    animation: none;
  }
}

.faq-panel p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text);
}

.faq-panel strong {
  color: var(--blue-mid);
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

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

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

  .sticky-cta__label {
    display: none;
  }

  .sticky-cta__call,
  .sticky-cta__wa {
    padding: 0.95rem 0.4rem;
  }

  .sticky-cta__wa .wa-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .gallery-slider {
    padding: 0 2.25rem;
  }

  .gallery-slider__btn {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.45rem;
  }
}

@media (min-width: 769px) {
  .sticky-cta {
    max-width: 420px;
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
    border: 1px solid var(--blue-light);
  }

  body {
    padding-bottom: 0;
  }
}
