/*
 * First State review corrections.
 * Loaded only on redesigned test pages.
 */

/* Shared header and footer: replace the old theme font. */
#hdr,
#hdr a,
#hdr button,
#hdr .dnav__label,
#nav,
#nav a,
#nav button,
footer.ft,
footer.ft p,
footer.ft a,
footer.ft h3,
footer.ft .chip {
  font-family: 'DM Sans', Arial, sans-serif !important;
}

/* Page typography: use the approved sans-serif family. */
.home-editorial,
.home-editorial :is(h1, h2, h3, h4, h5, h6),
.home-editorial :is(p, li, dt, dd, blockquote),
.home-editorial :is(a, button, input, select, textarea) {
  font-family: 'DM Sans', Arial, sans-serif !important;
}

/* Preserve the editorial serif accents. */
.home-editorial :is(h1, h2, h3) em,
.home-editorial .accent,
.home-editorial .why-editorial-accent,
.home-editorial .pq__body blockquote > p.pq__kick {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500 !important;
  font-style: italic;
}

/* Navy headings on the light sections Jonathan flagged. */
.home-editorial .proc__w,
.home-editorial .proc__title,
.outdoor-editorial .ol-moment h3 {
  color: #142f50 !important;
}

/* Sunrooms and other service-page image-card titles. */
.deck-editorial .dc-moments h3 {
  color: #fff !important;
}

/* Keep project-image titles readable, including on hover. */
.home-editorial .pt-story__content h3,
.home-editorial .pt-story:hover .pt-story__content h3,
.home-editorial .pf-featured__caption strong,
.home-editorial a:hover .pf-featured__caption strong {
  color: #fff !important;
}

/* Remove legacy quote boxes from the redesigned homepage. */
.home-editorial .pq__body blockquote,
.home-editorial .tst blockquote,
.home-editorial .reviews blockquote {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Give service-page hero headlines room above the description. */
.home-editorial .dc-hero h1 {
  margin-bottom: 24px !important;
}

.home-editorial .dc-hero__lede {
  margin-top: 0 !important;
}

/* Give italic section headings enough room above the divider. */
.home-editorial .dc-desire__intro h2 {
  line-height: 1.15 !important;
  padding-bottom: 0.15em;
}

.home-editorial .dc-desire__intro h2 em {
  line-height: 1.1 !important;
}

/* Keep Portfolio image-card titles and arrows white in every state. */
.portfolio-editorial .pf-project a .pf-project__content strong,
.portfolio-editorial .pf-project a .pf-project__arrow,
.portfolio-editorial .pf-project a .pf-project__arrow svg {
  color: #fff !important;
}

/* Homepage hero: separate the headline from its description. */
.home-editorial .hero h1 {
  margin-bottom: 24px !important;
}

.home-editorial .hero__sub {
  margin-top: 0 !important;
}

/* Homepage hero button colors. */
.home-editorial .hero .btn {
  background-color: #b58a68 !important;
  color: #142f50 !important;
}

.home-editorial .hero .btn--ghost {
  background-color: transparent !important;
  color: #fff !important;
}

.home-editorial .hero .btn .btn__t,
.home-editorial .hero .btn .btn__ico {
  color: inherit !important;
}

/* Maintain contrast during the existing hover animations. */
.home-editorial .hero .btn:hover {
  color: #b58a68 !important;
}

.home-editorial .hero .btn--ghost:hover {
  color: #142f50 !important;
}

/* Align the project count and divider with the gallery grid. */
.portfolio-editorial .pf-results {
  width: min(calc(100% - (2 * var(--gut))), var(--max)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 767px) {
  .portfolio-editorial .pf-results {
    width: calc(100% - 40px) !important;
  }
}

/* Contact heading and supporting-text spacing. */
.contact-editorial #contact-title {
  color: #142f50 !important;
  font-weight: 300 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em !important;
}

.contact-editorial .ct-hero__lede {
  margin-top: 24px !important;
}

/* Contact's gold estimate button. */
.contact-editorial .ct-hero__button {
  background-color: #b58a68 !important;
  color: #142f50 !important;
}

.contact-editorial .ct-hero__button .btn__t,
.contact-editorial .ct-hero__button .btn__ico {
  color: inherit !important;
}

.contact-editorial .ct-hero__button:hover {
  color: #b58a68 !important;
}

/* Outdoor Living quote: remove legacy theme styling. */
.outdoor-editorial .ol-review blockquote {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Move Carol's quote up and tighten its typography. */
.outdoor-editorial .ol-review {
  margin-top: 48px !important;
  padding-top: 32px !important;
}

.outdoor-editorial .ol-review blockquote {
  margin: 0 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.06 !important;
}

/* Restore Portfolio hero heading letter spacing. */
.portfolio-editorial .pf-hero h1,
.portfolio-editorial .pf-hero h1 > span {
  letter-spacing: -0.025em !important;
}

.portfolio-editorial .pf-hero h1 em {
  letter-spacing: -0.035em !important;
}

/* Tighten Portfolio H2 letter spacing. */
.portfolio-editorial .pf-main h2,
.portfolio-editorial .pf-main h2 > span {
  letter-spacing: -0.025em !important;
}

.portfolio-editorial .pf-main h2 em {
  letter-spacing: -0.035em !important;
}

/* Give “Reimagined” room above the supporting content. */
.portfolio-editorial .pf-hero h1 {
  line-height: 1.05 !important;
  margin-bottom: 24px !important;
}

.portfolio-editorial .pf-hero h1 em {
  line-height: 1.05 !important;
}

/* Tighten the two hero lines; retain the gap below the heading. */
.portfolio-editorial .pf-hero h1 {
  line-height: 0.9 !important;
  margin-bottom: 24px !important;
}

.portfolio-editorial .pf-hero h1 em {
  line-height: 0.94 !important;
}

/* Consistent H1/H2 letter spacing across redesigned pages. */
.home-editorial :is(h1, h2),
.home-editorial :is(h1, h2) span {
  letter-spacing: -0.035em !important;
    }

/* Slightly tighter spacing for the editorial serif accents. */
.home-editorial :is(h1, h2) em,
.home-editorial :is(h1, h2) .accent,
.home-editorial :is(h1, h2) .why-editorial-accent {
  letter-spacing: -0.035em !important;
}

/* Schedule an Estimate: navy title with tighter line spacing. */
.estimate-editorial #estimate-title {
  color: #142f50 !important;
  font-weight: 300 !important;
  line-height: 1.02 !important;
  margin-bottom: 24px !important;
}

.estimate-editorial .ct-hero__lede {
  margin-top: 0 !important;
}

/* Single gold underline normally; none on hover. */
.contact-editorial .ct-form-panel__head p a {
  color: #142f50 !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid #b58a68 !important;
}

.contact-editorial .ct-form-panel__head p a:hover {
  color: #142f50 !important;
  text-decoration: none !important;
  border-bottom-color: transparent !important;
}

.contact-editorial .ct-form-panel__head p a:focus-visible {
  outline: 2px solid #142f50;
  outline-offset: 4px;
}

/* Why First State: tighter title lines, room beneath the heading. */
.why-editorial #why-title {
  line-height: 1 !important;
  margin-bottom: 24px !important;
}

.why-editorial #why-title > span,
.why-editorial #why-title > em {
  line-height: 1 !important;
}

.why-editorial .why-hero__lede {
  margin-top: 0 !important;
}

/* Why First State: tighter H1 and H2 lettering. */
.why-editorial .why-page :is(h1, h2),
.why-editorial .why-page :is(h1, h2) span {
  letter-spacing: -0.035em !important;
  /* letter-spacing: -0.025em !important; */
}

.why-editorial .why-page :is(h1, h2) em {
  letter-spacing: -0.035em !important;
}

/* Guide article: match the tighter heading lettering. */
.insights-editorial .insight-article-page :is(h1, h2),
.insights-editorial .insight-article-page :is(h1, h2) span,
.insights-editorial .insight-article-page :is(h1, h2) em {
  letter-spacing: -0.035em !important;
}

.insights-editorial .article-head h1,
.insights-editorial .article-head h1 span,
.insights-editorial .article-head h1 em {
  letter-spacing: -0.045em !important;
}

/* Our Team: tighter H1 and H2 lettering. */
.why-editorial .team-page :is(h1, h2),
.why-editorial .team-page :is(h1, h2) span,
.why-editorial .team-page :is(h1, h2) em {
  letter-spacing: -0.035em !important;
}

/* Showroom: tighter H1 and H2 lettering. */
.why-editorial .showroom-page :is(h1, h2),
.why-editorial .showroom-page :is(h1, h2) span,
.why-editorial .showroom-page :is(h1, h2) em {
  letter-spacing: -0.035em !important;
}

/* Equal card heights in the three-column Portfolio grid. */
@media (min-width: 1181px) {
  .portfolio-editorial .pf-project > a,
  .portfolio-editorial .pf-project:not(.pf-project--wide) > a {
    height: clamp(360px, 34vw, 510px) !important;
  }
}

/* Warranty: tighter H1/H2 lettering. */
.why-editorial .warranty-page :is(h1, h2),
.why-editorial .warranty-page :is(h1, h2) span,
.why-editorial .warranty-page :is(h1, h2) em {
  letter-spacing: -0.035em !important;
}

/* Keep the italic title clear of the paragraph below. */
.why-editorial #warranty-title {
  margin-bottom: 24px !important;
}

.why-editorial .warranty-hero__lede {
  margin-top: 0 !important;
}

/* Financing: tighten heading letter spacing. */
.why-editorial .financing-page :is(h1, h2),
.why-editorial .financing-page :is(h1, h2) span,
.why-editorial .financing-page :is(h1, h2) em {
  letter-spacing: -0.035em !important;
}

/* Areas We Serve: tighter H2s and navy H3s. */
.areas-editorial :is(h2, h2 span, h2 em) {
  letter-spacing: -0.035em !important;
}

.areas-editorial h3 {
  color: #142f50 !important;
}

/* Areas We Serve: override shared heading spacing. */
.home-editorial.areas-editorial h2,
.home-editorial.areas-editorial h2 span,
.home-editorial.areas-editorial h2 em {
  letter-spacing: -0.035em !important;
}

/* Chester County: tighter heading letter spacing. */
.home-editorial[data-fsbd-page="chester-county-pa"] :is(h1, h2, h3),
.home-editorial[data-fsbd-page="chester-county-pa"] :is(h1, h2, h3) :is(span, em) {
  letter-spacing: -0.035em !important;
}
/* Chester County: navy H3 headings. */
.home-editorial[data-fsbd-page="chester-county-pa"] h3 {
  color: #142f50 !important;
}

/* Delaware County: tighter heading spacing. */
.home-editorial[data-fsbd-page="delaware-county-pa"] :is(h1, h2, h3),
.home-editorial[data-fsbd-page="delaware-county-pa"] :is(h1, h2, h3) :is(span, em) {
  letter-spacing: -0.035em !important;
}

/* Keep project-card arrows white, including on hover. */
.home-editorial[data-fsbd-page="delaware-county-pa"] .cc-project svg {
  color: #fff !important;
}

/* Montgomery County: tighter headings and white card arrows. */
.home-editorial[data-fsbd-page="montgomery-county-pa"] :is(h1, h2, h3),
.home-editorial[data-fsbd-page="montgomery-county-pa"] :is(h1, h2, h3) :is(span, em) {
  letter-spacing: -0.035em !important;
}

.home-editorial[data-fsbd-page="montgomery-county-pa"] .cc-project svg {
  color: #fff !important;
}

/* Montgomery County: reduce space between projects and process. */
.home-editorial[data-fsbd-page="montgomery-county-pa"] .cc-proof {
  padding-bottom: 64px !important;
}

.home-editorial[data-fsbd-page="montgomery-county-pa"] .cc-guide {
  padding-top: 64px !important;
}

/* Bucks County: tighter headings. */
.home-editorial[data-fsbd-page="bucks-county-pa"] :is(h1, h2, h3),
.home-editorial[data-fsbd-page="bucks-county-pa"] :is(h1, h2, h3) :is(span, em) {
  letter-spacing: -0.035em !important;
}

/* White project-card arrows. */
.home-editorial[data-fsbd-page="bucks-county-pa"] .cc-project svg {
  color: #fff !important;
}

/* Reduce the gap between projects and process. */
.home-editorial[data-fsbd-page="bucks-county-pa"] .cc-proof {
  padding-bottom: 64px !important;
}

.home-editorial[data-fsbd-page="bucks-county-pa"] .cc-guide {
  padding-top: 64px !important;
}

/* New Castle County: tighter headings. */
.home-editorial[data-fsbd-page="new-castle-county-de"] :is(h1, h2, h3),
.home-editorial[data-fsbd-page="new-castle-county-de"] :is(h1, h2, h3) :is(span, em) {
  letter-spacing: -0.035em !important;
}

/* White project-card arrows. */
.home-editorial[data-fsbd-page="new-castle-county-de"] .cc-project svg {
  color: #fff !important;
}

/* Reduce the gap between projects and process. */
.home-editorial[data-fsbd-page="new-castle-county-de"] .cc-proof {
  padding-bottom: 64px !important;
}

.home-editorial[data-fsbd-page="new-castle-county-de"] .cc-guide {
  padding-top: 64px !important;
}

/* New Castle County: navy H3 headings. */
.home-editorial[data-fsbd-page="new-castle-county-de"] h3 {
  color: #142f50 !important;
}

/* Cecil County: tighter headings. */
.home-editorial[data-fsbd-page="cecil-county-md"] :is(h1, h2, h3),
.home-editorial[data-fsbd-page="cecil-county-md"] :is(h1, h2, h3) :is(span, em) {
  letter-spacing: -0.035em !important;
}

/* Navy H3 headings. */
.home-editorial[data-fsbd-page="cecil-county-md"] h3 {
  color: #142f50 !important;
}

/* Keep project-image titles and arrows white. */
.home-editorial[data-fsbd-page="cecil-county-md"] .cc-project h3,
.home-editorial[data-fsbd-page="cecil-county-md"] .cc-project svg {
  color: #fff !important;
}

/* Reduce the gap between projects and process. */
.home-editorial[data-fsbd-page="cecil-county-md"] .cc-proof {
  padding-bottom: 64px !important;
}

.home-editorial[data-fsbd-page="cecil-county-md"] .cc-guide {
  padding-top: 64px !important;
}

/* Insights Blog: consistent heading spacing and weights. */
.home-editorial[data-fsbd-page="insights-blog"] :is(h1, h2, h3),
.home-editorial[data-fsbd-page="insights-blog"] :is(h1, h2, h3) :is(a, span, em) {
  letter-spacing: -0.035em !important;
}

.home-editorial[data-fsbd-page="insights-blog"] :is(h2, h3),
.home-editorial[data-fsbd-page="insights-blog"] :is(h2, h3) a {
  font-weight: 400 !important;
}

/* Preserve the serif accent weight. */
.home-editorial[data-fsbd-page="insights-blog"] :is(h1, h2, h3) em {
  font-weight: 500 !important;
}

/* Insights Blog: reduce both H1 font styles. */
.home-editorial[data-fsbd-page="insights-blog"] #insights-title {
  font-size: clamp(44px, 4.5vw, 68px) !important;
}

.home-editorial[data-fsbd-page="insights-blog"] #insights-title :is(span, em) {
  font-size: 1em !important;
}

/* Contact: restore a clear heading hierarchy. */
.home-editorial.contact-editorial #contact-title {
  font-size: clamp(48px, 5vw, 72px) !important;
  font-weight: 300 !important;
}

.home-editorial.contact-editorial h2 {
  font-size: clamp(32px, 3vw, 44px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
}

.home-editorial.contact-editorial #contact-title {
  line-height: 0.85 !important;
}

/* Schedule an Estimate: match Contact heading sizes. */
.home-editorial.estimate-editorial #estimate-title {
  font-size: clamp(48px, 5vw, 72px) !important;
  font-weight: 300 !important;
  line-height: 0.85 !important;
}

.home-editorial.estimate-editorial h2 {
  font-size: clamp(32px, 3vw, 44px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
}

/* Schedule an Estimate: increase H2 size. */
.home-editorial.estimate-editorial h2 {
  font-size: clamp(38px, 3.9vw, 54px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
}

/* Contact: match the approved H2 size. */
.home-editorial.contact-editorial h2 {
  font-size: clamp(38px, 3.9vw, 54px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
}

.home-editorial :is(h1, h2),
.home-editorial :is(h1, h2) span {
  letter-spacing: -0.035em !important;
}
/* Shared H1 and H2 letter spacing for the redesign. */
.home-editorial :is(h1, h2, h1 *, h2 *):not(#fsbd-tracking-specificity) {
  letter-spacing: -0.035em !important;
}

/* Keep the article hero's approved tighter spacing. */
.home-editorial .article-head :is(h1, h1 *):not(#fsbd-tracking-specificity) {
  letter-spacing: -0.045em !important;
}

/* Navy H3s in light sections of the redesign. */
.home-editorial :is(.tst, .ol-plan, .dc-process, .dc-projects, .cc-services, .ct-connect) h3,
.home-editorial :is(.sunroom-editorial, .patio-editorial, .pool-editorial) .dc-types h3 {
  color: #142f50 !important;
}