/* ==========================================================================
   All Play Inc. - MARCO Gate R1 fixes (2026-10-14)
   Loaded last on every public page so it wins over the per-page <style>.
   Item numbers match GATE-R1.md.
   ========================================================================== */

/* ---- #4 Contrast (AA). Text-safe teal and coral on light surfaces. ---- */
:root{
  --text:1.25rem;                 /* #6 body size token */
  --teal-text:#1F7A74;            /* teal for text on light (5.3:1 with white) */
  --teal-on-dark:#5FD3CA;         /* teal for text on dark heroes and bands */
  --teal-bright:#39b8af;          /* original brand teal: decorative fills only */
  --teal:#1F7A74;                 /* every var(--teal) text, icon, button on light now passes AA */
  --teal-dark:#17605B;
  --red:#D12F45;                  /* coral CTA (4.9:1 with white) */
  --red-dark:#B02238;
}
/* Dark surfaces: teal text uses the light variant */
#hero, .hero, .page-hero, #cta-band, #site-footer, .stats-bar.is-dark, #process{ --teal:var(--teal-on-dark); }
.eyebrow, .nav-links a.active, .nav-links a:hover, .badge, .review-author{ color:var(--teal); }
.nav-links a.active, .nav-links a:hover, .nav-item > a:hover{ color:var(--teal-text)!important; }
h1 em{ color:var(--teal); }
.page-hero h1 em, #hero h1 em, .hero h1 em{ color:var(--teal-on-dark); }

/* Teal buttons */
.btn-teal, .btn-outline:hover, .prod-link:hover{ background:#1F7A74; color:#fff; border-color:#1F7A74; }
.btn-teal:hover{ background:#17605B; border-color:#17605B; }
.btn-outline{ color:var(--teal); border-color:var(--teal); }
/* Coral CTAs: nav, Send My Request, hero quote */
.nav-cta, .btn-primary, .form-submit{ background:#D12F45!important; border-color:#D12F45!important; color:#fff!important; }
.nav-cta:hover, .btn-primary:hover, .form-submit:hover{ background:#B02238!important; border-color:#B02238!important; }
/* Projects filter buttons */
.filter-tab{ color:#1F7A74; border:1px solid #1F7A74; background:#fff; }
.filter-tab.active, .filter-tab:hover{ background:#1F7A74; color:#fff; border-color:#1F7A74; }
/* Hero badge on the #3bb5e8 sky */
.hero-badge{ background:rgba(0,0,0,.35)!important; color:#fff!important; border-color:rgba(255,255,255,.25)!important; }
.hero-badge::before{ background:#5FD3CA!important; }
/* Muted grey text that fell below AA */
.footer-desc, .footer-links a, .footer-bar{ color:#b6c2d1; }

/* ---- #3 Reduced motion ---- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .reveal{opacity:1!important;transform:none!important}
}

/* ---- #6 Body text 18px+ ---- */
body,p,.hero-sub,.svc-desc,.card p,.review-text,.footer-desc,.cat-card p{font-size:max(18px,var(--text));line-height:1.6}
p{margin:20px 0}
.stat-label,.review-org,.eyebrow{font-size:.875rem}
.prod-body p, .step-desc, .svc-content p, .svc-bullets li, .sec-intro p, .info-line, .team-card p{ font-size:max(18px,var(--text)); line-height:1.6; }

/* ---- #7 Tap targets ---- */
.footer a,.footer-links a{display:inline-flex!important;align-items:center;min-height:48px}
.footer-links{ gap:0!important; }
.footer-bar a{ display:inline-flex; align-items:center; min-height:48px; }
.social-btn{ width:48px!important; height:48px!important; }

/* ---- #5 Home hero is a Moment ---- */
#hero{min-height:100svh;display:flex;align-items:center;padding-left:0!important;padding-right:0!important}
.hero h1{font-size:clamp(2.75rem,5.2vw,6.5rem);line-height:1.05}
.hero-sub{font-size:clamp(1.25rem,1.3vw,1.6rem);max-width:38ch}
.hero .container, #hero .container{width:82%;max-width:1640px}
.hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(8,16,24,.80) 0%,rgba(8,16,24,.74) 46%,rgba(8,16,24,.82) 100%)}
.hero .hero-overlay{ display:none; }
.hero .hero-inner{ width:100%; max-width:980px; min-width:0; margin-inline:auto; text-align:center; }
.hero .hero-ctas,.hero .hero-trust{ justify-content:center; }
.hero .hero-sub{ margin-inline:auto; color:#fff; }
.hero .hero-ctas a{ padding:18px 30px; min-height:56px; }
@media (max-width:768px){
  .hero::before{ background:linear-gradient(180deg,rgba(8,16,24,.84) 0%,rgba(8,16,24,.78) 100%); }
  .hero .hero-inner{ width:100%; max-width:100%; }
}

/* ---- #8 Rooms, not card stacks ---- */
.section{padding:clamp(80px,9vw,200px) 0}
@media (max-width:1024px){ .section{padding:80px 0} }
@media (max-width:600px){ .section{padding:40px 0} }
.container{width:82%;max-width:1640px}
.nav-inner, .footer-grid, .footer-bar, .trust-bar-inner, .stats-inner{ width:82%!important; max-width:1640px!important; }
@media (max-width:600px){ .nav-inner{ width:90%!important; } }
#site-nav{ padding-left:0!important; padding-right:0!important; }
#site-footer, #cta-band, #trust-bar, .stats-bar, .cta-band{ padding-left:0!important; padding-right:0!important; }
/* One treatment per card: 1px border, no shadow */
.svc-card, .ind-card, .cat-card, .prod-card, .info-card, .team-card, .review-card, .rep-card, .cert-card,
.svc-card:hover, .ind-card:hover, .cat-card:hover, .prod-card:hover, .team-card:hover{ box-shadow:none!important; }

/* Home: Services as an alternating image/text split */
.svc-split{ display:flex; flex-direction:column; gap:clamp(48px,6vw,120px); margin-top:clamp(40px,4vw,80px); }
.svc-row{ display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(32px,5vw,96px); align-items:center; }
.svc-row:nth-child(even) .svc-row-media{ order:2; }
.svc-row-media{ margin:0; overflow:hidden; border-radius:6px; }
.svc-row-media img{ display:block; width:100%; aspect-ratio:3/2; object-fit:cover; }
.svc-row-body .svc-icon{ margin:0 0 1rem; width:56px; height:56px; font-size:1.4rem; color:#1F7A74; background:rgba(31,122,116,.08); border:1px solid rgba(31,122,116,.25); border-radius:8px; display:flex; align-items:center; justify-content:center; }
.svc-row-body h3{ font-size:clamp(1.6rem,2.4vw,2.6rem); font-weight:800; letter-spacing:-.02em; line-height:1.1; color:#1e293b; margin:0; }
.svc-row-body p{ color:#475569; max-width:46ch; }
@media (max-width:768px){
  .svc-row{ grid-template-columns:1fr; gap:20px; }
  .svc-row:nth-child(even) .svc-row-media{ order:0; }
}

/* Home: Process as a full-bleed dark band */
#process{ background:#0f2430!important; color:#fff; }
#process .sec-intro h2, #process .step-title{ color:#fff; }
#process .sec-intro p, #process .step-desc{ color:rgba(255,255,255,.82); }
#process .step-num{ background:transparent; border-color:#5FD3CA; color:#5FD3CA; box-shadow:none; }
#process .process-steps::before{ background:linear-gradient(to right,#5FD3CA,rgba(95,211,202,.2)); }

/* Home: Communities as an open band (no card stack) */
#industries{ background:#fff; }
#industries .ind-grid{ gap:0; border-top:1px solid var(--border); border-left:1px solid var(--border); }
#industries .ind-card{ border:0; border-right:1px solid var(--border); border-bottom:1px solid var(--border); border-radius:0; background:transparent; padding:clamp(28px,3vw,56px) 1.5rem; }
#industries .ind-card:hover{ transform:none; background:rgba(31,122,116,.05); }
#industries .ind-icon{ color:#1F7A74; }
#industries .ind-title{ font-size:1.15rem; }

/* Home work photos: one picture each, caption under the photo, no dark band. */
#gallery{ padding-bottom:0!important; }
#gallery .gallery-grid{ gap:16px; margin-top:clamp(40px,4vw,72px); grid-template-columns:repeat(3,1fr); grid-auto-rows:auto; }
#gallery .gallery-item{ display:flex; flex-direction:column; border-radius:14px; overflow:hidden; background:#fff; }
#gallery .gallery-item.tall{ grid-row:auto; }
#gallery .gallery-item img{ width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; object-position:center; opacity:1; filter:none; }
.gallery-cap{ position:static; background:transparent; color:#1e293b; text-align:center; padding:12px 14px 14px; font-weight:700; font-size:1rem; line-height:1.3; }
@media (max-width:768px){
  #gallery .gallery-grid{ grid-template-columns:1fr 1fr; }
  .gallery-cap{ padding:10px 12px; font-size:.875rem; }
}
@media (max-width:480px){
  #gallery .gallery-grid{ grid-template-columns:1fr; }
}

/* Home: reviews link (testimonials removed, #1) */
.review-link{ display:inline-flex; align-items:center; min-height:48px; font-weight:800; color:#1F7A74; text-decoration:underline; text-underline-offset:4px; }
.review-link:hover{ color:#17605B; }

/* ---- #9 Centering ---- */
.info-card{ text-align:center; display:flex; flex-direction:column; align-items:center; }
.info-card-head{ flex-direction:column; justify-content:center; }
.info-line{ justify-content:center; }
.hours-grid{ justify-content:center; }
.rep-list{ width:100%; }
.rep-card{ justify-content:center; text-align:left; }
.svc-card-body, .cat-card, .prod-card, .prod-body, .ind-card{ text-align:center; align-items:center; }
.svc-icon, .ind-icon, .cert-icon{ margin-left:auto; margin-right:auto; }
.svc-row-body .svc-icon{ margin-left:0; margin-right:0; }

/* ---- #11 Interior heroes match the home scale ---- */
.page-hero{ min-height:60svh; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.page-hero > *{ max-width:100%; }
.page-hero h1{ font-size:clamp(2.5rem,4.5vw,5rem); line-height:1.05; }

/* ---- #10 Inline SVG icons (Font Awesome font removed) ---- */
.ap-ico{ display:inline-block; vertical-align:-0.125em; flex-shrink:0; overflow:visible; }
.info-line .ap-ico, .check-list li .ap-ico, .meta-item .ap-ico, .home-reach-link .ap-ico, .home-reach-item .ap-ico{ color:#1F7A74; }
.featured-label .ap-ico-star, .rating-star, .review-stars .ap-ico{ color:#b45309; }
.tb-num .rating-star, .stat-num .rating-star{ color:#d97706; }

/* Item 4 follow-up: white text on teal bands and buttons uses Teal Text (#1F7A74, 5.3:1) */
.sec-teal{ background:#1F7A74 !important; }
.social-btn:hover{ background:#1F7A74 !important; border-color:#1F7A74 !important; color:#fff !important; }
