/* W09.12.8 — Premium Adaptive Section Rhythm & Whitespace Hotfix
 * Goal: restore a tighter premium vertical rhythm without flattening visual hierarchy.
 * Loaded after premium-global-polish.css so this file is the final authority for section spacing.
 */
:root{
  --wcg-rhythm-standard:52px;
  --wcg-rhythm-compact:40px;
  --wcg-rhythm-signature:64px;
  --wcg-rhythm-mobile:40px;
  --wcg-rhythm-mobile-compact:32px;
  --wcg-rhythm-mobile-signature:48px;
}

/* Stop 3.28.7's blanket 84–112px padding from creating 168–224px content gaps. */
.wcg-v2 main > :where(
  .wcg-solution-finder,
  .wcg-advisor,
  .wcg-solutions,
  .wcg-business-showcase,
  .wcg-featured-projects,
  .wcg-case-results,
  .wcg-delivery-process,
  .wcg-insights,
  .wcg-conversion
){
  padding-top:var(--wcg-rhythm-standard)!important;
  padding-bottom:var(--wcg-rhythm-standard)!important;
}

/* Dense proof / transition sections should read as one continuous story. */
.wcg-v2 main > :where(
  .wcg-trust,
  .wcg-metrics,
  .wcg-proof-strip,
  .wcg-preview-next
){
  padding-top:var(--wcg-rhythm-compact)!important;
  padding-bottom:var(--wcg-rhythm-compact)!important;
}

/* Signature sections keep a little more breathing room, but no oversized voids. */
.wcg-v2 main > :where(
  .wcg-ai-workflow,
  .wcg-product-lab
){
  padding-top:var(--wcg-rhythm-signature)!important;
  padding-bottom:var(--wcg-rhythm-signature)!important;
}

/* Generic v2 sections that are not explicitly mapped above. */
.wcg-v2 .wcg-section{
  padding-block:var(--wcg-rhythm-standard)!important;
}
.wcg-v2 .wcg-section--compact{
  padding-block:var(--wcg-rhythm-compact)!important;
}

/* Avoid accidental extra white bands created by margins on first/last children. */
.wcg-v2 main > section > :where(.wcg-container,.wcg-container--wide) > :first-child{margin-top:0}
.wcg-v2 main > section > :where(.wcg-container,.wcg-container--wide) > :last-child{margin-bottom:0}

/* Sections that visually belong together get a slightly tighter hand-off. */
.wcg-v2 main > .wcg-solution-finder + .wcg-advisor,
.wcg-v2 main > .wcg-featured-projects + .wcg-case-results,
.wcg-v2 main > .wcg-insights + .wcg-conversion{
  padding-top:var(--wcg-rhythm-compact)!important;
}

/* Keep hero/footer rhythm independent from content sections. */
.wcg-v2 .wcg-ai-hero,
.wcg-v2 .wcg-site-shell__footer,
.wcg-v2 .wcg-footer{--wcg-rhythm-standard:52px}

@media(max-width:1023px){
  .wcg-v2 main > :where(
    .wcg-solution-finder,
    .wcg-advisor,
    .wcg-solutions,
    .wcg-business-showcase,
    .wcg-featured-projects,
    .wcg-case-results,
    .wcg-delivery-process,
    .wcg-insights,
    .wcg-conversion
  ){
    padding-top:var(--wcg-rhythm-mobile)!important;
    padding-bottom:var(--wcg-rhythm-mobile)!important;
  }
  .wcg-v2 main > :where(.wcg-ai-workflow,.wcg-product-lab){
    padding-top:var(--wcg-rhythm-mobile-signature)!important;
    padding-bottom:var(--wcg-rhythm-mobile-signature)!important;
  }
  .wcg-v2 .wcg-section{padding-block:var(--wcg-rhythm-mobile)!important}
  .wcg-v2 .wcg-section--compact{padding-block:var(--wcg-rhythm-mobile-compact)!important}
  .wcg-v2 main > .wcg-solution-finder + .wcg-advisor,
  .wcg-v2 main > .wcg-featured-projects + .wcg-case-results,
  .wcg-v2 main > .wcg-insights + .wcg-conversion{
    padding-top:var(--wcg-rhythm-mobile-compact)!important;
  }
}

@media(max-width:430px){
  :root{
    --wcg-rhythm-mobile:36px;
    --wcg-rhythm-mobile-compact:28px;
    --wcg-rhythm-mobile-signature:44px;
  }
}
