/* ============================================================================
   Round 4, 12 October 2026. Oscar: replace every white background with a
   shaded picture, like the hero; the label pills and the awards strip "don't
   look great", animate them, design something better.
   ========================================================================= */

/* ---- Shaded photo backgrounds ---------------------------------------------
   Real photos only: the kitchen from the privacy slider, the dining room and
   floor from the SmartGuardian video, the living room from the hero, and
   Smart Space's installer at a front door. Each sits under a heavy wash of
   the section's own colour, so it reads as a shadow of a home, not a photo. */
:root {
  --bg-kitchen: image-set(url('/images/bg-kitchen.webp?v=1') type('image/webp'), url('/images/bg-kitchen.jpg?v=1') type('image/jpeg'));
  --bg-dining: image-set(url('/images/bg-dining.webp?v=1') type('image/webp'), url('/images/bg-dining.jpg?v=1') type('image/jpeg'));
  --bg-floor: image-set(url('/images/bg-floor.webp?v=1') type('image/webp'), url('/images/bg-floor.jpg?v=1') type('image/jpeg'));
  --bg-installer: image-set(url('/images/bg-installer.webp?v=1') type('image/webp'), url('/images/bg-installer.jpg?v=1') type('image/jpeg'));
  --bg-living: image-set(url('/images/bg-living.webp?v=2') type('image/webp'), url('/images/bg-living.jpg?v=2') type('image/jpeg'));
  --wash-sand: linear-gradient(180deg, rgba(246, 241, 233, 0.9) 0%, rgba(243, 237, 227, 0.86) 50%, rgba(246, 241, 233, 0.92) 100%);
  --wash-mist: linear-gradient(180deg, rgba(234, 243, 241, 0.9) 0%, rgba(226, 238, 236, 0.86) 50%, rgba(234, 243, 241, 0.92) 100%);
}
.svc-section, .svc-section-white, .svc-hero, .page-header, .bp-hero, .results-hero, .ec-hero,
.tabs-section, .cost-section, .faq-section, .installation-section, .stories-section,
.ib-how, .ib-included, .ib-quote-section, .fac-hub-section, main > section[style*="light-gray"] {
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
}
@media (min-width: 1024px) and (hover: hover) {
  .svc-section, .svc-section-white, .tabs-section, .cost-section, .faq-section, .installation-section, .stories-section,
  .ib-how, .ib-included, .ib-quote-section { background-attachment: fixed !important; }
}
/* Sand sections cycle through the rooms; mist sections take the others. */
main > .svc-section:nth-of-type(4n+1) { background-image: var(--wash-sand), var(--bg-kitchen) !important; background-color: #f3ede3 !important; }
main > .svc-section:nth-of-type(4n+2) { background-image: var(--wash-sand), var(--bg-dining) !important; background-color: #f3ede3 !important; }
main > .svc-section:nth-of-type(4n+3) { background-image: var(--wash-sand), var(--bg-installer) !important; background-color: #f3ede3 !important; }
main > .svc-section:nth-of-type(4n) { background-image: var(--wash-sand), var(--bg-floor) !important; background-color: #f3ede3 !important; }
main > .svc-section-white:nth-of-type(odd) { background-image: var(--wash-mist), var(--bg-living) !important; background-color: #e4efed !important; }
main > .svc-section-white:nth-of-type(even) { background-image: var(--wash-mist), var(--bg-kitchen) !important; background-color: #e4efed !important; }
.svc-hero:not(.home-hero), .page-header, .bp-hero, .results-hero, .ec-hero {
  background-image: linear-gradient(90deg, rgba(246, 241, 233, 0.96) 0%, rgba(246, 241, 233, 0.88) 45%, rgba(234, 243, 241, 0.74) 100%), var(--bg-dining) !important;
  background-color: #f3ede3 !important;
}
.svc-hero.has-film { background-image: linear-gradient(90deg, rgba(246, 241, 233, 0.96) 0%, rgba(246, 241, 233, 0.9) 45%, rgba(234, 243, 241, 0.78) 100%), var(--bg-living) !important; }
.tabs-section { background-image: var(--wash-sand), var(--bg-dining) !important; }
.cost-section, .installation-section { background-image: var(--wash-mist), var(--bg-kitchen) !important; }
.faq-section { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 248, 244, 0.9)), var(--bg-floor) !important; background-color: #faf8f4 !important; }
.stories-section, main > section[style*="light-gray"] { background-image: var(--wash-sand), var(--bg-installer) !important; }
.ib-how { background-image: var(--wash-mist), var(--bg-installer) !important; }
.ib-included { background-image: var(--wash-sand), var(--bg-dining) !important; }
.ib-quote-section { background-image: var(--wash-mist), var(--bg-living) !important; }
.cp { background-image: linear-gradient(180deg, rgba(10, 38, 39, 0.94) 0, rgba(11, 49, 51, 0.92) 800px, rgba(246, 241, 233, 0.9) 800px, rgba(243, 237, 227, 0.9) 100%), var(--bg-installer) !important; background-size: cover !important; }
@media (max-width: 900px) { .cp { background-image: linear-gradient(180deg, rgba(10, 38, 39, 0.94) 0, rgba(11, 49, 51, 0.92) 760px, rgba(246, 241, 233, 0.9) 760px), var(--bg-installer) !important; } }
/* Dark bands get a photo too, under the teal. */
.dark-band { background: linear-gradient(180deg, rgba(10, 38, 39, 0.93), rgba(7, 26, 27, 0.95)), var(--bg-living) center / cover no-repeat !important; }
.dark-band#alerts, .dark-band#mary { background: linear-gradient(180deg, rgba(10, 38, 39, 0.93), rgba(7, 26, 27, 0.95)), var(--bg-kitchen) center / cover no-repeat !important; }
.sv-final-cta { background-image: radial-gradient(55% 90% at 100% 0%, rgba(244, 130, 34, 0.22), rgba(244, 130, 34, 0) 70%), linear-gradient(180deg, rgba(11, 59, 61, 0.92), rgba(7, 30, 31, 0.95)), var(--bg-dining) !important; background-size: cover !important; background-position: center !important; }
.story-hero, .ib-hero { background-image: radial-gradient(120% 120% at 50% 0%, rgba(15, 58, 60, 0.9) 0%, rgba(10, 38, 39, 0.94) 55%, rgba(7, 26, 27, 0.96) 100%), var(--bg-living) !important; background-size: cover !important; background-position: center !important; }
/* Guides: the photo stays behind the top only; the article itself is for reading. */

/* ---- Section labels: a drawn line and a pulse, instead of a pill ----------- */
.svc-pill, .sv-hero-eyebrow, .page-header .eyebrow, .bp-hero .eyebrow, .story-hero .eyebrow {
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
  display: inline-flex !important; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 0.78rem !important; font-weight: 800 !important; letter-spacing: 0.22em !important; text-transform: uppercase;
  color: var(--ink) !important;
}
.svc-pill::before, .sv-hero-eyebrow::before, .page-header .eyebrow::before, .bp-hero .eyebrow::before, .story-hero .eyebrow::before {
  content: '' !important; width: 44px !important; height: 3px !important; border-radius: 3px !important; flex: none;
  background: linear-gradient(90deg, var(--teal), var(--orange)) !important; background-size: 200% 100% !important;
  animation: k-draw 0.9s cubic-bezier(0.16, 1, 0.3, 1) both, k-flow 3.5s linear 1s infinite;
  transform-origin: 0 50%;
}
.svc-pill::after, .sv-hero-eyebrow::after, .page-header .eyebrow::after, .bp-hero .eyebrow::after, .story-hero .eyebrow::after {
  content: ''; order: -1; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; margin-right: -6px;
  box-shadow: 0 0 0 0 rgba(244, 130, 34, 0.5); animation: m-ping 2.2s ease-out infinite;
}
@keyframes k-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes k-flow { to { background-position: -200% 0; } }
.svc-eyebrow {
  display: inline-flex !important; align-items: center; gap: 12px; letter-spacing: 0.22em !important; font-weight: 800 !important;
}
.svc-eyebrow::before, .svc-eyebrow::after {
  content: ''; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(244, 130, 34, 0), var(--orange));
}
.svc-eyebrow::after { background: linear-gradient(90deg, var(--orange), rgba(244, 130, 34, 0)); }
.home-feature-copy .svc-eyebrow::after, .svc-panel .svc-eyebrow::after, .story-step .svc-eyebrow::after { display: none; }
.home-feature-copy .svc-eyebrow::before, .svc-panel .svc-eyebrow::before { background: linear-gradient(90deg, var(--teal), var(--orange)); width: 32px; }
.dark-band .svc-pill, .story-hero .svc-pill { color: #fff !important; }
.story-hero .risk-label, .ib-eyebrow, .ec-badge, .cs-hero-eyebrow, .results-eyebrow {
  background: none !important; border: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center; gap: 12px;
  letter-spacing: 0.2em !important; font-weight: 800 !important;
}
.story-hero .risk-label::before, .ib-eyebrow::before, .ec-badge::before, .cs-hero-eyebrow::before, .results-eyebrow::before {
  content: ''; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #08a9ac, #f48222); background-size: 200% 100%;
  animation: k-draw 0.9s cubic-bezier(0.16, 1, 0.3, 1) both, k-flow 3.5s linear 1s infinite; transform-origin: 0 50%;
}
.ec-badge .pulse { display: none !important; }

/* ---- The proof bar (was the awards strip) ---------------------------------- */
.proof {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  background: linear-gradient(90deg, rgba(7, 26, 27, 0.96), rgba(11, 59, 61, 0.94)), var(--bg-floor) center / cover no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.proof::after { /* a band of light that sweeps across */
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; width: 34%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255, 176, 102, 0.16), rgba(8, 169, 172, 0.12), transparent);
  animation: proof-sweep 7s ease-in-out infinite;
}
@keyframes proof-sweep { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.proof ul { list-style: none; margin: 0 auto; padding: 30px 24px; max-width: 1240px; display: grid; grid-template-columns: repeat(5, 1fr); }
.proof li { display: flex; align-items: center; gap: 14px; padding: 6px 18px; position: relative; opacity: 0; transform: translateY(12px); animation: m-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.proof li:nth-child(2) { animation-delay: 0.1s; } .proof li:nth-child(3) { animation-delay: 0.2s; } .proof li:nth-child(4) { animation-delay: 0.3s; } .proof li:nth-child(5) { animation-delay: 0.4s; }
.proof li + li::before { content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent); }
.proof-ic { position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(244, 130, 34, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 176, 102, 0.3), 0 0 24px rgba(244, 130, 34, 0.18); }
.proof-ic svg { width: 22px; height: 22px; stroke: #ffb066; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proof-ic::after { content: ''; position: absolute; inset: -4px; border-radius: 17px; border: 1px solid rgba(255, 176, 102, 0.35); opacity: 0; animation: proof-ring 4s ease-out infinite; }
.proof li:nth-child(2) .proof-ic::after { animation-delay: 0.8s; } .proof li:nth-child(3) .proof-ic::after { animation-delay: 1.6s; }
.proof li:nth-child(4) .proof-ic::after { animation-delay: 2.4s; } .proof li:nth-child(5) .proof-ic::after { animation-delay: 3.2s; }
@keyframes proof-ring { 0% { opacity: 0.9; transform: scale(0.9); } 60%, 100% { opacity: 0; transform: scale(1.35); } }
.proof b { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.proof small { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.66); margin-top: 2px; }
@media (max-width: 1100px) {
  .proof ul { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .proof li:nth-child(4)::before { display: none; }
}
@media (max-width: 640px) {
  .proof ul { grid-template-columns: 1fr 1fr; padding: 22px 16px; gap: 14px 8px; }
  .proof li { padding: 4px 6px; gap: 10px; } .proof li::before { display: none; }
  .proof li:last-child { grid-column: 1 / -1; justify-self: center; }
  .proof-ic { width: 38px; height: 38px; } .proof b { font-size: 0.9rem; } .proof small { font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .proof li { opacity: 1; transform: none; animation: none; } .proof::after, .proof-ic::after { animation: none; display: none; }
  .svc-pill::before, .svc-pill::after, .story-hero .risk-label::before, .ib-eyebrow::before, .ec-badge::before { animation: none !important; }
}
.proof li { padding: 6px 14px; gap: 12px; }
.proof b { white-space: nowrap; font-size: 0.95rem; }
.proof small { white-space: nowrap; }
@media (max-width: 1240px) { .proof small { white-space: normal; } }
@media (max-width: 640px) { .proof b, .proof small { white-space: normal; } .proof li { min-width: 0; } }
