:root {
  --paper: #f4f1e8;
  --paper-strong: #fffaf0;
  --ink: #15323d;
  --ink-soft: rgba(21, 50, 61, 0.7);
  --blue: #12689a;
  --blue-wash: #d8eef1;
  --orange: #ff7a3d;
  --line: rgba(21, 50, 61, 0.18);
  --hero-line: rgba(255, 250, 240, 0.22);
  --shadow: 0 24px 70px rgba(21, 50, 61, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(140deg, rgba(216, 238, 241, 0.78), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family:
    "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 16px;
  left: clamp(14px, 3vw, 40px);
  right: clamp(14px, 3vw, 40px);
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 18px 52px rgba(21, 50, 61, 0.12);
  backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-over-hero {
  color: var(--paper-strong);
  border-color: var(--hero-line);
  background: rgba(21, 50, 61, 0.28);
  box-shadow: none;
}

.brand,
.nav-links a,
.header-cta,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 0;
}

.brand span:last-child,
.brand strong,
.brand small {
  display: block;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Aptos Display", "Trebuchet MS", "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong {
  font-size: 1.06rem;
  line-height: 1;
}

.brand small,
.eyebrow,
.board-head span,
.board-foot,
.steps span,
.route-strip span,
dt {
  font-size: 0.71rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 4px;
  opacity: 0.76;
}

.brand-logo {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 250, 240, 0.44),
    0 10px 24px rgba(21, 50, 61, 0.2);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 38px);
  font-weight: 900;
}

.header-cta {
  justify-self: end;
  min-height: 50px;
  padding: 15px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 950;
}

.site-header.is-over-hero .header-cta {
  background: var(--orange);
  color: #241107;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(20px, 4vw, 58px);
  align-items: end;
  min-height: max(760px, calc(100svh - 20px));
  padding:
    clamp(132px, 18vh, 182px) clamp(18px, 5vw, 74px)
    clamp(26px, 4vw, 54px);
  color: var(--paper-strong);
  background:
    linear-gradient(90deg, rgba(9, 21, 26, 0.84), rgba(9, 21, 26, 0.24) 58%, rgba(9, 21, 26, 0.5)),
    url("assets/ridgeway-job-proof.png") center / cover no-repeat,
    var(--ink);
}

.hero::after {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: 0;
  width: min(32vw, 450px);
  height: 8px;
  background: var(--orange);
  content: "";
}

.hero-copy {
  max-width: 840px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: inherit;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: 5.8rem;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: 1.22rem;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 950;
  transition: transform 160ms ease;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--orange);
  color: #241107;
}

.button-outline {
  border-color: var(--hero-line);
  background: rgba(255, 250, 240, 0.08);
  color: var(--paper-strong);
  backdrop-filter: blur(12px);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
}

.estimate-board {
  width: min(100%, 350px);
  justify-self: end;
  border: 1px solid var(--hero-line);
  border-radius: 8px;
  background: rgba(21, 50, 61, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.board-head,
.board-body,
.board-foot {
  padding: 20px;
}

.board-head {
  border-bottom: 1px solid var(--hero-line);
}

.board-head span,
.board-head strong {
  display: block;
}

.board-head span {
  color: rgba(255, 250, 240, 0.58);
}

.board-head strong {
  margin-top: 8px;
  font-size: 1.76rem;
}

.board-body p {
  margin: 0 0 14px;
  color: rgba(255, 250, 240, 0.72);
}

.board-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}

.board-foot {
  border-top: 1px solid var(--hero-line);
  color: var(--orange);
}

.hero-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(240px, 0.54fr) minmax(320px, 1fr);
  align-items: center;
  gap: 18px;
  margin: clamp(26px, 4vh, 50px) 0 0;
  padding: 18px clamp(18px, 3vw, 30px);
  border: 1px solid var(--hero-line);
  border-radius: 8px;
  background: rgba(21, 50, 61, 0.44);
  backdrop-filter: blur(12px);
}

.hero-note span,
.hero-note strong,
.hero-note p {
  display: block;
  min-width: 0;
}

.hero-note span {
  color: var(--orange);
  font-size: 0.71rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note strong {
  font-size: 1.18rem;
}

.hero-note p {
  margin: 0;
  color: rgba(255, 250, 240, 0.84);
  font-weight: 820;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.service-band,
.process-band,
.job-band,
.contact-band {
  width: min(1320px, calc(100% - clamp(32px, 7vw, 112px)));
  margin: 0 auto;
}

.service-band {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  padding: clamp(46px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 3.5rem;
  line-height: 1;
  text-wrap: balance;
}

.service-intro .eyebrow,
.process-copy .eyebrow,
.job-card .eyebrow,
.contact-band .eyebrow {
  color: var(--blue);
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(380px, 1fr);
  align-items: end;
  gap: clamp(20px, 4vw, 72px);
}

.service-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

.service-intro h2 {
  max-width: 660px;
  font-size: clamp(2.4rem, 4.2vw, 4.4rem);
}

.service-intro p:last-child {
  max-width: 560px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-grid article {
  position: relative;
  min-height: 138px;
  padding: 22px 22px 20px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.66);
  box-shadow: 0 14px 42px rgba(21, 50, 61, 0.05);
}

.service-grid article::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: var(--orange);
  content: "";
}

h3 {
  margin: 0 0 13px;
  font-size: 1.6rem;
  line-height: 1.08;
}

.service-grid p,
.process-copy p,
.steps p,
.contact-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.process-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(540px, 1.24fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
  padding: clamp(48px, 6vw, 78px) 0;
  border-top: 1px solid var(--line);
}

.process-copy p {
  max-width: 490px;
  margin-top: 20px;
  font-size: 1.06rem;
}

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

.steps article {
  min-height: 276px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
}

.steps span {
  color: var(--orange);
}

.steps h3 {
  margin-top: 42px;
}

.job-band {
  display: grid;
  gap: 14px;
  padding: clamp(42px, 6vw, 70px) 0 clamp(48px, 6vw, 74px);
}

.job-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-strong);
}

.job-card .eyebrow {
  color: var(--orange);
}

.job-heading h2 {
  max-width: 540px;
  font-size: clamp(2.4rem, 4.4vw, 4.7rem);
}

dl {
  margin: 0;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scope-list div {
  min-height: 150px;
  padding: 18px;
  border-top: 1px solid var(--hero-line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.055);
}

dt {
  margin-bottom: 7px;
  color: rgba(255, 250, 240, 0.58);
}

dd {
  margin: 0;
  font-weight: 850;
  line-height: 1.42;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--blue-wash);
}

.route-strip div {
  min-height: 98px;
  padding: clamp(18px, 2.2vw, 24px);
}

.route-strip div + div {
  border-left: 1px solid var(--line);
}

.route-strip span,
.route-strip strong {
  display: block;
}

.route-strip span {
  margin-bottom: 13px;
  color: var(--ink-soft);
}

.route-strip strong {
  font-size: 1.28rem;
  line-height: 1.3;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
  margin-bottom: clamp(72px, 8vw, 112px);
  padding: clamp(30px, 5vw, 68px);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 18px 64px rgba(21, 50, 61, 0.08);
}

.contact-copy p {
  max-width: 560px;
  font-size: 1.08rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1320px, calc(100% - clamp(32px, 7vw, 112px)));
  margin: 0 auto;
  padding: 0 0 42px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

footer p {
  margin: 22px 0 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .service-intro,
  .process-band,
  .job-card,
  .contact-band {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 4.8rem;
  }

  .estimate-board {
    justify-self: start;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
  }

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

  .scope-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    min-height: 64px;
    padding: 9px 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: max(780px, calc(100svh - 10px));
    gap: 22px;
    padding: 112px 18px 22px;
    background-position: 58% center;
  }

  h1 {
    max-width: 330px;
    font-size: 2.58rem;
  }

  h2 {
    font-size: 2.32rem;
  }

  .hero-lede {
    max-width: 330px;
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .estimate-board {
    width: 100%;
  }

  .hero-note {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 12px;
  }

  .hero-note p {
    max-width: 300px;
    font-size: 0.95rem;
  }

  .service-band,
  .process-band,
  .job-band,
  .contact-band,
  footer {
    width: calc(100% - 28px);
  }

  .service-grid,
  .steps,
  .route-strip {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .service-grid article,
  .scope-list div,
  .steps article {
    min-height: 0;
  }

  .steps h3 {
    margin-top: 28px;
  }

  .route-strip div {
    min-height: 0;
  }

  .route-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .job-card,
  .contact-band {
    padding: 26px 18px;
  }

  footer {
    flex-direction: column;
  }
}
