:root {
  --ink: #171615;
  --coal: #24201e;
  --steel: #4e5a5c;
  --cedar: #8f5f3f;
  --stone: #f3efe7;
  --paper: #fffaf1;
  --sage: #687b57;
  --red: #c51f2a;
  --red-dark: #8f141c;
  --line: rgba(23, 22, 21, 0.16);
  --shadow: 0 18px 45px rgba(22, 18, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(197, 31, 42, 0.55);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--red-dark);
}

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

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--red-dark);
  transform: translateY(-110%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--paper);
  background: rgba(23, 22, 21, 0.94);
  border-bottom: 1px solid rgba(255, 250, 241, 0.14);
  backdrop-filter: blur(14px);
}

.top-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  padding: 0.45rem 1rem;
  color: rgba(255, 250, 241, 0.88);
  background: var(--red-dark);
  font-size: 0.88rem;
}

.top-strip a {
  color: white;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 164px;
  height: auto;
  background: white;
  border-radius: 4px;
  padding: 0.24rem;
}

.menu-toggle,
.has-menu > button {
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 250, 241, 0.32);
  border-radius: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.has-menu > button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--paper);
  text-decoration: none;
  border-radius: 4px;
}

.nav-list a:hover,
.has-menu > button:hover,
.nav-list a:focus-visible,
.has-menu > button:focus-visible {
  color: white;
  background: rgba(255, 250, 241, 0.12);
  outline: none;
}

.has-menu {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: none;
  min-width: 170px;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: var(--coal);
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.has-menu:hover .sub-menu,
.has-menu.open .sub-menu {
  display: block;
}

.sub-menu a {
  display: flex;
  width: 100%;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background: var(--coal);
}

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

.hero-media {
  background-image: url("hero/eclipse-aerial-scaled.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: background-image 700ms ease;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 16, 15, 0.58) 0%, rgba(18, 16, 15, 0.34) 44%, rgba(18, 16, 15, 0.06) 100%),
    linear-gradient(0deg, rgba(18, 16, 15, 0.5) 0%, rgba(18, 16, 15, 0.05) 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 2rem));
  margin: 0 0 8rem max(1rem, calc((100vw - 1220px) / 2));
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffdf8d;
}

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

h1 {
  max-width: 700px;
  font-size: 4.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: 2.75rem;
  font-weight: 900;
}

h3 {
  font-size: 1.22rem;
}

.tagline {
  margin: 1rem 0 0.5rem;
  color: #ffdf8d;
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 590px;
  margin: 0 0 1.5rem;
  color: rgba(255, 250, 241, 0.9);
  font-size: 1.08rem;
}

.hero-actions,
.footer-links,
.media-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.btn.primary {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.btn.primary:hover {
  color: white;
  background: var(--red-dark);
}

.btn.ghost {
  color: white;
  border-color: rgba(255, 250, 241, 0.55);
  background: rgba(255, 250, 241, 0.08);
}

.trust-rail {
  position: absolute;
  right: max(1rem, calc((100vw - 1220px) / 2));
  bottom: 1.35rem;
  left: max(1rem, calc((100vw - 1220px) / 2));
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.trust-rail span {
  padding: 0.85rem 1rem;
  color: white;
  text-align: center;
  font-weight: 800;
  background: rgba(255, 250, 241, 0.12);
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 4px;
}

.section {
  padding: 5.5rem max(1rem, calc((100vw - 1220px) / 2));
}

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

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 3rem;
  align-items: start;
}

.copy-stack > *:first-child {
  margin-top: 0;
}

.copy-stack > *:last-child {
  margin-bottom: 0;
}

.wide-copy {
  max-width: 1050px;
  margin: 0 auto 2rem;
  text-align: center;
}

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

.intro-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.97), rgba(243, 239, 231, 0.98)),
    url("source/040-house-roof-2.png_m.jpg");
  background-size: cover;
  background-position: center;
}

.credentials-section {
  background: var(--stone);
}

.badge-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 18, 15, 0.08);
}

.badge-line img {
  width: 150px;
  height: auto;
}

.badge-line strong,
.badge-line span {
  display: block;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.credential-item {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credential-item img {
  max-height: 110px;
  object-fit: contain;
}

.credential-item button {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.services-section {
  color: var(--paper);
  background: var(--coal);
}

.services-section a {
  color: white;
}

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

.service-list span {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0.85rem 1rem;
  color: white;
  font-weight: 800;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 6px;
}

.widget-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

details {
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.services-section details {
  color: var(--ink);
}

summary {
  padding: 1rem;
  font-weight: 900;
  cursor: pointer;
}

details > *:not(summary) {
  margin-right: 1rem;
  margin-left: 1rem;
}

details iframe {
  width: calc(100% - 2rem);
  height: 720px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.warranty-details {
  overflow: hidden;
}

.warranty-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.services-section .warranty-panel a {
  color: var(--red-dark);
}

.warranty-intro {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(243, 239, 231, 0.96)),
    url("source/031-5-star-new-view-slide1.png") center / cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.warranty-intro img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.warranty-intro h3 {
  max-width: 980px;
  font-size: 1.65rem;
  line-height: 1.16;
}

.warranty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.warranty-actions a,
.warranty-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.warranty-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(22, 18, 15, 0.08);
}

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

.warranty-feature-col {
  width: 17%;
}

.warranty-table th,
.warranty-table td {
  padding: 0.78rem 0.65rem;
  vertical-align: top;
  border-right: 1px solid rgba(23, 22, 21, 0.12);
  border-bottom: 1px solid rgba(23, 22, 21, 0.12);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.warranty-table th:last-child,
.warranty-table td:last-child {
  border-right: 0;
}

.warranty-table thead th {
  color: white;
  text-align: center;
  background: var(--red-dark);
}

.warranty-table thead img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 0.55rem;
}

.warranty-table thead th:first-child {
  background: var(--coal);
}

.warranty-table thead a,
.services-section .warranty-table thead a {
  color: white;
  text-decoration-color: rgba(255, 250, 241, 0.6);
}

.warranty-table tbody th {
  text-align: left;
  font-weight: 900;
  background: #f6f1e8;
}

.warranty-table tbody td {
  text-align: center;
}

.warranty-table tbody tr:nth-child(even):not(.warranty-section-row) td {
  background: #fbf8f1;
}

.warranty-section-row th {
  color: #ffdf8d;
  text-transform: uppercase;
  letter-spacing: 0;
  background: var(--coal);
}

.warranty-mobile {
  display: none;
}

.warranty-notes {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  color: #3d3733;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.warranty-notes p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.warranty-copyright {
  font-weight: 900;
}

.gaf-native-details {
  overflow: hidden;
}

.gaf-native-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.services-section .gaf-native-panel a {
  color: var(--red-dark);
}

.gaf-product-hero,
.roof-system-intro {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gaf-product-hero {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

.gaf-product-copy {
  display: grid;
  align-content: center;
  gap: 0.6rem;
}

.gaf-mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.gaf-product-copy h3,
.roof-system-intro h3,
.roof-layer-overview h3 {
  font-size: 1.65rem;
  line-height: 1.16;
}

.gaf-product-copy p,
.roof-system-intro p,
.roof-layer-overview p {
  margin: 0;
}

.gaf-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.gaf-action-row a,
.roof-layer-overview a,
.roof-product-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.gaf-product-hero figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  background: var(--coal);
  border-radius: 8px;
}

.gaf-product-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gaf-product-hero figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.4rem 0.55rem;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(23, 22, 21, 0.78);
  border-radius: 999px;
}

.hdz-swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.hdz-swatch-grid article {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 174px;
  padding: 0.7rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hdz-swatch-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
  border-radius: 6px;
}

.hdz-swatch-grid strong {
  line-height: 1.15;
}

.hdz-swatch-grid span {
  width: fit-content;
  padding: 0.24rem 0.45rem;
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--red-dark);
  border-radius: 999px;
}

.gaf-note {
  margin: 0;
  color: #4a4038;
  font-size: 0.9rem;
}

.roof-system-intro {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.roof-layer-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.roof-layer-nav button {
  min-height: 3.1rem;
  padding: 0.55rem 0.45rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.roof-layer-nav button.active,
.roof-layer-nav button:hover,
.roof-layer-nav button:focus-visible {
  color: white;
  background: var(--red-dark);
  border-color: var(--red-dark);
  outline: none;
}

.roof-layer-panel {
  display: grid;
  gap: 1rem;
}

.roof-layer-panel[hidden] {
  display: none;
}

.roof-layer-overview {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.roof-layer-overview img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.roof-layer-overview div {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.roof-layer-panel h4 {
  margin: 0;
  color: #ffdf8d;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.roof-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.roof-product-grid article {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 0.85rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.roof-product-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: contain;
  background: #f6f1e8;
  border-radius: 6px;
}

.roof-product-grid h5 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.18;
}

.roof-product-grid p {
  margin: 0;
  color: #3d3733;
  font-size: 0.9rem;
  line-height: 1.4;
}

.roof-product-grid a {
  justify-self: start;
  margin-top: auto;
}

.gallery-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(143, 95, 63, 0.16), transparent 34%),
    linear-gradient(180deg, #fffaf1 0%, #f4efe6 100%);
}

.gallery-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.gallery-header p:last-child {
  max-width: 760px;
  margin: 0;
  color: #4a4038;
  font-size: 1.05rem;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gallery-showcase button {
  position: relative;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  color: white;
  text-align: left;
  background: #151413;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(22, 18, 15, 0.2);
  cursor: zoom-in;
}

.showcase-main {
  min-height: 610px;
}

.showcase-stack {
  display: grid;
  gap: 1rem;
}

.gallery-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 400ms ease, filter 400ms ease;
}

.gallery-showcase button:hover img,
.media-card button:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.media-toolbar {
  justify-content: center;
  margin: 1.75rem 0 2rem;
}

.filter-button {
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.media-grid {
  column-count: 4;
  column-gap: 1.1rem;
}

.media-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1.1rem;
  overflow: hidden;
  break-inside: avoid;
  background: #151413;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 18, 15, 0.13);
}

.media-card button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.media-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 360ms ease, filter 360ms ease;
}

.media-card[data-category="credential"] {
  background: white;
}

.media-card[data-category="credential"] button {
  min-height: 220px;
  padding: 1.25rem;
}

.media-card[data-category="credential"] img {
  width: auto;
  max-width: 100%;
  max-height: 270px;
  margin: 0 auto;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 2rem 5rem;
  background: rgba(12, 10, 9, 0.94);
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox figure {
  display: grid;
  gap: 0.75rem;
  max-width: min(1180px, 100%);
  max-height: 92vh;
  margin: 0;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #151413;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 301;
  min-height: 2.8rem;
  padding: 0.65rem 0.9rem;
  color: white;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.25);
  border-radius: 6px;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--red);
  border-color: var(--red);
}

.reviews-section {
  background:
    linear-gradient(180deg, rgba(36, 32, 30, 0.96), rgba(36, 32, 30, 0.98)),
    url("source/064-roof.JPG_m.jpg");
  background-size: cover;
  color: var(--paper);
}

.reviews-section .eyebrow {
  color: #ffdf8d;
}

.reviews-grid {
  column-count: 3;
  column-gap: 1rem;
}

blockquote {
  break-inside: avoid;
  margin: 0 0 1rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--paper);
  border-left: 5px solid var(--red);
  border-radius: 6px;
}

cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--red-dark);
  font-style: normal;
  font-weight: 900;
}

.form-section,
.careers-section {
  background: var(--stone);
}

.panel-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(22, 18, 15, 0.08);
}

.wide-form {
  max-width: 980px;
  margin: 0 auto;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label,
fieldset {
  display: grid;
  gap: 0.38rem;
  color: var(--coal);
  font-weight: 800;
}

fieldset {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid rgba(23, 22, 21, 0.24);
  border-radius: 4px;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.plain-list {
  padding-left: 1.1rem;
}

.plain-list li {
  margin-bottom: 0.6rem;
}

.storm-note {
  padding: 0.8rem 1rem;
  color: white;
  font-weight: 900;
  background: var(--red-dark);
  border-radius: 6px;
}

.field-note {
  margin: -0.4rem 0 0;
  color: var(--steel);
  font-size: 0.9rem;
}

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

address {
  margin: 1.2rem 0;
  font-style: normal;
  font-weight: 800;
}

.map-frame,
.map-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-card {
  display: grid;
  gap: 0.4rem;
  min-height: 180px;
  padding: 1.25rem;
  align-content: end;
  color: white;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(18, 16, 15, 0.78), rgba(145, 19, 28, 0.68)),
    url("source/008-Langley.jpg") center / cover;
}

.map-frame {
  height: 320px;
}

.map-card span {
  color: #ffdf8d;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-card strong {
  max-width: 34rem;
  font-size: 1.2rem;
}

.legal-section {
  display: grid;
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--stone);
}

.legal-section details {
  color: var(--ink);
}

.legal-section details > p,
.legal-section details > h3,
.legal-section details > ul {
  max-width: 930px;
}

.site-footer {
  padding: 3rem max(1rem, calc((100vw - 1220px) / 2));
  color: var(--paper);
  background: #151413;
}

.site-footer a {
  color: white;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-links {
  margin: 1.4rem 0;
}

.footer-links a {
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 4px;
}

.copyright {
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .gaf-product-hero,
  .roof-layer-overview {
    grid-template-columns: 1fr;
  }

  .hdz-swatch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .roof-layer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .warranty-table {
    display: none;
  }

  .warranty-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .warranty-mobile article {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(22, 18, 15, 0.08);
  }

  .warranty-mobile h4 {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    margin: 0;
    color: var(--red-dark);
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .warranty-mobile h4 img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .warranty-mobile dl {
    display: grid;
    gap: 0.55rem;
    margin: 0;
  }

  .warranty-mobile dl div {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(23, 22, 21, 0.12);
  }

  .warranty-mobile dt {
    color: var(--coal);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .warranty-mobile dd {
    margin: 0;
    color: #342f2b;
    font-size: 0.93rem;
    line-height: 1.4;
  }
}

@media (max-width: 1020px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .media-grid {
    column-count: 3;
  }

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

  .reviews-grid {
    column-count: 2;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: fixed;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: var(--coal);
    border: 1px solid rgba(255, 250, 241, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-list {
    display: flex;
  }

  .has-menu {
    width: 100%;
  }

  .has-menu > button,
  .nav-list a {
    width: 100%;
    justify-content: flex-start;
  }

  .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    background: rgba(255, 250, 241, 0.08);
  }

  .hero {
    min-height: 820px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(18, 16, 15, 0.12) 0%, rgba(18, 16, 15, 0.54) 58%, rgba(18, 16, 15, 0.72) 100%);
  }

  .hero-content {
    width: calc(100% - 2rem);
    margin: 0 1rem 18rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .tagline {
    font-size: 1.15rem;
  }

  .trust-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .gallery-section {
    padding-top: 11rem;
  }

  .gallery-header,
  .gallery-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-main {
    min-height: 430px;
  }

  .showcase-stack {
    grid-template-columns: 1fr;
  }

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

  .media-grid {
    column-count: 2;
  }

  .gallery-lightbox {
    padding: 4.75rem 1rem 5.5rem;
  }

  .gallery-lightbox img {
    max-height: 72vh;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .reviews-grid {
    column-count: 1;
  }

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

  .badge-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .warranty-intro {
    grid-template-columns: 1fr;
  }

  .warranty-intro img {
    width: 120px;
  }

  .warranty-intro h3 {
    font-size: 1.35rem;
  }

  .warranty-mobile {
    grid-template-columns: 1fr;
  }

  .hdz-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .roof-system-intro {
    grid-template-columns: 1fr;
  }

  .gaf-product-copy h3,
  .roof-system-intro h3,
  .roof-layer-overview h3 {
    font-size: 1.35rem;
  }
}

@media (max-width: 520px) {
  .top-strip {
    justify-content: flex-start;
  }

  .brand img {
    width: 126px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero {
    min-height: 840px;
  }

  .trust-rail {
    grid-template-columns: 1fr;
  }

  .trust-rail span {
    padding: 0.62rem 0.75rem;
  }

  .showcase-main,
  .gallery-showcase button {
    min-height: 310px;
  }

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

  .media-grid {
    column-count: 1;
  }

  .hdz-swatch-grid,
  .roof-product-grid {
    grid-template-columns: 1fr;
  }

  details iframe {
    height: 540px;
  }
}
