/* Size-matched stand-ins shown until the web fonts load, so text wraps the
   same way before and after and the layout doesn't jump (Google's CLS).
   size-adjust values measured against the site's text in Chrome. */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 103%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 98%;
}
:root {
  --ink: #1e3446;
  --muted: #61727f;
  --line: #e5e8e7;
  --cream: #f7f6f2;
  --gold: #a78e6c;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: white;
  color: var(--ink);
  font-family: "DM Sans", "DM Sans Fallback", Arial, sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
button,
input {
  font: inherit;
}
.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}
.header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font:
    700 21px/1.2 Manrope, "Manrope Fallback",
    sans-serif;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.nav a:hover {
  color: #9a7b56;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.btn:hover {
  background: #385268;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: white !important;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.menu-button {
  display: none;
  border: 0;
  background: none;
  padding: 10px;
  color: var(--ink);
  font-size: 27px;
}
.hero {
  position: relative;
  min-height: min(720px, 80vh);
  display: flex;
  align-items: center;
  color: white;
  background: #41515a;
  overflow: hidden;
}
/* The hero photo is a <picture> (responsive copies in /images). */
.hero > picture > img,
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 31, 43, 0.76),
    rgba(17, 31, 43, 0.37) 56%,
    rgba(17, 31, 43, 0.12)
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 110px 0;
  max-width: 660px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--gold);
}
.hero .eyebrow {
  color: #f2e1c4;
}
h1,
h2,
h3 {
  font-family: Manrope, "Manrope Fallback", Arial, sans-serif;
  line-height: 1.16;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(42px, 5.3vw, 78px);
  margin: 0 0 24px;
  font-weight: 600;
}
h2 {
  font-size: clamp(32px, 3.5vw, 49px);
  margin: 0 0 20px;
  font-weight: 600;
}
h3 {
  font-size: 24px;
  margin: 0 0 12px;
}
p {
  margin: 0 0 20px;
}
.hero-copy > p:not(.eyebrow) {
  color: #ecf0f2;
  max-width: 515px;
  font-size: 17px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.section {
  padding: 100px 0;
}
.section-soft {
  background: var(--cream);
}
.section-heading {
  max-width: 690px;
  margin-bottom: 44px;
}
.section-heading p:last-child {
  color: var(--muted);
  font-size: 17px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.service-card {
  overflow: hidden;
  background: white;
}
.photo-wrap {
  display: block;
  aspect-ratio: 1.45;
  overflow: hidden;
  background: #ccd4d5;
}
.photo-wrap img {
  height: 100%;
  transition: transform 0.5s;
}
.service-card:hover img {
  transform: scale(1.045);
}
.service-info {
  padding: 25px 0 8px;
}
.service-info p {
  color: var(--muted);
  max-width: 460px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 11px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8%;
}
.split > img {
  aspect-ratio: 1.02;
  background: #d2d6d3;
}
.split p {
  color: var(--muted);
}
.feature-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.feature-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cta {
  background: var(--ink);
  color: white;
  padding: 88px 0;
  text-align: center;
}
.cta h2 {
  margin: 0 auto 18px;
  max-width: 770px;
}
.cta p {
  margin: 0 auto 26px;
  max-width: 550px;
  color: #cad5dd;
}
.cta .btn {
  background: #fff;
  color: var(--ink) !important;
}
.footer {
  padding: 50px 0 30px;
  background: #f7f8f7;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer small,
.footer p {
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  color: white;
  background: #46535d;
}
.page-hero img {
  position: absolute;
  inset: 0;
  height: 100%;
}
.page-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 28, 38, 0.82),
    rgba(12, 28, 38, 0.25)
  );
}
.page-hero .shell {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}
.page-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.7vw, 65px);
}
.page-hero p {
  max-width: 550px;
  color: #eef0f1;
}
.intro-text {
  max-width: 800px;
}
.intro-text p {
  font-size: 18px;
  color: var(--muted);
}
.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.three-cols article {
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}
.three-cols p {
  color: var(--muted);
}
.related {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.related a {
  border: 1px solid var(--line);
  padding: 12px 18px;
  font-size: 13px;
}
.related a:hover {
  border-color: var(--ink);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 850px) {
  .menu-button {
    display: block;
  }
  .header-inner {
    height: 72px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    box-shadow: 0 12px 18px #0001;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }
  .nav.open {
    display: flex;
  }
  .hero {
    min-height: 600px;
  }
  .hero-copy {
    padding: 100px 0;
  }
  .service-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .split > img {
    order: -1;
  }
  .three-cols {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .section {
    padding: 70px 0;
  }
}
@media (max-width: 560px) {
  .shell {
    width: min(var(--max), calc(100% - 36px));
  }
  .logo {
    font-size: 18px;
  }
  .hero {
    min-height: 590px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }
  .photo-wrap {
    aspect-ratio: 1.35;
  }
  .section {
    padding: 60px 0;
  }
  .cta {
    padding: 70px 0;
  }
  .page-hero {
    min-height: 400px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .photo-wrap img {
    transition: none;
  }
}

/* Estimate form — designed to match the existing editorial site. */
html {
  scroll-behavior: smooth;
}
#estimate {
  scroll-margin-top: 105px;
}
.estimate-panel {
  width: 100%;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 32px;
  background: #fdfcf9;
  color: #1e3446;
  text-align: left;
  border: 1px solid #e9e6e0;
  box-shadow: 0 14px 48px rgba(12, 31, 43, 0.065);
}
.estimate-intro {
  margin-bottom: 25px;
}
.estimate-intro .eyebrow {
  color: #9b7f51;
}
.estimate-intro h3 {
  font-size: clamp(26px, 3.5vw, 37px);
  line-height: 1.18;
  margin: 9px 0 8px;
}
.estimate-intro p:last-child {
  color: #667581;
  margin: 0;
}
.estimate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}
.estimate-fields label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #344856;
}
.estimate-fields label > span {
  display: inline;
  white-space: nowrap;
}
.estimate-fields .estimate-wide {
  grid-column: 1 / -1;
}
.estimate-fields input,
.estimate-fields select,
.estimate-fields textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 13px 14px;
  background: #fcfbf8;
  color: #1e3446;
  border: 1px solid #d9dcd8;
  border-radius: 4px;
}
.estimate-fields input,
.estimate-fields select,
.estimate-fields textarea {
  display: block;
  margin-top: 8px;
}
.estimate-fields textarea {
  resize: vertical;
  min-height: 118px;
}
.estimate-fields input:focus-visible,
.estimate-fields select:focus-visible,
.estimate-fields textarea:focus-visible {
  outline: 2px solid #a68a55;
  outline-offset: 2px;
  border-color: #a68a55;
}
.estimate-submit {
  margin-top: 24px;
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}
.estimate-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
/* Form feedback: a gentle green confirmation, matching the site's muted palette. */
.estimate-status {
  min-height: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #315747;
}
.estimate-status:not(:empty) {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid #bdd7c3;
  border-left: 4px solid #5f9875;
  border-radius: 4px;
  background: #e8f3ea;
  color: #28533a;
}
.estimate-status[data-state="error"]:not(:empty) {
  border-color: #e9c9c3;
  border-left-color: #c57e70;
  background: #fbefec;
  color: #8c3e32;
}
.estimate-status[data-state="loading"]:not(:empty),
.estimate-status[data-state="pending"]:not(:empty) {
  border-color: #dfded6;
  border-left-color: #aa9a79;
  background: #f6f4ef;
  color: #5d625c;
}

.estimate-privacy {
  color: #71808a !important;
  font-size: 12px !important;
  line-height: 1.6;
  margin-top: 13px !important;
}
.estimate-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -10000px;
}
@media (max-width: 600px) {
  .estimate-fields {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .estimate-panel {
    padding: 24px 20px;
    margin-top: 28px;
  }
}

/* Parent company wordmark in site header */
.header .logo-image {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.header .logo-image img {
  display: block;
  width: clamp(150px, 18vw, 210px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
}
@media (max-width: 560px) {
  .header .logo-image img {
    width: 150px;
    max-height: 56px;
  }
}

/* Footer business name: one line on phones */
.footer .logo {
  display: inline-block;
  font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  white-space: nowrap;
  margin-bottom: 8px;
}
@media (max-width: 340px) {
  .footer .logo {
    font-size: 20px;
  }
}

/* Service landing pages (generated from site/services/*.js). */
#request-estimate {
  scroll-margin-top: 24px;
}
.btn-light {
  background: #fff;
  color: var(--ink) !important;
}
.btn-light:hover {
  background: #eef1f2;
}
.service-hero {
  min-height: 540px;
}
.service-hero img {
  object-position: center 35%;
}
.service-hero h1 {
  max-width: 720px;
}
.service-hero p:not(.eyebrow) {
  font-size: 17px;
  max-width: 600px;
}
.process-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.process-steps li {
  counter-increment: step;
  border-top: 1px solid #d9d6cc;
  padding-top: 22px;
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font:
    700 13px/1 Manrope, "Manrope Fallback",
    sans-serif;
  letter-spacing: 0.12em;
  color: #8a7150;
}
.process-steps h3,
.consideration h3 {
  font-size: 20px;
}
.process-steps p,
.consideration p {
  color: var(--muted);
  font-size: 15px;
}
.consideration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.consideration {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}
.consideration p {
  margin-bottom: 12px;
}
.consideration .consideration-impact {
  color: var(--ink);
}
.consideration-impact strong {
  font-weight: 700;
}
.inline-cta {
  margin-top: 48px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  background: var(--cream);
}
.inline-cta p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid #d9d6cc;
}
.faq-item {
  border-bottom: 1px solid #d9d6cc;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font:
    600 17px/1.4 Manrope, "Manrope Fallback",
    sans-serif;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  color: #8a7150;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:focus-visible {
  outline: 2px solid #a68a55;
  outline-offset: 4px;
}
.faq-item p {
  margin: 0;
  padding: 0 0 22px;
  max-width: 640px;
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.project {
  margin: 0;
}
.project img {
  aspect-ratio: 4 / 3;
  height: auto;
  background: #d2d6d3;
}
.project figcaption {
  padding-top: 14px;
  font-size: 14px;
}
.project figcaption span {
  display: block;
  color: var(--muted);
}
.estimate-section {
  background: var(--ink);
  color: #fff;
}
.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.estimate-copy .eyebrow {
  color: #e4cfa9;
}
.estimate-copy > p:not(.eyebrow) {
  color: #cad5dd;
}
.estimate-copy .estimate-hints-title {
  margin: 28px 0 8px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.estimate-hints {
  margin: 0 0 28px;
  padding-left: 20px;
  color: #cad5dd;
  font-size: 15px;
}
.estimate-hints li + li {
  margin-top: 6px;
}
.estimate-layout .estimate-panel {
  max-width: none;
  margin: 0;
}
.related-section {
  padding: 56px 0;
}
.related-title {
  font-size: 22px;
  margin-bottom: 18px;
}
@media (max-width: 980px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .estimate-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 680px) {
  .process-steps,
  .consideration-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    gap: 26px;
  }
  .service-hero {
    min-height: 0;
  }
  .service-hero:after {
    background: rgba(12, 28, 38, 0.66);
  }
  .service-hero p:not(.eyebrow) {
    font-size: 16px;
  }
  .inline-cta {
    padding: 24px 20px;
  }
  .inline-cta .btn {
    width: 100%;
  }
}

/* Roofing materials section and deferred GAF embed. */
.materials-section {
  background: var(--cream);
}
/* Consecutive materials sections share the cream background; divide them
   with a rule instead of a second full section gap. */
.materials-section + .materials-section {
  padding-top: 0;
}
.materials-section + .materials-section .shell {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}
.materials-section:has(+ .materials-section) {
  padding-bottom: 72px;
}
.materials-product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}
.materials-product-copy h2 {
  font-size: clamp(28px, 3vw, 38px);
}
.materials-product p:not(.eyebrow) {
  color: var(--muted);
  max-width: 560px;
}
.materials-selector-intro {
  padding: 28px 30px 30px;
  background: #fff;
  border: 1px solid var(--line);
}
.materials-selector-intro h3 {
  margin: 0 0 8px;
  font:
    600 18px/1.3 Manrope, "Manrope Fallback",
    sans-serif;
  letter-spacing: -0.02em;
}
.materials-selector-intro .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.materials-selector-intro .btn:focus-visible,
.embed-collapse:focus-visible,
.materials-cta a:focus-visible {
  outline: 2px solid #a68a55;
  outline-offset: 3px;
}
.embed-panel {
  position: relative;
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  animation: embed-reveal 0.25s ease-out;
}
.embed-panel[hidden] {
  display: none;
}
.embed-frame {
  display: block;
  margin: auto;
  width: 100%;
  max-width: 100%;
  /* GAF suggests 1000px; measured widget content reaches ~1125px at
     1180px wide and ~1075px at 280px wide, so this avoids inner scrolling. */
  height: 1160px;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
/* GAF's parts-of-a-roof widget lays itself out at a minimum height that
   varies with width (measured: 1700px on desktop, up to ~1760px on most
   phones, ~1800px and ~1860px on the narrowest). Matching it avoids
   scrolling inside the frame. */
.embed-frame.embed-frame-roof-parts {
  height: 1700px;
  /* Span the panel's 1px side borders: the widget switches to its desktop
     layout at 1180px, the full content width. */
  width: calc(100% + 2px);
  max-width: none;
  margin: 0 -1px;
}
@media (max-width: 760px) {
  .embed-frame.embed-frame-roof-parts {
    height: 1770px;
  }
}
@media (max-width: 365px) {
  .embed-frame.embed-frame-roof-parts {
    height: 1810px;
  }
}
@media (max-width: 353px) {
  .embed-frame.embed-frame-roof-parts {
    height: 1870px;
  }
}
.embed-panel.is-loaded .embed-frame {
  opacity: 1;
  pointer-events: auto;
}
/* Auto-loading embed: collapsed and transparent until the widget has loaded,
   then it expands and fades in. The frame keeps its full size inside the
   clipped wrapper so it renders normally while hidden. */
.embed-panel.embed-auto {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  border-color: transparent;
  animation: none;
  transition:
    grid-template-rows 0.7s ease,
    margin-top 0.7s ease,
    border-color 0.7s ease,
    opacity 0.6s ease 0.2s;
}
.embed-auto-inner {
  min-height: 0;
  overflow: hidden;
}
.embed-panel.embed-auto.is-loaded {
  grid-template-rows: 1fr;
  margin-top: 40px;
  opacity: 1;
  border-color: var(--line);
}
.embed-auto .embed-frame {
  transition: none;
}

/* GAF certification in the materials section's right column: badge (or the
   business logo beside it) with a short caption beneath, one column at every
   width. */
.materials-product.has-badge {
  align-items: center;
}
.materials-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}
.badge-logos {
  display: flex;
  align-items: center;
  max-width: 100%;
  gap: clamp(16px, 3vw, 32px);
}
.badge-gaf {
  width: 224px;
  height: auto;
}
/* Side by side, both logos shrink together to fit the column. */
.with-logo .badge-gaf {
  flex: 0 1 180px;
  min-width: 0;
  width: auto;
}
.badge-business {
  flex: 0 1 210px;
  min-width: 0;
  height: auto;
  /* The logo PNG has a white background; let the section color show through. */
  mix-blend-mode: multiply;
}
.badge-divider {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  margin: 24px 0;
  background: #d8d4cc;
}
.materials-badge h3 {
  margin: 0;
  font:
    600 18px/1.3 Manrope, "Manrope Fallback",
    sans-serif;
  letter-spacing: -0.02em;
}
.materials-badge p {
  margin: 0;
  font-size: 15px;
}
.with-logo p {
  font-size: 14px;
  letter-spacing: 0.01em;
}
/* Stacked under the copy on narrower screens; align with its left edge. */
@media (max-width: 860px) {
  .materials-badge {
    align-items: flex-start;
    margin: 0;
    text-align: left;
  }
  .badge-gaf {
    width: 192px;
  }
  .materials-badge.with-logo {
    max-width: 100%;
  }
}

.embed-loading {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  transition:
    opacity 0.3s ease,
    visibility 0s 0.3s;
}
.embed-loading::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) 0 0 / 50% 100% no-repeat #ece9e2;
  animation: embed-progress 1.4s ease-in-out infinite;
}
.embed-panel.is-loaded .embed-loading {
  opacity: 0;
  visibility: hidden;
}
.embed-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.embed-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.embed-collapse {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.materials-cta {
  margin: 48px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.materials-cta a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
}
@keyframes embed-reveal {
  from {
    opacity: 0;
  }
}
@keyframes embed-progress {
  from {
    background-position: -100% 0;
  }
  to {
    background-position: 200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* Comes after the estimate-form block's html smooth-scroll rule, so it wins. */
  html {
    scroll-behavior: auto;
  }
  .embed-panel,
  .embed-loading::after {
    animation: none;
  }
  .embed-frame,
  .embed-loading,
  .embed-panel.embed-auto {
    transition: none;
  }
}
@media (max-width: 860px) {
  .materials-product {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 560px) {
  .materials-selector-intro {
    padding: 22px 20px 24px;
  }
  .materials-selector-intro .btn {
    width: 100%;
  }
}

/* Mobile usability --------------------------------------------------------- */

/* Larger tap areas for small text links without changing how they look: an
   invisible pseudo-element extends each link's touch target to ~44px. */
.text-link,
.footer-links a,
.footer-bottom a,
.footer .logo {
  position: relative;
}
.text-link::before,
.footer-links a::before,
.footer-bottom a::before,
.footer .logo::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.footer-links a::before {
  inset: -12px -4px;
}
.footer-bottom a::before {
  inset: -14px -4px;
}

@media (max-width: 860px) {
  /* iOS Safari zooms the page when a field under 16px is focused. */
  .estimate-fields input,
  .estimate-fields select,
  .estimate-fields textarea {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  /* Google's legibility guideline is text of at least 12px. */
  .eyebrow,
  .text-link {
    font-size: 12px;
  }
}
