/* Handy Bros homepage: one uninterrupted artwork, no section colour panels. */
main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101113 url('/assets/coastal-craftsman-home-background.webp') center top / 100% 100% no-repeat;
}
/* ONE gentle, continuous black tint, rather than seven competing colour overlays. */
main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .39);
  z-index: 0;
  pointer-events: none;
}
main > section { position: relative; z-index: 1; isolation: auto; }
main .hero,
main .home-flow-intro,
main .home-right-help,
main .home-banter,
main .home-projects,
main .home-final-cta,
main .home-social {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Remove the legacy section-wide pseudo overlays and jagged/straight cutouts. */
main .hero::before, main .hero::after,
main .home-flow-intro::before, main .home-flow-intro::after,
main .home-right-help::before, main .home-right-help::after,
main .home-banter::before, main .home-banter::after,
main .home-projects::before, main .home-projects::after,
main .home-final-cta::before, main .home-final-cta::after,
main .home-social::before, main .home-social::after,
main .hero-shade { display: none !important; }
/* Light text with a modest shadow is readable on the black-tinted artwork. */
main .hero, main .home-flow-intro, main .home-right-help,
main .home-banter, main .home-projects, main .home-final-cta,
main .home-social { color: #fff !important; }
main h1, main h2, main h3, main .hero-tag,
main .hero-humour, main .hero-categories span {
  text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.85);
}
main .hero-copy, main .home-projects p:not(.eyebrow),
main .home-final-cta p:not(.eyebrow),
main .home-social .social-heading p:not(.eyebrow),
main .service-summary-note { color: #f5f4f2 !important; text-shadow: 0 2px 7px #000; }
main .home-right-help h2, main .home-right-help h2 span,
main .home-final-cta h2, main .home-final-cta h2 span { color: #fff; }
main .home-projects h2 span, main .home-flow-intro h2 span,
main .home-banter h2 span, main .home-social h2 span { color: #ff6a00; }
/* Specifically stop MORE SOLUTIONS from disappearing on the orange artwork. */
main .home-flow-intro h2 span {
  -webkit-text-stroke: 1.7px #101010;
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 #101010, -2px -2px 0 #101010,
               -2px 2px 0 #101010, 2px -2px 0 #101010,
               0 4px 12px rgba(0,0,0,.8);
}
main .home-right-help .eyebrow, main .home-projects .eyebrow,
main .home-final-cta .eyebrow { color: #ff9b50; }
/* Buttons remain legible over any part of the artwork. */
main .home-right-help .btn, main .home-final-cta .btn,
main .home-projects .btn-outline { background: #111 !important; color: #fff !important; border: 1px solid rgba(255,255,255,.5); }
main .home-right-help .btn:hover, main .home-final-cta .btn:hover,
main .home-projects .btn-outline:hover { background: #333 !important; }
main .home-banter .banter-grid p { background: rgba(0,0,0,.18) !important; }
main .home-social .social-card { background: rgba(12,12,14,.75); }
/* Section spacing is intentional, without visual panel edges. */
main .hero-content { padding-top: 40px; padding-bottom: 58px; }
main .hero-categories { margin-top: 22px; max-width: 920px; }
main .home-flow-intro { padding: 55px 0 65px; }
main .home-right-help { padding: 66px 0 72px; }
main .home-banter { padding: 68px 0 72px; }
main .home-projects { padding: 70px 0 75px; }
main .home-final-cta { padding: 65px 0; }
main .home-social { padding: 70px 0 80px; }
@media (max-width: 680px) {
  main { background-size: 100% 100%; }
  main::before { background: rgba(0,0,0,.43); }
  main .hero-content { padding: 35px 0 48px; }
  main .home-flow-intro { padding: 47px 0 56px; }
  main .home-right-help { padding: 55px 0 60px; }
  main .home-banter { padding: 58px 0 62px; }
  main .home-projects { padding: 58px 0 65px; }
  main .home-final-cta { padding: 55px 0; }
  main .home-social { padding: 58px 0 65px; }
}

/* Final legibility pass: one continuous background; no rectangular overlays. */
main .eyebrow {
  color: #ffd1a8 !important;
  text-shadow: 0 2px 5px rgba(0,0,0,.95), 0 0 13px rgba(0,0,0,.8);
}
main .hero-content p, main .home-flow-intro p,
main .home-right-help p, main .home-banter p,
main .home-projects p, main .home-final-cta p,
main .home-social p {
  text-shadow: 0 2px 5px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.65);
}
main .home-banter .banter-grid p {
  background: rgba(0,0,0,.24) !important;
}
main .home-projects .home-brand img,
main .hero-logo {
  filter: drop-shadow(0 3px 14px rgba(0,0,0,.8));
}
main .home-flow-intro h2 span {
  -webkit-text-stroke: 2px #0c0c0c;
  paint-order: stroke fill;
}

/* FINAL desktop layout: each text group stays inside its own artwork zone. */
@media (min-width: 901px) {
  main { background-size: 100% 100%; }
  main::before { background: rgba(0,0,0,.56); }
  main > section { box-sizing: border-box; }
  main .hero { min-height: 790px; display: flex; align-items: center; }
  main .hero-content { padding: 44px 0 50px; }
  main .hero-logo { width: 265px; max-height: 120px; margin-bottom: 6px; }
  main .hero-content h1 { font-size: clamp(3.5rem, 5.1vw, 5.65rem); line-height: .96; max-width: 820px; margin: 13px 0; }
  main .hero-tag { font-size: 1.55rem; margin-bottom: 12px; }
  main .hero-humour { font-size: 1.12rem; max-width: 570px; }
  main .hero-copy { font-size: 1rem; max-width: 550px; }
  main .hero .actions { margin-top: 16px; }
  main .hero-categories { margin-top: 17px; font-size: .94rem; }
  main .home-flow-intro { min-height: 480px; display: flex; align-items: center; padding: 45px 0; }
  main .home-flow-intro h2 { font-size: clamp(3.4rem,5vw,5.4rem); max-width: 870px; }
  main .home-right-help { min-height: 510px; display: flex; align-items: center; padding: 50px 0; }
  main .home-right-help h2 { font-size: clamp(3.6rem,5.4vw,5.8rem); max-width: 980px; }
  main .home-banter { min-height: 520px; display: flex; align-items: center; padding: 46px 0; }
  main .home-banter h2 { font-size: clamp(3rem,4.4vw,4.8rem); max-width: 1050px; }
  main .banter-grid { margin-top: 18px; }
  main .banter-grid p { padding: 10px 16px; }
  main .home-projects { min-height: 445px; display: flex; align-items: center; padding: 48px 0; }
  main .home-projects h2 { font-size: clamp(3.4rem,4.8vw,5.3rem); }
  main .home-final-cta { min-height: 335px; display: flex; align-items: center; padding: 44px 0; }
  main .home-final-cta .quote-inner h2 { font-size: clamp(3rem,4.5vw,4.9rem); }
  main .home-social { min-height: 505px; display: flex; align-items: center; padding: 48px 0; }
  main .home-social h2 { font-size: clamp(2.8rem,4vw,4.4rem); }
  main .home-social .social-grid { margin-top: 22px; }
}
@media (min-width: 681px) and (max-width: 900px) {
  main::before { background: rgba(0,0,0,.58); }
  main .hero-content h1 { font-size: clamp(3.1rem,6.7vw,4.9rem); }
  main .home-flow-intro h2, main .home-right-help h2 { font-size: clamp(3rem,6.4vw,4.8rem); }
}
@media (max-width: 680px) {
  main::before { background: rgba(0,0,0,.65); }
  main .hero-content h1 { font-size: clamp(2.8rem,10vw,4.4rem); }
  main .hero-logo { max-height: 120px; }
  main .home-flow-intro h2, main .home-right-help h2 { font-size: clamp(2.7rem,9vw,4.4rem); }
  main .home-banter h2, main .home-projects h2 { font-size: clamp(2.6rem,8.3vw,4rem); }
  main .home-final-cta .quote-inner h2 { font-size: clamp(2.5rem,8.3vw,4rem); }
}

/* Approved follow-up: darker seamless backdrop and stricter text-zone alignment. */
main::before { background: rgba(0,0,0,.62); }
@media (min-width: 901px) {
  main::before { background: rgba(0,0,0,.66); }
  /* Keep each block centered in its assigned slice of the single artwork. */
  main > section { display: flex !important; flex-direction: column; justify-content: center; }
  main > section > .wrap { width: min(100% - 36px, 1014px); margin-left: auto; margin-right: auto; }
  main .hero { min-height: 790px; }
  main .home-flow-intro { min-height: 480px; }
  main .home-right-help { min-height: 510px; }
  main .home-banter { min-height: 520px; }
  main .home-projects { min-height: 445px; }
  main .home-final-cta { min-height: 335px; }
  main .home-social { min-height: 505px; }
  main .home-flow-intro h2 { font-size: clamp(3rem,4.4vw,4.8rem); max-width: 850px; line-height: 1.04; }
  main .home-right-help h2 { font-size: clamp(3rem,4.65vw,5rem); max-width: 900px; line-height: 1.04; }
  main .home-flow-intro .wrap, main .home-right-help .wrap { align-self: center; }
  main .home-flow-intro .wrap > :first-child, main .home-right-help .wrap > :first-child { margin-top: 0; }
}
@media (min-width: 681px) and (max-width: 900px) { main::before { background: rgba(0,0,0,.67); } }
@media (max-width: 680px) { main::before { background: rgba(0,0,0,.70); } }

/* FINAL POLISH 22 OCT: paint-only adjustments. No dimensions or positioning changed. */
/* Readability: localized soft dark halo behind white copy, preserving artwork. */
main .hero-content p,
main .home-flow-intro p,
main .home-right-help p,
main .home-banter p,
main .home-projects p,
main .home-final-cta p,
main .home-social p,
main .banter-grid p {
  text-shadow: 0 2px 4px rgba(0,0,0,.98), 0 0 11px rgba(0,0,0,.86), 0 0 22px rgba(0,0,0,.5) !important;
}
main .hero-content h1, main .home-flow-intro h2,
main .home-right-help h2, main .home-banter h2,
main .home-projects h2, main .home-final-cta h2,
main .home-social h2 {
  text-shadow: 0 3px 4px rgba(0,0,0,.96), 0 0 13px rgba(0,0,0,.65) !important;
}
/* Feather the straight seam just before ONE TEAM, without moving either section. */
main .hero::after {
  display: block !important;
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(9,11,12,.16) 45%, rgba(9,11,12,.28) 76%, rgba(9,11,12,.12));
  clip-path: none;
  z-index: 3;
  pointer-events: none;
}

/* FINAL UNIFORM SHADING: carry the soft dark treatment across the entire
   continuous homepage artwork, rather than concentrating it at the hero seam.
   Paint only: no spacing, positioning, typography, or image scaling changes. */
@media (min-width: 901px) {
  main::before { background: rgba(0,0,0,.74) !important; }
}
/* Remove the localized seam overlay now that the whole artwork is shaded. */
main .hero::after { display: none !important; }
