:root {
  --black: #202124;
  --charcoal: #111316;
  --red: #e00000;
  --red-dark: #b60000;
  --red-soft: #fff1f1;
  --ink: #202124;
  --muted: #667789;
  --line: #eadada;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(32, 33, 36, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section--light {
  background: linear-gradient(90deg, #fff 0%, var(--red-soft) 100%);
}

.section--tint {
  background: var(--red-soft);
}

.section--dark {
  color: var(--white);
  background: var(--charcoal);
}

.topbar {
  color: var(--white);
  background: var(--charcoal);
  font-size: 14px;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
}

.topbar__contact,
.topbar__social {
  display: flex;
  align-items: center;
}

.topbar__contact {
  flex-wrap: wrap;
  gap: 18px;
}

.topbar__social {
  gap: 8px;
}

.topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.topbar__social a:hover {
  border-color: var(--red);
  background: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(32, 33, 36, .08);
  backdrop-filter: blur(16px);
}

.navbar {
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 22px;
}

.logo img {
  width: 246px;
}

.navlinks {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.navlinks a:hover,
.nav-dropdown summary:hover,
.footer a:hover {
  color: var(--red-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .65;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  width: 100%;
  height: 18px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown[open] .dropdown-menu {
  display: grid;
  gap: 2px;
}

.dropdown-menu a {
  display: block;
  border-radius: 4px;
  padding: 10px 11px;
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: var(--red);
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 19, 22, .94), rgba(32, 33, 36, .76) 45%, rgba(224, 0, 0, .18)),
    url("assets/heroimagesafeway.JPG") center / cover;
  color: var(--white);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 56px;
}

.page-hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  color: var(--white);
}

.roof-repair-hero {
  background:
    linear-gradient(90deg, rgba(17, 19, 22, .94), rgba(32, 33, 36, .78) 48%, rgba(224, 0, 0, .16)),
    url("https://i0.wp.com/safewayroofingandchimney.com/wp-content/uploads/2025/01/IMG_0381.jpg?fit=1600%2C1200&quality=89&ssl=1") center / cover;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 76px;
  line-height: .98;
}

h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, .9);
  font-size: 19px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.trust-row span,
.pills span {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(32, 33, 36, .18);
}

.button--red {
  color: var(--white);
  background: var(--red);
}

.button--dark {
  color: var(--white);
  background: var(--charcoal);
}

.button--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .45);
}

.quote-card {
  border-radius: 8px;
  padding: 30px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-card__kicker {
  margin-bottom: 6px;
  color: var(--red-dark);
  font-weight: 900;
}

.quote-card h2 {
  font-size: 26px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

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

.section-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.section-heading a {
  color: var(--red-dark);
  font-weight: 900;
}

.section-heading--light a,
.section-heading--light .eyebrow {
  color: var(--red);
}

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

.service-card,
.location-card,
.project-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(9, 29, 52, .08);
}

.service-card {
  overflow: hidden;
  padding-bottom: 22px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3 {
  padding: 22px 22px 0;
}

.service-card p {
  min-height: 78px;
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px;
}

.service-card__link {
  display: inline-flex;
  margin: 18px 22px 0;
  color: var(--red-dark);
  font-weight: 900;
}

.service-card__link:hover {
  color: var(--black);
}

.pills span {
  color: var(--ink);
  background: var(--red-soft);
}

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

.image-stack {
  position: relative;
}

.image-stack__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

blockquote {
  position: absolute;
  right: -24px;
  bottom: 24px;
  max-width: 340px;
  margin: 0;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.inline-quote {
  position: static;
  max-width: none;
  margin-top: 26px;
}

.image-stack--plain .image-stack__main {
  aspect-ratio: 4 / 3;
}

.seo-content {
  background: var(--white);
}

.seo-content__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}

.seo-sidebar {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--red-soft);
}

.seo-sidebar h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.seo-sidebar a {
  border-radius: 4px;
  padding: 9px 10px;
  color: var(--black);
  font-weight: 800;
}

.seo-sidebar a:hover {
  color: var(--white);
  background: var(--red);
}

.seo-copy {
  display: grid;
  gap: 34px;
}

.seo-copy__section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.seo-copy__section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.seo-copy h2 {
  font-size: 34px;
}

.seo-copy h3 {
  font-size: 21px;
}

.seo-copy p {
  color: #3b444d;
  font-size: 17px;
}

.seo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.seo-list li {
  position: relative;
  padding-left: 24px;
  color: #3b444d;
  font-weight: 700;
}

.seo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.seo-callout {
  border-left: 5px solid var(--red);
  border-radius: 8px;
  margin-top: 24px;
  padding: 22px;
  background: var(--red-soft);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.issue-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(32, 33, 36, .08);
}

blockquote p {
  margin-bottom: 12px;
  font-weight: 800;
}

cite {
  color: var(--muted);
  font-style: normal;
}

.before-after,
.service-area,
.faq-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 52px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.comparison img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.location-card {
  padding: 30px;
}

.location-card img {
  width: 100%;
  margin-bottom: 22px;
}

.location-card a {
  color: var(--red-dark);
  font-weight: 900;
}

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

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

.project-grid article {
  overflow: hidden;
  color: var(--ink);
}

.project-grid img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.project-grid h3,
.project-grid p {
  padding: 0 20px;
}

.project-grid h3 {
  margin-top: 18px;
}

.project-grid p {
  color: var(--muted);
  font-weight: 800;
}

.faq-grid {
  grid-template-columns: .75fr 1.25fr;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.repair-grid,
.material-grid,
.article-grid,
.process-grid,
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.repair-grid article,
.material-grid article,
.article-grid article,
.process-grid article,
.maintenance-grid article,
.factor-card,
.warning-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(32, 33, 36, .08);
}

.repair-grid article {
  position: relative;
  min-height: 78px;
  padding: 22px 20px 22px 44px;
  font-weight: 900;
}

.repair-grid article::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 29px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.material-grid article {
  padding: 24px;
}

.material-grid p {
  color: var(--muted);
}

.process-grid article,
.maintenance-grid article,
.factor-card,
.warning-list {
  padding: 24px;
}

.process-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.process-grid p,
.maintenance-grid p {
  color: var(--muted);
}

.factor-card ul,
.warning-list ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.factor-card li,
.warning-list li {
  position: relative;
  padding-left: 24px;
}

.factor-card li::before,
.warning-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.warning-list {
  color: var(--ink);
}

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

.inspection-panel {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.inspection-panel img {
  width: 90px;
}

.service-towns {
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
}

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

.article-grid article {
  overflow: hidden;
}

.article-grid img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.article-grid h3 {
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-grid figure {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: 0 12px 32px rgba(32, 33, 36, .12);
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-grid figure:hover .gallery-trigger img,
.gallery-trigger:focus-visible img {
  transform: scale(1.04);
}

.gallery-trigger span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 18px 16px;
  color: var(--white);
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(180deg, rgba(17, 19, 22, 0), rgba(17, 19, 22, .88));
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--wide .gallery-trigger img {
  aspect-ratio: 1.9 / 1;
}

.gallery-lightbox {
  width: min(1120px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 18px;
  color: var(--white);
  background: var(--charcoal);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, .82);
}

.gallery-lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.gallery-lightbox p {
  margin: 14px 0 0;
  color: var(--white);
  font-weight: 800;
}

.gallery-lightbox__close {
  float: right;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-weight: 900;
}

.cta {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 19, 22, .96), rgba(32, 33, 36, .78)),
    url("https://i0.wp.com/safewayroofingandchimney.com/wp-content/uploads/2025/02/Flat-Roof-leak-2.png?fit=1044%2C1089&quality=80&ssl=1") center / cover;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.footer {
  color: rgba(255, 255, 255, .78);
  background: var(--charcoal);
  padding: 60px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr .8fr .8fr;
  gap: 34px;
}

.footer__logo {
  width: 260px;
  margin-bottom: 18px;
  border-radius: 6px;
  padding: 10px;
  background: var(--white);
}

.footer h3 {
  color: var(--white);
  font-size: 16px;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin-bottom: 9px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .navlinks {
    display: none;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
    position: relative;
  }

  .mobile-menu > summary {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 9px 12px;
    color: var(--black);
    background: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu__links {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(320px, calc(100vw - 28px));
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-menu__links a,
  .mobile-submenu summary {
    display: block;
    padding: 10px;
    color: var(--black);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mobile-submenu {
    border: 0;
  }

  .mobile-submenu summary {
    list-style: none;
    cursor: pointer;
  }

  .mobile-submenu summary::after {
    content: "+";
    float: right;
    color: var(--red);
  }

  .mobile-submenu[open] summary::after {
    content: "-";
  }

  .mobile-submenu a {
    padding-left: 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
  }

  .hero__grid,
  .page-hero__grid,
  .seo-content__grid,
  .split,
  .before-after,
  .service-area,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .page-hero {
    min-height: 0;
    padding: 74px 0;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 38px;
  }

  .quote-card {
    max-width: 540px;
  }

  .seo-content__grid {
    gap: 28px;
  }

  .seo-sidebar {
    padding: 18px;
  }

  .seo-copy__section {
    padding-bottom: 28px;
  }

  .service-grid,
  .project-grid,
  .repair-grid,
  .material-grid,
  .article-grid,
  .gallery-grid,
  .process-grid,
  .maintenance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inspection-panel {
    grid-template-columns: 1fr;
  }

  .seo-sidebar {
    position: static;
  }

  blockquote {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -40px 20px 0;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 58px 0;
  }

  .page-hero {
    padding: 56px 0;
  }

  .topbar {
    display: none;
  }

  .navbar {
    min-height: 84px;
  }

  .logo img {
    width: clamp(220px, 68vw, 280px);
    max-width: calc(100vw - 122px);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(17, 19, 22, .94), rgba(32, 33, 36, .74)),
      url("assets/heroimagesafeway.JPG") center / cover;
  }

  h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  h2 {
    font-size: 32px;
  }

  .seo-copy h2 {
    font-size: 28px;
  }

  .seo-copy p {
    font-size: 16px;
  }

  .lead {
    font-size: 17px;
  }

  .section-heading,
  .cta__inner,
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid,
  .project-grid,
  .comparison,
  .check-list,
  .footer__grid,
  .repair-grid,
  .material-grid,
  .article-grid,
  .gallery-grid,
  .process-grid,
  .maintenance-grid,
  .seo-list,
  .issue-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: auto;
  }

  .gallery-grid {
    gap: 12px;
  }

  .gallery-grid figure {
    min-height: 230px;
  }

  .gallery-trigger img,
  .gallery-item--wide .gallery-trigger img {
    aspect-ratio: 1.25 / 1;
  }

  .gallery-trigger span {
    padding: 48px 14px 14px;
    font-size: 14px;
  }

  .gallery-lightbox {
    width: calc(100% - 18px);
    padding: 10px;
  }

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

  .inspection-panel,
  .factor-card,
  .warning-list,
  .process-grid article,
  .maintenance-grid article,
  .material-grid article,
  .issue-grid article,
  .faq-list details {
    padding: 18px;
  }

  .quote-card {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .navbar {
    gap: 10px;
  }

  .logo img {
    width: min(232px, calc(100vw - 116px));
  }

  h1 {
    font-size: 36px;
  }

  h2,
  .seo-copy h2 {
    font-size: 27px;
  }

  .button {
    width: 100%;
  }

  .trust-row span {
    width: 100%;
  }
}
