/* ===== JMB Infra Homepage ===== */
:root {
  --jmb-red: #e60000;
  --jmb-gold: #fea703;
  --jmb-dark: #111111;
  --jmb-text: #555555;
  --jmb-muted: #777777;
  --jmb-bg: #f5f5f5;
  --jmb-white: #ffffff;
  --jmb-border: #e6e6e6;
  --jmb-section-y: 60px;
  --jmb-header-mb: 40px;
  --jmb-title-size: 30px;
  --jmb-line-w: 64px;
}

/* Shared headers */
.home-section-header,
.why-choose-heading,
.org-values-header {
  margin-bottom: var(--jmb-header-mb);
}

.home-section-header,
.org-values-header {
  text-align: center;
}

.home-section-header.left,
.why-choose-heading {
  text-align: left;
}

.home-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--jmb-gold);
  margin-bottom: 8px;
}

.home-section-header h2,
.home-section-header h3,
.why-choose-heading h2,
.org-values-header h2,
.d12-inner h3 {
  font-size: var(--jmb-title-size) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--jmb-red);
  margin: 0 0 12px;
  line-height: 1.25;
  padding: 0;
}

.d12-inner h3 {
  color: #fff !important;
}

.home-line,
.why-choose-heading .why-line,
.org-values-line {
  width: var(--jmb-line-w);
  height: 3px;
  background: var(--jmb-dark);
  margin: 0 auto 14px;
}

.home-section-header.left .home-line,
.why-choose-heading .why-line {
  margin-left: 0;
  margin-right: 0;
}

.home-section-header p,
.org-values-header p,
.info-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: var(--jmb-text);
  font-size: 15px;
  line-height: 1.7;
}

.home-section-header.left p {
  margin-left: 0;
}

/* Section rhythm + backgrounds */
.about.home-about,
.services-section,
.info-about-us,
.why-choose-sec,
.org-values,
.faq-section.home-faq {
  padding: var(--jmb-section-y) 0 !important;
}

@media (max-width: 2560px) {
  .about.home-about {
    padding: var(--jmb-section-y) 0 !important;
  }
}

.about.home-about,
.info-about-us,
.why-choose-sec {
  background: var(--jmb-white) !important;
}

.services-section,
.org-values,
.faq-section.home-faq {
  background: var(--jmb-bg) !important;
}

/* About */
.about.home-about {
  position: relative;
  width: 100%;
}

.home-about .about-text p {
  text-align: left;
  color: var(--jmb-text);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.home-about .about-text p:last-of-type {
  margin-bottom: 0;
}

.home-about-img {
  position: relative;
  z-index: 1;
}

.home-about-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* .home-about-img::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--jmb-red);
  z-index: -1;
} */

.home-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.home-stat {
  background: var(--jmb-bg);
  border-left: 3px solid var(--jmb-red);
  padding: 14px 12px;
}

.home-stat strong {
  display: block;
  font-size: 22px;
  color: var(--jmb-red);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.home-stat span {
  font-size: 11px;
  color: var(--jmb-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mission */
.d12 {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.82), rgba(230, 0, 0, 0.42)), url(../images2/d12.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 70px 0;
}

.d12-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.d12-inner .home-line {
  background: var(--jmb-gold);
  margin-bottom: 24px;
}

.d12-inner p {
  font-size: 15px;
  line-height: 1.85;
  margin: 0 auto 14px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
}

.d12-inner p:last-child {
  margin-bottom: 0;
}

.d12-inner strong {
  color: #fff;
}

/* Equal-height card grids */
.services-section .row,
.info-about-us .row,
.org-values .row {
  display: flex;
  flex-wrap: wrap;
}

.services-section .row > [class*="col-"],
.info-about-us .row > [class*="col-"],
.org-values .row > [class*="col-"] {
  display: flex;
  margin-bottom: 24px;
}

.service-card,
.branch-card,
.value-card {
  width: 100%;
  height: 100%;
  background: var(--jmb-white);
  border: 1px solid var(--jmb-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.branch-card:hover,
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--jmb-red);
}

/* Services */
.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.service-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.service-card:hover .service-image {
  transform: scale(1.03);
}

.service-content {
  padding: 0 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  background: var(--jmb-white);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--jmb-red);
  margin: -32px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(230, 0, 0, 0.25);
  transition: background 0.25s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.service-card:hover .service-icon {
  background: var(--jmb-dark);
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.service-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
  color: var(--jmb-dark);
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--jmb-text);
  text-align: center;
  margin: 0;
  flex: 1;
}

/* Branches */
.branch-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: none;
}

.branch-card::before {
  display: none !important;
}

.branch-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  margin: 0;
  position: relative;
  border-radius: 0;
}

.branch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.branch-card:hover .branch-image img {
  transform: scale(1.05);
}

.branch-body {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.branch-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 0;
  background: var(--jmb-red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: none;
  font-size: 12px;
}

.branch-meta {
  min-width: 0;
}

.branch-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--jmb-dark);
  margin: 0 0 2px;
  line-height: 1.3;
}

.branch-state {
  font-size: 13px;
  color: var(--jmb-muted);
  font-weight: 600;
  margin: 0;
}

/* Why Choose */
.why-choose-sec {
  position: relative;
  overflow: hidden;
}

.why-choose-sec::before,
.why-choose-sec::after,
.org-values::before,
.org-values::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 32px solid rgba(230, 0, 0, 0.045);
  pointer-events: none;
  z-index: 0;
  transform: rotate(45deg);
}

.why-choose-sec::before {
  top: -150px;
  left: -160px;
}

.why-choose-sec::after {
  bottom: -160px;
  right: -140px;
  border-color: rgba(0, 0, 0, 0.035);
}

.why-choose-sec .container,
.org-values .container {
  position: relative;
  z-index: 1;
}

.why-choose-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-choose-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--jmb-bg);
  border: 1px solid var(--jmb-border);
  border-left: 3px solid var(--jmb-red);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-choose-list li:last-child {
  margin-bottom: 0;
}

.why-choose-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.why-choose-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--jmb-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.why-choose-list li span {
  font-size: 15px;
  font-weight: 600;
  color: var(--jmb-dark);
  line-height: 1.4;
}

.why-choose-image-wrap {
  position: relative;
  z-index: 1;
  height: 100%;
}

.why-choose-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* .why-choose-image-wrap::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--jmb-red);
  z-index: -1;
} */

/* Core Values */
.org-values {
  position: relative;
  overflow: hidden;
}

.org-values::before {
  top: -140px;
  right: -150px;
}

.org-values::after {
  bottom: -150px;
  left: -140px;
  border-color: rgba(254, 167, 3, 0.07);
}

.value-card {
  text-align: center;
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.value-icon svg {
  width: 34px;
  height: 34px;
}

.value-icon--red {
  background: var(--jmb-red);
}

.value-icon--gold {
  background: var(--jmb-gold);
}

.value-card h5 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--jmb-dark);
}

.value-card p {
  margin: 0;
  color: var(--jmb-text);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

/* FAQ */
.home-faq .faq {
  max-width: 920px;
  margin: 0 auto;
}

.home-faq .faq .card {
  background: var(--jmb-white);
  border: 1px solid var(--jmb-border) !important;
  border-radius: 0;
  margin-bottom: 10px;
  box-shadow: none;
}

.home-faq .faq .card .card-header {
  background: var(--jmb-white);
  padding: 0;
}

.home-faq .faq .card .card-header:hover {
  background: #fafafa;
  padding-left: 0;
}

.home-faq .faq .card .card-header .faq-title {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jmb-dark);
  margin: 0;
  display: flex;
  align-items: center;
}

.home-faq .faq .card .card-header .faq-title .badge {
  background: var(--jmb-red);
  color: #fff;
  border-radius: 0;
  margin-right: 12px;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.home-faq .faq .card .card-body {
  padding: 0 18px 18px 58px;
  color: var(--jmb-text);
  line-height: 1.75;
}

.home-faq .faq .card .card-body p {
  margin: 0;
}

/* Enquiry */
.booking.home-enquiry {
  position: relative;
  padding: 70px 0;
  margin-bottom: 0;
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.84), rgba(230, 0, 0, 0.5)), url(../images2/d12.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.booking.home-enquiry .booking-form {
  background: rgba(255, 255, 255, 0.98);
  padding: 36px 32px;
  margin: 0 auto;
  max-width: 520px;
  border-radius: 0;
  border-top: 4px solid var(--jmb-red);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.booking.home-enquiry .booking-form h2 {
  color: var(--jmb-red) !important;
  font-size: 26px !important;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
  padding: 0;
}

.booking.home-enquiry .enquiry-line {
  width: var(--jmb-line-w);
  height: 3px;
  background: var(--jmb-dark);
  margin: 0 auto 24px;
}

.booking.home-enquiry .control-group {
  margin-bottom: 14px;
}

.booking.home-enquiry .booking-form .form-control {
  border-radius: 0 !important;
  height: 48px;
  color: #222;
  border: 1px solid #ddd;
  background: #fff;
  padding-right: 42px;
}

.booking.home-enquiry .booking-form .form-control::placeholder {
  color: #888;
  opacity: 1;
}

.booking.home-enquiry .booking-form .input-group {
  position: relative;
}

.booking.home-enquiry .booking-form .input-group-text {
  position: absolute;
  padding: 0;
  border: none;
  background: none;
  top: 16px;
  right: 15px;
  color: var(--jmb-red);
  font-size: 14px;
  z-index: 2;
}

.booking.home-enquiry .booking-form .btn.custom-btn {
  width: 100%;
  border-radius: 0;
  color: #fff;
  background: var(--jmb-red);
  border: 1px solid var(--jmb-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  margin-top: 4px;
}

.booking.home-enquiry .booking-form .btn.custom-btn:hover {
  color: #fff;
  background: var(--jmb-dark);
  border-color: var(--jmb-dark);
}

@media (max-width: 991px) {
  .home-about-img img {
    height: 360px;
  }

  .why-choose-image-wrap {
    margin-top: 24px;
  }

  .why-choose-image-wrap img {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  :root {
    --jmb-section-y: 42px;
    --jmb-header-mb: 28px;
    --jmb-title-size: 24px;
  }

  .home-about-img {
    margin-top: 28px;
  }

  .home-about-img img {
    height: 260px;
  }

  .home-about-img::before,
  .why-choose-image-wrap::before {
    display: none;
  }

  .home-about-stats {
    grid-template-columns: 1fr;
  }

  .d12 {
    background-attachment: scroll;
    padding: 48px 0;
  }

  .service-title {
    min-height: 0;
  }

  .why-choose-image-wrap img {
    min-height: 240px;
  }

  .home-faq .faq .card .card-body {
    padding-left: 18px;
  }

  .booking.home-enquiry {
    padding: 48px 0;
  }

  .booking.home-enquiry .booking-form {
    padding: 28px 20px;
  }
}
