:root {
  --ink: #12202a;
  --muted: #5a6870;
  --blue: #19788d;
  --blue-dark: #0d4f61;
  --coral: #d85f49;
  --paper: #f2f6f7;
  --line: #cdd9dd;
  --white: #ffffff;
  --shadow: rgba(9, 31, 40, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  display: flex;
  height: 82px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(22px, 4vw, 68px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand { align-items: center; display: flex; gap: 16px; text-decoration: none; }
.brand-mark { color: var(--ink); font-size: 28px; font-weight: 900; }
.brand-name { border-left: 1px solid var(--line); font-size: 14px; font-weight: 700; padding-left: 16px; }
.primary-nav { align-items: center; display: flex; gap: 26px; }
.primary-nav a { color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus { color: var(--blue); }
.primary-nav .portal-link { border: 1px solid var(--ink); border-radius: 4px; padding: 10px 14px; }
.menu-toggle { background: transparent; border: 1px solid var(--ink); border-radius: 4px; display: none; padding: 9px 12px; }

.hero {
  background-image: url("images/hero.jpg");
  background-position: center 35%;
  background-size: cover;
  color: var(--white);
  display: flex;
  min-height: min(800px, 91vh);
  padding: 150px clamp(22px, 7vw, 110px) 150px;
  position: relative;
}

.hero-shade { background: rgba(8, 22, 29, .66); inset: 0; position: absolute; }
.hero::after { background: var(--coral); bottom: 0; content: ""; height: 6px; left: 0; position: absolute; width: 34%; }
.hero-content { align-self: center; max-width: 760px; position: relative; z-index: 1; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; }
.hero .eyebrow { color: #9cd9e4; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); font-weight: 750; margin-bottom: 22px; max-width: 880px; }
.hero-copy { font-size: clamp(20px, 2.1vw, 30px); line-height: 1.35; margin-bottom: 34px; max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { border-radius: 4px; display: inline-block; font-weight: 750; padding: 14px 19px; text-decoration: none; }
.button-primary { background: var(--coral); color: var(--white); }
.button-primary:hover, .button-primary:focus { background: #b74736; }
.button-quiet { border: 1px solid rgba(255,255,255,.8); color: var(--white); }
.button-quiet:hover, .button-quiet:focus { background: var(--white); color: var(--ink); }

.hero-facts {
  background: var(--white);
  bottom: 0;
  box-shadow: 0 18px 50px var(--shadow);
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 930px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero-facts div { border-left: 1px solid var(--line); padding: 24px 28px; }
.hero-facts div:first-child { border-left: 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: 16px; margin-bottom: 5px; }
.hero-facts span { color: var(--muted); font-size: 13px; }

.section { margin: 0 auto; max-width: 1440px; padding: 108px clamp(22px, 6vw, 90px); }
.section-heading { display: grid; gap: 28px; grid-template-columns: minmax(260px, .9fr) minmax(280px, 1.1fr); margin-bottom: 58px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -10px; }
.section-heading h2 { font-size: clamp(35px, 5vw, 62px); margin-bottom: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.65; }
.service-list { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.service-list article { border-left: 1px solid var(--line); min-height: 315px; padding: 32px; }
.service-list article:first-child { border-left: 0; }
.service-number { color: var(--coral); font-size: 13px; font-weight: 800; }
.service-list h3 { font-size: 26px; margin: 64px 0 16px; }
.service-list p { color: var(--muted); line-height: 1.6; }
.service-list a { color: var(--blue-dark); font-weight: 750; }

.assurance-band { background: var(--ink); color: var(--white); display: grid; gap: 80px; grid-template-columns: 1.1fr .9fr; padding: 94px clamp(22px, 8vw, 128px); }
.assurance-copy { max-width: 680px; }
.assurance-copy .eyebrow { color: #9cd9e4; }
.assurance-copy h2 { font-size: clamp(38px, 5vw, 64px); }
.assurance-copy p:last-child { color: #cad6da; font-size: 18px; line-height: 1.7; }
.assurance-points { margin: 0; }
.assurance-points div { border-top: 1px solid #3c4d55; padding: 20px 0; }
.assurance-points dt { font-size: 18px; font-weight: 750; margin-bottom: 6px; }
.assurance-points dd { color: #b9c8cd; line-height: 1.55; margin: 0; }

.section-heading.compact { display: block; max-width: 660px; }
.project-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.project-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.project-card img { aspect-ratio: 16/9; height: auto; object-fit: cover; width: 100%; }
.project-card div { padding: 22px; }
.project-card p { color: var(--coral); font-size: 12px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.project-card h3 { font-size: 22px; margin-bottom: 0; }

.contact-section { align-items: flex-end; background: var(--paper); border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 74px clamp(22px, 8vw, 128px); }
.contact-section h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 0; }
.contact-details { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.contact-details a { color: var(--blue-dark); font-size: 18px; font-weight: 750; }
footer { background: var(--white); color: var(--muted); display: flex; font-size: 13px; justify-content: space-between; padding: 24px clamp(22px, 8vw, 128px); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-nav { background: var(--white); border-bottom: 1px solid var(--line); display: none; flex-direction: column; gap: 0; left: 0; padding: 14px 22px 22px; position: absolute; right: 0; top: 82px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { border-bottom: 1px solid var(--line); padding: 13px 0; width: 100%; }
  .primary-nav .portal-link { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { min-height: 760px; padding-bottom: 250px; }
  .hero-facts { grid-template-columns: 1fr; left: 22px; right: 22px; }
  .hero-facts div { border-left: 0; border-top: 1px solid var(--line); padding: 16px 20px; }
  .hero-facts div:first-child { border-top: 0; }
  .section-heading, .service-list, .assurance-band, .project-grid { grid-template-columns: 1fr; }
  .service-list article { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .service-list article:first-child { border-top: 0; }
  .service-list h3 { margin-top: 28px; }
  .contact-section { align-items: flex-start; flex-direction: column; gap: 34px; }
  .contact-details { text-align: left; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .hero { min-height: 810px; padding-left: 22px; padding-right: 22px; }
  .hero h1 { font-size: 48px; }
  .section, .assurance-band { padding-bottom: 72px; padding-top: 72px; }
  .section-heading { gap: 12px; }
  footer { flex-direction: column; gap: 7px; }
}
