:root {
  --ink: #263241;
  --ink-2: #1d2b3a;
  --muted: #6e7f90;
  --line: #d8e1ea;
  --soft: #e6f0f8;
  --paper: #ffffff;
  --accent: #347dbb;
  --accent-dark: #235f94;
  --navy: #1d2b3a;
  --navy-2: #142333;
  --shadow: 0 24px 70px rgba(29, 43, 58, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  min-height: 82px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: 0 14px 40px rgba(29, 43, 58, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.55rem;
}

.brand-name span {
  color: #9cc9ef;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 800;
  font-size: 0.94rem;
}

.site-nav a {
  position: relative;
  padding: 28px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.header-cta,
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(52, 125, 187, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: #c3d5e6;
  color: var(--ink);
}

.header-cta:hover,
.btn:hover,
.header-cta:focus-visible,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(29, 43, 58, 0.18);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(320px, 520px) minmax(420px, 760px) minmax(20px, 1fr);
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255, 255, 255, 0.78) 46%, rgba(255, 255, 255, 0) 60%),
    var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: center;
  padding: 58px 0 82px;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 6.85rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 900;
}

.hero p {
  max-width: 420px;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.hero-media {
  position: relative;
  grid-column: 3 / -1;
  min-height: 100%;
  margin-left: -80px;
}

.hero-media::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 36%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 38%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: calc(100svh - 82px);
  object-fit: cover;
  object-position: center;
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.process-content h2,
.safety h2,
.contact h2,
.service-page h1,
.service-page h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 900;
}

.section-heading span,
.process-content h2::after,
.contact h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--accent);
  content: "";
}

.services {
  padding: 46px clamp(20px, 5vw, 64px) 72px;
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 154px;
  padding: 28px 28px 26px;
  border-top: 1px solid var(--line);
  transition: background-color 160ms ease, transform 160ms ease;
}

.service-item:hover,
.service-item:focus-visible {
  background: var(--soft);
  transform: translateY(-2px);
}

.service-item:nth-child(1),
.service-item:nth-child(2) {
  border-top: 0;
}

.service-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.service-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: linear-gradient(115deg, var(--navy) 0%, #203750 62%, #142333 100%);
  color: #fff;
}

.process-image {
  min-height: 430px;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 88px);
}

.process-content h2 {
  max-width: 500px;
}

.process-content h2::after,
.contact h2::after {
  margin-left: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 50px;
}

.process-steps article {
  position: relative;
}

.process-steps article + article {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.process-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border: 2px solid var(--accent);
  border-radius: 7px;
  color: #9cc9ef;
  font-weight: 900;
  font-size: 0.86rem;
}

.process-steps h3 {
  margin: 0;
  font-size: 1rem;
}

.process-steps p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.safety {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px clamp(20px, 5vw, 64px);
}

.safety-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.safety-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.safety-points article {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.safety-points h3 {
  margin: 0;
  font-size: 1rem;
}

.safety-points p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.work {
  padding: 20px clamp(20px, 5vw, 64px) 72px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.work-grid article {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 6px;
  background-image: linear-gradient(180deg, rgba(29, 43, 58, 0.08), rgba(29, 43, 58, 0.84)), var(--image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.work-grid span {
  width: 100%;
  padding: 16px 12px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 0.88rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 72px;
}

.contact-copy p {
  max-width: 340px;
  margin: 20px 0 0;
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  font-weight: 800;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-links svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-form {
  display: grid;
  gap: 16px;
}

.bot-field {
  display: none;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8d4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(52, 125, 187, 0.18);
}

.quote-form .btn {
  width: fit-content;
}

.quote-form .btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: 34px;
  padding: 44px clamp(20px, 5vw, 64px) 26px;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff;
}

.brand-footer {
  margin-bottom: 14px;
}

.brand-footer img {
  width: 56px;
  height: 56px;
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.service-page {
  background: #fff;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, var(--max)) minmax(20px, 1fr);
  padding: 76px 0 54px;
  background:
    linear-gradient(90deg, rgba(29, 43, 58, 0.96), rgba(52, 125, 187, 0.88)),
    var(--service-image, url("assets/hero-installation.png"));
  background-size: cover;
  background-position: center;
  color: #fff;
}

.service-hero > div,
.service-detail,
.service-related {
  grid-column: 2;
}

.service-hero a {
  display: inline-block;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.service-hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.service-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 64px);
}

.service-detail h2 {
  margin-bottom: 18px;
}

.service-detail p {
  color: var(--muted);
}

.service-detail ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-detail li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.service-related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 72px;
}

.service-related a {
  color: var(--accent-dark);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open {
    grid-template-rows: auto auto auto;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-cta {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.is-open .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 6px;
  }

  .site-header.is-open .site-nav a {
    padding: 15px 0;
  }

  .site-header.is-open .header-cta {
    width: fit-content;
    margin-bottom: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(20px, 1fr) minmax(0, var(--max)) minmax(20px, 1fr);
    background: #fff;
  }

  .hero-copy {
    grid-column: 2;
    padding: 54px 0 34px;
  }

  .hero-media {
    grid-column: 1 / -1;
    min-height: 360px;
    margin-left: 0;
  }

  .hero-media::before {
    display: none;
  }

  .hero-media img {
    min-height: 360px;
    max-height: 520px;
  }

  .process-band,
  .safety,
  .contact,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brand-name {
    font-size: 1.22rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .service-grid,
  .safety-points,
  .field-row {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(odd) {
    border-right: 0;
  }

  .process-steps,
  .work-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .process-steps article + article {
    padding-left: 0;
    border-left: 0;
  }

  .footer-bottom {
    display: grid;
  }
}
