/* Home-only layout refinements. No duplicate content or mobile templates. */
body.home main :where([id]){scroll-margin-top:var(--sw-anchor-offset,100px)}
body.home main :is(h1,h2,h3){overflow-wrap:break-word}
body.home main .sw-section-title h2{line-height:1.16}
body.home main :is(.sw-quiz__form,.sw-quiz__results,.sw-quiz-result,.sw-quiz-result>*,.sw-booking,.sw-quiz-result-shell){min-width:0}
body.home main .sw-quiz__form{grid-template-columns:repeat(4,minmax(0,1fr)) auto}
body.home main .sw-quiz__form>*{min-width:0}
body.home main :is(.sw-button,.sw-link){overflow-wrap:anywhere}
body.home main .sw-card__body{display:flex;flex-direction:column;align-items:stretch}
body.home main :is(.sw-pool-card,.sw-program-card,.sw-post-card){display:flex;flex-direction:column}
body.home main :is(.sw-pool-card,.sw-program-card,.sw-post-card)>.sw-card__body{flex:1}
body.home main .sw-program-card .sw-link{margin-top:auto;padding-top:10px;min-height:44px}
body.home main .sw-form-grid label{min-width:0}
body.home main .sw-facts dd{margin-left:0}
body.home main .sw-quiz-result>div{flex:1;min-width:0}
body.home main .sw-quiz-result>.sw-button{flex:0 0 auto}
body.home main .sw-consent{min-width:0}
@media(max-width:1199px){
  body.home main .sw-quiz__form{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.home main .sw-quiz__form .sw-button{grid-column:1/-1}
}
@media(max-width:1023px){
  body.home main .sw-booking,
  body.home main .sw-quiz-result-shell{grid-template-columns:minmax(0,1fr)}
  body.home main .sw-quiz-result-shell{gap:24px}
}
@media(max-width:767px){
  body.home main .sw-section{padding-block:clamp(38px,9vw,54px)}
  body.home main .sw-quiz{padding:clamp(18px,5vw,28px)}
  body.home main .sw-quiz__form{grid-template-columns:minmax(0,1fr);gap:14px}
  body.home main .sw-quiz-result .sw-button{width:100%;min-height:48px}
  body.home main .sw-quiz-result-shell{padding:16px;gap:22px}
  body.home main .sw-quiz-result-shell .sw-contact-form-wrap{padding:0;border:0;background:transparent}
  body.home main .sw-pricing-grid{grid-template-columns:minmax(0,1fr)}
  body.home main :is(.sw-form-grid input,.sw-form-grid textarea,.sw-quiz input,.sw-quiz select){font-size:16px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* SEO R2 2026-11-16: WCAG AA text contrast on light homepage sections. */
body.home main .sw-section-title > p:not(.sw-eyebrow){color:#627084}
body.home main .sw-review-slide__date{color:#627287}

/* Home Water Story R1 - scoped visual polish, forms and CMS remain untouched. */
body.home .sw-hero-studio__media-row{position:relative;isolation:isolate}
body.home .sw-hero-studio__media-row::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:13% 9% -2%;
  background:radial-gradient(ellipse at 50% 54%,rgba(66,182,228,.17),transparent 65%),
             repeating-radial-gradient(ellipse at 51% 70%,transparent 0 39px,rgba(56,171,219,.075) 41px,transparent 44px);
  filter:blur(9px);opacity:.84;
}
body.home .sw-hero-studio__photo{transition:transform .55s cubic-bezier(.22,.78,.22,1),box-shadow .35s ease}
body.home .sw-hero-studio__photo::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.33;
  background:linear-gradient(112deg,transparent 30%,rgba(255,255,255,.15) 42%,rgba(255,255,255,.3) 48%,transparent 61%);
  transform:translateX(-115%);transition:transform .85s cubic-bezier(.2,.7,.2,1);
}
body.home .sw-home-hero-signature{
  display:inline-block;margin-top:21px;color:#1675b7;
  font:600 clamp(20px,1.85vw,25px)/1.14 var(--sw-font-hand,cursive);
  text-wrap:balance;transform:rotate(-1deg);
}
body.home .sw-home-hero-signature::after{
  content:"";display:block;width:78px;height:8px;margin:3px 0 0 28px;border-top:2px solid rgba(39,159,206,.6);
  border-radius:50%;transform:rotate(-4deg);
}
body.home .sw-home-hero-mobile-cta{display:none}
@media(min-width:1024px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  body.home .sw-hero-studio--photos-3 .sw-hero-studio__photo--1{
    transform:translate3d(var(--sw-home-float-x,0px),calc(6px + var(--sw-home-float-y,0px) + var(--sw-home-scroll-y,0px)),0) translateX(8px) rotate(5deg)
  }
  body.home .sw-hero-studio--photos-3 .sw-hero-studio__photo--2{
    transform:translate3d(var(--sw-home-float-x,0px),calc(-4px + var(--sw-home-float-y,0px) + var(--sw-home-scroll-y,0px)),0) rotate(-5deg)
  }
  body.home .sw-hero-studio--photos-3 .sw-hero-studio__photo--3{
    transform:translate3d(var(--sw-home-float-x,0px),calc(-8px + var(--sw-home-float-y,0px) + var(--sw-home-scroll-y,0px)),0) translateX(-8px) rotate(4deg)
  }
  body.home .sw-hero-studio__photo:hover{box-shadow:0 20px 46px rgba(15,85,143,.22)}
  body.home .sw-hero-studio__photo:hover::after{transform:translateX(115%)}
}
/* Existing sport-development block gains a four-step story without changing its three cards. */
body.home .sw-home-journey{
  position:relative;isolation:isolate;overflow:hidden;
  margin:0 0 clamp(24px,3.6vw,42px);padding:clamp(23px,3vw,37px);
  border:1px solid #cfe7f3;border-radius:26px;
  background:linear-gradient(135deg,#fff 4%,#f8fcff 58%,#eef9ff);
  box-shadow:0 15px 40px rgba(31,112,158,.075);
}
body.home .sw-home-journey::before{
  content:"";pointer-events:none;position:absolute;z-index:-1;right:-90px;top:-150px;width:390px;height:390px;
  border-radius:50%;background:radial-gradient(circle,rgba(141,213,244,.2),transparent 67%);
}
body.home .sw-home-journey__eyebrow{
  margin:0 0 6px;color:#136aa6;
  font:600 clamp(20px,2.2vw,26px)/1.12 var(--sw-font-hand,cursive);
}
body.home .sw-home-journey__title{margin:0;color:#153857;font-size:clamp(19px,2vw,24px);line-height:1.25;letter-spacing:-.02em}
body.home .sw-home-journey__path{position:relative;margin-top:23px}
body.home .sw-home-journey__steps{
  position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
  list-style:none;padding:0;margin:0;
}
body.home .sw-home-journey__step{min-width:0;padding:0 7px;text-align:center;color:#486781}
body.home .sw-home-journey__number{
  display:grid;place-items:center;width:51px;height:51px;margin:0 auto 13px;
  border:2px solid #c1e3f4;border-radius:50%;background:#fff;color:#126aa7;
  box-shadow:0 4px 12px rgba(20,90,130,.08);font-size:14px;font-weight:800;
  position:relative;z-index:2;transition:background .32s ease,color .32s ease,border-color .32s ease,box-shadow .32s ease;
}
body.home .sw-home-journey__step.is-current .sw-home-journey__number,
body.home .sw-home-journey__step.is-complete .sw-home-journey__number{
  border-color:#167ab7;background:linear-gradient(135deg,#1886c0,#0c5ba3);color:#fff;
  box-shadow:0 5px 16px rgba(22,124,180,.19)
}
body.home .sw-home-journey__step h3{margin:0 0 6px;color:#1a3d60;font-size:clamp(15px,1.35vw,17px);line-height:1.28;font-weight:750}
body.home .sw-home-journey__step p{margin:0;color:#54708b;font-size:13px;line-height:1.5}
body.home .sw-home-journey__rail{
  position:absolute;z-index:0;top:24px;left:12.5%;right:12.5%;height:3px;border-radius:99px;
  background:#d4e9f3;
}
body.home .sw-home-journey__fill{
  display:block;position:relative;height:100%;width:var(--sw-home-journey-progress,0%);
  background:linear-gradient(90deg,#1597c7,#1c66b0);
  border-radius:inherit;transition:width .25s ease;
}
body.home .sw-home-journey__fill::after{
  content:"";position:absolute;right:-7px;top:50%;width:13px;height:13px;
  border:3px solid #fff;border-radius:50%;background:#1388bd;
  box-shadow:0 0 0 4px rgba(25,145,202,.13),0 3px 12px rgba(17,100,149,.22);transform:translateY(-50%);
}
/* Cards: a restrained water-light reflection, not a constant animation. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  body.home :is(#pools .sw-pool-card,.sw-home-trainers .sw-trainer-card,.sw-home-pricing .sw-tariff-card,.sw-home-sports__card){
    transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease
  }
  body.home :is(#pools .sw-pool-card,.sw-home-trainers .sw-trainer-card,.sw-home-pricing .sw-tariff-card,.sw-home-sports__card):hover{
    transform:translateY(-4px);border-color:#b7dced;box-shadow:0 16px 36px rgba(19,88,138,.12)
  }
  body.home :is(#pools .sw-pool-card,.sw-home-trainers .sw-trainer-card) .sw-card__media img{
    transition:transform .5s cubic-bezier(.22,.78,.22,1)
  }
  body.home :is(#pools .sw-pool-card,.sw-home-trainers .sw-trainer-card):hover .sw-card__media img{
    transform:scale(1.025)
  }
}
body.home .sw-home-pricing .sw-tariff-card--featured{
  border-color:#a6d8f1;box-shadow:0 10px 29px rgba(19,109,171,.09);
}
body.home .sw-home-pricing .sw-tariff-card--featured .sw-tariff-card__cta,
body.home .sw-home-pricing .sw-tariff-card--featured .sw-tariff-card__cta:hover{
  border-color:#126ab2;color:#fff;background:linear-gradient(110deg,#0f88c3,#1168b5 55%,#0d509f);
}
body.home .sw-home-pricing .sw-tariff-card--featured .sw-tariff-card__cta:hover{
  box-shadow:0 8px 23px rgba(16,108,175,.19);filter:brightness(1.045)
}
@media(max-width:650px){
  body.home .sw-home-journey{padding:22px 18px;border-radius:22px}
  body.home .sw-home-journey__path{margin-top:22px}
  body.home .sw-home-journey__steps{grid-template-columns:minmax(0,1fr);gap:18px}
  body.home .sw-home-journey__step{
    display:grid;grid-template-columns:49px minmax(0,1fr);column-gap:15px;
    text-align:left;padding:0
  }
  body.home .sw-home-journey__number{grid-row:1/3;margin:0;width:45px;height:45px}
  body.home .sw-home-journey__step h3{grid-column:2;margin:2px 0 4px}
  body.home .sw-home-journey__step p{grid-column:2}
  body.home .sw-home-journey__rail{top:22px;bottom:22px;left:21px;right:auto;width:3px;height:auto}
  body.home .sw-home-journey__fill{width:100%;height:var(--sw-home-journey-progress,0%);transition:height .25s ease}
  body.home .sw-home-journey__fill::after{right:auto;top:auto;bottom:-6px;left:50%;transform:translateX(-50%)}
}
@media(max-width:600px){
  body.home .sw-hero-studio__top{gap:10px}
  body.home .sw-hero-studio__copy{padding-bottom:0}
  body.home .sw-hero-studio__benefits{gap:8px}
  body.home .sw-home-hero-signature{margin-top:11px;font-size:20px}
  body.home .sw-home-hero-mobile-cta{
    display:inline-flex;align-items:center;justify-content:center;gap:11px;
    min-height:45px;margin:14px 0 0;padding:10px 17px;border-radius:999px;
    background:linear-gradient(110deg,#1488c8,#0c57a8);color:#fff;
    box-shadow:0 7px 19px rgba(14,93,159,.17);text-decoration:none;font-size:14px;font-weight:750;
  }
  body.home .sw-home-hero-mobile-cta:focus-visible{outline:3px solid #238ace;outline-offset:4px}
  body.home .sw-hero-studio__top .sw-hero-studio__media-row{margin:2px 0 5px;min-width:0}
  body.home .sw-hero-studio__top .sw-hero-studio__gallery{padding-top:5px;padding-bottom:10px}
  body.home .sw-hero-studio__top .sw-hero-studio__form{margin-top:0}
  body.home .sw-hero-studio__form .sw-hero-studio__pool-list{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px
  }
  body.home .sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool{
    width:100%;max-width:100%;min-width:0;min-height:43px;
    border-radius:13px;justify-content:flex-start;padding:8px 10px;
    font-size:12px!important;line-height:1.24!important
  }
  body.home .sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool:nth-child(4){
    grid-column:1/-1
  }
}
@media(max-width:360px){
  body.home .sw-hero-studio__form .sw-hero-studio__pool-list{gap:6px}
  body.home .sw-hero-studio__form .sw-contact-form label.sw-hero-studio__pool{padding:7px 8px;font-size:11.5px!important}
  body.home .sw-home-hero-signature{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  body.home .sw-hero-studio__photo,
  body.home .sw-hero-studio__photo::after,
  body.home .sw-home-journey__number,
  body.home .sw-home-journey__fill{transition:none!important}
}

/* PageSpeed R1 - stable mobile hero order without JS reparenting or layout shift. */
@media (max-width:600px){
  body.home .sw-hero-studio__container{display:flex;flex-direction:column;gap:10px}
  body.home .sw-hero-studio__top{display:contents}
  body.home .sw-hero-studio__copy{order:0}
  body.home .sw-hero-studio__media-row{order:1;margin:2px 0 5px;min-width:0}
  body.home .sw-hero-studio__media-row .sw-hero-studio__gallery{padding-top:5px;padding-bottom:10px}
  body.home .sw-hero-studio__form{order:2;margin-top:0}
  body.home .sw-hero-studio__meta{order:3}
}
