:root {
  --grid-light: rgba(27, 42, 74, 0.055);
  --grid-dark: rgba(255, 255, 255, 0.055);
  --grid-size: 44px;
  --topbar-height: 38px;
}

/* Campaign landing page */
.campaign-header {
  position: sticky;
  top: var(--topbar-height);
}

.campaign-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  background: var(--navy);
  color: #fff;
}

.campaign-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px 8% 54px 10%;
}

.campaign-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: #d2d9e2;
  font-size: 18px;
}

.campaign-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.campaign-trust {
  display: flex;
  gap: 18px 28px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid #526077;
  color: #d2d9e2;
  font-size: 12px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.campaign-hero figure {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}

.campaign-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-services {
  background: #fff;
}

.campaign-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.campaign-service-grid article {
  padding: 30px 25px;
  border-right: 1px solid var(--line);
}

.campaign-service-grid article:last-child {
  border-right: 0;
}

.campaign-service-grid article > span {
  color: #7a8799;
  font-size: 12px;
  letter-spacing: 1px;
}

.campaign-service-grid p,
.campaign-proof p {
  color: var(--gray);
}

.campaign-proof {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10%;
  padding: 90px 6%;
  background: var(--pale);
}

.campaign-proof ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-proof li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid #ced5de;
}

.campaign-proof li > span {
  grid-row: 1 / 3;
  color: #788597;
  font: italic 18px Georgia, serif;
}

.campaign-proof strong {
  color: var(--navy);
  font-size: 19px;
}

.campaign-proof li p {
  margin: 4px 0 0;
}

.campaign-contact {
  align-items: start;
}

.campaign-direct {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  font-weight: 700;
}

.campaign-direct a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .campaign-service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .campaign-service-grid article:nth-child(2) {
    border-right: 0;
  }

  .campaign-service-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 800px) {
  .campaign-header .button {
    padding: 11px 13px;
    font-size: 12px;
  }

  .campaign-hero,
  .campaign-proof {
    grid-template-columns: 1fr;
  }

  .campaign-copy {
    padding: 52px 6%;
  }

  .campaign-hero figure {
    min-height: 360px;
  }

  .campaign-proof {
    gap: 34px;
    padding: 65px 6%;
  }
}

@media (max-width: 520px) {
  .campaign-service-grid {
    grid-template-columns: 1fr;
  }

  .campaign-service-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .campaign-trust {
    display: grid;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 32;
  min-height: var(--topbar-height);
}

.topbar a {
  white-space: nowrap;
}

.topbar .sep {
  margin: 0 10px;
}

header {
  top: var(--topbar-height);
  z-index: 31;
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-service {
  margin-left: 22px;
  border-left: 1px solid #c7ced8;
  padding: 4px 0 4px 22px;
  color: #526074;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.button {
  position: relative;
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #0d1830,
    0 11px 22px rgba(16, 30, 54, 0.2);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 200ms ease;
  will-change: transform;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow:
    0 7px 0 #0d1830,
    0 14px 26px rgba(16, 30, 54, 0.22);
}

.button:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #0d1830,
    0 4px 9px rgba(16, 30, 54, 0.18);
  transition-duration: 60ms;
}

.button.light {
  box-shadow:
    0 5px 0 #aab5c4,
    0 11px 22px rgba(6, 15, 31, 0.28);
}

.button.light:hover {
  box-shadow:
    0 7px 0 #aab5c4,
    0 14px 26px rgba(6, 15, 31, 0.3);
}

.button.light:active {
  box-shadow:
    0 1px 0 #aab5c4,
    0 4px 9px rgba(6, 15, 31, 0.22);
}

.menu {
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 #cbd2dc,
    0 8px 16px rgba(16, 30, 54, 0.13);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 180ms ease;
}

.menu:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 0 #cbd2dc,
    0 11px 20px rgba(16, 30, 54, 0.16);
}

.menu:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #cbd2dc,
    0 3px 7px rgba(16, 30, 54, 0.12);
  transition-duration: 60ms;
}

.contact-email {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact {
  column-gap: 12%;
  row-gap: 52px;
}

/* Keep the numbered services and quote panel visually separate from the
   background grid. The restrained shadow adds depth without making the
   cards feel heavy. */
.service-grid {
  gap: 18px;
  border: 0;
}

.service-grid article {
  border: 1px solid rgba(207, 215, 226, 0.9);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 30, 54, 0.08);
}

.service-grid article:last-child,
.service-grid article:nth-child(2),
.service-grid article:nth-child(-n+2) {
  border: 1px solid rgba(207, 215, 226, 0.9);
}

.campaign-service-grid {
  gap: 18px;
  border: 0;
}

.campaign-service-grid article,
.campaign-service-grid article:last-child,
.campaign-service-grid article:nth-child(2),
.campaign-service-grid article:nth-child(-n+2) {
  border: 1px solid rgba(207, 215, 226, 0.9);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 30, 54, 0.08);
}

.contact-card {
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(6, 15, 31, 0.2);
}

.quote-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.5fr);
  gap: 7%;
  margin-top: 8px;
  padding: 38px;
  background: #fff;
  color: var(--navy);
}

.quote-form .form-heading h3 {
  margin: 4px 0 12px;
  font-size: clamp(26px, 2.4vw, 36px);
}

.quote-form .form-heading p {
  margin: 0;
  color: #526074;
}

.quote-form .form-heading .eyebrow {
  margin-bottom: 12px;
  color: #647080;
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-fields label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.form-fields input,
.form-fields select,
.form-fields textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #b9c3d0;
  border-radius: 0;
  background: #f8fafc;
  color: var(--navy);
  padding: 12px 14px;
  font: 400 16px/1.4 Arial, Helvetica, sans-serif;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.form-fields input:focus,
.form-fields select:focus,
.form-fields textarea:focus {
  outline: none;
  border-color: #3d5f91;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 95, 145, 0.16);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 5px;
}

.form-submit p {
  margin: 0;
  color: #526074;
  font-size: 14px;
}

.form-submit a,
footer span a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thanks-page {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 90px 6%;
  background-color: #f1f3f6;
  background-image:
    linear-gradient(var(--grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.thanks-card {
  max-width: 760px;
  border: 1px solid #cfd7e2;
  background: #fff;
  padding: clamp(34px, 6vw, 68px);
  text-align: center;
  box-shadow: 0 22px 55px rgba(16, 30, 54, 0.12);
}

.thanks-card h1 {
  color: var(--navy);
  font-size: clamp(40px, 6vw, 68px);
  margin: 8px 0 22px;
}

.thanks-card > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #526074;
  font-size: 17px;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.services,
.work,
.approach,
.residential-hero,
.service-strip,
footer {
  background-image:
    linear-gradient(var(--grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-light) 1px, transparent 1px);
  background-position: center top;
  background-size: var(--grid-size) var(--grid-size);
}

.services,
.work {
  background-color: #fff;
}

.approach,
.residential-hero,
.service-strip {
  background-color: var(--pale);
}

.hero,
.contact {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-position: left top;
  background-size: var(--grid-size) var(--grid-size);
}

footer {
  align-items: flex-start;
  background-color: #f8fafc;
  background-image: none;
  border-top: 1px solid #cfd7e2;
  color: var(--navy);
  padding-top: 52px;
  padding-bottom: 52px;
}

footer > div:first-child {
  max-width: 470px;
}

footer img {
  display: block;
  width: 310px;
  max-width: 100%;
  height: auto;
  opacity: 1;
}

footer > div:first-child p {
  margin: 14px 0 0;
  color: #526074;
  font-size: 15px;
}

footer p,
footer span {
  color: #526074;
}

.footer-right {
  align-self: flex-start;
}

.footer-entity {
  display: grid;
  justify-items: end;
  gap: 2px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #cfd7e2;
}

.footer-entity-label {
  color: #6f7d91;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-entity strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.footer-entity .footer-division {
  color: #526074;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-legal {
  margin: 16px 0 2px;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 18px;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd7e2;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 14px rgba(16, 30, 54, 0.08);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

a.social-icon:hover {
  transform: translateY(-2px);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 9px 18px rgba(16, 30, 54, 0.16);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .brand-fill {
  fill: currentColor;
  stroke: none;
}

.social-icon.is-pending {
  opacity: 0.72;
}

.footer-actions {
  flex-wrap: wrap;
}

.footer-actions .button {
  background: var(--navy);
  color: #fff;
}

.footer-actions .button:hover {
  background: #334868;
}

.footer-actions a:not(.button) {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 800px) {
  :root {
    --grid-size: 36px;
  }

  .facilities-page,
  .campaign-page {
    --topbar-height: 59px;
  }

  .facilities-page .topbar,
  .campaign-page .topbar {
    min-height: var(--topbar-height);
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 6px 4%;
    text-align: center;
  }

  .facilities-page .topbar > span,
  .campaign-page .topbar > span {
    display: block;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 1px;
  }

  .facilities-page .topbar a,
  .campaign-page .topbar a {
    font-size: 11px;
    line-height: 1.3;
  }

  footer {
    gap: 34px;
    padding: 44px 6% 48px;
  }

  header {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  footer > div {
    width: 100%;
  }

  footer img {
    width: min(290px, 86vw);
  }

  .footer-right {
    align-self: stretch;
    text-align: left;
  }

  .footer-entity {
    justify-items: start;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-right p {
    margin: 24px 0 3px;
  }

  .quote-form {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .contact {
    row-gap: 40px;
  }

  .brand-service {
    margin-left: 16px;
    padding-left: 16px;
    font-size: 11px;
    letter-spacing: 1.4px;
  }
}

@media (max-width: 480px) {
  .topbar .sep {
    margin: 0 6px;
  }

  header {
    gap: 12px;
  }

  .brand img {
    width: 145px;
  }

  .brand-service {
    margin-left: 11px;
    padding-left: 11px;
    font-size: 9px;
    letter-spacing: 1.1px;
  }

  .thanks-header .brand-service {
    display: none;
  }

  .thanks-header .button {
    gap: 0;
    padding: 11px 13px;
    font-size: 12px;
  }

  footer {
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 44px;
  }

  footer img {
    width: min(260px, 82vw);
  }

  .footer-actions {
    align-items: flex-start;
    gap: 18px;
  }

  .quote-form {
    padding: 27px 22px 31px;
  }

  .form-fields {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }

  .form-submit {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-submit .button,
  .thanks-actions .button {
    width: 100%;
  }

  .thanks-page {
    padding: 60px 5%;
  }
}

@media (max-width: 360px) {
  header {
    gap: 10px;
    padding-right: 4%;
    padding-left: 4%;
  }

  .brand img {
    width: 126px;
  }

  .brand-service {
    margin-left: 8px;
    padding-left: 8px;
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  .menu {
    padding: 9px 11px;
  }
}
