:root {
  --ink: #121925;
  --body: #4d5868;
  --paper: #f7f8f6;
  --soft: #e7ebf0;
  --navy: #172033;
  --navy-2: #202b3f;
  --line: #aeb8ca;
  --muted: #aeb7c5;
  --cobalt: #2457c5;
  --cobalt-2: #1d469f;
  --white: #ffffff;
  --max: 1248px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body, input, textarea, select, button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }

h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1; letter-spacing: 0; max-width: 840px; }
h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: 0; }
h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.16; }

.wrap { width: min(var(--max), calc(100% - 72px)); margin: 0 auto; }

.site-shell {
  position: relative;
  min-height: 760px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 25, 37, .94), rgba(18, 25, 37, .68) 42%, rgba(18, 25, 37, .18)),
    linear-gradient(180deg, rgba(18, 25, 37, .02), rgba(18, 25, 37, .78)),
    url("assets/hero-premium-roof.webp") center / cover no-repeat,
    var(--navy);
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(110deg, transparent 0 24%, rgba(255, 255, 255, .07) 24.2%, transparent 24.7%),
    repeating-linear-gradient(110deg, transparent 0 146px, rgba(255, 255, 255, .09) 147px, transparent 149px);
  background-position: center;
  opacity: .68;
}

.site-shell > * { position: relative; z-index: 1; }
.header { min-height: 96px; display: grid; align-items: center; }

.nav {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 26px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark { display: inline-flex; gap: 4px; }
.brand-mark i { display: block; width: 9px; height: 28px; background: var(--cobalt); transform: skew(-17deg); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 36px); }
.nav-cta { display: flex; justify-content: flex-end; }
.nav a { transition: color 160ms var(--ease-out); }
.nav a[aria-current="page"], .nav a:hover { color: #c7d6ff; }

.hero { min-height: 664px; display: grid; align-items: center; padding: 70px 0 104px; }
.hero-copy { max-width: 760px; }
.eyebrow { color: var(--cobalt); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { color: #7fa0ff; }
.lead { color: inherit; opacity: .78; font-size: 17px; line-height: 1.68; max-width: 68ch; }
.body-copy { color: var(--body); font-size: 15px; line-height: 1.72; max-width: 72ch; }
.hero .lead { max-width: 650px; }

.actions-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform 150ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-2); border-color: var(--cobalt-2); }
.btn-light { color: var(--white); border-color: rgba(255, 255, 255, .72); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-white { background: var(--white); border-color: var(--white); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #7fa0ff;
  outline-offset: 4px;
}

.section { padding: 92px 0; }
.section-tight { padding: 68px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-soft { background: var(--soft); }
.section-cobalt {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .16), transparent 36%),
    repeating-linear-gradient(110deg, transparent 0 132px, rgba(255, 255, 255, .18) 133px, transparent 135px),
    var(--cobalt);
  color: var(--white);
}

.split-head { display: grid; grid-template-columns: .98fr 1.02fr; gap: 64px; align-items: end; margin-bottom: 52px; }
.trust-row, .service-grid, .metric-row {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.trust-row { grid-template-columns: repeat(4, 1fr); }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.metric-row { grid-template-columns: repeat(4, 1fr); }
.trust-item, .service-card, .metric-item {
  min-height: 170px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark .trust-item, .section-dark .service-card, .section-dark .metric-item { border-color: rgba(255, 255, 255, .24); }
.section-dark .body-copy, .section-dark .lead { color: rgba(255, 255, 255, .78); }

.service-card { display: grid; align-content: start; gap: 16px; min-height: 280px; }
.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--cobalt);
}
.icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card .btn { justify-self: start; min-height: 42px; padding: 0 16px; margin-top: 4px; }

.project-list { display: grid; gap: 56px; }
.project { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 500px; }
.project:nth-child(even) { grid-template-columns: .92fr 1.08fr; }
.project-img { height: 500px; overflow: hidden; background: var(--soft); }
.project-card {
  width: min(540px, 100%);
  min-height: 286px;
  margin-left: -78px;
  padding: 46px;
  background: var(--paper);
  border: 1px solid rgba(174, 184, 202, .7);
  z-index: 2;
}
.project:nth-child(even) .project-card { order: -1; margin-left: 0; margin-right: -78px; }
.mini-meta { color: var(--body); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.quality { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.quality-img { height: 460px; overflow: hidden; background: var(--soft); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.process-card { min-height: 220px; padding: 32px; background: var(--soft); }

.testimonial-layout { display: grid; grid-template-columns: 1fr .9fr 1fr; border: 1px solid rgba(174, 184, 202, .7); background: var(--paper); }
.quote-panel { min-height: 350px; padding: 40px; }
.quote-panel.image { padding: 0; }
.stars { display: flex; gap: 5px; color: var(--cobalt); margin-bottom: 18px; }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2; }

.video-hero { min-height: 600px; position: relative; display: grid; align-items: end; overflow: hidden; background: var(--navy); }
.video-hero > img { position: absolute; inset: 0; filter: brightness(.52) saturate(.9); }
.video-card { position: relative; z-index: 2; width: min(680px, 58%); margin-bottom: 52px; padding: 48px; background: var(--paper); }
.play {
  position: absolute;
  z-index: 3;
  right: 22%;
  top: 48%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cobalt);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 62px; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border: 1px solid rgba(174, 184, 202, .8); padding: 20px; background: var(--paper); }
.faq-list summary { cursor: pointer; font-weight: 900; }
.faq-list p { margin-top: 14px; color: var(--body); line-height: 1.65; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.card-img { height: 245px; margin-bottom: 22px; overflow: hidden; background: var(--soft); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-detail { padding: 36px; border: 1px solid rgba(174, 184, 202, .8); background: var(--paper); }

.detail-hero-img { height: 470px; overflow: hidden; margin-top: 52px; border: 1px solid rgba(174, 184, 202, .5); }
.detail-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: start; }
.check-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--body); line-height: 1.6; }
.check-list li::before { content: ""; width: 9px; height: 16px; border-right: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt); transform: rotate(45deg); margin-left: 6px; }
.sticky-quote { position: sticky; top: 24px; padding: 34px; background: var(--navy); color: var(--white); }
.sticky-quote .body-copy { color: rgba(255, 255, 255, .78); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-panel, .form-panel { padding: 38px; background: var(--paper); border: 1px solid rgba(174, 184, 202, .8); }
.contact-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.contact-card { padding: 28px; border: 1px solid rgba(174, 184, 202, .8); background: var(--paper); display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(174, 184, 202, .9); background: var(--white); color: var(--ink); padding: 14px 15px; }
.field textarea { min-height: 150px; resize: vertical; }

.final-cta { min-height: 290px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer { background: var(--navy); color: var(--white); padding: 76px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 48px; }
.footer-list { display: grid; gap: 14px; margin-top: 22px; color: var(--muted); }
.footer-bottom { margin-top: 58px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .footer a:hover, .service-card a:hover { color: #c7d6ff; }
}

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

@media (max-width: 1120px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .site-shell { min-height: auto; }
  .nav { grid-template-columns: 1fr; gap: 18px; padding: 18px 0; }
  .brand { white-space: normal; }
  .nav-links { justify-content: flex-start; flex-wrap: wrap; gap: 16px 22px; }
  .nav-cta { justify-content: flex-start; }
  .hero { min-height: 650px; padding: 54px 0 72px; }
  h1 { font-size: 39px; }
  h2 { font-size: 31px; }
  .split-head, .project, .project:nth-child(even), .quality, .faq-grid, .contact-grid, .final-cta, .detail-layout { grid-template-columns: 1fr; }
  .trust-row, .service-grid, .metric-row, .process-grid, .card-grid, .service-detail-grid, .testimonial-layout, .footer-grid, .form-grid, .contact-card-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .project-card, .project:nth-child(even) .project-card { margin: 0; width: 100%; }
  .project-img, .quality-img { height: 350px; }
  .detail-hero-img { height: 330px; }
  .video-card { width: 100%; margin-bottom: 0; padding: 32px; }
  .play { right: 28px; top: 220px; width: 74px; height: 74px; }
  .field.full { grid-column: auto; }
  .btn { width: 100%; min-width: 0; text-align: center; }
  .actions-row { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
