/* Surface Pros boost v1: glass finish, photoreal depth backgrounds, thick floating cards.
   One light for the whole site: bottom-right key, about 20deg up. Bright rims sit on the
   bottom/right edges, thickness steps down-right, soft shadows lean slightly up-left. */
:root{--glass-bg:linear-gradient(325deg,rgba(255,255,255,.56),rgba(255,255,255,.3) 55%,rgba(255,255,255,.24));--rim:rgba(255,255,255,.96);--rim-dim:rgba(255,255,255,.38);--edge1:rgba(190,222,248,.95);--edge2:rgba(120,176,226,.7);--edge3:rgba(60,120,190,.45)}

/* ---- glossy blue mirror background: our own render (tools/make-mirror-droplets.py); flat water droplets are drawn on top by sp-drops-v1.js ---- */
.bubbles{display:none!important}
.sp-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;contain:strict;background:#7f98c8}
.sp-bg .bd{position:absolute;inset:0;background:url(/sp-mirror-wide-v1.jpg) center bottom/cover no-repeat;opacity:calc(.92 + var(--stone,0)*.08)}
@media (max-aspect-ratio:9/10){.sp-bg .bd{background-image:url(/sp-mirror-tall-v1.jpg)}}
.sp-bg .bf{display:none}
/* soft reflected light that drifts over the mirror as you scroll */
.sp-bg .sheen{position:absolute;inset:-20%;opacity:calc(var(--stone,0)*.55);
  background:linear-gradient(325deg,transparent 36%,rgba(255,244,230,.34) 48%,transparent 60%);
  transform:translate3d(var(--shx,0),var(--shy,0),0);will-change:transform,opacity}
.caustics{display:none}
.sp-bg .lb{position:absolute;inset:0;width:100%;height:100%;opacity:var(--stone,0)}

/* ---- frosted glass: thin bright edge, inner highlight, soft shadow, all from one light ---- */
.glass{
  background:var(--glass-bg);
  backdrop-filter:blur(16px) saturate(170%);-webkit-backdrop-filter:blur(16px) saturate(170%);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:
    inset -1px -1px 0 var(--rim), inset 1px 1px 0 var(--rim-dim),
    inset -10px -14px 26px rgba(255,255,255,.28),
    -5px -3px 14px rgba(12,53,127,.06), 0 16px 38px rgba(12,53,127,.15);}
.btn,.chip,.callbtn,.read-more,.sig-tag{position:relative;isolation:isolate}
.btn.primary,.callbtn,.read-more{
  background:linear-gradient(325deg,rgba(30,140,235,.9),rgba(20,92,204,.93));
  backdrop-filter:blur(10px) saturate(160%);-webkit-backdrop-filter:blur(10px) saturate(160%);
  border:1px solid rgba(255,255,255,.55);text-shadow:0 1px 2px rgba(6,28,72,.45);
  box-shadow:inset -1px -1px 0 rgba(255,255,255,.75),inset 1px 1px 0 rgba(255,255,255,.28),
    inset -4px -7px 12px rgba(255,255,255,.18),-3px -2px 9px rgba(12,53,127,.1),0 10px 24px rgba(23,105,224,.42);}
.btn.ghost,.chip{
  background:linear-gradient(325deg,rgba(255,255,255,.72),rgba(255,255,255,.34));
  backdrop-filter:blur(14px) saturate(160%);-webkit-backdrop-filter:blur(14px) saturate(160%);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:inset -1px -1px 0 var(--rim),inset 1px 1px 0 var(--rim-dim),inset -4px -7px 12px rgba(255,255,255,.35),-3px -2px 9px rgba(12,53,127,.06),0 9px 22px rgba(12,53,127,.13)}
.sig-tag{background:linear-gradient(325deg,rgba(255,255,255,.75),rgba(214,239,255,.5));border:1px solid rgba(255,255,255,.7);box-shadow:inset -1px -1px 0 var(--rim),0 4px 10px rgba(12,53,127,.1)}
/* specular glint that crosses a pill on hover */
.btn::after,.callbtn::after,.read-more::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
  background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.5) 50%,transparent 65%);background-size:260% 100%;background-position:130% 0;transition:background-position .7s ease}
.btn:hover::after,.callbtn:hover::after,.read-more:hover::after{background-position:-30% 0}
.btn:focus-visible,.callbtn:focus-visible,.read-more:focus-visible,.card:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px rgba(23,105,224,.8)}
header.scrolled{background:linear-gradient(325deg,rgba(255,255,255,.72),rgba(255,255,255,.45));
  box-shadow:inset 0 -1px 0 var(--rim),0 8px 26px rgba(12,53,127,.13)}

/* ---- thick, floating cards ---- */
.card,.step,.pcard,.gal figure,.panel-card,.form-card,.contact-side{--lift:0px}
.card,.step{border-radius:var(--radius);
  box-shadow:
    1px 1px 0 var(--edge1),2px 2px 0 var(--edge1),3px 3px 0 var(--edge2),4px 4px 0 var(--edge2),5px 5px 0 var(--edge3),
    inset -1px -1px 0 var(--rim),inset 1px 1px 0 var(--rim-dim),inset -12px -16px 30px rgba(255,255,255,.3),
    -6px -4px 16px rgba(12,53,127,.07),10px 26px 44px rgba(12,53,127,.17)}
.card:hover{box-shadow:
    1px 1px 0 var(--edge1),2px 2px 0 var(--edge1),3px 3px 0 var(--edge2),4px 4px 0 var(--edge2),5px 5px 0 var(--edge3),6px 6px 0 var(--edge3),
    inset -1px -1px 0 var(--rim),inset 1px 1px 0 var(--rim-dim),inset -12px -16px 30px rgba(255,255,255,.3),
    -8px -5px 18px rgba(12,53,127,.08),14px 34px 56px rgba(12,53,127,.2)}
/* sheen that follows the light (bottom-right) and shifts with the tilt */
.card::before,.step::before{background:linear-gradient(325deg,rgba(255,255,255,.55),rgba(255,255,255,0) 42%),
  radial-gradient(120% 90% at var(--gx,85%) var(--gy,100%),rgba(255,255,255,.35),transparent 55%)!important}
/* gentle float: uses the independent `translate` property so reveal/tilt transforms are untouched */
.card,.step,.pcard,.gal figure{animation:sp-float 8s ease-in-out infinite;animation-delay:calc(var(--i,0)*-1.3s)}
@keyframes sp-float{50%{translate:0 -6px}}
.reveal.in.tilt{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .18s ease-out,opacity .7s ease,box-shadow .22s}
.reveal.in.tilt.resting{transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .7s ease,box-shadow .22s}

/* ---- install photos: consistent crop, caption plate, thickness ---- */
.gal figure,.pcard{border-radius:22px;
  box-shadow:1px 1px 0 var(--edge1),2px 2px 0 var(--edge2),3px 3px 0 var(--edge2),4px 4px 0 var(--edge3),
    inset -1px -1px 0 rgba(255,255,255,.9),-5px -3px 14px rgba(12,53,127,.07),10px 24px 40px rgba(12,53,127,.2)}
.gal figure{aspect-ratio:4/3}
.gal figure::after,.pcard .pimg::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(325deg,rgba(255,255,255,.28),rgba(255,255,255,0) 38%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.gal figcaption{left:10px;right:auto;bottom:10px;padding:7px 14px;border-radius:30px;font-size:14px;letter-spacing:.7px;
  background:rgba(12,33,72,.42);backdrop-filter:blur(12px) saturate(150%);-webkit-backdrop-filter:blur(12px) saturate(150%);
  border:1px solid rgba(255,255,255,.35);box-shadow:inset -1px -1px 0 rgba(255,255,255,.4)}

/* ---- hero logo: living logo (living-logo.js). Same box as the plain image, so nothing shifts. ---- */
.ll{position:relative;width:min(82vw,540px);aspect-ratio:1;animation:floaty 6s ease-in-out infinite}
.ll::before{opacity:0;transition:opacity .6s;content:"";position:absolute;inset:0;background:url(/surface-pros-logo.webp) center/contain no-repeat;
  filter:brightness(0) blur(26px);transform:translateY(24px) scale(.96);z-index:0;pointer-events:none}
.ll::after{content:"";position:absolute;inset:-12%;z-index:-1;background:radial-gradient(closest-side,rgba(6,28,72,.5),rgba(6,28,72,0));pointer-events:none}
.ll-t{position:absolute;inset:0;z-index:1;will-change:transform;touch-action:pan-y}
.hero .ll .logo{display:block;width:100%;height:100%;filter:none;animation:none}
.ll-c{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.ll:not(.ll-on)::before{display:none}
.ll:not(.ll-on):not(.ll-pre) .logo{filter:drop-shadow(0 22px 46px rgba(6,28,72,.55))}
.ll-on .logo,.ll-pre .logo{visibility:hidden}
.hero .ll.ll-pre .logo{animation:llshow 0s 3s forwards} /* no-JS safety: the still logo always comes back */
@keyframes llshow{to{visibility:visible}}
.ll:not(.ll-on) .ll-c{display:none}
.ll-on.ll-sh::before{opacity:.42}
@media (prefers-reduced-motion:reduce){
  .card,.step,.pcard,.gal figure,.ll,.sp-bg .bf{animation:none!important}
  .reveal.in.tilt{transform:none}
}
@media (max-width:860px){.card,.step{box-shadow:1px 1px 0 var(--edge1),2px 2px 0 var(--edge2),3px 3px 0 var(--edge3),inset -1px -1px 0 var(--rim),inset 1px 1px 0 var(--rim-dim),-4px -3px 12px rgba(12,53,127,.06),8px 18px 30px rgba(12,53,127,.16)}
  .sp-bg .bf.b{display:none}}

/* ---- readability + layout fixes from inspection ---- */
nav.links a.callbtn{color:#fff}
.hero-veil{background:linear-gradient(180deg,rgba(6,28,72,.28) 0%,rgba(6,28,72,.08) 30%,rgba(234,247,255,.86) 56%,rgba(234,247,255,.94) 100%)!important}
@media(min-width:861px){header:not(.scrolled) nav.links a:not(.callbtn){color:#fff;opacity:1;text-shadow:0 1px 3px rgba(6,28,72,.6)}
  header:not(.scrolled) .menu-toggle span{background:#fff}}
.card p,.step p,.pcard p,.lead,.kitem span{color:#33435f}
.svc-grid{align-items:start}
.btn.primary,.callbtn,.read-more{border-color:rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset -1px -1px 0 rgba(255,255,255,.75),inset -4px -7px 12px rgba(255,255,255,.14),-3px -2px 9px rgba(12,53,127,.1),0 8px 18px rgba(23,105,224,.34)}
@media(min-width:861px){.gal:has(figure:nth-child(5):last-child){grid-template-columns:repeat(6,1fr)}
  .gal:has(figure:nth-child(5):last-child) figure{grid-column:span 2}
  .gal:has(figure:nth-child(5):last-child) figure:nth-child(n+4){grid-column:span 3}}
.hero .hook{color:#0c357f;text-shadow:0 0 12px rgba(234,247,255,.9)}
.hero h1 b{background:linear-gradient(135deg,#1256c8,#1b86e0);-webkit-background-clip:text;background-clip:text}

/* ---- ONE glass card everywhere (home and city pages): same radius, rim, thickness, shadow, reflection ---- */
:root{--card-r:24px;
  --card-shadow:1px 1px 0 var(--edge1),2px 2px 0 var(--edge1),3px 3px 0 var(--edge2),4px 4px 0 var(--edge2),5px 5px 0 var(--edge3),
    inset -1px -1px 0 var(--rim),inset 1px 1px 0 var(--rim-dim),inset -12px -16px 30px rgba(255,255,255,.3),
    -6px -4px 16px rgba(12,53,127,.07),10px 26px 44px rgba(12,53,127,.17);
  --card-shadow-hover:1px 1px 0 var(--edge1),2px 2px 0 var(--edge1),3px 3px 0 var(--edge2),4px 4px 0 var(--edge2),5px 5px 0 var(--edge3),6px 6px 0 var(--edge3),
    inset -1px -1px 0 var(--rim),inset 1px 1px 0 var(--rim-dim),inset -12px -16px 30px rgba(255,255,255,.3),
    -8px -5px 18px rgba(12,53,127,.08),14px 34px 56px rgba(12,53,127,.2)}
.card,.step,.pcard,.gal figure,.panel-card,.form-card,.contact-side,.adcard,.faq-item,.pullquote{
  border-radius:var(--card-r);border:1px solid rgba(255,255,255,.6);box-shadow:var(--card-shadow)}
.card:hover,.step:hover,.pcard:hover,.gal figure:hover,.adcard:hover,.faq-item:hover{box-shadow:var(--card-shadow-hover)}
.panel-card,.form-card,.contact-side,.adcard,.faq-item,.pullquote{
  backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);
  background:var(--glass-bg)}
.adcard{overflow:hidden}
/* soft reflection across every card, from the same bottom-right light */
.panel-card,.form-card,.contact-side,.adcard,.pcard,.faq-item,.pullquote{position:relative}
.panel-card::before,.form-card::before,.contact-side::before,.adcard::before,.pcard::before,.faq-item::before,.pullquote::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:linear-gradient(325deg,rgba(255,255,255,.4),rgba(255,255,255,0) 42%)}
.panel-card>*,.form-card>*,.contact-side>*,.adcard>*,.pcard>*,.faq-item>*,.pullquote>*{position:relative;z-index:1}
@media (max-width:860px){:root{--card-r:20px;
  --card-shadow:1px 1px 0 var(--edge1),2px 2px 0 var(--edge2),3px 3px 0 var(--edge3),inset -1px -1px 0 var(--rim),inset 1px 1px 0 var(--rim-dim),-4px -3px 12px rgba(12,53,127,.06),8px 18px 30px rgba(12,53,127,.16);
  --card-shadow-hover:var(--card-shadow)}}

/* ---- stone photo sections: clear photo (no haze layer), only a soft fade under the card ---- */
.fullbleed>.bg{filter:saturate(.8) hue-rotate(-6deg)}
.fullbleed>.bg-veil{background:linear-gradient(90deg,rgba(226,243,255,.34) 0%,rgba(226,243,255,.1) 46%,rgba(226,243,255,0) 100%)!important}

/* footer logo keeps its true proportions on every page (the width attribute made it 600px wide on phones) */
footer img{width:auto;max-width:100%;height:120px}
blockquote.pullquote{padding:22px 26px;border:1px solid rgba(255,255,255,.6);border-radius:var(--card-r);
  background:var(--glass-bg);box-shadow:var(--card-shadow);backdrop-filter:blur(16px) saturate(170%);-webkit-backdrop-filter:blur(16px) saturate(170%)}

/* ---- letter ripple (sp-fx-v1.js): each letter is its own box so it can lift; words never break mid-word ---- */
.fxw{display:inline-block;white-space:nowrap}
.fxc{display:inline-block;will-change:transform}

/* ---- legibility over the bead surface and the photos ---- */
.fullbleed .glass,.fullbleed .panel-card{background:linear-gradient(325deg,rgba(255,255,255,.8),rgba(255,255,255,.62) 55%,rgba(255,255,255,.5))}
.eyebrow{color:#0c357f}
.note,.svc-note,section .lead,.sub{text-shadow:0 0 10px rgba(234,247,255,.85),0 0 3px rgba(234,247,255,.9)}

/* ---- readability on the bead surface: richer blue for the gradient words, a very light lift under the beads ---- */
html h1 b,html h2 b,html .hero h1 b{background-image:linear-gradient(135deg,#0c3fae,#1169d6)}

.refer,.refer a,.refer b{text-shadow:0 0 8px rgba(240,248,255,.95),0 0 3px rgba(240,248,255,1);color:#1f2f4d}

/* ---- legibility of text that sits directly on the bead surface ---- */
section:not(.hero):not(.fullbleed) p,section .lead,footer p,footer .cross,footer .fine,.refer{color:#1b2b4a;text-shadow:0 0 8px rgba(240,248,255,.95),0 0 3px rgba(240,248,255,1)}
footer a,.refer a{color:#0a2f8f;font-weight:600;text-decoration:underline;text-shadow:0 0 8px rgba(240,248,255,.95),0 0 3px #fff}
.eyebrow{color:#0a2a6b;text-shadow:0 0 8px rgba(240,248,255,.95)}

/* ---- header: blue glass instead of a white bar, so the mirror reaches the very top edge ---- */
header.scrolled{background:linear-gradient(180deg,rgba(8,36,96,.7),rgba(16,70,160,.46));border-bottom:1px solid rgba(190,220,255,.28);
  box-shadow:0 8px 26px rgba(8,36,96,.28)}
@media(min-width:861px){header.scrolled nav.links a:not(.callbtn){color:#fff;opacity:1;text-shadow:0 1px 3px rgba(6,28,72,.6)}}
header.scrolled .menu-toggle span{background:#fff}
header:has(nav.links.open) .menu-toggle span{background:var(--navy)}
html{background:#7f98c8}
body{background:transparent}

/* the hero-to-page wave: a soft warm sun glint on the mirror instead of a white band */
.wave path{fill:rgba(255,244,228,.2)}

/* hero melts into the mirror: the video and its veil fade out over the last 150px (text and buttons stay on top), no band or hard edge */
.hero-vid{-webkit-mask-image:linear-gradient(#000 calc(93.1% - 170px),transparent 93.1%);mask-image:linear-gradient(#000 calc(93.1% - 170px),transparent 93.1%)}
.hero-veil{-webkit-mask-image:linear-gradient(#000 calc(100% - 170px),transparent);mask-image:linear-gradient(#000 calc(100% - 170px),transparent);
  background:linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(190,214,245,.16) 45%,rgba(196,218,246,.6) 100%)}
.wave{display:none}
/* headings stay readable over big droplets */
h2.title,.eyebrow{filter:drop-shadow(0 0 10px rgba(235,244,255,.85))}

/* ---- services: one line of equal clear-glass cards, a carousel that pans with the cursor (sp-carousel-v1.js) ---- */
.svc-grid{display:flex!important;grid-template-columns:none!important;gap:26px;align-items:stretch!important;margin-top:30px;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  padding:34px max(18px,calc(50vw - 590px)) 110px;scroll-padding-inline:max(18px,calc(50vw - 590px))}
.svc-grid::-webkit-scrollbar{display:none}
@media(hover:none){.svc-grid{scroll-snap-type:x proximity}.svc-grid>.card{scroll-snap-align:center}}
.svc-grid:focus-visible{outline:3px solid rgba(255,255,255,.9);outline-offset:-6px;border-radius:24px}
.svc-grid>.card{flex:0 0 clamp(274px,24vw,330px);display:flex!important;flex-direction:column;position:relative;
  background:linear-gradient(325deg,rgba(255,255,255,.34),rgba(255,255,255,.12) 55%,rgba(255,255,255,.08));
  backdrop-filter:blur(7px) saturate(165%) brightness(1.05);-webkit-backdrop-filter:blur(7px) saturate(165%) brightness(1.05);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:inset -1px -1px 0 rgba(255,255,255,.9),inset 1px 1px 0 rgba(255,255,255,.4),inset -10px -14px 26px rgba(255,255,255,.12),
    0 30px 44px -16px rgba(4,24,70,.42),0 64px 80px -38px rgba(4,24,70,.38)}
.svc-grid>.card:hover{box-shadow:inset -1px -1px 0 rgba(255,255,255,.95),inset 1px 1px 0 rgba(255,255,255,.45),inset -10px -14px 26px rgba(255,255,255,.14),
    0 44px 56px -16px rgba(4,24,70,.46),0 90px 100px -40px rgba(4,24,70,.4)}
/* the card hovers above the water: its shadow lands on the droplets well below it */
.svc-grid>.card::after{content:"";position:absolute;left:9%;right:9%;bottom:-58px;height:46px;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 50% 40%,rgba(3,20,62,.42),rgba(3,20,62,.14) 55%,transparent 72%);filter:blur(7px)}
.svc-grid>.card .read-more{margin-top:auto!important;align-self:flex-start}
.svc-grid>.card>p{margin-bottom:18px}
.svc-grid>.card h3{color:#082a6b;text-shadow:0 0 12px rgba(238,246,255,.8)}
.svc-grid>.card p{color:#14284a;text-shadow:0 0 9px rgba(238,246,255,.75)}
.sig-badge{background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(238,245,252,.8))}
.svc-prog{position:relative;height:5px;width:min(320px,60vw);margin:-62px auto 0;border-radius:5px;background:rgba(255,255,255,.28);box-shadow:inset 0 1px 2px rgba(4,24,70,.25)}
.svc-prog i{position:absolute;top:0;bottom:0;border-radius:5px;background:linear-gradient(90deg,#fff,rgba(214,234,255,.9));box-shadow:0 1px 6px rgba(4,24,70,.35)}
@media(prefers-reduced-motion:reduce){.svc-grid>.card{animation:none!important}}
.svc-grid>.card{padding:26px 24px}
.svc-grid .sig-badge{padding:10px 16px;margin-bottom:12px}
.svc-grid .sig-badge img{max-width:132px}
.svc-grid>.card h3{font-size:22px}
.svc-grid>.card p{font-size:14.5px;line-height:1.55}

/* ---- Text Us Photos button + a nav that fits once Roof Cleaning / House Washing joined it (12 Nov 2026) ---- */
.callbtn.textbtn{background:linear-gradient(135deg,var(--navy),var(--royal))}
@media(min-width:1200px){nav.links{gap:22px}}
@media(min-width:1200px) and (max-width:1679px){nav.links a.nx{display:none}}
@media(min-width:861px) and (max-width:1199px){
  nav.links{position:fixed;inset:0 0 auto 0;top:0;flex-direction:column;gap:18px;padding:90px 30px 30px;
    background:rgba(255,255,255,.9);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
    transform:translateY(-120%);transition:transform .35s;box-shadow:0 20px 40px rgba(12,53,127,.2)}
  nav.links.open{transform:none}
  nav.links .callbtn{margin-top:6px}
  .menu-toggle{display:block;z-index:120}
  header:not(.scrolled) nav.links a:not(.callbtn),header.scrolled nav.links a:not(.callbtn){color:var(--navy);text-shadow:none}
}
