:root {
  --navy-950: #03101f;
  --navy-900: #061a31;
  --navy-800: #0a2948;
  --blue-700: #0758bd;
  --blue-600: #0a70e8;
  --blue-400: #43a8ff;
  --blue-100: #dceeff;
  --ice: #f4f9ff;
  --white: #ffffff;
  --ink: #0a2038;
  --muted: #58718a;
  --line: #d8e7f5;
  --shadow: 0 22px 70px rgba(0, 42, 92, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-inner,
.section-inner,
.footer-inner,
.legal-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(7, 88, 189, 0.42);
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: rotate(-3deg);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 6px;
  color: #b8dafe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-contact {
  color: var(--white);
  text-align: right;
}

.header-contact span {
  display: block;
  color: #b8dafe;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-contact strong {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  min-height: 770px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 31, 0.98) 0%, rgba(3, 16, 31, 0.88) 39%, rgba(3, 16, 31, 0.3) 69%, rgba(3, 16, 31, 0.42) 100%),
    linear-gradient(0deg, rgba(3, 16, 31, 0.9) 0%, transparent 42%),
    url("/assets/glen-roofing-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -110px;
  bottom: -180px;
  border: 1px solid rgba(67, 168, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(67, 168, 255, 0.045), 0 0 0 112px rgba(67, 168, 255, 0.03);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 190px 0 84px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #9fd0ff;
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--blue-400);
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7vw, 6.35rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 790px;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 42px;
  color: #dcecff;
  font-size: clamp(1.07rem, 2vw, 1.28rem);
  line-height: 1.65;
}

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

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(3, 16, 31, 0.52);
  backdrop-filter: blur(10px);
  color: #edf7ff;
  font-size: 0.9rem;
  font-weight: 750;
}

.proof-item svg {
  width: 17px;
  height: 17px;
  color: var(--blue-400);
  flex: 0 0 auto;
}

.section {
  padding: 112px 0;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  line-height: 1.01;
  letter-spacing: -0.048em;
}

.section-intro {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services {
  background: var(--ice);
}

.section-head-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 56px;
}

.section-head-row .section-heading {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 315px;
  padding: 38px 34px 34px;
  background: var(--white);
}

.service-number {
  display: block;
  margin-bottom: 50px;
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

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

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 82px;
  align-items: center;
}

.roof-collage {
  position: relative;
  min-height: 570px;
}

.roof-collage .main-photo {
  width: 82%;
  height: 500px;
  object-fit: cover;
  margin-left: auto;
  box-shadow: var(--shadow);
}

.roof-collage .detail-photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 230px;
  object-fit: cover;
  border: 10px solid var(--white);
  box-shadow: 0 16px 50px rgba(0, 42, 92, 0.2);
}

.roof-collage .blue-block {
  position: absolute;
  top: -24px;
  left: 10%;
  width: 110px;
  height: 110px;
  border-top: 4px solid var(--blue-600);
  border-left: 4px solid var(--blue-600);
}

.feature-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 22px 0 22px 36px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 750;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 30px;
  width: 10px;
  height: 10px;
  background: var(--blue-600);
  box-shadow: 6px -6px 0 rgba(67, 168, 255, 0.28);
}

.process {
  color: var(--white);
  background:
    radial-gradient(circle at 88% 15%, rgba(67, 168, 255, 0.2), transparent 25%),
    linear-gradient(135deg, var(--navy-950), #07284a);
}

.process .section-kicker {
  color: #86c5ff;
}

.process .section-heading {
  margin-bottom: 58px;
}

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

.process-step {
  position: relative;
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
}

.process-step strong {
  display: block;
  margin-bottom: 54px;
  color: var(--blue-400);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.process-step h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.process-step p {
  margin: 0;
  color: #bcd3e8;
}

.contact-band {
  padding: 70px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--white);
  background: var(--blue-700);
}

.contact-band-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.contact-details {
  display: grid;
  gap: 8px;
  padding-left: 34px;
  border-left: 2px solid rgba(255, 255, 255, 0.45);
}

.contact-details span {
  color: #c9e6ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-details strong {
  font-size: 1.1rem;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 58px 0 26px;
  color: #c0d2e4;
  background: var(--navy-950);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  padding-bottom: 42px;
}

.footer-brand p {
  max-width: 480px;
  margin: 20px 0 0;
  color: #8faac2;
}

.footer-title {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-contact {
  display: grid;
  gap: 7px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
}

.legal-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: #86c5ff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #7893aa;
  font-size: 0.82rem;
}

.legal-header {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(67, 168, 255, 0.25), transparent 31%),
    var(--navy-950);
}

.legal-header .header-inner {
  min-height: 92px;
}

.legal-title-wrap {
  padding: 95px 0 76px;
}

.legal-title-wrap .eyebrow {
  margin-bottom: 20px;
}

.legal-title-wrap h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 6vw, 5.5rem);
}

.legal-title-wrap p {
  margin: 0;
  color: #bdd8ef;
  font-weight: 700;
}

.legal-main {
  padding: 82px 0 110px;
  background: #f7fbff;
}

.legal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 780px);
  gap: 70px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 28px;
  padding: 24px;
  border-top: 4px solid var(--blue-600);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(0, 42, 92, 0.09);
}

.legal-aside strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-article {
  padding: 48px 52px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 42, 92, 0.09);
}

.legal-article h2 {
  margin: 48px 0 14px;
  color: var(--ink);
  font-size: 1.62rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article p,
.legal-article li {
  color: #334f68;
}

.legal-article ul {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.legal-article .notice {
  padding: 18px 20px;
  border-left: 4px solid var(--blue-600);
  background: var(--blue-100);
  color: #163f69;
  font-weight: 750;
}

.legal-article .contact-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--ice);
}

@media (max-width: 920px) {
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head-row,
  .split-section,
  .contact-band-inner,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 60px;
  }

  .contact-details {
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 0;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .legal-shell,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-copy span,
  .header-contact span {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 0.89rem;
  }

  .header-contact strong {
    font-size: 0.84rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(3, 16, 31, 0.98) 0%, rgba(3, 16, 31, 0.72) 76%, rgba(3, 16, 31, 0.42) 100%),
      url("/assets/glen-roofing-hero.png") 62% center / cover no-repeat;
  }

  .hero-inner {
    padding: 150px 0 54px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.45rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .section {
    padding: 78px 0;
  }

  .section-head-row {
    gap: 20px;
    margin-bottom: 38px;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 30px 26px;
  }

  .service-number {
    margin-bottom: 30px;
  }

  .roof-collage {
    min-height: 440px;
  }

  .roof-collage .main-photo {
    width: 88%;
    height: 390px;
  }

  .roof-collage .detail-photo {
    width: 56%;
    height: 170px;
    border-width: 7px;
  }

  .contact-band {
    padding: 56px 0;
  }

  .legal-title-wrap {
    padding: 68px 0 54px;
  }

  .legal-main {
    padding: 42px 0 70px;
  }

  .legal-article {
    padding: 32px 24px;
  }

  .legal-article h2 {
    margin-top: 38px;
    font-size: 1.4rem;
  }
}

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