/* Jewar Nirman preview overrides.
   Desktop layout is preserved except for the approved shorter hero copy styles.
   Timeline and mobile-hero fixes apply below 992px / 768px. */

/* ---- Hero copy (desktop + mobile): shorter, brand eyebrow, CTAs in a row ---- */
.hero-content .hero-eyebrow {
  display: block;
  color: #fff5e2;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content .hero-lead {
  color: #f0f0f0;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-content .hero-points {
  list-style: none;
  padding-left: 0;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 17px;
}

.hero-content .hero-points li {
  margin-bottom: 8px;
}

.hero-content .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}

.hero-content .hero-ctas .theme-btn,
.hero-content .hero-ctas a.theme-btn {
  margin-top: 0;
  margin-right: 0;
}

@media only screen and (max-width: 767px) {
  .hero-area {
    background-image: url("../img/hero-mobile.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: none;
  }

  .hero-area.py-250 {
    padding-top: 130px;
    padding-bottom: 90px;
  }

  .hero-content .hero-eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .hero-content h1 {
    font-size: 28px !important;
    line-height: 1.2;
    margin-bottom: 12px !important;
  }

  .hero-content .hero-lead {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .hero-content .hero-points {
    font-size: 14px;
  }

  .hero-content .hero-points li {
    margin-bottom: 6px;
  }

  .hero-content .hero-ctas {
    margin-top: 16px;
    gap: 8px 8px;
  }

  /* Keep both CTAs side by side when they fit */
  .hero-content .hero-ctas .theme-btn,
  .hero-content .hero-ctas a.theme-btn {
    padding: 10px 14px;
    font-size: 14px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

/* ---- Timeline / services: clean vertical list on tablet + mobile ---- */
@media only screen and (max-width: 991px) {
  /* Hide the large cream triangle that leaves an empty gap under the images */
  .timeline-images:before {
    content: none !important;
    display: none !important;
  }

  .timeline-area .timeline-images.rmb-100 {
    margin-bottom: 28px !important;
  }

  /* Hide the stray left arrow (slick-current decorative control) */
  .timeline-item:before,
  .timeline-item.slick-current:before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
  }

  /* Neutralize Slick's vertical-slider transforms so items stay in one list.
     Note: Slick adds .slick-slide onto .timeline-item itself (no wrapper div). */
  .timeline-content .slick-list {
    height: auto !important;
    overflow: visible !important;
  }

  .timeline-content .slick-track {
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .timeline-content {
    position: relative;
    padding-left: 0;
  }

  /* Thin connecting line through the circle centres */
  .timeline-content:after {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--heading-color);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
  }

  .timeline-content .timeline-item,
  .timeline-content .slick-slide.timeline-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    min-height: 0 !important;
    position: relative;
  }

  .timeline-content .timeline-item:last-child {
    margin-bottom: 0 !important;
  }

  .timeline-content .timeline-item .icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    margin: 2px 14px 0 0 !important;
    position: relative;
    z-index: 1;
    background: #fff;
    box-sizing: border-box;
    border-radius: 50%;
  }

  .timeline-content .timeline-item .icon:after {
    width: 8px !important;
    height: 8px !important;
  }

  /* Active ring stays consistent and centred on the same-size circle */
  .timeline-content .timeline-item .icon:before {
    width: 160% !important;
    height: 160% !important;
  }

  .timeline-content .timeline-item .content {
    flex: 1 1 auto;
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 36px);
    text-align: left;
    padding-top: 0;
  }

  .timeline-item .content .h5 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .timeline-item .content .description {
    font-size: 14px;
    line-height: 1.45;
  }
}

@media only screen and (max-width: 767px) {
  .timeline-item .content .h5 {
    font-size: 16px;
  }
}

/* ---- Desktop timeline circles: stop flex-shrink ovals, align one column ---- */
@media only screen and (min-width: 992px) {
  /* Hide the left arrow so every circle shares the same x position */
  .timeline-item:before,
  .timeline-item.slick-current:before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
  }

  .timeline-content .timeline-item,
  .timeline-content .slick-slide.timeline-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding-left: 20px !important;
  }

  .timeline-content .timeline-item .icon {
    box-sizing: border-box !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    flex: 0 0 60px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    align-self: center !important;
    border-radius: 50% !important;
    margin-right: 28px !important;
  }

  /* Let the text wrap instead of shrinking the circle */
  .timeline-content .timeline-item .content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }
}

/* Service pages have a light top; theme nav links are white, so give the bar a solid background */
body:has(.service-section) .main-header .header-upper {
  background-color: #4A515B;
}

/* Header logo: ~25–30% smaller than the 218×120 desktop size, keep aspect ratio.
   Inline height:120px is overridden. Sticky header uses the same size. */
.main-header .logo-outer .logo img,
.main-header.fixed-header .logo-outer .logo img {
  width: 154px;
  height: auto !important;
  max-width: 100%;
}

/* Tablet / mobile header uses .mobile-logo (logo-outer is hidden ≤991px).
   Without a cap, 576–991 showed the full 411×226 image. */
@media only screen and (max-width: 991px) {
  .main-menu .mobile-logo {
    max-width: 130px;
  }
  .main-menu .mobile-logo img {
    width: 130px;
    height: auto !important;
    max-width: 100%;
  }
}

@media only screen and (max-width: 575px) {
  /* Was 150×82.5; slightly smaller so the bar shortens, tagline stays legible. */
  .main-menu .mobile-logo {
    max-width: 120px;
  }
  .main-menu .mobile-logo img {
    width: 120px;
  }
}
