
:root{--blue:#0b4f93;--blue2:#0a3e78;--orange:#ff741c;--gray:#bfc3c6;--dark:#111827;--text:#283241}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:white}a{text-decoration:none;color:inherit}.wrap{max-width:1320px;margin:0 auto;padding:0 34px}
.top-strip{background:linear-gradient(90deg,#093d75,#0b579a);color:white;font-size:15px}.top-inner{min-height:34px;display:flex;align-items:center;gap:28px}.serve{margin-left:auto}
.main-header{min-height:86px;background:white;box-shadow:0 2px 12px rgba(0,0,0,.1);position:relative;z-index:5}.header-inner{min-height:86px;display:flex;align-items:center;gap:24px}.logo{height:72px;width:205px;object-fit:contain;display:block}
nav{display:flex;align-items:center;justify-content:center;gap:22px;flex:1;text-transform:uppercase;font-size:13px;font-weight:800;color:#2b3038;letter-spacing:.03em}nav a{padding:34px 0 28px;border-bottom:3px solid transparent;white-space:nowrap}nav a.active,nav a:hover{color:var(--orange);border-bottom-color:var(--orange)}
.quote-btn,.hero-btn,.small-btn{background:var(--orange);color:white;text-transform:uppercase;font-weight:800;border-radius:3px;padding:14px 22px;display:inline-block;letter-spacing:.02em;border:0;cursor:pointer}
.hero{height:392px;background:linear-gradient(90deg,rgba(6,43,82,.9),rgba(7,52,94,.65) 34%,rgba(0,0,0,0) 56%),url('assets/homepage-building.jpg') center/cover;position:relative;overflow:hidden;color:white}.hero:after{content:"";position:absolute;left:432px;top:0;width:150px;height:100%;background:rgba(6,43,82,.75);transform:skewX(-12deg);transform-origin:top}.hero-content{position:relative;z-index:2;padding-top:44px}.hero h1{margin:0;text-transform:uppercase;font-size:48px;line-height:1.08;letter-spacing:.02em;color:white}.hero h1 span{color:var(--orange)}.orange-line,.title-line{width:66px;height:3px;background:var(--orange);margin:18px 0}.hero p{max-width:420px;font-size:16px;line-height:1.45;margin:0 0 24px}.hero-btn{padding:12px 19px;font-size:14px}
.badges{min-height:96px;background:linear-gradient(90deg,#c9c9c9,#f4f4f4,#c9c9c9);display:flex;align-items:center}.badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}.badge{display:flex;gap:18px;align-items:center;min-height:70px;border-right:1px solid rgba(255,255,255,.9)}.badge:last-child{border-right:0}.badge-icon{min-width:58px;width:58px;height:58px;border-radius:50%;background:white;display:grid;place-items:center}.badge-icon img{width:39px;height:39px}.badge h3{margin:0 0 4px;color:var(--blue);text-transform:uppercase;font-size:14px}.badge p{margin:0;font-size:13px;line-height:1.25;color:#4e5660}
.lower{display:grid;grid-template-columns:1.05fr .95fr;gap:52px;padding-top:28px;padding-bottom:34px}.lower h2{text-transform:uppercase;color:var(--blue);font-size:22px;margin:0}.service-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.service-cards article{height:160px;border:1px solid #ddd;background:white;text-align:center;padding:16px 12px;box-shadow:0 1px 5px rgba(0,0,0,.04)}.service-cards img{height:46px;margin-bottom:10px}.service-cards h3{margin:0 0 8px;text-transform:uppercase;color:var(--blue);font-size:13px}.service-cards p{margin:0;font-size:11.5px;line-height:1.35}.small-btn{font-size:12px;padding:11px 18px;margin-top:16px}.map-panel{border-left:1px solid #d5d5d5;padding-left:52px}.map-row{display:grid;grid-template-columns:1.5fr .75fr;gap:22px;align-items:center}.map-row img{width:100%;height:205px;object-fit:cover;object-position:center;border:0}.map-copy p{font-size:14px;line-height:1.55;margin:0 0 14px}
.careers-callout{background:#f2f4f6;padding:34px 0;border-top:1px solid #d8dde3}.careers-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;background:white;border-left:7px solid var(--orange);box-shadow:0 10px 28px rgba(0,0,0,.08);padding-top:26px;padding-bottom:26px}.careers-inner h2{margin:0 0 8px;color:var(--blue);text-transform:uppercase}.careers-inner p{margin:0;max-width:760px}
.page-hero{background:linear-gradient(110deg,rgba(6,43,82,.95),rgba(11,79,147,.85)),url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1600&q=80') center/cover;color:white;padding:70px 0}.page-hero h1{font-size:52px;text-transform:uppercase;margin:0 0 12px}.page-hero p{font-size:18px;margin:0;max-width:760px}.content-page{padding-top:54px;padding-bottom:54px}.two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:38px;align-items:start}.two-col h2,.detail-grid h2{color:var(--blue);text-transform:uppercase}.info-card,.detail-grid article{background:#f4f6f8;border-top:6px solid var(--orange);padding:28px;box-shadow:0 8px 24px rgba(0,0,0,.08)}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.detail-grid img{height:56px}.placeholder-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:32px}.placeholder-gallery div{height:190px;background:linear-gradient(135deg,#d9dee3,#f4f6f8);display:grid;place-items:center;color:#6b7280;font-weight:800;text-transform:uppercase;border:1px solid #d5dbe0}.contact-card iframe{width:100%;height:260px;border:0;border-radius:8px;margin-top:12px}
.application-wrap{background:#f2f4f6;padding:50px 24px}.application-form{max-width:1050px;margin:auto;background:white;padding:38px;border-radius:12px;border-top:7px solid var(--orange);box-shadow:0 12px 35px rgba(0,0,0,.12)}.application-form h2{color:var(--blue);text-transform:uppercase;font-size:22px;margin:26px 0 16px}.application-form h2:first-child{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.application-form label{display:grid;gap:7px;font-weight:800;color:var(--blue);margin-bottom:16px}.application-form input,.application-form textarea{border:1px solid #ccd3da;border-radius:6px;padding:12px;font:inherit}.application-form textarea{resize:vertical}.checks{display:grid;gap:8px;margin:12px 0}.checks label{display:flex;color:#333;font-weight:700;gap:8px;margin:0}.checks input{width:auto}.form-note{background:#eef3f8;border-left:5px solid var(--blue);padding:14px;border-radius:6px}.submit{font-size:14px}.contact-form{margin:0}
footer{background:linear-gradient(90deg,#083b72,#0a5796,#083b72);color:white;padding:14px 0 8px}.footer-grid{display:grid;grid-template-columns:1fr 1.2fr 1.1fr .55fr;align-items:center;gap:24px}.abc{font-size:11px;text-align:center}.abc strong{display:block;font-size:32px;line-height:1}.abc small{font-size:9px;display:block}.foot-logo{text-align:center}.foot-logo img{height:72px;width:205px;object-fit:contain;background:white;border-radius:4px}.foot-contact p{font-size:13px;margin:4px 0}.socials{display:flex;gap:12px}.socials span{display:grid;place-items:center;width:30px;height:30px;background:rgba(255,255,255,.85);color:var(--blue);border-radius:50%;font-weight:800}.copyright{text-align:center;font-size:11px;margin-top:8px;color:#dce8f5}
@media(max-width:1080px){.quote-btn{display:none}nav{gap:14px;font-size:12px}.lower,.map-row,.two-col,.footer-grid{grid-template-columns:1fr}.map-panel{border-left:0;padding-left:0}.badge-grid{grid-template-columns:repeat(2,1fr)}.service-cards{grid-template-columns:repeat(2,1fr)}.careers-inner{flex-direction:column;align-items:flex-start}.hero:after{display:none}.form-grid,.detail-grid,.placeholder-gallery{grid-template-columns:1fr}}
@media(max-width:720px){.wrap{padding:0 18px}.top-inner{flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.serve{margin-left:0}.header-inner{flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.logo{height:58px;width:165px}nav{order:3;width:100%;overflow:auto;justify-content:flex-start}.hero{height:auto;min-height:430px}.hero h1{font-size:38px}.badges{padding:18px 0}.badge-grid{grid-template-columns:1fr}.badge{border-right:0;border-bottom:1px solid #fff}.service-cards{grid-template-columns:1fr}.page-hero h1{font-size:36px}.application-form{padding:26px}}


/* Expanded services page */
.services-intro {
  max-width: 980px;
  margin-bottom: 34px;
}

.services-intro h2 {
  color: var(--blue);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.services-intro p {
  font-size: 18px;
  line-height: 1.6;
}

.expanded-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.expanded-services-grid article {
  background: #f4f6f8;
  border-top: 6px solid var(--blue);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.expanded-services-grid article:nth-child(even) {
  border-top-color: var(--orange);
}

.expanded-services-grid h2 {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 20px;
  margin: 0 0 12px;
}

.expanded-services-grid p {
  margin: 0;
  line-height: 1.58;
}

.services-cta {
  margin-top: 42px;
  background: linear-gradient(90deg, #083b72, #0a5796);
  color: white;
  padding: 34px;
  border-left: 7px solid var(--orange);
}

.services-cta h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.services-cta p {
  margin: 0 0 18px;
  max-width: 800px;
}

@media(max-width:1080px){
  .expanded-services-grid {
    grid-template-columns: 1fr;
  }
}


/* Homepage/header overflow fix */
.header-inner {
  max-width: 1320px;
}

.main-header {
  overflow: visible;
}

nav {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 0;
}

nav a {
  white-space: nowrap;
}

.quote-btn {
  white-space: nowrap;
}

.hero-content {
  max-width: 520px;
}

.hero h1 {
  word-break: normal;
  overflow-wrap: normal;
}

.hero p {
  max-width: 430px;
}

/* Keep the homepage service and map area from overflowing on medium screens */
.lower {
  overflow: hidden;
}

.service-cards article,
.expanded-services-grid article,
.info-card {
  min-width: 0;
}

@media(max-width:1250px){
  .header-inner {
    gap: 14px;
  }

  .logo {
    width: 170px;
  }

  nav {
    gap: 13px;
    font-size: 11.5px;
  }

  .quote-btn {
    padding: 12px 16px;
    font-size: 12px;
  }
}

@media(max-width:1080px){
  .main-header {
    overflow: visible;
  }

  nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  nav a {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    max-width: 420px;
  }
}

@media(max-width:720px){
  body {
    overflow-x: hidden;
  }

  .hero {
    min-height: 470px;
  }

  .hero-content {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    max-width: 100%;
    font-size: 15px;
  }
}


/* Fix homepage service descriptions overflowing outside service boxes */
.service-cards {
  align-items: stretch;
}

.service-cards article {
  height: auto !important;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-cards article img {
  flex: 0 0 auto;
}

.service-cards article h3 {
  flex: 0 0 auto;
  line-height: 1.2;
}

.service-cards article p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  line-height: 1.35;
  font-size: 11px;
}

/* Give the homepage service panel more breathing room */
@media(min-width:1081px){
  .service-cards {
    gap: 12px;
  }

  .services-panel {
    min-width: 0;
  }
}

@media(max-width:1080px){
  .service-cards article {
    min-height: 165px;
  }

  .service-cards article p {
    font-size: 12px;
  }
}

@media(max-width:720px){
  .service-cards article {
    min-height: auto;
  }

  .service-cards article p {
    font-size: 13px;
  }
}


/* Shift homepage hero headline/text farther left */
.hero .wrap.hero-content {
  max-width: none;
  margin-left: 0;
  padding-left: 34px;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  max-width: 560px;
}

@media(min-width:1321px){
  .hero .wrap.hero-content {
    padding-left: calc((100vw - 1320px) / 2 + 34px);
  }
}

@media(max-width:720px){
  .hero .wrap.hero-content {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.form-status {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #eef3f8;
  color: #283241;
  font-weight: 700;
  display: none;
}
.form-status.success,
.form-status.error,
.form-status:not(:empty) {
  display: block;
}
.form-status.success {
  background: #e8f5ee;
  color: #17633a;
  border-left: 5px solid #17633a;
}
.form-status.error {
  background: #fff1ed;
  color: #9a3412;
  border-left: 5px solid var(--orange);
}
button[disabled] {
  opacity: .65;
  cursor: not-allowed;
}


/* Mobile fix: keep form submit buttons visible on iPhone */
.application-form .quote-btn.submit,
.contact-form .quote-btn.submit,
button.quote-btn.submit {
  display: inline-block !important;
  width: auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media(max-width:1080px){
  .application-form .quote-btn.submit,
  .contact-form .quote-btn.submit,
  button.quote-btn.submit {
    display: inline-block !important;
  }
}

@media(max-width:720px){
  .application-form .quote-btn.submit,
  .contact-form .quote-btn.submit,
  button.quote-btn.submit {
    width: 100%;
    padding: 15px 18px;
    font-size: 14px;
  }
}


/* Dynamic AWS S3 project gallery */
.dynamic-projects-gallery {
  display: grid;
  gap: 34px;
}

.job-gallery-card {
  background: #ffffff;
  border-top: 7px solid var(--orange);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  padding: 28px;
}

.job-gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #d8dde3;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.job-gallery-card h2 {
  color: var(--blue);
  text-transform: uppercase;
  margin: 0 0 6px;
  font-size: 24px;
}

.job-meta {
  color: #5f6873;
  font-weight: 800;
  margin: 0;
}

.job-description {
  margin: 0 0 18px;
  line-height: 1.6;
}

.job-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.job-photo {
  display: block;
  background: #f1f3f5;
  border: 1px solid #d8dde3;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.job-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease;
}

.job-photo:hover img {
  transform: scale(1.04);
}

.gallery-empty {
  background: #f4f6f8;
  border-left: 7px solid var(--blue);
  padding: 24px;
  color: #2b3440;
}

.gallery-empty.small {
  border-left: 0;
  display: grid;
  place-items: center;
  min-height: 150px;
  text-align: center;
}

@media(max-width:900px){
  .job-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:560px){
  .job-gallery-card {
    padding: 20px;
  }

  .job-photo-grid {
    grid-template-columns: 1fr;
  }
}

.admin-upload-card{margin-bottom:24px}
.admin-status{max-width:1050px;margin:0 auto;padding:14px 16px;border-radius:6px;background:#eef3f8;color:#283241;font-weight:800;display:none}
.admin-status:not(:empty){display:block}
.admin-status.success{background:#e8f5ee;color:#17633a;border-left:5px solid #17633a}
.admin-status.error{background:#fff1ed;color:#9a3412;border-left:5px solid var(--orange)}
.admin-upload-card input[type=file]{background:white}
