/* Sunasol V8: final focused premium card + page-specific banner pass.
   Loaded after V7, no changes to customer/service business handlers. */
:root{--sslke-v8-gold-light:#ffe797;--sslke-v8-gold:#bd8819;--sslke-v8-gold-deep:#855508;--sslke-v8-silver:#e9edf4;--sslke-v8-outline:#c9a054;--sslke-v8-card-ink:#20242d;--sslke-v8-card-muted:#565d6a}
html[data-theme=dark]{--sslke-v8-card-ink:#fafafa;--sslke-v8-card-muted:#d7dbe5}
/* Broad page theme continuity. Never cover or flatten the approved homepage hero artwork. */
body.sw-home,body.sw-inside{background-image:linear-gradient(125deg,#fff 0%,#f9fafd 36%,#f0f2f7 64%,#fcfcfe 100%)!important;background-attachment:fixed!important}
html[data-theme=dark] body.sw-home,html[data-theme=dark] body.sw-inside{background-image:linear-gradient(115deg,#171a22,#262a35 48%,#181b24)!important}
/* Rich metal-rimmed actual link cards: homepage and CMS service catalogue. */
body.sw-home .sw-cards{gap:clamp(12px,1.15vw,22px);align-items:stretch;margin:10px 0 20px}
body.sw-home .sw-service-card,
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile{
  box-sizing:border-box;position:relative;isolation:isolate;
  border:2px solid var(--sslke-v8-outline)!important;border-bottom:4px solid #aa7611!important;
  border-radius:26px!important;overflow:hidden!important;
  background:linear-gradient(148deg,#fff 0%,#fafbfe 22%,#edf0f6 58%,#e1e5ed 79%,#fbfbff 100%)!important;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.98),inset -2px -2px 5px rgba(129,139,161,.22),0 5px 9px rgba(45,49,68,.11),0 15px 24px rgba(62,61,65,.055)!important;
  transform:translate3d(0,0,0);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
  text-decoration:none!important;color:var(--sslke-v8-card-ink)!important;
}
body.sw-home .sw-service-card{padding:32px 24px 53px!important;min-height:255px!important;gap:16px;display:flex!important;flex-direction:column;justify-content:flex-start;align-items:flex-start}
body.sw-home .sw-service-card:before,
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile:before{
  content:""!important;display:block!important;position:absolute;inset:3px;
  pointer-events:none;border-radius:21px;border:1px solid rgba(255,255,255,.95);
  background:linear-gradient(132deg,rgba(255,255,255,.83) 0%,rgba(255,255,255,.12) 25%,transparent 42%,transparent 100%);
  z-index:0;
}
body.sw-home .sw-service-card:after,
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile:after{
 content:""!important;display:block!important;position:absolute;pointer-events:none;
 inset:auto -22% -7px 12%;height:45px;width:auto;left:12%;right:-22%;bottom:-7px;top:auto;
 border-radius:50%;transform:rotate(-10deg);
 background:linear-gradient(180deg,rgba(255,255,255,.97) 0%,rgba(255,244,189,.95) 26%,#e5bd57 38%,#b77c14 50%,rgba(255,247,204,.73) 67%,transparent 82%);
 filter:blur(.6px);opacity:.76!important;z-index:0;
}
body.sw-home .sw-service-card > *,body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile > *{position:relative;z-index:1}
body.sw-home .sw-service-card .sw-card-symbol{font-size:44px!important;color:#b98313!important;line-height:1.1!important;display:block;margin-bottom:8px}
body.sw-home .sw-service-card strong{display:block;font-size:clamp(16px,1.13vw,20px)!important;line-height:1.32!important;letter-spacing:-.018em;margin:0 0 12px!important;color:var(--sslke-v8-card-ink)!important}
body.sw-home .sw-service-card small{font-size:clamp(13px,.93vw,15px)!important;line-height:1.55!important;display:block;color:var(--sslke-v8-card-muted)!important}
body.sw-home .sw-service-card .sw-card-arrow{position:absolute!important;left:auto!important;top:auto!important;right:21px!important;bottom:18px!important;border-radius:100%;width:34px;height:34px;background:linear-gradient(#ffeb94,#d8a331 53%,#97660e)!important;color:#fff!important;box-shadow:inset 0 1px rgba(255,255,255,.7),0 3px 6px rgba(54,38,7,.22)}
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile{padding:40px 34px 64px!important;min-height:340px!important}
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile .section-tag{font-size:12px;letter-spacing:.18em;color:#b48010!important}
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile h3{font-size:clamp(24px,2.05vw,32px)!important;line-height:1.2!important;color:var(--sslke-v8-card-ink)!important;margin-top:4px}
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile p{font-size:clamp(15px,1.12vw,18px)!important;line-height:1.6!important;color:var(--sslke-v8-card-muted)!important}
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile strong{font-size:17px!important;color:#a8760d!important}
body.sw-home .sw-service-card:hover,body.sw-home .sw-service-card:focus-visible,
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile:hover,
body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile:focus-visible{
 transform:translate3d(0,-6px,0);border-color:#efc960!important;
 box-shadow:inset 2px 2px rgba(255,255,255,.95),0 10px 18px rgba(66,54,24,.16),0 20px 34px rgba(66,54,24,.14),0 0 13px rgba(229,186,81,.23)!important;
}
body.sw-home .sw-service-card:focus-visible,body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile:focus-visible{outline:3px solid #a9740f;outline-offset:4px}
@media(prefers-reduced-motion:reduce){body.sw-home .sw-service-card,body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile{transition:none!important}}
/* The public site shows one consistent header on every page. */
body.sw-inside .sw-header,body.sw-home .sw-header{background:transparent!important;box-shadow:none!important}
/* Inside hero: framed subject photo with a fading silver backdrop, not duplicate home collage rectangle. */
body.sw-inside .ww-inner-banner{background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important}
body.sw-inside .ww-inner-banner:after{display:none!important}
body.sw-inside .ww-inner-banner-grid{align-items:center;gap:clamp(22px,3vw,55px)}
body.sw-inside .ww-inner-visual{background:transparent!important;border:0!important;box-shadow:none!important;position:relative;isolation:isolate;overflow:visible!important}
body.sw-inside .ww-inner-visual:before{content:"";position:absolute;z-index:-1;inset:12% 1% -2% 5%;border-radius:30% 22% 26% 25%;background:radial-gradient(ellipse,rgba(234,199,109,.21),rgba(237,240,246,.10) 64%,transparent 75%);filter:blur(10px)}
body.sw-inside .ww-inner-visual img{width:100%;height:auto;max-height:430px;object-fit:cover;aspect-ratio:1.5/1;border:2px solid transparent!important;border-radius:26% 12% 22% 13% / 25% 24% 17% 23%!important;box-shadow:0 8px 14px rgba(39,41,52,.07)!important;background:linear-gradient(white,white) padding-box,linear-gradient(135deg,#fae6a8,#b47a0e,#fff4d0,#cd9c30) border-box;mix-blend-mode:normal!important;mask-image:linear-gradient(90deg,transparent 0%,#000 6%,#000 96%,transparent 100%)}
body.sw-inside .ww-inner-copy h1,body.sw-inside .ww-inner-copy h2{line-height:1.14!important}
/* Services listing intentionally has NO fixed banner image — the links/cards themselves form the service showcase. */
body.sw-inside .ww-inner-services .ww-inner-visual{display:none!important}
/* Dark surfaces maintain contrast without flat white cards. */
html[data-theme=dark] body.sw-home .sw-service-card,
html[data-theme=dark] body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile{
 background:linear-gradient(144deg,#454953,#343945 44%,#272c37 80%,#41444b)!important;
 border-color:#c7a25b!important;box-shadow:inset 1px 1px #ffffff3d,0 9px 18px #0003!important}
html[data-theme=dark] body.sw-home .sw-service-card:before,
html[data-theme=dark] body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile:before{border-color:#ffffff25;background:linear-gradient(135deg,#ffffff1c,transparent 42%)}
html[data-theme=dark] body.sw-home .sw-service-card:after,
html[data-theme=dark] body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile:after{opacity:.36!important}
html[data-theme=dark] body.sw-home .sw-service-card strong,html[data-theme=dark] body.sw-home .sw-service-card small,html[data-theme=dark] body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile :is(h3,p){color:var(--sslke-v8-card-ink)!important}
@media(max-width:960px){body.sw-home .sw-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.sw-inside:has(.ww-inner-services) .cms-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){body.sw-home .sw-cards,body.sw-inside:has(.ww-inner-services) .cms-grid{grid-template-columns:1fr!important}body.sw-home .sw-service-card{min-height:225px!important}body.sw-inside:has(.ww-inner-services) .cms-grid .cms-tile{min-height:270px!important;padding:30px 27px 58px!important}body.sw-inside .ww-inner-visual img{max-height:300px;aspect-ratio:1.5/1}}
