:root {
  --navy: #0d1a2d;
  --navy-2: #122235;
  --navy-soft: #edf2f6;
  --ink: #1a2634;
  --muted: #596673;
  --line: #dfe6ec;
  --soft: #f5f7f9;
  --red: #d92637;
  --red-dark: #bd1d2d;
  --white: #ffffff;
  --shadow: 0 10px 20px rgba(11, 20, 31, 0.04);
  --radius: 14px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
main { display: block; }
figure { margin: 0; }
svg { display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 6vw, 84px) 0;
}

.section-alt { background: var(--soft); }

.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.page-hero {
  position: relative;
  background: linear-gradient(90deg, rgba(12, 20, 31, 0.8), rgba(12, 20, 31, 0.7));
  color: var(--white);
  padding: 86px 0 82px;
}

.projects-page .page-hero {
  background:
    linear-gradient(90deg, rgba(12, 20, 31, 0.8), rgba(12, 20, 31, 0.7)),
    url("../images/hvac1.jpg") center center / cover no-repeat;
}

.projects-page .page-hero-inner {
  text-align: center;
}

.projects-page .page-hero p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.services-page .page-hero {
  background:
    linear-gradient(90deg, rgba(12, 20, 31, 0.8), rgba(12, 20, 31, 0.7)),
    url("../images/mep-hero1.jpg") center center / cover no-repeat;
}

.services-page .page-hero-inner {
  text-align: center;
}

.services-page .page-hero p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  line-height: 1.6;
}

.about-page .page-hero {
  background:
    linear-gradient(90deg, rgba(12, 20, 31, 0.8), rgba(12, 20, 31, 0.7)),
    url("../images/Electrical1%20(6).jpeg") center center / cover no-repeat;
}

.about-page .page-hero-inner {
  text-align: center;
}

.about-page .page-hero p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.7rem;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 1.04rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.96rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}
.btn-secondary:hover { background: var(--soft); }
.btn-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-light:hover { background: rgba(255,255,255,0.14); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(217, 38, 55, 0.25);
  outline-offset: 3px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 9px 18px rgba(11, 20, 31, 0.04);
}

.placeholder-box {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(18, 34, 53, 0.28);
  background: linear-gradient(180deg, #f8f9fa, #eef3f7);
  color: var(--muted);
  font-weight: 600;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), #1d345a);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  text-align: center;
  padding: 18px;
  border: 1px dashed rgba(18, 34, 53, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f9fa, #eef3f7);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  background: #0a1220;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 64px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.2fr;
  gap: 28px 48px;
}

.footer-col h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer .brand-name {
  color: var(--white);
  font-size: 1.2rem;
}

.site-footer .brand-sub {
  color: var(--red);
}

.footer-copy {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  text-align: left;
}

.cta-strip {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.cta-copy {
  max-width: 720px;
}

.cta-copy .section-label {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.65rem;
}

.cta-copy h2 {
  color: var(--white);
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.55rem;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.55;
  max-width: 640px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 8px 18px rgba(11, 20, 31, 0.04);
  height: auto;
  min-height: 0;
}

.mission-card,
.vision-card {
  height: auto;
  min-height: 0;
}

.contact-page .page-hero {
  padding: 56px 0 52px;
  background:
    linear-gradient(90deg, rgba(12, 20, 31, 0.8), rgba(12, 20, 31, 0.7)),
    url("../images/Astrovex%20transmission%20.jpg") center center / cover no-repeat;
}

.contact-page .page-hero-inner {
  text-align: center;
}

.contact-page .page-hero p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.contact-page .section.contact-main {
  padding: clamp(56px, 5vw, 72px) 0 40px;
}

.contact-page .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.33fr) minmax(0, 0.67fr);
  gap: 0;
  align-items: start;
  max-width: 1280px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
}

.contact-page .contact-info-block {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 40px 40px;
  height: auto;
  align-self: start;
}

.contact-page .contact-info-block .section-label {
  color: var(--red);
  margin-bottom: 0.75rem;
}

.contact-page .contact-info-block h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 2.6vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: none;
}

.contact-page .contact-intro {
  margin: 0 0 26px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.contact-page .contact-detail {
  margin-bottom: 22px;
}

.contact-page .contact-detail:last-child {
  margin-bottom: 0;
}

.contact-page .contact-detail h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}

.contact-page .contact-detail p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.contact-page .contact-detail a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.55;
}

.contact-page .contact-detail a:hover {
  color: var(--white);
}

.contact-page .form-shell {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 48px 48px 40px;
  box-shadow: none;
  height: auto;
  align-self: start;
}

.contact-page .form-intro {
  margin-bottom: 24px;
}

.contact-page .form-intro h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--navy);
}

.contact-page .form-intro p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
}

.contact-page .contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.contact-page .contact-form .form-full {
  display: grid;
  margin-top: 20px;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea,
.contact-page .contact-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.contact-page .contact-form textarea {
  min-height: 140px;
  padding-top: 12px;
  resize: vertical;
}

.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus,
.contact-page .contact-form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: none;
}

.contact-page .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.contact-page .checkbox-row input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  padding: 0;
}

.contact-page .checkbox-row label {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-page .form-actions {
  margin-top: 24px;
}

.contact-page .form-status {
  margin-top: 12px;
  margin-bottom: 0;
}

.contact-page .contact-submit {
  width: auto;
  min-height: 0;
  padding: 13px 24px;
  border-radius: 8px;
}

.contact-page .contact-submit:hover {
  transform: none;
}

.contact-page .section-alt {
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-page section.section.contact-help {
  padding: 48px 0;
  margin: 0;
  min-height: 0;
  height: auto;
}

.contact-page .contact-help .section-heading.contact-help-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0;
  min-height: 0;
  height: auto;
  display: block;
}

.contact-page .contact-help-heading .section-label {
  display: block;
  margin: 0 0 12px;
}

.contact-page .contact-help-heading h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.contact-page .contact-help .grid-3 {
  gap: 18px;
  align-items: start;
  margin: 0;
}

.contact-page .contact-help .content-block {
  padding: 26px 30px;
  box-shadow: 0 3px 10px rgba(11, 20, 31, 0.03);
  height: auto;
  min-height: 0;
}

.contact-page .contact-help .content-block h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.contact-page .contact-help .content-block p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.list-check {
  display: grid;
  gap: 10px;
  margin-top: 1rem;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.list-check li::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
}

.image-panel {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--soft);
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-arrow::after {
  content: "";
  display: inline-block;
  margin-left: 0;
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 80px 0; }
  .contact-page section.section.contact-help {
    padding: 40px 0;
  }
  .contact-page .contact-help .section-heading.contact-help-heading {
    margin-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .btn {
    width: 100%;
  }
  .cta-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}
