/* ==========================================================================
   City Pages Stylesheet - شركة الثقة لمكافحة الحشرات
   ========================================================================== */

/* City Hero Section */
.city-hero {
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FBF7F3;
  background: #1B2A38;
  isolation: isolate;
  text-align: right;
}

.city-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(270deg, #1B2A38 0%, rgba(27, 42, 56, .97) 40%, rgba(27, 42, 56, .75) 65%, rgba(27, 42, 56, .2) 100%);
}

.city-hero-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.city-hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 64px));
  margin-inline: max(5.2vw, calc((100vw - 1240px) / 2));
  padding-block: 76px 91px;
  text-align: right;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #EEE8DD;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.breadcrumb a {
  color: #EEE8DD;
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  opacity: .5;
}

.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(238, 232, 221, .15);
  border: 1px solid rgba(238, 232, 221, .3);
  color: #EEE8DD;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .02em;
}

.city-hero h1 {
  font-size: clamp(34px, 4.2vw, 55px);
  line-height: 1.3;
  letter-spacing: -.04em;
  margin: 0 0 16px;
  font-weight: 700;
  color: #FFFFFF;
  text-wrap: balance;
  text-align: right;
}

.city-hero h1 span {
  color: #EEE8DD;
}

.city-hero p {
  max-width: 530px;
  color: #EEE8DD;
  font-size: 14px;
  line-height: 2;
  margin: 0;
  text-align: right;
}

.city-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: flex-start;
}

.city-hero-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.city-hero-top-bar .city-badge {
  margin-bottom: 0;
}

/* Nav Actions & Back Home Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #EEE8DD;
  color: #1B2A38;
  border: 1px solid rgba(98, 104, 110, 0.25);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.nav-back-pill:hover {
  background: #1B2A38;
  color: #FBF7F3;
  border-color: #1B2A38;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 42, 56, .15);
}

.back-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(238, 232, 221, 0.18);
  border: 1px solid rgba(238, 232, 221, 0.4);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  width: fit-content;
}

.back-home-pill:hover {
  background: #FFFFFF;
  color: #1B2A38;
  border-color: #FFFFFF;
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.button-primary-dark {
  background: #1B2A38;
  color: #FBF7F3;
  border: 1px solid #1B2A38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 12px 22px;
  min-height: 46px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}

.button-primary-dark:hover {
  transform: translateY(-2px);
  background: #62686E;
  border-color: #62686E;
  box-shadow: 0 6px 18px rgba(27, 42, 56, .2);
}

/* Stats Bar */
.stats-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #EEE8DD;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-left: 1px solid #EEE8DD;
  text-align: center;
}

.stat-item:last-child {
  border-left: 0;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #1B2A38;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: #62686E;
}

/* About City */
.about-city {
  background: #FBF7F3;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
  letter-spacing: -.03em;
  color: #1B2A38;
  margin: 0 0 16px;
}

.about-text .kicker {
  color: #62686E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.about-text .kicker::before,
.about-text .kicker::after {
  content: "-";
  color: #62686E;
  margin: 0 9px;
}

.about-text p {
  color: #62686E;
  font-size: 13px;
  line-height: 2;
  margin: 0 0 16px;
}

.about-text p:last-of-type {
  margin-bottom: 24px;
}

.about-visual {
  background: #1B2A38;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #62686E;
  min-height: 380px;
  display: grid;
  place-items: center;
  position: relative;
}

.about-visual-inner {
  padding: 36px;
  text-align: center;
  color: #FBF7F3;
}

.city-icon-big {
  width: 80px;
  height: 80px;
  background: rgba(238, 232, 221, .12);
  border: 1px solid rgba(238, 232, 221, .25);
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: #EEE8DD;
}

.about-visual h3 {
  font-size: 20px;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.about-visual p {
  font-size: 12px;
  color: #EEE8DD;
  line-height: 1.9;
  opacity: .9;
}

.district-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.district-tag {
  background: rgba(238, 232, 221, .12);
  border: 1px solid rgba(238, 232, 221, .2);
  color: #EEE8DD;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* City Services */
.city-services {
  background: #EEE8DD;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.city-services .service-card {
  min-height: 178px;
  padding: 18px 15px 16px;
  border: 1px solid rgba(98, 104, 110, .15);
  border-radius: 14px;
  background: #FFFFFF;
  text-align: center;
  text-decoration: none;
  color: #1B2A38;
  box-shadow: 0 4px 14px rgba(27, 42, 56, .04);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.city-services .service-card:hover {
  transform: translateY(-4px);
  border-color: #1B2A38;
  box-shadow: 0 12px 28px rgba(27, 42, 56, .12);
}

.bug-art {
  height: 91px;
  display: grid;
  place-items: center;
  color: #1B2A38;
  position: relative;
  width: 100%;
}

.bug-art::before {
  content: "";
  width: 64px;
  height: 64px;
  position: absolute;
  border-radius: 50%;
  background: #EEE8DD;
}

.bug-art svg {
  z-index: 1;
  filter: drop-shadow(0 4px 6px rgba(27, 42, 56, .06));
}

.city-services .service-card h3 {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1B2A38;
}

.service-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1B2A38;
  color: #FBF7F3;
}

/* Features */
.features-section {
  background: #FFFFFF;
}

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

.feature-card {
  padding: 28px 24px;
  border: 1px solid #EEE8DD;
  border-radius: 14px;
  background: #FBF7F3;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #1B2A38;
  box-shadow: 0 10px 24px rgba(27, 42, 56, .08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(98, 104, 110, .2);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #EEE8DD;
  color: #1B2A38;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1B2A38;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 12px;
  color: #62686E;
  line-height: 1.9;
  margin: 0;
}

/* Process Section */
.process-section {
  background: #FBF7F3;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #62686E, transparent);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1B2A38;
  color: #FBF7F3;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 20px;
  font-weight: 700;
  border: 4px solid #FBF7F3;
  box-shadow: 0 0 0 1px #62686E;
}

.process-step h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1B2A38;
  margin: 0 0 8px;
}

.process-step p {
  font-size: 11px;
  color: #62686E;
  line-height: 1.8;
  margin: 0;
}

/* CTA Band */
.cta-band {
  background: #1B2A38;
  padding: 56px 0;
  border-top: 1px solid #62686E;
  border-bottom: 1px solid #62686E;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.35;
}

.cta-text p {
  color: #EEE8DD;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Responsive Overrides for City Pages */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .process-steps::before {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .city-hero {
    min-height: 520px;
  }

  .city-hero-content {
    width: min(calc(100% - 36px), 540px);
    margin-inline: auto;
    padding-block: 80px 72px;
  }

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

  .stat-item:nth-child(2) {
    border-left: 0;
  }

  .stat-item {
    border-bottom: 1px solid #EEE8DD;
  }

  .stat-item:nth-child(3),
  .stat-item:last-child {
    border-bottom: 0;
  }

  .city-services .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .city-services .service-card {
    min-height: 160px;
    padding: 12px 8px;
  }

  .bug-art {
    height: 81px;
  }

  .bug-art::before {
    width: 57px;
    height: 57px;
  }

  .city-services .service-card h3 {
    font-size: 12px;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

