:root {
  --ink: #f4f7fb;
  --ink-2: #ffffff;
  --paper: #07142a;
  --white: #ffffff;
  --surface: #0d2344;
  --surface-2: #12315b;
  --muted: #b9c6d8;
  --line: rgba(249, 115, 22, 0.26);
  --gold: #f97316;
  --gold-dark: #c2410c;
  --copper-light: #ffb057;
  --cedar: #f97316;
  --sage: #12315b;
  --charcoal: #07142a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: rgba(7, 20, 42, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.26);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #12100e;
  background: linear-gradient(135deg, var(--copper-light), var(--gold) 58%, #8e4829);
  border: 1px solid rgba(239, 176, 111, 0.72);
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: rgba(247, 239, 228, 0.72);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.rise-brand img {
  width: clamp(92px, 12vw, 152px);
  height: auto;
}

.rise-brand .brand-mark {
  display: none;
}

.rise-brand strong {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
}

.rise-brand small {
  max-width: 220px;
  line-height: 1.25;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  color: rgba(247, 239, 228, 0.82);
  font-size: 0.94rem;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a[aria-current="page"] {
  color: var(--copper-light);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.contact-methods a:hover,
.contact-methods a:focus-visible {
  color: var(--copper-light);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #100e0d;
  background: linear-gradient(135deg, var(--copper-light), var(--gold));
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 70vh, 640px);
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background-image: url("assets/rise-above-hero.jpg");
  background-position: center right;
  background-size: cover;
  filter: saturate(0.9) contrast(1.08) brightness(0.82);
}

.commercial-hero .hero-media {
  background-image: url("assets/commercial-roofing-hero.png");
  background-position: center right;
  filter: saturate(0.82) contrast(1.12) brightness(0.78);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 20, 42, 0.96) 0%, rgba(7, 20, 42, 0.78) 38%, rgba(7, 20, 42, 0.22) 74%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.18), rgba(7, 20, 42, 0.86));
}

.hero-content {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 60px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
}

.commercial-hero h1 {
  max-width: 840px;
  font-size: clamp(2.65rem, 5.7vw, 5rem);
}

.tagline {
  margin: 18px 0 0;
  color: var(--copper-light);
  font-size: clamp(1.28rem, 2.7vw, 2.2rem);
  font-family: Georgia, "Times New Roman", serif;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  color: #100e0d;
  background: linear-gradient(135deg, var(--copper-light), var(--gold) 62%, #9d512e);
  box-shadow: 0 14px 34px rgba(199, 120, 62, 0.3);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(239, 176, 111, 0.44);
  background: rgba(239, 176, 111, 0.08);
}

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

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-capabilities span {
  padding: 9px 13px;
  color: rgba(247, 239, 228, 0.86);
  background: rgba(12, 12, 11, 0.5);
  border: 1px solid rgba(239, 176, 111, 0.28);
  border-radius: 999px;
  font-size: 0.88rem;
}

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

.section-panel {
  background: var(--surface);
  border-top: 1px solid rgba(211, 125, 65, 0.12);
  border-bottom: 1px solid rgba(211, 125, 65, 0.12);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
  padding: clamp(52px, 8vw, 92px) 0;
}

.intro h2,
.section-heading h2,
.contact-copy h2 {
  max-width: 770px;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.split > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services,
.process,
.roof-types {
  padding: clamp(62px, 9vw, 112px) 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

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

.service-card {
  min-height: 292px;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), #081a34);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.service-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #100e0d;
  background: linear-gradient(135deg, var(--copper-light), var(--gold));
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.78rem;
}

.service-card h3,
.timeline h3 {
  margin: 28px 0 10px;
  color: var(--ink-2);
  font-size: 1.28rem;
}

.service-card p,
.timeline p,
.proof-list span,
.standard-note p,
.contact-copy p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  color: var(--copper-light);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
}

.roof-type-system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.roof-type-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roof-type-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  min-height: 232px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(180deg, var(--surface), #171514);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.roof-type-image {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(239, 176, 111, 0.18);
}

.roof-type-tile:hover,
.roof-type-tile:focus-visible,
.roof-type-tile.is-active {
  border-color: rgba(239, 176, 111, 0.72);
  outline: none;
}

.roof-type-tile.is-active {
  background:
    linear-gradient(180deg, rgba(199, 120, 62, 0.2), rgba(23, 21, 20, 0.96)),
    var(--surface);
}

.roof-type-tile span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #100e0d;
  background: linear-gradient(135deg, var(--copper-light), var(--gold));
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.74rem;
}

.roof-type-tile strong {
  align-self: center;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.roof-type-tile em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.roof-type-detail {
  position: sticky;
  top: 98px;
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(239, 176, 111, 0.08), rgba(23, 21, 20, 0.98)),
    var(--surface);
  border: 1px solid rgba(239, 176, 111, 0.36);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.roof-type-detail-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(239, 176, 111, 0.24);
}

.roof-type-detail h3 {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.08;
}

.roof-type-detail p {
  margin: 0;
  color: var(--muted);
}

.roof-type-meta {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.roof-type-meta div {
  padding: 16px;
  background: rgba(8, 8, 7, 0.42);
  border: 1px solid rgba(211, 125, 65, 0.2);
  border-radius: 6px;
}

.roof-type-meta dt {
  margin-bottom: 6px;
  color: var(--copper-light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.roof-type-meta dd {
  margin: 0;
  color: var(--ink);
}

.roof-type-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.roof-type-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}

.roof-type-points li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.standard {
  padding: clamp(62px, 9vw, 110px) 0;
}

.standard-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.storm-layout,
.rep-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.standard-note {
  padding-left: 22px;
  border-left: 4px solid var(--gold);
}

.standard-note p {
  color: var(--ink-2);
  font-size: 1.22rem;
  font-family: Georgia, "Times New Roman", serif;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.proof-list li {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list strong {
  margin-bottom: 8px;
  color: var(--ink-2);
}

.rep-copy {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.rep-card {
  padding: 26px;
  background: linear-gradient(180deg, var(--surface), #081a34);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rep-card strong {
  display: block;
  color: var(--ink-2);
  font-size: 1.5rem;
}

.rep-card span {
  display: block;
  margin-top: 4px;
  color: var(--copper-light);
  font-weight: 800;
}

.rep-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.rep-card li {
  padding-left: 18px;
  color: var(--muted);
  position: relative;
}

.rep-card li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "+";
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline article {
  min-height: 246px;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), #081a34);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #100e0d;
  background: linear-gradient(135deg, var(--copper-light), var(--cedar));
  border-radius: 50%;
  font-weight: 900;
}

.contact-band {
  padding: clamp(62px, 9vw, 110px) 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 20, 42, 0.98), rgba(12, 49, 91, 0.96)),
    var(--charcoal);
  border-top: 1px solid rgba(249, 115, 22, 0.22);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.contact-copy p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.86);
}

.contact-methods a,
.contact-methods span {
  width: fit-content;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 26px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--surface), #081a34);
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-weight: 800;
  font-size: 0.88rem;
}

.field-grid {
  display: grid;
  gap: 14px;
}

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

.field-grid.three {
  grid-template-columns: 1fr 0.42fr 0.68fr;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #07142a;
  border: 1px solid rgba(249, 115, 22, 0.32);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 118px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(249, 115, 22, 0.28);
  border-color: var(--gold-dark);
}

.contact-form .button {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--copper-light);
  font-weight: 800;
}

.form-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #061024;
  border-top: 1px solid rgba(249, 115, 22, 0.2);
}

.commercial-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  padding: clamp(56px, 8vw, 96px) 0;
}

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

.commercial-stats article,
.system-panel,
.scale-list li,
.market-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #171514);
}

.commercial-stats article {
  min-height: 170px;
  padding: 20px;
}

.commercial-stats strong,
.commercial-stats span,
.scale-list strong,
.scale-list span {
  display: block;
}

.commercial-stats strong,
.scale-list strong {
  margin-bottom: 8px;
  color: var(--ink-2);
}

.commercial-stats span,
.scale-list span,
.system-panel p {
  color: var(--muted);
}

.commercial-systems,
.commercial-markets {
  padding: clamp(62px, 9vw, 112px) 0;
}

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

.system-panel {
  min-height: 470px;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.system-panel h3 {
  margin: 30px 0 12px;
  color: var(--ink-2);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.spec-list,
.scale-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.spec-list {
  display: grid;
  gap: 10px;
}

.spec-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}

.spec-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.scale-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding: clamp(62px, 9vw, 110px) 0;
}

.scale-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.scale-list li {
  padding: 22px;
}

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

.market-grid span {
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--ink-2);
  font-weight: 800;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand-footer .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
}

.brand-footer strong {
  font-size: 1.02rem;
}

.brand-footer small {
  font-size: 0.66rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    place-content: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: rgba(239, 176, 111, 0.08);
    border: 1px solid rgba(239, 176, 111, 0.28);
    border-radius: 999px;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: fixed;
    inset: 76px 14px auto;
    display: none;
    padding: 18px;
    background: rgba(7, 20, 42, 0.98);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    justify-items: start;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-media {
    background-position: 62% center;
  }

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

  .split,
  .standard-layout,
  .storm-layout,
  .rep-layout,
  .contact-layout,
  .roof-type-system,
  .commercial-intro-grid,
  .scale-layout {
    grid-template-columns: 1fr;
  }

  .roof-type-detail {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

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

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

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

  .site-nav {
    inset: 70px 12px auto;
  }

  .hero {
    min-height: 74vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 20, 42, 0.94), rgba(7, 20, 42, 0.6)),
      linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(7, 20, 42, 0.76));
  }

  .hero-content {
    padding: 46px 0 50px;
  }

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

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

  .hero-capabilities span {
    font-size: 0.8rem;
  }

  .service-grid,
  .timeline,
  .proof-list,
  .roof-type-tiles,
  .system-grid,
  .scale-list,
  .commercial-stats,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline article {
    min-height: auto;
  }

  .contact-form {
    padding: 20px;
  }

  .field-grid.two,
  .field-grid.three {
    grid-template-columns: 1fr;
  }
}
