.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 40px;
}
.section-heading > p {
  max-width: 340px;
  font-size: 14px;
  margin: 0 0 4px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product {
  border: 1px solid #e8e9eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.product-image {
  height: 255px;
  overflow: hidden;
}
.product-image img {
  transition: transform 0.5s;
}
.product:hover img {
  transform: scale(1.035);
}
.product-body {
  padding: 27px;
}
.number {
  font-size: 10px;
  color: var(--wood);
  letter-spacing: 0.13em;
  display: block;
  margin-bottom: 14px;
}
.product-body h3 {
  font-size: 21px;
}
.product-body p {
  font-size: 13px;
  min-height: 48px;
  margin: 15px 0 24px;
}
.product-body .text-link {
  width: 100%;
}
.material-visual {
  height: 100%;
  background: var(--paper);
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 5px solid var(--wood);
}
.material-visual > span {
  font-family: Montserrat;
  font-size: 74px;
  line-height: 1;
  color: #073b9b24;
  font-weight: 800;
}
.material-visual p {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.roof-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blue);
  color: white;
}
.feature-photo {
  min-height: 570px;
}
.feature-copy {
  padding: 80px max(24px, calc((100vw - 1200px) / 2)) 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.feature-copy h2 {
  color: white;
  font-size: 40px;
}
.feature-copy .eyebrow {
  color: #75b2ff;
}
.feature-copy p {
  color: #dce5ef;
  font-size: 14px;
  margin: 26px 0 32px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-rule {
  display: block;
  width: 80px;
  height: 4px;
  background: var(--wood);
  margin-top: 40px;
}
.about-copy > p {
  font-size: 14px;
}
.about-copy h3 {
  margin-bottom: 20px;
}
.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 28px 0 35px;
  font-size: 12px;
  font-weight: 500;
}
.about-points span {
  border-top: 1px solid #e8e9eb;
  padding-top: 12px;
}
.gallery-section {
  background: var(--paper);
  padding: 95px 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: white;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
  color: var(--blue);
}
.gallery-item img {
  height: 280px;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.025);
}
.gallery-item > span {
  display: flex;
  justify-content: space-between;
  padding: 16px 19px;
  font-size: 12px;
  font-weight: 600;
}
.gallery-disclaimer {
  font-size: 11px;
  margin: 24px 0 0;
  max-width: 720px;
}
.region {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.region p {
  font-size: 14px;
  margin: 25px 0;
}
.cities {
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cities span {
  padding: 12px 18px;
  border: 1px solid #d9e1e9;
  border-radius: 7px;
  font-size: 13px;
  color: var(--blue);
}
.cities span:first-child {
  background: var(--blue);
  color: white;
}
.cities p {
  width: 100%;
  margin: 5px;
}
.final-cta {
  background: var(--blue);
  text-align: center;
  padding: 85px 0;
}
.final-cta .eyebrow {
  color: #75b2ff;
}
.final-cta h2 {
  color: white;
}
.final-cta p {
  color: #dce5ef;
  font-size: 14px;
  margin: 25px 0 32px;
}
.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
}
.contact p {
  font-size: 14px;
}
.phone {
  font-size: 25px;
  color: var(--blue);
  font-family: Montserrat;
  font-weight: 700;
  display: block;
  margin: 24px 0;
}
.contact-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}
.address-panel {
  background: var(--paper);
  border-radius: 12px;
  padding: 44px;
  border-bottom: 5px solid var(--wood);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.address-panel > span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--wood);
  margin-bottom: 25px;
}
.address-panel strong {
  font-family: Montserrat;
  font-size: 30px;
  color: var(--blue);
  line-height: 1.2;
}
.address-panel p {
  margin: 25px 0 0;
}
footer {
  background: var(--dark);
  color: #dce5ef;
  padding: 45px 0 20px;
}
footer .brand {
  color: white;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 40px;
}
.footer-top p,
.footer-top > a:not(.brand) {
  font-size: 12px;
  color: #b8c7d8;
}
.footer-bottom {
  border-top: 1px solid #ffffff20;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a1b4c8;
}
dialog {
  width: min(1100px, 95vw);
  height: 90vh;
  padding: 45px 65px;
  border: 0;
  border-radius: 12px;
  background: var(--dark);
  color: white;
}
dialog::backdrop {
  background: #000d;
}
dialog figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
dialog figure img {
  object-fit: contain;
  min-height: 0;
  flex: 1;
}
dialog figcaption {
  padding-top: 15px;
  font-size: 13px;
}
dialog button {
  position: absolute;
  border: 0;
  background: #ffffff20;
  color: white;
  font-size: 25px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.close-modal {
  right: 14px;
  top: 12px;
}
.prev {
  left: 12px;
  top: 48%;
}
.next {
  right: 12px;
  top: 48%;
}

/* Fachada restaurada a partir da imagem enviada pelo cliente. */
.facade {
  margin: 0;
  align-self: center;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.facade-photo {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.facade-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.facade figcaption {
  padding: 14px 20px;
  font-size: 12px;
  color: var(--blue);
}
.footer-bottom {
  flex-wrap: wrap;
  gap: 14px;
}
.developer-credit {
  color: #dce5ef;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.developer-credit:hover {
  color: white;
}

/* Rodapé: logo, descrição e créditos. */
.footer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 35px;
}
.footer-layout .brand {
  justify-self: start;
}
.footer-description {
  text-align: center;
  color: #dce5ef;
  font-size: 13px;
  margin: 0;
}
.footer-credits {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  font-size: 11px;
  color: #dce5ef;
}
@media (max-width: 700px) {
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  .footer-layout .brand {
    justify-self: center;
  }
  .footer-credits {
    align-items: center;
    text-align: center;
  }
}

.buying {
  padding-bottom: 30px;
}
.buying-steps {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.buying-steps li {
  border-top: 3px solid var(--wood);
  padding: 22px 0;
}
.step-number {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}
.buying-steps h3 {
  font-size: 21px;
}
.buying-steps p {
  font-size: 16px;
  line-height: 1.75;
}
.faq {
  border-top: 1px solid #e8e9eb;
}
.faq-list {
  max-width: 900px;
}
.faq-list details {
  border-bottom: 1px solid #d9e1e9;
  padding: 20px 0;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  font-size: 25px;
  flex: none;
  transition: transform 0.2s;
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list p {
  font-size: 16px;
  line-height: 1.8;
  margin: 18px 0 0;
  max-width: 800px;
}
.faq-list summary:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 5px;
}
@media (max-width: 700px) {
  .buying-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .buying {
    padding-bottom: 0;
  }
  .faq-list summary {
    font-size: 16px;
  }
}

/* Relatos fornecidos pelo cliente; conteúdo preservado integralmente. */
.reviews-section {
  background: #f4f7fc;
  padding: 85px 0;
}
.review-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}
.review-themes span {
  padding: 8px 14px;
  background: white;
  border: 1px solid #d5dfef;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.review-card {
  margin: 0;
  padding: 28px;
  background: white;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.review-card blockquote {
  margin: 0;
  flex: 1;
}
.review-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.review-card figcaption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e6ebf2;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
@media (max-width: 1000px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .reviews-section {
    padding: 60px 0;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-card {
    padding: 24px;
  }
  .review-themes span {
    font-size: 12px;
  }
}

/* Progresso das etapas vinculado à posição da rolagem. */
.buying-steps li {
  position: relative;
  border-top: 0;
}
.step-number {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  margin-bottom: 20px;
}
.buying-steps li:not(:last-child)::before,
.buying-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 42px;
  left: 40px;
  width: calc(100% - 15px);
  height: 3px;
  background: #d5dfef;
  transform-origin: left;
  pointer-events: none;
}
.buying-steps li:not(:last-child)::after {
  background: var(--wood);
}
.buying-steps.is-scroll-driven li::after {
  transform: scaleX(var(--step-fill, 0));
  transition: none;
}
@media (max-width: 700px) {
  .buying-steps li {
    padding-left: 64px;
  }
  .step-number {
    position: absolute;
    top: 22px;
    left: 0;
  }
  .buying-steps li:not(:last-child)::before,
  .buying-steps li:not(:last-child)::after {
    top: 62px;
    left: 19px;
    width: 3px;
    height: calc(100% - 40px);
    transform-origin: top;
  }
  .buying-steps.is-scroll-driven li::after {
    transform: scaleY(var(--step-fill, 0));
  }
}
@media (prefers-reduced-motion: reduce) {
  .buying-steps.is-scroll-driven li::after {
    transform: none;
  }
}

/* Carrossel sem dependências, com rolagem nativa e swipe. */
.review-carousel {
  min-width: 0;
}
.review-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  padding-bottom: 0;
}
.review-viewport:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 4px;
}
.reviews-grid {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: stretch;
}
.review-card {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}
.review-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.review-controls[hidden] {
  display: none;
}
.review-controls > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #b9c9e2;
  border-radius: 8px;
  color: var(--blue);
  background: white;
  padding: 10px;
}
.review-controls > button:hover {
  background: #e5edf9;
}
.review-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.review-dot {
  background: transparent;
  border: 0;
  padding: 12px 7px;
  min-height: 44px;
}
.review-dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b5c3da;
}
.review-dot[aria-current='true']::before {
  background: var(--blue);
}

@media (max-width: 1000px) {
  .review-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}
@media (max-width: 700px) {
  .review-card {
    flex-basis: 100%;
  }
  .review-dots {
    order: 3;
    justify-content: center;
    width: 100%;
  }
  .review-controls {
    gap: 10px;
  }
}

.review-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
