/* Shared finishing layer: rhythm, hierarchy and client-photo composition. */
:root {
  --space-section: clamp(64px, 7vw, 96px);
  --frame: #c3ceba;
  --muted-ink: #4e604e;
}

/* Keep the approved homepage composition and unify the surrounding pages. */
body[class^="page-"] .section { padding-block: var(--space-section); }
h3 { line-height: 1.3; }
.section-head > p, .section-head.narrow > p { margin: 20px 0 0; line-height: 1.8; }
.section-head .eyebrow { margin-bottom: 20px; }
.lead { max-width: 55ch; }
.detail-grid article, .warranty-cards article, .review-card { box-shadow: none; }
.detail-grid h3, .warranty-cards h3 { font-weight: 600; }
.detail-grid article > span, .warranty-cards article > span { letter-spacing: .085em; }
.split-note h2 { font-family: Manrope, Arial, sans-serif !important; font-style: normal !important; font-weight: 600 !important; line-height: 1.18 !important; }

/* A filled action always represents the primary next step. */
.header-cta { background: #dce8d2; color: #17211b; border-color: #dce8d2; }
.header-cta:hover { background: #edf3e7; border-color: #edf3e7; }
.button { gap: 22px; border: 1px solid transparent; min-height: 54px; }
.button span[aria-hidden] { margin-left: 0; }
.button-outline { border-color: #869880; }
.text-link, .under-link { display: inline-block; line-height: 1.65; text-underline-offset: 6px; }
.text-link:hover, .under-link:hover { color: #44683a; }
.proof .under-link:hover, .skylight-case .under-link:hover { color: #fff; }
.contact-band-inner { gap: 36px; }
.contact-band h2 { font-size: clamp(2.25rem, 3.65vw, 3.8rem); line-height: 1.16; }
.contact-band p { max-width: 58ch; line-height: 1.75; }
.contact-band .eyebrow { margin-bottom: 18px; }

/* Simple frames let the original work carry the visual weight. */
.photo-grid figure, .project-story-photo, .project-panorama,
.page-projects .project-case .before-after figure {
  padding: 6px; border: 1px solid var(--frame); border-radius: 6px;
  box-shadow: none; background: #e7ebdf;
}
.photo-grid figure img, .project-story-photo img, .project-panorama img { border-radius: 2px; }
.photo-grid figcaption, .project-story-photo figcaption, .project-panorama figcaption {
  margin-top: 0; border-top: 0; padding: 14px 10px 9px;
  font-size: .81rem; font-weight: 500; line-height: 1.6;
}
.inner-hero-photo { padding: 6px; box-shadow: 0 12px 30px #17211b08; border-radius: 6px; }
.inner-hero-photo figcaption { padding: 13px 10px 7px; font-weight: 500; }
.roof-hero-photo { border: 6px solid #dde4d4; box-shadow: none; }
.roof-hero-photo::after { display: none; }
.roof-hero-photo img { object-position: 48% 35%; }
.photo-grid img[src*="project-03"] { object-position: center 35%; }
.photo-grid img[src*="project-04"] { object-position: center 43%; }
.photo-grid img[src*="project-17"] { object-position: center 46%; }
.page-roofing .project-gallery img { object-position: center 58%; }
.page-exteriors .inner-hero-photo img { object-position: center 48%; }
.page-exteriors .exterior-work img { object-position: center 43%; }
.page-repairs .inner-hero-photo img { object-position: center 58%; }
.project-story-photo img.skylight-photo { height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 19%; }
.page-projects .east-greenwich-case .eg-detail-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.page-projects .east-greenwich-case .eg-detail-grid figure:nth-child(2) { margin-top: 0; }
.page-projects .east-greenwich-case .eg-detail-grid img { height: 360px; }
.case-photo img[src*="snow-before"] { object-position: center 15%; }
.case-photo img[src*="snow-after"] { object-position: center 40%; }
.page-about .bruno-portrait { padding: 6px; border-radius: 6px; box-shadow: none; }
.page-about .bruno-photo { aspect-ratio: 5 / 4; object-fit: cover; object-position: 65% 65%; }
.page-about .bruno-portrait figcaption { margin-top: 0; padding: 28px 18px 24px; }
.page-about .bruno-portrait blockquote { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.45; }

/* Equal feature hierarchy; consistent padding and a natural reading rhythm. */
.service-overview .detail-grid { gap: 18px; }
.service-overview .detail-grid article { min-height: 0; padding: 28px; }
.service-overview .detail-grid h3 { margin: 22px 0 12px; font-size: 1.35rem; }
.service-overview .detail-grid p { font-size: .96rem; line-height: 1.8; }
.exterior-service-section .detail-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.exterior-service-section .detail-grid article,
.exterior-service-section .detail-grid article:first-child,
.exterior-service-section .detail-grid article:last-child:nth-child(odd) {
  grid-column: span 2; grid-row: auto; display: block; min-height: 0; padding: 30px;
}
.exterior-service-section .detail-grid article:nth-child(n+4),
.exterior-service-section .detail-grid article:last-child:nth-child(odd) { grid-column: span 3; }
.exterior-service-section .detail-grid article:first-child::before { display: none; }
.exterior-service-section .detail-grid h3,
.exterior-service-section .detail-grid article:first-child h3 {
  font-family: Manrope, Arial, sans-serif; font-style: normal;
  font-size: 1.5rem; font-weight: 600; margin: 22px 0 12px;
}
.exterior-service-section .detail-grid article p { max-width: 48ch; }
.page-roofing .warranty-cards article { padding: 30px; }
.page-roofing .warranty-cards h3 { font-size: 1.55rem; margin: 20px 0 14px; }
.page-roofing .gaf-certificate { border-radius: 6px; padding: 10px; }
.gaf-certificate img { border: 0; border-radius: 2px; }
.page-faq .faq-list details { transition: background-color 180ms ease; }
.page-faq .faq-list summary { align-items: center; gap: 20px; }
.page-faq .faq-list details[open] summary,
.page-faq .faq-list summary { padding-inline: 0; }
.page-faq .faq-list details[open] p { padding-left: 0; margin-right: 38px; }

/* Let the priced job serve as the Projects page's clear visual anchor. */
.page-projects .priced-project-grid { grid-template-columns: 1.25fr 1fr; gap: 4%; align-items: center; }
.page-projects .priced-project figure { display: flex; flex-direction: column; }
.page-projects .priced-project figure img { flex: none; height: auto; object-fit: cover; object-position: center 50%; border-width: 6px; border-radius: 6px; box-shadow: none; }
.page-projects .priced-project figure figcaption { font-size: .81rem; line-height: 1.6; padding: 13px 2px 0; }
.page-projects .priced-project-details { padding: 32px; box-shadow: none; border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; }
.page-projects .priced-project-details h3 { font-size: 1.6rem; }
.page-projects .priced-project-details > p { font-size: 1rem; }
.page-projects .priced-project-details dl { width: 100%; margin: 20px 0 24px; gap: 20px; }
.page-projects .priced-project-details dt { font-size: .7rem; letter-spacing: .075em; }
.page-projects .priced-project-details dd { font-size: clamp(2.25rem, 3.25vw, 3.4rem); }
.page-projects .priced-project-details .project-price-note { font-size: .88rem; line-height: 1.75; }
.page-projects .priced-project-details .button { margin-top: 6px; width: 100%; }
.page-contact .estimate-intro h1 { font-size: clamp(3rem, 4.8vw, 5rem); }
.page-contact .estimate-panel { border-radius: 6px; box-shadow: 0 12px 32px #17211b08; }
.estimate input:not([type=file]):hover, .estimate select:hover, .estimate textarea:hover { border-color: #829775; }
.estimate input:focus-visible, .estimate select:focus-visible, .estimate textarea:focus-visible { outline-color: #527945; outline-offset: 2px; }
.footer-grid a:not(.footer-name) { padding-block: 5px; }

/* Brief, quiet movement, with an equivalent reduced-motion experience. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition-duration: 420ms; }
  [data-reveal="pending"] { transform: translateY(10px); }
  .service-card[data-reveal] { transition-duration: 420ms, 420ms, 180ms; }
  .button span, .header-cta span, .card-arrow { transition: transform 180ms ease; }
  .button:hover span, .header-cta:hover span, .service-card:hover .card-arrow { transform: translate(2px, -2px); }
}
@media (max-width: 1050px) {
  .exterior-service-section .detail-grid article,
  .exterior-service-section .detail-grid article:first-child,
  .exterior-service-section .detail-grid article:last-child:nth-child(odd) { grid-column: span 3; padding: 28px; }
  .exterior-service-section .detail-grid article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .page-projects .priced-project-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-projects .priced-project figure img { flex: none; aspect-ratio: 4 / 3; }
  .page-projects .priced-project-details { padding: 28px; }
  .page-projects .priced-project-details dd { font-size: 3rem; }
}
@media (max-width: 760px) {
  .section-head > p, .section-head.narrow > p { margin-top: 18px; }
  .service-overview .detail-grid article { padding: 25px; }
  .contact-band-inner { gap: 28px; }
  .contact-band h2 { font-size: clamp(2.2rem, 7.8vw, 3rem); }
  .page-projects .east-greenwich-case .eg-detail-grid img { height: 280px; }
  .project-story-photo img.skylight-photo { aspect-ratio: 4 / 3; }
  .page-faq .faq-list details[open] p { margin-right: 0; }
  .page-contact .estimate-intro h1 { font-size: clamp(2.8rem, 9vw, 4rem); }
  .roof-hero-photo img { object-position: center 35%; }
}
@media (max-width: 500px) {
  .exterior-service-section .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .exterior-service-section .detail-grid article,
  .exterior-service-section .detail-grid article:first-child,
  .exterior-service-section .detail-grid article:last-child:nth-child(odd) { grid-column: auto; padding: 26px; }
  .service-overview .detail-grid { gap: 16px; }
  .page-projects .east-greenwich-case .eg-detail-grid { grid-template-columns: 1fr; }
  .page-projects .east-greenwich-case .eg-detail-grid img { height: auto; aspect-ratio: 4 / 3; }
  .page-projects .priced-project-details { padding: 25px 22px; }
  .page-projects .priced-project-details dd { font-size: 2.6rem; }
  .case-photo img[src*="snow-before"] { height: auto; aspect-ratio: 4 / 3; object-position: center; }
  .case-photo img[src*="snow-after"] { height: auto; aspect-ratio: 4 / 3; }
}

/* Accessible inquiry status and spam trap. */
.form-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.form-status{margin:0;padding:16px 18px;background:#edf2e7;border-left:3px solid #6b8458;color:#29412e;font-size:.94rem;line-height:1.7}
.estimate-preview:focus{outline:2px solid #6b8458;outline-offset:8px}
