
:root{
  --green:#176b2c;
  --green-2:#1e7d35;
  --navy:#0d2747;
  --navy-2:#13385f;
  --text:#172338;
  --muted:#6d7785;
  --light:#f5f8fb;
  --border:#dde5ec;
  --white:#ffffff;
  --shadow:0 14px 35px rgba(19,56,95,.10);
}
.hb-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:5px;font-weight:700;border:1px solid transparent;transition:.2s ease}
.hb-btn-primary{background:var(--green);color:#fff}.btn-primary:hover{background:#115724}
.hb-btn-outline{background:#fff;border-color:#8190a2;color:var(--navy)}
.hb-btn-light{background:#fff;color:var(--green)}

.home-section{padding:50px 0}.section-sm{padding:55px 0}.alt{background:var(--light)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}

.home-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center; 
}

/* Full-width image positioned in the background */
.home-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* White gradient overlay creating the soft fade behind the text */
.home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    #ffffff 0%, 
    #ffffff 38%, 
    rgba(255, 255, 255, 0.85) 48%, 
    rgba(255, 255, 255, 0) 65%
  );
  z-index: 1;
}

/* Grid layout for hero copy */
.home-hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
}

.home-hero-copy {
  max-width: 620px;
  padding: 70px 0;
}

.home-eyebrow, .home-section-label {
  display: block;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 800;
  margin-bottom: 14px; text-align: center;
}

.home-hero h1 {
  font-size: 54px;
  line-height: 1.05 !important;
  margin: 0 0 24px;
  color: var(--navy);
}

.home-hero h1 span {
  color: var(--green);
}

.home-hero p {
  font-size: 18px;
  color: #2e3a49;
  margin-bottom: 28px;
}

.home-hero-actions {
  display: flex;
  gap: 14px;
}
.home-service-cards{margin-top:-70px;position:relative;z-index:10}
.home-cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.home-service-card{background:#fff;padding:34px 28px;border-radius:12px;box-shadow:var(--shadow);border:1px solid #edf1f4;min-height:255px}
.home-service-card .home-icon{font-size:38px;color:var(--green);margin-bottom:18px}
.home-service-card h3{font-size:20px;color:var(--navy);margin:0 0 12px}
.home-service-card p{color:var(--muted);font-size:14px;min-height:82px}
.home-service-card a{color:var(--green);font-weight:800;font-size:14px}

.centered{text-align:center;max-width:760px;margin-left:auto!important;margin-right:auto!important}.centered-label{display:block;text-align:center}
.industry-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px}
.industry-grid div{padding:24px;border:1px solid var(--border);border-radius:10px;background:#fff;font-weight:800;color:var(--navy);text-align:center}
.project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:36px}
.project-grid article{background:#fff;padding:28px;border-radius:10px;border:1px solid var(--border)}
.project-grid h3{margin-top:0;color:var(--navy)}
.project-grid p{color:var(--muted)}
.logo-row{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-top:26px}
.logo-placeholder{height:82px;border:1px dashed #b8c4cf;border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;color:#7a8795;font-size:12px;padding:10px;background:#fff}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  /* Section Padding */
  .home-section {
    padding: 50px 0;
  }
  .section-sm {
    padding: 35px 0;
  }

  /* Two Column Layouts */
  .two-col {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* Hero Section */
  .home-hero {
    min-height: auto;
  }

  /* Switch gradient overlay to vertical so text stays legible over full-width image */
  .home-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 60%,
      rgba(255, 255, 255, 0.4) 100%
    );
  }

  .home-hero-copy {
    padding: 50px 0 60px;
    max-width: 100%;
  }

  .home-hero h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .home-hero p {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .home-hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  /* Grids - Stack columns on mobile */
  .home-service-cards {
    margin-top: 0; /* Reset negative margin on mobile to prevent overlapping */
  }

  .home-cards-grid,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-service-card p {
    min-height: auto; /* Remove fixed height constraint for text flow */
  }

  .industry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .logo-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
.tab-section.banner{padding-bottom: 0 !important;}
/* Extra small mobile screens */
@media screen and (max-width: 480px) {
  .home-hero h1 {
    font-size: 28px;
  }

  .logo-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.callout  h3{margin-top: .5rem;}
.callout  h3 a{ margin-left: 20px; padding: 8px 15px;}

.image-triptych {
    width: 100%;
    height: 400px;
    display: flex;
    position: relative;
    overflow: hidden;
    background: #fff; gap: 15px;
}

.triptych-item {
    position: relative;
    height: 100%;
    flex: 1;
    overflow: hidden;

    clip-path: polygon(
        12% 0,
        100% 0,
        88% 100%,
        0 100%
    );
}

.item-1 {
    margin-left: -15px;
    margin-right: -35px;
    z-index: 3;
}

.item-2 {
    margin-right: -35px;
    z-index: 2;
}

.item-3 {
    z-index: 1;
}

.triptych-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* Images */
.item-1 .triptych-bg {
    background-image: url("../images/engineers.png");
}

.item-2 .triptych-bg {
    background-image: url("../images/railway.png");
}

.item-3 .triptych-bg {
    background-image: url("../images/aircraft.png");
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .image-triptych {
        height: 330px;
    }

    .item-1,
    .item-2 {
        margin-right: -25px;
    }
}

/* =========================
   MOBILE
========================= */
.callout {margin-bottom: 20px;}
@media (max-width: 600px) {

    .image-triptych {
        height: 220px; gap: 2px;
    }

    .triptych-item {
        clip-path: polygon(
            14% 0,
            100% 0,
            86% 100%,
            0 100%
        );
    }

    .item-1 {
        margin-left: -10px;
        margin-right: -18px;
    }

    .item-2 {
        margin-right: -18px;
    }

    .nav-tabs-1{gap: 15px;}
    .about-copy h2, .industries h2, .projects h2{font-size: 30px; line-height: 1.2;}
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 400px) {

    .image-triptych {
        height: 180px;
    }

    .item-1,
    .item-2 {
        margin-right: -12px;
    }
}

.image-collage{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;transform:skewX(-6deg)}
.image-box{min-height:330px;background:linear-gradient(160deg,#dfe8ec,#c4d4dc);display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;color:#5b6878;font-weight:700;border-radius:8px;transform:skewX(6deg)}
.about-copy h2,.industries h2,.projects h2{font-size:38px;line-height:1.15;color:var(--navy);margin:0 0 20px}
.about-copy p{color:#4c5967}
.values-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px}
.values-grid div{border-left:4px solid var(--green);padding:10px 14px;background:#f8fafb}
.values-grid strong,.values-grid span{display:block}.values-grid span{font-size:13px;color:var(--muted)}
.stats{background:linear-gradient(90deg,#071e35,#0c3156);color:#fff}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.stat{text-align:center;padding:20px;border-right:1px solid rgba(255,255,255,.14)}
.stat:last-child{border-right:none}.stat strong{display:block;font-size:44px; line-height: 1.55;}.stat span{display:block;font-weight:700}.stat small{opacity:.7}
/* Tablet & Mobile (Up to 768px) */
@media screen and (max-width: 768px) {
  .stats-grid {
    /* Switches from 4 columns to a 2x2 grid on tablets/large phones */
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 24px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  /* Remove right border on every 2nd item in a 2-column layout */
  .stat:nth-child(2n) {
    border-right: none;
  }

  /* Remove bottom border on the last two items */
  .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .stat strong {
    font-size: 36px;
    line-height: 1.2;
  }
}

/* Small Mobile Screens (Up to 480px) */
@media screen and (max-width: 480px) {
  .stats-grid {
    /* Stacks into a single full-width column */
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 20px 10px;
    border-right: none; /* Reset right borders for single column */
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  /* Ensure the last stat has no bottom border */
  .stat:last-child {
    border-bottom: none;
  }

  .stat strong {
    font-size: 32px;
  }
}