:root {
  --ink: #161b1d;
  --ink-soft: #4b565c;
  --paper: #fbf8f2;
  --chalk: #ffffff;
  --sky: #dfeef4;
  --pine: #2f604f;
  --pine-dark: #18382f;
  --copper: #c96f3d;
  --copper-dark: #a5532d;
  --sun: #e5b65c;
  --asphalt: #2c3033;
  --line: rgba(22, 27, 29, 0.14);
  --shadow: 0 22px 60px rgba(22, 27, 29, 0.18);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 800;
  overflow-wrap: normal;
}

h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 4.7rem);
}

h3 {
  font-size: 1.25rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.roof-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "alert alert alert"
    "brand nav call";
  gap: 10px 18px;
  align-items: center;
  padding: 0 max(20px, calc((100vw - 1160px) / 2)) 11px;
  color: var(--chalk);
  background: rgba(22, 27, 29, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 36px rgba(22, 27, 29, 0.24);
}

.roof-header.scrolled {
  color: var(--chalk);
  background: rgba(22, 27, 29, 0.98);
  border-color: rgba(255, 255, 255, 0.14);
}

.roof-alert {
  grid-area: alert;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 min(0px, calc((100vw - 1160px) / -2));
  padding: 7px max(20px, calc((100vw - 1160px) / 2));
  color: rgba(255, 255, 255, 0.82);
  background: var(--pine-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.roof-alert a {
  color: var(--sun);
  font-weight: 900;
  white-space: nowrap;
}

.short-alert {
  display: none;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 7px;
  background: var(--copper);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  left: 8px;
  top: 14px;
  width: 27px;
  height: 18px;
  background: var(--chalk);
  clip-path: polygon(0 44%, 50% 0, 100% 44%, 100% 100%, 0 100%);
}

.brand-mark::after {
  left: 12px;
  top: 26px;
  width: 19px;
  height: 3px;
  background: var(--copper);
  box-shadow: 0 5px 0 var(--copper);
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
}

.roof-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.roof-nav a,
.header-call {
  border-radius: 7px;
  font-weight: 900;
}

.roof-nav a {
  padding: 10px 12px;
  color: inherit;
  font-size: 0.93rem;
}

.roof-nav a:hover,
.roof-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.roof-header.scrolled .roof-nav a:hover,
.roof-header.scrolled .roof-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.header-call {
  grid-area: call;
  padding: 12px 14px;
  color: var(--chalk);
  background: var(--copper);
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(22, 27, 29, 0.18);
}

.header-call:hover,
.header-call:focus-visible {
  background: var(--copper-dark);
  outline: none;
}

.nav-toggle {
  grid-area: nav;
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 10px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  align-items: end;
  overflow: hidden;
  padding: 174px 0 58px;
  color: var(--chalk);
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(18, 21, 22, 0.94) 0%, rgba(18, 21, 22, 0.82) 42%, rgba(18, 21, 22, 0.28) 42.2%, rgba(18, 21, 22, 0.18) 74%),
    linear-gradient(180deg, rgba(18, 21, 22, 0.06), rgba(18, 21, 22, 0.74));
}

.hero-inner {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.26fr);
  gap: 34px;
  align-items: end;
  margin: 0 auto;
}

.hero-inner > :not(.storm-board) {
  grid-column: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.15;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: var(--chalk);
  background: var(--copper);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--copper-dark);
}

.button.secondary {
  color: var(--chalk);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.20);
}

.full-width {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.10);
}

.storm-board {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: end;
  padding: 20px;
  border-left: 5px solid var(--sun);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 44px rgba(22, 27, 29, 0.24);
}

.storm-board span {
  display: block;
  margin-bottom: 9px;
  color: var(--copper-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.storm-board strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.04;
}

.storm-board p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.inspection-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 22px;
  align-items: center;
  padding: 24px max(20px, calc((100vw - 1160px) / 2));
  color: var(--chalk);
  background: var(--pine-dark);
}

.strip-copy {
  display: grid;
  gap: 4px;
}

.strip-copy strong {
  font-size: 1.12rem;
}

.strip-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.quick-form {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 10px;
  align-items: end;
}

.quick-form label,
.estimate-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.quick-form label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.quick-form input,
.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--chalk);
}

.quick-form input {
  min-height: 48px;
  padding: 11px 12px;
}

.quick-button {
  color: var(--ink);
  background: var(--sun);
}

.quick-button:hover,
.quick-button:focus-visible {
  background: #f0c56d;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1160px, calc(100% - 40px));
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--chalk);
  box-shadow: 0 14px 38px rgba(22, 27, 29, 0.08);
}

.metrics div {
  display: grid;
  gap: 4px;
  min-height: 128px;
  align-content: center;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.metrics span {
  color: var(--ink-soft);
  font-weight: 800;
}

.section {
  padding: 90px 0;
}

section[id] {
  scroll-margin-top: 128px;
}

.split-heading,
.storm-grid,
.work-grid,
.review-grid,
.estimate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 54px;
  align-items: start;
}

.split-heading > p,
.work-copy > p,
.estimate-grid > div > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.service-list article {
  min-height: 256px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--chalk);
  box-shadow: 0 12px 32px rgba(22, 27, 29, 0.07);
}

.service-list span {
  display: inline-block;
  margin-bottom: 56px;
  color: var(--copper);
  font-weight: 900;
}

.service-list p,
.process-track p,
.reviews p,
.form-note {
  color: var(--ink-soft);
}

.storm-band {
  padding: 62px 0;
  color: var(--chalk);
  background: var(--asphalt);
}

.storm-band .section-kicker {
  color: var(--sun);
}

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

.storm-steps div {
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.storm-steps strong {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--sun);
}

.storm-steps span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.work-section {
  background: var(--sky);
}

.work-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--chalk);
  box-shadow: var(--shadow);
}

.work-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-photo figcaption {
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.work-copy {
  align-self: center;
}

.work-copy > p {
  margin-top: 22px;
}

.work-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.work-stats div {
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 27, 29, 0.10);
}

.work-stats span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.22rem;
}

.process-section {
  background: var(--paper);
}

.center-heading {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.center-heading h2 {
  margin: 0 auto;
}

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

.process-track article {
  padding: 28px;
  border-top: 5px solid var(--copper);
  border-radius: var(--radius);
  background: var(--chalk);
  box-shadow: 0 12px 34px rgba(22, 27, 29, 0.08);
}

.process-track span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--pine);
  font-size: 1.25rem;
  font-weight: 900;
}

.reviews-section {
  color: var(--chalk);
  background: var(--pine-dark);
}

.reviews-section .section-kicker {
  color: var(--sun);
}

.reviews {
  display: grid;
  gap: 14px;
}

blockquote {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

blockquote p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
}

cite {
  color: var(--sun);
  font-style: normal;
  font-weight: 900;
}

.estimate-section {
  background: var(--chalk);
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.contact-lines a {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--copper);
  color: var(--pine-dark);
  font-weight: 900;
}

.estimate-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  padding: 12px 13px;
}

.estimate-form textarea {
  resize: vertical;
}

.quick-form input:focus,
.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  border-color: var(--pine);
  outline: 3px solid rgba(47, 96, 79, 0.18);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.roof-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px max(20px, calc((100vw - 1160px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.roof-footer p {
  margin: 0;
}

.roof-footer a {
  color: var(--chalk);
  font-weight: 900;
}

@media (max-width: 980px) {
  .roof-header {
    grid-template-columns: auto auto;
    grid-template-areas:
      "alert alert"
      "brand nav";
  }

  .roof-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 232px;
    flex-direction: column;
    padding: 8px;
    color: var(--ink);
    background: rgba(251, 248, 242, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .roof-nav.open {
    display: flex;
  }

  .roof-nav a {
    padding: 12px;
  }

  .header-call {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .storm-board {
    grid-column: 1;
    grid-row: auto;
    max-width: 460px;
  }

  .inspection-strip,
  .split-heading,
  .storm-grid,
  .work-grid,
  .review-grid,
  .estimate-grid {
    grid-template-columns: 1fr;
  }

  .quick-form {
    grid-template-columns: 1fr 150px;
  }

  .quick-button {
    grid-column: 1 / -1;
  }

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

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

  .metrics div:nth-child(2) {
    border-right: 0;
  }

  .metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .container,
  .hero-inner {
    width: min(100% - 28px, 1160px);
  }

  .roof-header {
    width: 100%;
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .roof-alert {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .wide-alert {
    display: none;
  }

  .short-alert {
    display: inline;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 72svh;
    padding: 116px 0 42px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(18, 21, 22, 0.94), rgba(18, 21, 22, 0.70)),
      linear-gradient(180deg, rgba(18, 21, 22, 0.04), rgba(18, 21, 22, 0.74));
  }

  h1 {
    font-size: clamp(2.8rem, 14.5vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 1.02rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .inspection-strip {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .quick-form,
  .metrics,
  .service-list,
  .storm-steps,
  .work-stats,
  .process-track {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .metrics div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .service-list article {
    min-height: 0;
  }

  .service-list span {
    margin-bottom: 32px;
  }

  .section {
    padding: 66px 0;
  }

  section[id] {
    scroll-margin-top: 148px;
  }

  .roof-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
