/* Marco Gate R2 fixes. Loads after css/marco-r1.css and css/bandit-r1.css. */

/* HARD 1: body text at 18px+ where page-level rules won */
#site-footer .footer-desc, #site-footer .footer-links li, .page-hero p, .page-hero-inner p, .section-lead, .story-content p, .process-card p, .type-body p, .feature-text p, .check-list li, .proj-body p, .featured-body p, .form-panel .sub, .form-note, .cta-band p, .home-contact p, #site-footer li{font-size:max(18px,var(--text))!important;line-height:1.6}

/* HARD 3: Projects band is light paper with a teal rule (teal as jewelry, not wall paint) */
.sec-teal{background:#f4f8fa!important;position:relative;color:#1e293b}
.sec-teal::before{content:"";display:block;height:6px;background:#1F7A74;position:absolute;inset:0 0 auto 0}
.sec-color.sec-teal h2, .sec-color.sec-teal h3, .sec-color.sec-teal .eyebrow, .sec-color.sec-teal .sec-intro h2{color:#1e293b!important}
.sec-color.sec-teal .eyebrow{color:#1F7A74!important}
.sec-color.sec-teal .sec-intro p{color:#475569!important}
.sec-teal .filter-tab{background:#fff!important;color:#1F7A74!important;border:1px solid #1F7A74!important}
.sec-teal .filter-tab.active, .sec-teal .filter-tab:hover{background:#1F7A74!important;color:#fff!important;border-color:#1F7A74!important}
.sec-color.sec-teal .featured{border:1px solid #dde4ea;box-shadow:none}

/* MED 5: centre the type, project and meta cards */
.type-card, .proj-card, .proj-body, .featured-body{text-align:center}
.proj-body .meta-row, .featured-body .meta-row, .meta-row{justify-content:center}
.featured-label{justify-content:center}

/* MED 6: rooms, not card stacks. Products, category and project grids become edge-to-edge
   image tiles with an rgba(0,0,0,.6) title overlay. Products stays 3 columns with category labels. */
html, body{overflow-x:clip}
.cat-grid, .prod-grid, .proj-grid{
  width:100vw; max-width:none!important; margin-left:calc(50% - 50vw)!important; margin-right:calc(50% - 50vw)!important;
  gap:0!important;
}
.cat-card, .prod-card, .proj-card{border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff}
.cat-card:hover, .prod-card:hover, .proj-card:hover{transform:none!important}
.tile-media{position:relative;margin:0;width:100%;overflow:hidden}
.tile-media img, .tile-media .prod-img{display:block;width:100%;height:auto!important;aspect-ratio:4/3;object-fit:cover}
.tile-media img{transition:transform .5s ease}
.prod-card:hover .tile-media img, .proj-card:hover .tile-media img, .cat-card:hover .cat-img{transform:scale(1.03)}
.tile-cap{position:absolute;left:0;right:0;bottom:0;margin:0;background:rgba(0,0,0,.6);color:#fff;padding:18px 22px;text-align:center}
.tile-cap h2,.tile-cap h3{color:#fff!important;margin:0!important;min-height:0!important;max-height:none!important;line-height:1.3;display:block!important;-webkit-line-clamp:unset!important}
.sec-color .tile-cap h2,.sec-color .tile-cap h3,.sec-color.sec-teal .tile-cap h2,.sec-color.sec-teal .tile-cap h3,.tile-cap .tile-kicker,.sec-color.sec-teal .tile-cap .tile-kicker{color:#fff!important}
.tile-kicker{display:block;font-size:.875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#fff;margin-bottom:4px}
/* products: the whole tile is the image, overlay carries label + title + line */
.cat-card{position:relative;display:block!important;overflow:hidden}
.cat-card .cat-img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .5s ease}
.cat-card .cat-body.tile-cap{position:absolute;padding:18px 22px;display:block;height:auto;flex:none}
.cat-card .cat-body.tile-cap .cat-label{color:#fff!important;margin:0 0 4px!important;font-size:.875rem!important}
.cat-card .cat-body.tile-cap p{color:#fff!important;margin:4px 0 0!important}
/* category product cards: copy sits under the image in the room */
.prod-card .prod-body{padding:1.5rem 1.75rem 1.75rem;min-height:0}
.prod-card .tile-media .prod-img{background:#e2e8f0}
/* columns: tiles stay at or under 1.5x of their source width (Mobile QA r1 H4), so the
   column count steps up with the viewport instead of stretching photos. Never upscale. */
.tile-media img, .tile-media .prod-img{aspect-ratio:2/1}
.cat-card .cat-img{aspect-ratio:3/2;height:auto!important}
.cat-grid > .cat-card, .prod-grid > .prod-card{flex:0 0 100%!important;max-width:100%!important}
@media (min-width:480px){ .cat-grid > .cat-card, .prod-grid > .prod-card{flex-basis:50%!important;max-width:50%!important} }
@media (min-width:900px){ .cat-grid > .cat-card, .prod-grid > .prod-card{flex-basis:33.333%!important;max-width:33.333%!important} }
@media (min-width:1800px){ .prod-grid > .prod-card{flex-basis:25%!important;max-width:25%!important} }
@media (min-width:2200px){ .prod-grid > .prod-card{flex-basis:20%!important;max-width:20%!important} .cat-grid > .cat-card{flex-basis:25%!important;max-width:25%!important} }
/* projects match products at 3 columns on desktop (Don). Project photos are 640px wide, so tiles
   are narrowed wherever the layout allows; 1280-2199px is a client photo hold (see PR). */
.proj-grid{display:grid!important;grid-template-columns:1fr!important}
.proj-card .tile-media img{aspect-ratio:16/9}
@media (min-width:427px){ .proj-grid{grid-template-columns:repeat(2,1fr)!important} }
@media (min-width:851px){ .proj-grid{grid-template-columns:repeat(3,1fr)!important} }
@media (min-width:1800px){ .proj-grid{grid-template-columns:repeat(4,1fr)!important} }
@media (min-width:2200px){ .proj-grid{grid-template-columns:repeat(6,1fr)!important} }
@media (max-width:600px){ .tile-cap{padding:14px 18px} }

/* SOFT 7: phone hero scrim */
@media (max-width:768px){
  .hero::before{background:linear-gradient(180deg,rgba(8,16,24,.86) 0%,rgba(8,16,24,.78) 100%)!important}
}

/* SOFT 8: hero pills and badge scale up on very wide screens */
.hero .trust-pill, .hero-badge{font-size:clamp(.875rem,.7vw,1.1rem)!important}

/* ===== Marco Gate R3 ===== */
/* Product cards are image, title, and quote button. Description copy stays off the card. */
.prod-grid .prod-body p, .prod-grid .prod-body p:first-of-type{display:none!important;min-height:0!important}
/* R3-4: products 6-column grid so the last row of 2 fills the width (no orphan gaps) */
@media (min-width:769px){
  .cat-grid{display:grid!important;grid-template-columns:repeat(6,1fr)!important}
  .cat-grid > .cat-card{grid-column:span 2;flex:none!important;max-width:none!important}
  .cat-grid > .cat-card:nth-child(7), .cat-grid > .cat-card:nth-child(8){grid-column:span 3}
}
/* R3-5: roomier tile captions */
.tile-cap, .cat-card .cat-body.tile-cap{padding:20px 24px!important}
.tile-cap h2,.tile-cap h3{font-size:clamp(1.25rem,1.5vw,1.75rem)!important;line-height:1.15!important}
.tile-kicker, .cat-label{letter-spacing:.14em!important}
/* R3-5: category pages - no empty band above an untitled first grid */
.section:has(> .container > .group:first-child > .prod-grid:first-child){padding-top:0!important}
.section > .container > .group:first-child:has(> .prod-grid:first-child), .section > .container > .group:first-child > .prod-grid:first-child{margin-top:0!important}
/* R3-6: hamburger shows an X while the menu is open */
.hamburger .ap-ico-xmark{display:none}
.hamburger[aria-expanded="true"] .ap-ico-bars{display:none}
.hamburger[aria-expanded="true"] .ap-ico-xmark{display:inline-block}

/* Mike 10/14: centre the home services cards (Mobile QA r1 L5) */
.svc-row-body{text-align:center}
.svc-row-body .svc-icon{margin-left:auto!important;margin-right:auto!important}
.svc-row-body p{margin-left:auto;margin-right:auto}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.btn-outline{position:relative}

/* Mobile QA r2 L2: desktop nav "Home" 45x48 -> 51x48 (r2 tested 51x48 with 16px nav text; L1 left at 14px, so min-width is set to 51 directly) */
.nav-links > li > a{min-width:51px;justify-content:center}

/* Phone type floor: content labels stay at 16px. Nav size is unchanged. */
@media (max-width:1023.98px){
  .tb-label,.hero .trust-pill,.hero-badge,.eyebrow,.review-org,
  .stat-label,.tl-year,.cert-title,.process-num,
  .quick-link,.info-card-title,.hours-label,
  .footer-head,.crumb,.crumb a,.tile-kicker,.cat-label,.gallery-cap,
  .step-title,.mp-title,.type-cat,.featured-label,.meta-item,.proj-cat,
  .svc-visual-badge span,#reviews .tst-src{
    font-size:1rem!important;
  }
}

/* Focus ring on dark surfaces (hero, CTA, footer). */
.page-hero a:focus-visible,.page-hero button:focus-visible,
#hero a:focus-visible,.hero a:focus-visible,.hero button:focus-visible,
#cta-band a:focus-visible,#cta-band button:focus-visible,
.cta-band a:focus-visible,.cta-band button:focus-visible,
#site-footer a:focus-visible,#site-footer button:focus-visible,
.stats-bar.is-dark a:focus-visible,#process a:focus-visible,
.quick-bar a:focus-visible{
  outline:3px solid #fff!important;
  outline-offset:3px!important;
}

/* Honeypot: present for bots, hidden from people and assistive tech. */
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;}

/* Kid Builder heading on the playground page. The whole label is the tap target. */
a.kb-entry{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:8px 12px;
  color:#1F7A74!important;
  font-size:1.35rem!important;
  font-weight:800;
  line-height:1.3;
  text-decoration:underline;
  text-underline-offset:4px;
}
a.kb-entry:focus-visible{outline:3px solid #1F7A74;outline-offset:3px;}

/* Mobile QA PR15: contact quick bar - the 16px floor made the email button 294px in a 256px column at 320. */
@media (max-width:639.98px){
  .quick-bar{padding-left:1rem;padding-right:1rem;}
  .quick-links{width:100%;justify-content:center;}
  .quick-link{max-width:100%;padding:10px 14px;overflow-wrap:anywhere;}
}

/* Mike 2026-10-22: category product grids are a contained 2-column grid (1 col on phones) */
.prod-grid{display:grid!important;grid-template-columns:1fr!important;gap:2rem!important;max-width:1180px;margin-left:auto;margin-right:auto}
@media (min-width:640px){.prod-grid{grid-template-columns:repeat(2,1fr)!important;gap:2.5rem!important}}
.prod-grid > .prod-card,.prod-grid > *{flex:none!important;max-width:none!important;width:auto!important}
.prod-grid .prod-img{height:auto!important;aspect-ratio:3/2}
@media (min-width:1024px){.prod-grid{grid-template-columns:repeat(3,1fr)!important}}

/* Mike 2026-10-22: more air on category pages */
.prod-grid{gap:2.5rem!important;margin-top:2.5rem!important}
@media (min-width:1024px){.prod-grid{gap:3rem!important}}
.prod-grid .prod-body{padding:1.75rem 1.75rem 2rem!important;min-height:0!important}
.prod-grid .prod-body h3{margin-bottom:.75rem!important}
.prod-grid .prod-body p:first-of-type{margin-bottom:1.25rem!important}
.group{margin-top:5rem!important}
.group:first-child{margin-top:0!important}
.group h2{margin-bottom:1rem!important}
.group-intro{max-width:720px!important;line-height:1.75!important;margin-top:1rem!important}
.group-intro p+p{margin-top:1rem!important}

/* Sourced category supporting copy. Does not change the product grid.
   The empty band above and below this block was .section padding
   (clamp(80px, 9vw, 200px)) on this section and the one before it,
   so the two paddings stacked — up to ~400px on a wide screen.
   One section's worth of space (80px desktop, 40px phone) replaces that.
   The reading column is a centered 720px measure on a full-width paper band. */
.section:has(> .support-copy){
  background:#f4f8fa;
  padding:80px 0;
}
.section:has(+ .section > .support-copy){padding-bottom:0;}
/* Little Tikes band is the same paper and already pads its own bottom. */
.lt-band + .section:has(> .support-copy){padding-top:0;}
@media (max-width:639px){
  .section:has(> .support-copy){padding:40px 0;}
  .lt-band + .section:has(> .support-copy){padding-top:0;}
}
.container.support-copy{
  width:min(720px, calc(100% - 2.5rem));
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
  color:#1e293b;
  text-align:left;
}
.support-copy h2,
.support-copy h3{
  font-weight:800;
  line-height:1.3;
  color:#1e293b;
  margin:40px 0 12px;
}
.support-copy h2{font-size:1.5rem;}
.support-copy h3{font-size:1.25rem;}
/* First heading only. :first-of-type on h3 would also clear the first
   subheading, which sits under a paragraph and needs the 40px gap. */
.support-copy > h2:first-of-type{margin-top:0;}
.support-copy p,
.support-copy li{
  font-size:1.125rem;
  line-height:1.65;
  color:#334155;
  margin:0;
}
.support-copy p + p{margin-top:16px;}
.support-copy ol,
.support-copy ul{
  margin:16px 0 0;
  padding-left:1.75rem;
}
.support-copy h2 + ol,
.support-copy h2 + ul,
.support-copy h3 + ol,
.support-copy h3 + ul{margin-top:0;}
.support-copy ol + p,
.support-copy ul + p{margin-top:16px;}
.support-copy li{padding-left:.25rem;}
.support-copy li + li{margin-top:10px;}

/* Little Tikes Commercial manufacturer photos. Full-width band, contained grid.
   Category pages and products.html both load this sheet. */
.lt-band{
  background:#f4f8fa;
  width:100%;
  padding:40px 0;
  text-align:center;
}
@media (min-width:640px){
  .lt-band{padding:4.5rem 0;}
}
.lt-band .lt-wrap{
  width:min(100% - 32px, 1640px);
  margin:0 auto;
  text-align:center;
}
@media (min-width:640px){
  .lt-band .lt-wrap{width:min(82%, 1640px);}
}
.lt-band h2{
  margin:0 0 .5rem;
  font-size:clamp(1.6rem,4vw,2.4rem);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.2;
  color:#1e293b;
  text-align:center;
}
.lt-band h3{
  margin:1.75rem 0 .85rem;
  font-size:clamp(1.15rem,2vw,1.45rem);
  font-weight:800;
  line-height:1.3;
  color:#1F7A74;
  text-align:center;
}
.lt-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin:0;
}
@media (min-width:1024px){
  .lt-grid{grid-template-columns:repeat(4, minmax(0, 1fr)); gap:1.5rem;}
}
.lt-grid figure{
  margin:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(15, 23, 42, .08);
  background:#fff;
  box-shadow:0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .06);
}
.lt-grid img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  aspect-ratio:3 / 2;
  object-fit:cover;
}
