/* =========================
   AFAQ MAINTENANCE STYLES
   ========================= */

:root {
  --primary: #123f73;
  --primary-dark: #0b2f56;
  --secondary: #f39a23;
  --secondary-dark: #ffffff;
  --text: #243447;
  --muted: #6b7280;
  --bg: #ffffff;
  --soft-bg: #f7f9fc;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(18, 63, 115, 0.08);
  --radius: 18px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 14px;
}

.topbar-content {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar p {
  margin: 0;
  color: white;
}

.phone-link {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 63, 115, 0.08);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--primary);
  font-weight: 700;
  position: relative;
  transition: var(--transition);
}

nav a:hover {
  color: var(--secondary);
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(18, 63, 115, 0.14);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 63, 115, 0.18);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ff7800;
  color: var(--secondary-dark);
  border-color: rgba(243, 154, 35, 0.24);
}

.btn-secondary:hover {
  background: rgba(243, 154, 35, 0.2);
}

.section {
  padding: 88px 0;
}

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

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, rgba(18, 63, 115, 0.04), rgba(18, 63, 115, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background:#ff7800;
  color: var(--secondary-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}

h1, h2, h3, .feature-icon {
  color: var(--primary);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 30px);
  line-height: 1.25;
  font-weight: 800;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  font-weight: 800;
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.hero-contact-card,
.highlight-box,
.privacy-box,
.feature-card,
.service-card,
.testimonial,
.section-image-card,
.hero-slider {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-contact-card,
.highlight-box {
  padding: 18px 20px;
  color: var(--text);
}

.hero-contact-card a,
.highlight-box a {
  color: var(--primary);
  font-weight: 800;
}

.hero-slider {
  overflow: hidden;
  padding: 14px;
}

.slides {
  position: relative;
  min-height: 540px;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 14px;
}

.slide-caption {
  padding: 18px 4px 8px;
}

.slide-caption p {
  margin: 0;
}

.slider-controls,
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slider-controls {
  padding: 10px 6px 2px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 63, 115, 0.08);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

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

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(18, 63, 115, 0.18);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 30px;
  border-radius: 999px;
  background: var(--secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.section-image-card {
  padding: 14px;
  overflow: hidden;
}

.section-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 14px;
}

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

.section-heading.centered {
  text-align: center;
  margin-inline: auto auto;
}

.features-grid,
.services-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 28px 22px;
}

.feature-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 18px;
}

.testimonials-wrapper {
  max-width: 860px;
}

.testimonial-slider {
  position: relative;
}

.testimonial {
  display: none;
  padding: 30px 24px;
  text-align: center;
}

.testimonial.active {
  display: block;
}

.testimonial h3 {
  margin-top: 18px;
  color: var(--secondary-dark);
}

.privacy-box {
  padding: 34px 28px;
  max-width: 920px;
}

.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding-top: 60px;
}

.footer-grid {
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  align-items: start;
}

.footer .logo img {
  height: 78px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 16px;
}

.footer h3,
.footer a,
.footer .footer-phone,
.footer p {
  color: rgba(255,255,255,0.92);
}

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

.footer li + li {
  margin-top: 10px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--secondary);
  color: #fff;
}

.copyright {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

.floating-call,
.floating-whatsapp {
  position: fixed;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}

.floating-call {
  right: 20px;
  bottom: 84px;
  background: var(--primary);
  padding: 12px 18px;
}

.floating-whatsapp {
  left: 20px;
  bottom: 20px;
  background: #25d366;
  padding: 12px 16px;
}

.floating-call:hover,
.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
}

.desktop-cta {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .features-grid,
  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-wrapper,
  .privacy-box,
  .section-heading {
    max-width: 100%;
  }

  .slides {
    min-height: auto;
  }

  .slide img,
  .section-image-card img {
    height: auto;
  }
}

@media (max-width: 860px) {
  .topbar-content {
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    text-align: center;
  }

  .nav {
    min-height: 78px;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(18, 63, 115, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(18, 63, 115, 0.08);
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav a::after {
    display: none;
  }

  .desktop-cta {
    display: none;
  }

  .logo img {
    height: 62px;
  }

  .hero {
    padding-top: 40px;
  }

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

  .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .container {
    width: min(100% - 20px, 1120px);
  }

  .hero-slider {
    padding: 10px;
  }

  .slide img {
    height: 270px;
  }

  .service-card img {
    height: 200px;
  }

  .floating-call {
    right: 12px;
    left: 12px;
    bottom: 88px;
    justify-content: center;
  }

  .floating-whatsapp {
    left: 12px;
    right: 12px;
    bottom: 20px;
    justify-content: center;
  }

  .floating-whatsapp span {
    font-size: 14px;
  }
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
  text-align: center;
}

.brand {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.brand:hover {
  transform: scale(1.05);
}

.brand img {
  max-width: 120px;
  margin: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.3s;
}

.brand:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* موبايل */
@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }
}