/* Page frame (v12.17): page headers, section rhythm, CTA bands, footer and home layout fixes. Linked after public-redesign.css on every public page. */

/* Inner page header (Darrel, v12.17: "top and bottom sections are way too big"): one compact band, eyebrow + headline +
   one-line lede, about a third of the old padding, and a headline that stops growing at desktop widths. */
.public-site .page-hero{padding:clamp(20px,2.6vw,34px) 0 clamp(18px,2.4vw,30px)}
.public-site .page-hero :is(.mc-kicker,.eyebrow){margin:0 0 6px}
.public-site .page-hero .page-title{max-width:30ch;margin:0 0 8px;font-size:clamp(1.75rem,3.1vw,2.6rem);line-height:1.08}
.public-site .page-hero p:not(.mc-kicker,.eyebrow){max-width:72ch;margin:0;font-size:1rem;line-height:1.5}
.public-site .page-hero p:not(.mc-kicker,.eyebrow)+*{margin-top:10px}
.public-site .page-hero .mc-cta-group{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:14px}
.public-site .page-hero .mc-cta-group .mc-estimate{min-height:40px;padding:8px 18px}
.public-site .section{padding-block:clamp(36px,5vw,64px)}
.public-site .page-hero+.section{padding-top:clamp(22px,3vw,40px)}

/* Closing CTA band on inner pages ("Not on the list?", "Have a similar job?", "Ready to get started?"): about half the
   height, a smaller headline, and the button beside it. */
.public-site main>.section:last-child:has(.mc-cta-group){padding-block:clamp(22px,3vw,36px)}
.public-site main>.section:last-child:has(.mc-cta-group) :is(.mc-intro,.cta-band){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:10px 40px;align-items:center;padding:0}
.public-site main>.section:last-child:has(.mc-cta-group) h2{margin:0;font-size:clamp(1.35rem,2.3vw,1.9rem);line-height:1.15}
.public-site main>.section:last-child:has(.mc-cta-group) .mc-kicker{margin:0 0 4px}
.public-site main>.section:last-child:has(.mc-cta-group) .mc-intro-copy{padding:0}
.public-site main>.section:last-child:has(.mc-cta-group) .mc-intro-copy>p{margin:0 0 10px;font-size:.95rem}
.public-site main>.section:last-child:has(.mc-cta-group) .mc-cta-group{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px}
.public-site main>.section:last-child:has(.mc-cta-group) .mc-estimate{min-height:40px;padding:8px 18px}
@media(max-width:760px){.public-site main>.section:last-child:has(.mc-cta-group) :is(.mc-intro,.cta-band){grid-template-columns:1fr}}

/* Footer: tighter on tablet and desktop (the 98px bottom room is for the phone's quick-contact bar only). */
@media(min-width:761px){
  .public-site .site-footer{padding:clamp(24px,3vw,36px) 0 20px}
  .public-site .site-footer .footer-grid{gap:20px 36px}
  .public-site .site-footer .footer-logo{width:120px;padding:6px}
  .public-site .site-footer .footer-grid p{margin:8px 0 0}
  .public-site .site-footer .footer-grid h3{margin:0 0 6px}
  .public-site .footer-socials{margin-top:10px}
  .public-site .footer-partner{margin-top:10px}
  .public-site .site-footer .footer-bottom{margin-top:18px;padding-top:12px}
}

/* Home hero, tablet and desktop: copy and photo share the width evenly, so the headline no longer runs four lines at
   1600px beside a small photo; 900-1040px keeps the two columns instead of a full-bleed photo with a tall empty band. */
@media(min-width:900px){
  .mc-hero-grid,.mc-hero-grid:has(.mc-hero-still){grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0}
  .mc-hero .mc-hero-copy{padding-block:clamp(40px,5vw,72px)}
  .mc-hero h1{font-size:clamp(2.8rem,4.6vw,4.6rem)}
  .mc-hero-media.mc-hero-still{order:0;padding:clamp(20px,3vw,48px) max(20px,calc((100vw - var(--content))/2)) clamp(20px,3vw,48px) 0}
  .mc-hero-media.mc-hero-still>img{border-radius:var(--mc-r-card,14px);box-shadow:0 24px 60px rgba(0,0,0,.35)}
}
@media(min-width:761px) and (max-width:899px){.mc-hero-media.mc-hero-still>img{max-height:420px}}

/* Labelled Blog button beside the social icons: wider, outlined in blue, its label shown at every width. */
.mc-quick .mc-social-links a.blog{padding-inline:16px 18px;border-color:var(--mc-blue);font-weight:750}

/* Capabilities ("Big or small, we do it all"): one swipe row at every width with bigger, taller photos: about 1.6 cards
   in view on a phone, 3 on a tablet, 4.2 on desktop (it was a 6-column grid with a lone 13th tile). */
.mc-chips{display:flex;flex-wrap:nowrap;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding:2px 0 8px}
.mc-chips .mc-chip{flex:0 0 calc((100% - 36px)/4.2);scroll-snap-align:start}
.mc-chips .mc-chip-img{aspect-ratio:1/1}
.mc-chip-label{font-size:.98rem}
@media(max-width:1023px){.mc-chips .mc-chip{flex-basis:calc((100% - 24px)/3)}}
@media(max-width:760px){.mc-chips{gap:10px;scrollbar-width:none}.mc-chips .mc-chip{flex-basis:calc((100% - 10px)/1.6)}.mc-chips .mc-chip-img{aspect-ratio:4/5}}

/* Phone footer (Darrel, Nov 5: "the footer is bigger than necessary"): smaller social circles, the four page links on
   one wrapping line, no blank band above the quick-contact bar (body already pads for it), and a slimmer bar. */
@media(max-width:760px){
  body.public-site{padding-bottom:calc(52px + env(safe-area-inset-bottom,0px))}
  .public-site .site-footer{padding:12px 0 14px}
  .public-site .site-footer .footer-grid{gap:6px}
  .public-site .footer-socials .footer-social{width:32px;height:32px}
  .public-site .footer-socials .footer-social svg{width:16px;height:16px}
  .public-site .site-footer .footer-links{display:flex;flex-wrap:wrap;gap:0 18px}
  .public-site .site-footer .footer-links a{min-height:30px;font-size:.84rem}
  .public-site .footer-partner{margin-top:4px}
  .public-site .site-footer .footer-bottom{margin-top:2px;padding-top:6px}
  .mobile-actions{padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px))}
  .mobile-actions a,.mobile-actions .mobile-estimate{min-height:42px;font-size:.78rem;letter-spacing:.04em}
}
