/* Shared Wastia accordion and lower footer refinements. */
.roofing-faq {
  padding-block: clamp(55px, 7vw, 100px) !important;
  background: linear-gradient(120deg, #f9f2ea, #fffdfa 72%);
}

.roofing-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(28px, 5.5vw, 80px);
}

.roofing-faq-intro {
  padding: clamp(26px, 3.6vw, 44px);
  border-top: 4px solid var(--color-secondary, #d17a45);
  border-radius: 4px;
  background: linear-gradient(135deg, #223441, #101c27);
  color: #f9f2ea;
  box-shadow: 0 12px 30px #14243212;
}

.roofing-faq-intro .heading-title {
  margin: 0 0 19px;
  color: #fff;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.12;
  text-wrap: balance;
}

.roofing-faq-intro p {
  margin: 0 0 17px;
  color: #e8ddd2;
  font-size: 15px;
  line-height: 1.8;
}

.roofing-faq-contact {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  color: #ffbc95;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.roofing-faq-contact:hover,
.roofing-faq-contact:focus-visible {
  color: #fff;
}

.roofing-faq .roofing-faq-list {
  min-width: 0;
  display: grid;
  gap: 13px;
}

.roofing-faq-list .accordion-item {
  min-width: 0;
  padding: 0;
  border: 1px solid #e0d3c5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px #14243205;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.roofing-faq-list .accordion-item:is(.opened, :focus-within) {
  border-color: var(--color-primary, #b34a25);
  box-shadow: 0 9px 22px #b34a250d;
}

.roofing-faq-list .accordion-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 13px;
  min-height: 74px;
  padding: 22px 24px;
  margin: 0;
}

.roofing-faq-list .accordion-title {
  margin: 0;
  padding: 0;
  color: #182934;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
  font-weight: 500;
}

.roofing-faq-list .accordion-title::after {
  content: none;
}

.roofing-faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border-radius: 3px;
  background: #faf0e5;
  color: #97502d;
  font-size: 12px;
  font-weight: 700;
}

.roofing-faq-indicator {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f6e9dc;
  color: #9b4225;
  font: 500 21px/1 system-ui, sans-serif;
}

.roofing-faq-indicator::before {
  content: "+";
}

.roofing-faq-list .accordion-header[aria-expanded="true"] .roofing-faq-indicator {
  background: var(--color-primary, #b34a25);
  color: #fff;
}

.roofing-faq-list .accordion-header[aria-expanded="true"] .roofing-faq-indicator::before {
  content: "−";
}

.roofing-faq-list .accordion-body {
  padding: 0 65px 25px 71px;
}

.roofing-faq-list .accordion-body p {
  max-width: 65ch;
  color: #4f606c;
  font-size: 15px;
  line-height: 1.85;
}

.roofing-faq-list .accordion-body p:not(:last-child) {
  margin-bottom: 16px;
}

.roofing-faq-list .accordion-body .client-faq-source {
  padding-top: 14px;
  border-top: 1px solid #ede1d5;
  font-size: 12px;
  line-height: 1.6;
}

.roofing-faq-list .client-faq-source a {
  color: #943d22;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The lower footer carries the same navy and copper identity as the Wastia shell. */
.footer .footer-secondary.roofing-footer-bottom {
  position: relative;
  padding: 34px 0 26px;
  border-top: 1px solid #ffffff18;
  background: #101c27;
  color: #e2e8eb;
}

.footer .roofing-footer-bottom::after {
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9b4225, #d38b58 35%, #d38b5852 75%, transparent);
}

.roofing-footer-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 35px;
}

.roofing-footer-signature {
  display: block;
  width: 190px;
  padding: 9px 10px;
  border: 1px solid #ffffff12;
  border-radius: 3px;
  background: #fff;
}

.roofing-footer-signature img {
  display: block;
  width: 100%;
  height: auto;
}

.roofing-footer-links {
  min-width: 0;
  justify-self: end;
}

.footer .roofing-footer-bottom .footer-copyright-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .roofing-footer-bottom .footer-copyright-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0;
  color: #f4eee8;
  font-size: 13px;
  text-transform: none;
}

.footer .roofing-footer-bottom .footer-copyright-links li a::before,
.footer .roofing-footer-bottom .footer-copyright-links li a::after {
  content: none;
}

.footer .roofing-footer-bottom .footer-copyright-links li a:hover,
.footer .roofing-footer-bottom .footer-copyright-links li a:focus-visible {
  color: #ffc09a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.roofing-site-resources {
  text-align: right;
}

.roofing-site-resources-title {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  color: #c8d1d7;
  font-size: 12px;
}

.roofing-footer-bottom .ab-machine-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
  max-width: 750px;
  padding: 10px 0 0;
  text-align: right;
}

.roofing-footer-bottom .ab-machine-links a {
  display: inline-block;
  min-height: 32px;
  padding: 4px 0;
  color: #c8d1d7;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.roofing-footer-bottom .ab-machine-links a:hover {
  color: #ffc09a;
}

.roofing-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 10px 15px;
  border: 1px solid #ad6b43;
  border-radius: 3px;
  background: #223441;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.roofing-back-top > span:first-child {
  color: #ffbd95;
  font-size: 22px;
  line-height: 1;
}

.roofing-back-top:hover {
  border-color: #d38b58;
  background: #304654;
}

.roofing-footer-fine-print {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 25px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid #ffffff17;
}

.footer .roofing-footer-fine-print .copyright-text,
.footer .roofing-footer-fine-print .ab-image-note {
  margin: 0;
  padding: 0;
  color: #aebcc6;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

@media (max-width: 1100px) {
  .roofing-faq-layout {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 30px;
  }

  .roofing-faq-list .accordion-header {
    padding: 20px;
    gap: 10px;
  }

  .roofing-faq-list .accordion-body {
    padding: 0 58px 24px 64px;
  }

  .roofing-footer-row {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .roofing-faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .roofing-faq-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: 0 25px;
    padding: 28px;
  }

  .roofing-faq-intro .heading-title {
    grid-row: span 2;
    margin: 0;
  }

  .roofing-faq-intro p {
    margin-bottom: 5px;
  }

  .roofing-footer-row {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .roofing-footer-signature {
    width: 170px;
  }

  .roofing-back-top {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 639px) {
  .roofing-faq-intro {
    display: block;
    padding: 25px 23px;
  }

  .roofing-faq-intro .heading-title {
    margin-bottom: 16px;
  }

  .roofing-faq-list .accordion-header {
    grid-template-columns: 25px minmax(0, 1fr) 25px;
    gap: 9px;
    padding: 18px 15px;
  }

  .roofing-faq-number {
    width: 25px;
    height: 27px;
    font-size: 10px;
  }

  .roofing-faq-indicator {
    width: 25px;
    height: 25px;
    font-size: 19px;
  }

  .roofing-faq-list .accordion-body {
    padding: 0 22px 22px 49px;
  }

  .roofing-faq-list .accordion-body p {
    font-size: 14px;
    line-height: 1.8;
  }

  .footer .footer-secondary.roofing-footer-bottom {
    padding-top: 28px;
  }

  .roofing-footer-row {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 20px 13px;
  }

  .roofing-footer-signature {
    width: min(170px, 100%);
  }

  .roofing-footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }

  .footer .roofing-footer-bottom .footer-copyright-links,
  .roofing-footer-bottom .ab-machine-links {
    justify-content: flex-start;
    text-align: left;
  }

  .roofing-site-resources {
    text-align: left;
  }

  .roofing-back-top {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    gap: 7px;
    padding: 10px;
    min-height: 44px;
  }

  .roofing-footer-fine-print {
    margin-top: 19px;
    padding-top: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roofing-faq-list .accordion-item,
  .roofing-back-top {
    transition: none;
  }
}
