:root {
  color-scheme: light;
  --ink: #061d3f;
  --muted: #506b86;
  --line: #c8dbee;
  --paper: #f4f9ff;
  --white: #ffffff;
  --navy: #061d3f;
  --blue: #0b5fa8;
  --blue-2: #1878c8;
  --sky: #6fb7e9;
  --ice: #eaf5ff;
  --header: rgba(6, 29, 63, 0.94);
  --steel: #314e6a;
  --shadow: 0 18px 48px rgba(6, 29, 63, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: var(--header);
  border-bottom: 1px solid rgba(111, 183, 233, 0.34);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(6, 29, 63, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--sky);
}

.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46vw, 620px);
  height: min(58vh, 520px);
  background:
    linear-gradient(135deg, transparent 42%, rgba(111, 183, 233, 0.22) 42% 43%, transparent 43%),
    linear-gradient(135deg, transparent 53%, rgba(255, 255, 255, 0.12) 53% 54%, transparent 54%);
  pointer-events: none;
}

.hero__brand-mark {
  position: absolute;
  z-index: 1;
  right: clamp(28px, 8vw, 120px);
  top: 50%;
  width: clamp(148px, 18vw, 260px);
  transform: translateY(-42%);
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.36));
}

.hero__brand-mark::before,
.hero__brand-mark::after {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(111, 183, 233, 0.38);
  pointer-events: none;
}

.hero__brand-mark::after {
  inset: -38px -30px -30px -38px;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translate(16px, 16px);
}

.hero__brand-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 29, 63, 0.96), rgba(7, 58, 117, 0.74) 48%, rgba(11, 95, 168, 0.44)),
    linear-gradient(180deg, rgba(6, 29, 63, 0.04), rgba(6, 29, 63, 0.78));
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 29, 63, 0.96), rgba(6, 29, 63, 0.72) 46%, rgba(6, 29, 63, 0.22)),
    linear-gradient(180deg, rgba(6, 29, 63, 0.18), rgba(6, 29, 63, 0.86));
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: heroFade 24s infinite;
  transform: scale(1.04);
}

.hero__slide--one {
  background-image: url("./assets/hero-commercial-roof.jpg");
  opacity: 1;
}

.hero__slide--two {
  background-image: url("./assets/hero-roof-detail.jpg");
  animation-delay: 8s;
}

.hero__slide--three {
  background-image: url("./assets/hero-roof-craft.jpg");
  animation-delay: 16s;
}

@keyframes heroFade {
  0%,
  29% {
    opacity: 1;
  }

  38%,
  91% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.roof-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;
  padding: 2px;
  opacity: 0.16;
  mix-blend-mode: screen;
  transform: skewY(-5deg) scale(1.08);
}

.roof-grid span {
  min-height: 120px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.13) 0 1px, transparent 1px 22px),
    linear-gradient(145deg, #8ab8d9, #3b74a1 52%, #123a65);
}

.roof-grid span:nth-child(3n) {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #64a3d2, #164e83);
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none;
  }

  .hero__slide--one {
    opacity: 1;
  }

  .hero__slide--two,
  .hero__slide--three {
    opacity: 0;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(56px, 10vh, 96px);
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sky);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero__proof {
  display: inline-flex;
  margin: 0 0 30px;
  padding: 7px 10px;
  border: 1px solid rgba(111, 183, 233, 0.46);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(6, 29, 63, 0.28);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin: clamp(30px, 6vh, 52px) 0 0;
  padding: 1px;
  background: rgba(111, 183, 233, 0.34);
  border-radius: 6px;
  overflow: hidden;
}

.hero__stats div {
  padding: 15px 16px;
  background: rgba(6, 29, 63, 0.5);
}

.hero__stats dt {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__stats dd {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
}

.button--primary {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--navy);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
  background: var(--paper);
}

.section--intro {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.section--dark {
  background:
    linear-gradient(135deg, rgba(111, 183, 233, 0.12), transparent 38%),
    var(--navy);
  color: var(--white);
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: start;
}

.intro-grid > p,
.copy-stack p,
.contact-note p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section--dark .copy-stack p {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

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

.service-grid article {
  position: relative;
  min-height: 220px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(6, 29, 63, 0.06);
  overflow: hidden;
}

.service-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.card-index {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-grid article h3 {
  color: var(--blue);
}

.service-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.section--approach {
  background:
    linear-gradient(180deg, var(--white), var(--paper));
  border-bottom: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: clamp(28px, 7vw, 84px);
}

.approach-list {
  display: grid;
  gap: 14px;
}

.approach-list article {
  padding: 0 0 18px 22px;
  border-left: 4px solid var(--sky);
}

.approach-list h3 {
  color: var(--blue);
}

.approach-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.contact-line {
  color: var(--steel);
  font-size: 1.15rem;
}

.license {
  display: inline-flex;
  margin-bottom: 0;
  padding: 8px 10px;
  background: var(--ice);
  color: var(--blue);
  font-weight: 800;
  border-radius: 4px;
}

.contact-note {
  padding: 24px;
  background: var(--ice);
  border-radius: 6px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
  font-size: 0.92rem;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 620px;
  }

  .intro-grid,
  .split,
  .approach-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 1.15rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  nav {
    font-size: 0.85rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: auto;
  }

  .hero::after {
    width: 220px;
    height: 220px;
  }

  .hero__brand-mark {
    top: 132px;
    right: 22px;
    width: 86px;
    opacity: 0.92;
    transform: none;
  }

  .hero__brand-mark::before {
    inset: -9px;
  }

  .hero__brand-mark::after {
    display: none;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
