/* Core-page parity corrections from the saved live/staging comparison, 2026-10-30.
 * Candidate only. Load after existing shared and core-page CSS.
 * Scope: Home406, About407, Services408, Projects409, Reviews410, Contact411.
 */

/* Restore the converted layout's direct text-child margin default.
 * Specificity0,2,0 beats .acs-content p (0,1,1) but remains below every
 * compiled source component (at least0,3,0), preserving deliberate spacing.
 * The :where selectors add no specificity. Plugin descendants are not reset.
 */
:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
  .acs-content :where(.wp-block-group[class*="acs-"]) > :where(.acs-copy,.wp-block-heading) {
  margin-block: 0;
}

/* Stored builder margin26px was overridden by the original live cascade.
 * Preserve the contact-summary's separate200px/100px top and40px/30px bottom.
 */
.acs-page-home .acs-content div.acs-home-service-area:nth-of-type(1) {
  margin-bottom: 0;
}
.acs-page-home .acs-content h2.acs-home-services-intro-heading {
  margin-bottom: 0;
}

/* Astra's original H4/H5/H6 sizes use rem, including semantic replacements.
 * Keep explicit component sizes such as the1rem CTA/OUR SERVICES labels.
 * Original H1/H2/H3 responsive sizes are pixels and are not changed here.
 */
:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
  .acs-content :is(h4,.acs-semantic-from-h4) {
  font-size: 1.25rem;
}
:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
  .acs-content :is(h5,.acs-semantic-from-h5) {
  font-size: 1rem;
}
:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
  .acs-content :is(h6,.acs-semantic-from-h6) {
  font-size: .75rem;
}
@media (max-width: 544px) {
  :is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
    .acs-content :is(h5,.acs-semantic-from-h5) {
    font-size: .9375rem;
  }
}

/* Original narrow hero children occupy the full330px contact-summary width.
 * Do not change tablet's horizontal row or desktop's two-column grid.
 */
@media (max-width: 767.98px) {
  .acs-page-home .acs-content .acs-home-contact-summary > :is(.acs-home-service-area,.acs-home-phone) {
    width: 100%;
    max-width: 100%;
  }
}

/* All five fresh inner-page comparisons have0px live title bottom margin.
 * Horizontal container centering remains the responsibility of the wrapper.
 */
:is(.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
  .acs-content h1.acs-page-hero-title {
  margin-bottom: 0;
}

/* Match the original flex item's cap and the original heading's word wrapping.
 * Remove the v18 About fit override before integrating this candidate.
 * Do not set a font size: retain the original theme's responsive typography.
 */
.acs-page-about .acs-content div.acs-about-how-intro {
  max-width: 100%;
}
.acs-page-about .acs-content h2.acs-about-how-intro-heading {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Original Contact list-child-icon attributes specify the coral token.
 * Social circles, form fields and other SVGs remain outside this selector.
 */
.acs-page-contact .acs-content .acs-contact-detail > svg.acs-icon {
  color: var(--ast-global-color-0);
}

/* Original Home Yoast layout from home-live-faq.json: inline questions,
 * zero section margins, and1.6em answer bottom margin including the last.
 * Keep this separate from converted-copy spacing and other pages' FAQs.
 */
.acs-page-home .acs-content > .acs-faq {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: var(--wp--custom--ast-default-block-top-padding,3em);
  padding-right: var(--wp--custom--ast-default-block-right-padding,3em);
  padding-bottom: var(--wp--custom--ast-default-block-bottom-padding,3em);
  padding-left: var(--wp--custom--ast-default-block-left-padding,3em);
}
.acs-page-home .acs-content > .acs-faq > .acs-faq-content {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 1200px;
  margin: 0;
}
.acs-page-home .acs-content .acs-faq :is(.schema-faq,.schema-faq-section) {
  display: block;
  margin: 0;
  padding: 0;
}
.acs-page-home .acs-content .acs-faq .schema-faq-question {
  display: inline;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
}
.acs-page-home .acs-content .acs-faq p.schema-faq-answer {
  display: block;
  margin: 0 0 1.6em;
  padding: 0;
}

/* Original core button defaults; individual arrow/card rules remain stronger. */
:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
 .acs-content .acs-button > .wp-block-button__link {
 font-family:Manrope,sans-serif;font-weight:400;font-size:1rem;line-height:1;
 padding:14px 40px;min-height:0;border:0 solid var(--ast-global-color-0);border-radius:7px;
 background:var(--ast-global-color-0);color:#262626;
}
:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
 .acs-content .acs-button > .wp-block-button__link:is(:hover,:focus) {
 background:var(--ast-global-color-1);border-color:var(--ast-global-color-1);color:var(--ast-global-color-4);
}

/* v19 follow-up: the original Projects/Contact desktop separator has no margin.
 * The generic native rule adds5px above plus35px below, shifting all later text.
 * Tablet/mobile explicitly use10px margins in the source and remain untouched.
 */
@media (min-width: 1024px) {
  .acs-page-projects .acs-content .acs-projects-intro > hr.acs-rule,
  .acs-page-contact .acs-content .acs-contact-intro > hr.acs-rule {
    margin-block: 0;
  }
}

/* Confirmed Home v19 differences, measured against live at 390px and 1440px.
 * Load after home.css and core-parity.css. No provider/widget rules here.
 */

/* The original constrained layout used WordPress's 24px block-gap variable.
 * The converter substituted its 1em fallback (16px / 14.592px), moving the
 * unchanged video and everything below it upward. Restore the original rule.
 */
.acs-page-home .acs-content section.acs-home-about:nth-of-type(2) > :not(.acs-hero-media):not(.acs-background-media):not(.acs-media-cover) + :not(.acs-hero-media):not(.acs-background-media):not(.acs-media-cover) {
  margin-top: var(--wp--style--block-gap, 24px);
}

/* Original mobile hero action fills the 330px inner column at viewport390.
 * Native flex shrink-wrapping reduced it to307.203px and shifted the arrow.
 * Preserve the existing desktop grid and the original child button styling.
 */
@media (max-width: 767.98px) {
  .acs-page-home .acs-content div.acs-home-hero-action:nth-of-type(2) {
    width: 100%;
    max-width: 100%;
  }
}

/* The four original service anchors inherit Astra's 1rem button size.
 * Stored Spectra size16px is not the effective mobile font size. Keeping it
 * literally made each stacked card1.40625px taller at viewport390.
 */
.acs-page-home .acs-content div.acs-service-card-grid > div.acs-service-card:nth-of-type(-n+4) > div.acs-actions > div.acs-button > .wp-block-button__link {
  font-size: 1rem;
}

/* The source tablet/mobile separator has10px top and30px bottom margins.
 * Native wrapper's bottom0 replaced the latter; normal margin collapse with
 * the following H2's15px margin therefore removed15px of the original gap.
 */
@media (max-width: 1023.98px) {
  .acs-page-home .acs-content .acs-home-services-intro-inner > hr.acs-rule {
    margin-bottom: 30px;
  }
}

/* The six original core templates keep their existing tablet header/hero scale
 * until the actual mobile-header layout ends at 1024px. The old type/logo
 * rules changed at922px while these heroes still used their tablet padding.
 * No rule applies at390px or1440px; hero padding/crop properties are untouched.
 */
@media (min-width: 922px) and (max-width: 1023.98px) {
  body.acs-site:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
    #ast-mobile-header .custom-logo-link img.custom-logo,
  body.acs-site:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
    #ast-desktop-header .custom-logo-link img.custom-logo,
  body.acs-site:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
    #ast-fixed-header .custom-logo-link img.custom-logo {
    width: 200px;
    max-width: 200px;
  }
  body.acs-site:is(.acs-page-home,.acs-page-about,.acs-page-services,.acs-page-projects,.acs-page-reviews,.acs-page-contact)
    .acs-content .acs-hero h1 {
    font-size: 72px;
  }
}

/* The original builder left-aligns these six rules with their labels. */
.acs-page-about .acs-content :is(.acs-about-who-intro, .acs-about-how-intro) > hr.acs-rule,
.acs-page-services .acs-content .acs-services-intro > hr.acs-rule,
.acs-page-projects .acs-content .acs-projects-intro > hr.acs-rule,
.acs-page-reviews .acs-content .acs-review-intro > hr.acs-rule,
.acs-page-contact .acs-content .acs-contact-intro > hr.acs-rule {
  margin-inline: 0 auto;
}

/* The small label has its own warm accent on teal. */
.acs-content .acs-cta .acs-cta-copy > .acs-cta-copy-eyebrow {
  color: #ffe2d8;
}

/* These two About pullouts and eight linked service names were originally coral. */
body.acs-page-about .acs-content .acs-about-who-copy > h3.acs-about-who-copy-heading,
body.acs-page-about .acs-content .acs-about-how .acs-about-how-copy > :is(h4,p).acs-about-how-copy-heading,
body.page-id-408.acs-page-services .acs-content h3.acs-service-copy-heading a:not(:hover):not(:focus-visible) {
  color: #934b40;
}

/* Show the button label as entered by the editor. Arrow controls have their own type treatment. */
.acs-content :is(.acs-cta-copy, .acs-service-card, .acs-service-copy) > .acs-actions > .acs-button > .wp-block-button__link {
  text-transform: none;
}
