@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/barlow-semi-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101d2b;
  --copy: #485969;
  --blue: #0754bd;
  --blue-dark: #063c88;
  --line: #dce5ee;
  --pale: #eff5fb;
  --heading: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1584e0; outline-offset: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.02;
}

h2 { font-size: clamp(2.5rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.63rem; }
.wrap { width: min(1180px, calc(100% - clamp(36px, 8vw, 100px))); margin-inline: auto; }
.section { padding-block: clamp(54px, 7vw, 96px); }
section[id] { scroll-margin-top: 90px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-170%);
  background: #fff;
  color: var(--blue-dark);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: 81px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 43px; height: auto; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.44rem/1.05 var(--heading); }
.brand small { color: var(--copy); font-size: .74rem; line-height: 1.4; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
nav a, .back-top { text-decoration: none; font-size: .9rem; font-weight: 700; }
nav a { display: grid; align-items: center; min-height: 44px; white-space: nowrap; }
nav a:hover, .back-top:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 51px;
  padding: .68rem 1.14rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .94rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.button:hover { background: var(--blue-dark); }
.button span { font-size: 1.25em; line-height: 1; }
.header-button { justify-self: end; min-height: 44px; font-size: .85rem; }

.hero {
  overflow: clip;
  background: linear-gradient(112deg, #f6f9fd 35%, #e9f1fa 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 70px);
  padding-block: clamp(40px, 5vw, 70px);
}
.hero-copy { padding-block: 12px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--blue-dark);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow span { display: block; flex: 0 0 23px; height: 2px; background: var(--blue); }
h1 { margin: 18px 0 23px; font-size: clamp(3.25rem, 5.7vw, 5.45rem); letter-spacing: -.027em; }
h1 em { display: block; color: var(--blue); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 44ch; color: var(--copy); font-size: clamp(1.05rem, 1.38vw, 1.2rem); }
.hero-copy p + p { margin-top: 12px; }
.hero-copy strong { color: var(--ink); }
.hero-copy .button { margin-top: 28px; }
.hero-photo {
  display: block;
  aspect-ratio: 1.24;
  position: relative;
  isolation: isolate;
}
.hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px -14px -14px 14px;
  border-radius: 9px;
  background: #c8ddf3;
}
.hero-photo picture { display: block; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }

.section-heading { margin-bottom: 27px; }
.section-heading p { margin-top: 8px; color: var(--copy); }
.service-grid, .work-grid { display: grid; gap: 18px; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.service-image { position: relative; background: var(--pale); }
.service-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.75;
  object-fit: cover;
}
.gate-detail img { object-position: center 52%; }
.photo-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 3px;
  background: #fff;
  font-size: .72rem;
  font-weight: 700;
}
.hero-photo .photo-label { bottom: 12px; left: 12px; }
.service-copy { padding: 17px 17px 20px; }
.service-copy p, .steps p, .fee-note p { margin-top: 7px; color: var(--copy); font-size: .96rem; }
.repair-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 10px 20px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.repair-note p { color: var(--copy); font-size: .96rem; }
.labor-note {
  margin-top: 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 5px 5px 0;
  padding: 11px 16px;
  background: var(--pale);
  color: var(--copy);
}
.labor-note strong { color: var(--ink); }

.work { background: #f3f7fb; border-block: 1px solid var(--line); }
.work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.work-grid figure {
  grid-column: span 2;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.work-grid .work-wide { grid-column: span 3; }
.work-grid img { width: 100%; height: auto; aspect-ratio: 1.62; object-fit: cover; }
.work-grid .work-wide img { aspect-ratio: 2.04; }
.work-grid figcaption { padding: 10px 14px 11px; font-weight: 700; font-size: .93rem; }

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 8vw, 105px);
}
.process-intro > p { margin-top: 12px; max-width: 38ch; color: var(--copy); }
.fee-note { margin-top: 24px; border-radius: 7px; background: var(--pale); padding: 19px 21px; }
.fee-note h3 { color: var(--blue-dark); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 20px 56px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { padding-bottom: 0; border: 0; margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 37px;
  height: 37px;
  border-radius: 5px;
  color: var(--blue-dark);
  background: #e8f2fd;
  font: 700 1.35rem/1 var(--heading);
}

.estimate { background: #10243a; color: #fff; padding-block: clamp(44px, 5vw, 66px); }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.estimate p { margin-top: 9px; max-width: 55ch; color: #dce8f6; }
.estimate .button { background: #1263d3; }
.estimate .button:hover { background: var(--blue); }
.estimate .preview-note {
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #6885a4;
  border-radius: 5px;
  font-size: .93rem;
}
.preview-note strong { color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 17px; }
.footer-inner .brand img { width: 34px; }
.footer-inner .brand strong { font-size: 1.2rem; }
.back-top { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  nav { justify-content: center; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-image img { aspect-ratio: 2; }
}

@media (max-width: 850px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid figure, .work-grid .work-wide { grid-column: auto; }
  .work-grid figure:last-child { grid-column: 1 / -1; }
  .work-grid .work-wide img { aspect-ratio: 1.62; }
  .work-grid figure:last-child img { aspect-ratio: 2.3; }
}

@media (max-width: 760px) {
  .site-header { position: static; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-top: 10px; gap: 7px 10px; }
  .header-inner nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: clamp(16px, 5vw, 34px);
    border-top: 1px solid var(--line);
  }
  section[id] { scroll-margin-top: 12px; }
}

@media (max-width: 700px) {
  .hero-grid, .process-grid, .estimate-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 31px 40px; gap: 22px; }
  .hero-copy { padding: 0; }
  h1 { margin: 13px 0 16px; }
  .hero-copy .button { margin-top: 21px; }
  .hero-photo { aspect-ratio: 1.53; margin-right: 7px; }
  .hero-photo::before { inset: 8px -8px -8px 8px; }
  .estimate-action { justify-self: start; }
}

@media (max-width: 540px) {
  .brand { gap: 6px; }
  .brand img { width: 35px; }
  .brand strong { font-size: 1.2rem; }
  .brand small { font-size: .68rem; }
  .header-button { gap: 0; padding-inline: .52rem; font-size: .76rem; }
  .header-button span { display: none; }
  nav a { font-size: .86rem; }
  .service-grid, .work-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .repair-note { grid-template-columns: minmax(0, 1fr); }
  .work-grid figure:last-child img { aspect-ratio: 1.62; }
  .service-image img { aspect-ratio: 2.05; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
