/* B&M Aquatics — rebuild stylesheet
   Palette rationale: the current site is burnt orange on pure black — a barbecue
   palette on a water business, fighting every photograph. This is pond water and
   wet stone, with koi orange reserved strictly for action. */
:root{
  --ink:#0c1a17; --ink-2:#1d3a35; --muted:#5b7671;
  --paper:#f5f2ec; --paper-2:#ffffff; --paper-3:#ebe6dc;
  --water:#0f5c56; --water-2:#12766e; --deep:#0a1f1c; --deep-2:#103a34;
  --koi:#c0431f; --koi-2:#e05a2e; --gold:#c9963a;
  --line:rgba(12,26,23,.13); --line-2:rgba(255,255,255,.16);
  --shadow:0 1px 2px rgba(10,31,28,.05),0 14px 40px -16px rgba(10,31,28,.30);
  --wrap:1280px; --r:14px;
}
*{box-sizing:border-box}
/* The html background is the colour the browser paints BEYOND the document —
   iOS rubber-band overscroll, and the strip under the fixed call bar. It was
   inheriting the cream paper, so scrolling past the dark footer flashed a slab
   of cream. Match the footer instead and the page ends where it looks like it
   ends. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background:var(--deep)}
/* iOS paints the rubber-band overscroll area from the BODY background, not
   always from html — and during that bounce it drags position:fixed elements
   (the call bar) up with the page, exposing it. So body and html are BOTH the
   footer's dark green, and the cream page colour lives on <main>, which is the
   only thing that actually needs it. Header, banner, footer and call bar all
   paint their own backgrounds already. */
main{background:var(--paper)}
body{margin:0;background:var(--deep);color:var(--ink);
  font:400 17px/1.65 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:Fraunces,Georgia,serif;font-weight:600;line-height:1.1;
  margin:0 0 .5em;letter-spacing:-.018em}
h1{font-size:clamp(2.3rem,5.6vw,4.2rem)}
h2{font-size:clamp(1.75rem,3.6vw,2.7rem)}
h3{font-size:1.24rem;line-height:1.25}
h4{font-size:1.02rem}
p{margin:0 0 1.1em}
a{color:var(--water);text-underline-offset:3px}
img{max-width:100%;height:auto;display:block}
figure{margin:0}
/* Gutters: 2.5rem each side on desktop (was 1.25rem) — the layout was running
   too close to the window edge. Tightens on small screens where space is scarce. */
.wrap{width:min(var(--wrap),100% - 5rem);margin-inline:auto}
.narrow{max-width:760px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;z-index:99;background:#fff;padding:.7rem 1rem;border-radius:8px;box-shadow:var(--shadow)}
:focus-visible{outline:3px solid var(--koi);outline-offset:2px;border-radius:4px}

/* banner */
.banner{background:var(--koi);color:#fff;text-align:center;font-size:.93rem;padding:.6rem 1rem;font-weight:500}
.banner a{color:#fff}

/* header */
header{position:sticky;top:0;z-index:50;background:rgba(245,242,236,.94);
  backdrop-filter:saturate(1.5) blur(12px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:1.1rem;padding:1rem 0}
.brand{font-family:Fraunces,Georgia,serif;font-weight:700;font-size:1.28rem;color:var(--ink);
  text-decoration:none;letter-spacing:-.025em;white-space:nowrap}
.brand span{color:var(--koi)}
nav{margin-left:auto;display:flex;gap:1.05rem;flex-wrap:wrap;justify-content:flex-end}
nav a{color:var(--ink-2);text-decoration:none;font-size:.9rem;font-weight:500;white-space:nowrap}
nav a:hover,nav a[aria-current=page]{color:var(--water)}
nav a[aria-current=page]{font-weight:600}
.callbtn{display:inline-flex;align-items:center;gap:.45rem;background:var(--water);color:#fff;
  text-decoration:none;padding:.6rem 1.1rem;border-radius:999px;font-weight:600;font-size:.93rem;white-space:nowrap}
.callbtn:hover{background:var(--water-2)}
/* Client Area: an outlined sibling to the call button so it reads as sign-in,
   not as another nav destination. The nav is already nine items deep. */
.portalbtn{display:inline-flex;align-items:center;gap:.4rem;border:1.5px solid var(--water);
  color:var(--water);background:transparent;text-decoration:none;padding:.54rem 1rem;
  border-radius:999px;font-weight:600;font-size:.92rem;white-space:nowrap}
.portalbtn:hover{background:var(--water);color:#fff}
.portalbtn::before{content:"";width:.85em;height:.85em;flex:0 0 auto;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.7-9 6v2h18v-2c0-3.3-4-6-9-6Z'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.7-9 6v2h18v-2c0-3.3-4-6-9-6Z'/></svg>") center/contain no-repeat}
/* only needed inside the collapsed mobile menu, where .portalbtn is hidden */
.navportal{display:none !important}
.navtoggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);
  border-radius:9px;padding:.5rem .7rem;font:inherit;font-size:.9rem;cursor:pointer;color:var(--ink)}

/* hero */
.hero{position:relative;display:flex;align-items:flex-end;color:#fff;overflow:hidden;
  background:var(--deep);min-height:min(78vh,660px)}
/* Home hero shows an aerial of the whole property — crop it as little as possible.
   Tracking the photo's own 3:2 aspect means the full width of the frame is visible. */
/* NB: aspect-ratio + max-height shrinks the box's WIDTH to keep the ratio,
   which left a gap beside the hero. Set the height directly instead. */
.hero.home{min-height:0;height:min(calc(100vw / 1.62),820px)}
/* The home hero is wrapped in <picture> for art direction, so the image is no
   longer a DIRECT child of .hero — ">img" alone would silently stop applying
   and the photo would fall out of the layout. Cover both shapes. */
.hero.home>img,.hero.home>picture>img{object-position:center 46%}
.hero>img,.hero>picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero>picture{position:absolute;inset:0;z-index:0;display:block}
.hero::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(10,31,28,.04) 0%,rgba(10,31,28,.16) 38%,rgba(10,31,28,.68) 100%)}
/* the home hero is a wide aerial: bias the scrim to the left so the headline stays legible
   without flattening the property on the right-hand side of the frame. */
.hero.home::before{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(10,31,28,.50) 0%,rgba(10,31,28,.14) 38%,rgba(10,31,28,0) 58%)}
.hero .wrap{position:relative;z-index:2;padding:5.5rem 0 3.4rem}
.hero h1{color:#fff;max-width:15ch;text-shadow:0 2px 10px rgba(6,20,18,.55),0 2px 40px rgba(6,20,18,.45)}
.hero p{max-width:54ch;font-size:1.15rem;color:#fff;margin-bottom:1.7rem;text-shadow:0 1px 8px rgba(6,20,18,.6)}
.hero.short{min-height:min(46vh,400px)}
.hero.short h1{max-width:20ch}
.cta{display:flex;gap:.75rem;flex-wrap:wrap}
/* social proof as one line under the buttons, not a slab of numerals */
.rating{font-size:.92rem;color:rgba(255,255,255,.9);margin:1.1rem 0 0;
  text-shadow:0 1px 8px rgba(6,20,18,.6);display:flex;align-items:center;gap:.45rem}
.rating span{color:var(--gold);letter-spacing:.06em;font-size:.95rem}
.rating strong{font-weight:700}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.88rem 1.5rem;border-radius:999px;
  text-decoration:none;font-weight:600;font-size:1rem;border:1.5px solid transparent;cursor:pointer}
.btn-p{background:var(--koi);color:#fff}
.btn-p:hover{background:var(--koi-2)}
.btn-s{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.55)}
.btn-s:hover{background:rgba(255,255,255,.22)}
.btn-d{background:var(--water);color:#fff}
.btn-d:hover{background:var(--water-2)}

/* sections */
section{padding:4.6rem 0}
section.tight{padding:3rem 0}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.76rem;font-weight:700;color:var(--koi);margin:0 0 .7rem}
.lead{font-size:1.14rem;color:var(--ink-2);max-width:64ch}
.band{background:var(--deep);color:#fff}
.band h2,.band h3,.band h4{color:#fff}
.band p,.band li{color:rgba(255,255,255,.86)}
.band .eyebrow{color:var(--koi-2)}
.band .lead{color:rgba(255,255,255,.9)}
.band a{color:#fff}
.paper2{background:var(--paper-2)}

/* stat strip */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
.stat{padding:1.7rem 1.2rem;border-right:1px solid var(--line-2)}
.stat:last-child{border-right:0}
.stat b{display:block;font-family:Fraunces,Georgia,serif;font-size:2.1rem;line-height:1;color:#fff;margin-bottom:.3rem}
.stat span{font-size:.9rem;color:rgba(255,255,255,.72)}

/* cards */
.grid{display:grid;gap:1.35rem;grid-template-columns:repeat(auto-fit,minmax(255px,1fr))}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.card{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r);
  padding:1.55rem;box-shadow:var(--shadow)}
.card h3{margin-bottom:.4rem}
.card h3 a{color:inherit;text-decoration:none}
.card h3 a:hover{color:var(--water);text-decoration:underline}
.band .card h3 a:hover{color:var(--koi-2)}
.card p:last-child{margin-bottom:0}
.card p{color:var(--muted);font-size:.97rem}
.band .card{background:rgba(255,255,255,.055);border-color:var(--line-2);box-shadow:none}
.band .card p{color:rgba(255,255,255,.8)}
.card.photo{padding:0;overflow:hidden}
.card.photo img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card.photo .body{padding:1.4rem 1.5rem 1.55rem}

/* split feature */
.split{display:grid;gap:2.6rem;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));align-items:center}
.split img{width:100%;border-radius:var(--r);box-shadow:var(--shadow);object-fit:cover}
.split.rev>*:first-child{order:2}

/* gallery — CSS columns so nothing is cropped.
   Their library is 16 landscape / 16 portrait; any fixed ratio mangles half of it. */
.masonry{columns:3 300px;column-gap:1.1rem}
.masonry figure{break-inside:avoid;margin:0 0 1.1rem}
.masonry img{width:100%;border-radius:11px;box-shadow:var(--shadow);background:var(--paper-3)}
.masonry figcaption{font-size:.83rem;color:var(--muted);padding:.45rem .15rem 0;line-height:1.4}

/* lists */
ul.ticks{list-style:none;padding:0;margin:1.1rem 0 0}
ul.ticks li{position:relative;padding-left:1.7rem;margin-bottom:.6rem}
ul.ticks li::before{content:"";position:absolute;left:0;top:.62em;width:.7rem;height:.7rem;
  border-radius:50%;background:var(--koi)}
.band ul.ticks li::before{background:var(--koi-2)}

/* tables */
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.t{width:100%;border-collapse:collapse;margin-top:1.2rem;font-size:.96rem;
  background:var(--paper-2);border:1px solid var(--line);border-radius:12px;overflow:hidden}
table.t th,table.t td{text-align:left;padding:.72rem .9rem;border-bottom:1px solid var(--line);
  vertical-align:top;color:var(--ink)}
table.t th{background:rgba(15,92,86,.07);font-weight:600;font-size:.79rem;
  text-transform:uppercase;letter-spacing:.07em;color:var(--ink-2)}
table.t tr:last-child td{border-bottom:0}
.band table.t,.band table.t td,.band table.t th{color:var(--ink)}
.band table.t a{color:var(--water)}

/* contact */
.kv{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1.6rem;margin-top:1rem}
.kv dt{font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);padding-top:.2rem}
.kv dd{margin:0}
.hours{border-collapse:collapse;font-size:1rem}
.hours th{text-align:left;font-weight:500;color:var(--muted);padding:.2rem 1.4rem .2rem 0;width:3.4rem}
.hours td{padding:.2rem 0}
.hours .closed th,.hours .closed td{color:var(--koi);font-weight:600}
.socials{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.3rem}
.socials a{padding:.45rem .9rem;border:1px solid var(--line);border-radius:999px;
  text-decoration:none;font-size:.9rem;font-weight:500;color:var(--ink-2);background:var(--paper-2)}
.socials a:hover{border-color:var(--water);color:var(--water)}
.map{border:0;width:100%;aspect-ratio:4/3;border-radius:var(--r);box-shadow:var(--shadow);min-height:300px}

/* notes */
.note{background:rgba(201,150,58,.12);border-left:3px solid var(--gold);
  padding:.95rem 1.15rem;border-radius:0 10px 10px 0;margin-top:1.2rem;font-size:.95rem}
.note p:last-child{margin-bottom:0}
.band .note{background:rgba(255,255,255,.07);border-left-color:var(--gold);color:rgba(255,255,255,.88)}
code{background:rgba(12,26,23,.07);padding:.13rem .38rem;border-radius:5px;font-size:.88em}

/* footer */
footer{background:var(--deep);color:rgba(255,255,255,.6);padding:3rem 0 2.4rem;font-size:.92rem}
footer a{color:rgba(255,255,255,.85)}
footer h4{color:#fff;font-size:.82rem;text-transform:uppercase;letter-spacing:.1em;
  font-family:Inter,sans-serif;font-weight:600;margin-bottom:.7rem}
.fgrid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:2rem}
.fgrid ul{list-style:none;padding:0;margin:0}
.fgrid li{margin-bottom:.45rem}
.fbot{border-top:1px solid var(--line-2);padding-top:1.5rem;display:flex;gap:1rem;
  flex-wrap:wrap;justify-content:space-between}
.stagenote{margin-top:1.2rem;font-size:.72rem;line-height:1.5;color:rgba(255,255,255,.32);max-width:70ch}

/* sticky mobile call bar — the live site hides its only phone link inside a popup */
.callbar{display:none}

@media (max-width:820px){
  .wrap{width:min(var(--wrap),100% - 2.5rem)}
  nav{display:none}
  .portalbtn{display:none}
  nav.open .navportal{display:block !important;color:var(--water);font-weight:600}
  nav.open{display:flex;position:absolute;top:100%;left:0;right:0;background:var(--paper-2);
    flex-direction:column;gap:0;padding:.5rem 1.25rem 1rem;border-bottom:1px solid var(--line);
    box-shadow:var(--shadow)}
  nav.open a{padding:.75rem 0;border-bottom:1px solid var(--line);font-size:1rem}
  .navtoggle{display:block}
  .callbtn{display:none}
  header{position:relative}

  /* THE HERO BUG. .hero.home fixes its height to 100vw/1.62 — on a 402px phone
     that is 248px, while the eyebrow + headline + paragraph + buttons need well
     over 500px. The box is overflow:hidden and align-items:flex-end, so the
     surplus was clipped off the TOP: the page opened mid-sentence with the
     headline nowhere on screen. On small screens let the content set the
     height and use min-height only as a floor. */
  .hero.home{height:auto;min-height:min(74vh,560px)}
  .hero .wrap{padding:2.8rem 0 2.2rem}
  /* the phone is a small, bright, hand-held screen — the desktop scrim is not
     enough to hold white type over a photograph */
  .hero::after{background:linear-gradient(180deg,rgba(10,31,28,.30) 0%,rgba(10,31,28,.46) 45%,rgba(10,31,28,.80) 100%)}
  .hero.home::before{background:linear-gradient(90deg,rgba(10,31,28,.42) 0%,rgba(10,31,28,.24) 60%,rgba(10,31,28,.12) 100%)}
  .hero h1{max-width:18ch}
  .hero p{font-size:1.06rem;max-width:38ch;margin-bottom:1.4rem}
  /* stacked full-width buttons beat two cramped pills that wrap awkwardly */
  .cta{gap:.6rem}
  .cta .btn{flex:1 1 100%;justify-content:center}

  /* The stats band ran ~380px of heavy serif numerals behind vertical rules
     before any actual content. Lighten it: no rules, tighter, smaller. */
  .stats{grid-template-columns:1fr 1fr;gap:0}
  .stat{padding:1.15rem .9rem;border-right:0}
  .stat b{font-size:1.65rem}
  .stat span{font-size:.84rem;line-height:1.4}

  section{padding:3.3rem 0}
  .masonry{columns:2 150px;column-gap:.8rem}
  .callbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;
    background:var(--koi);color:#fff;text-decoration:none;align-items:center;
    justify-content:center;gap:.5rem;padding:.85rem;font-weight:600;
    box-shadow:0 -4px 20px rgba(0,0,0,.18)}
  /* Room for the fixed call bar must be reserved INSIDE the footer, not as
     padding on <body>. Body's background is cream, so padding there painted a
     slab of cream below the dark footer — the strip the call bar floats over.
     Putting it on the footer means the reserved space is the footer's own dark
     green and the page ends where it looks like it ends. */
  body{padding-bottom:0}

  /* A phone is short and narrow, so the footer must not run twenty links deep
     in one column. Two columns, tighter leading, smaller type — same content,
     roughly half the scrolling. */
  footer{padding:2.2rem 0 5.2rem;font-size:.88rem}
  .fgrid{grid-template-columns:1fr 1fr;gap:1.3rem 1.5rem;margin-bottom:1.4rem}
  .fgrid li{margin-bottom:.28rem}
  footer h4{margin-bottom:.45rem}
  .fbot{padding-top:1.1rem;gap:.5rem}
  .stagenote{margin-top:.9rem;font-size:.68rem}
  .split.rev>*:first-child{order:0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* koi variety cards — photo-led reference grid */
.koigrid{display:grid;gap:1.3rem;grid-template-columns:repeat(auto-fill,minmax(265px,1fr))}
.koicard{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.koicard img{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--paper-3)}
.koicard .kbody{padding:1.15rem 1.25rem 1.3rem;display:flex;flex-direction:column;flex:1}
.kbadge{display:inline-block;align-self:flex-start;font-size:.66rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.09em;padding:.18rem .55rem;border-radius:999px;margin-bottom:.6rem;
  background:rgba(15,92,86,.13);color:var(--water)}
.band .kbadge{background:rgba(224,90,46,.2);color:var(--koi-2)}
.koicard h3{font-size:1.12rem;margin-bottom:.45rem}
.koicard .kanji{font-weight:400;color:var(--muted);font-size:.9rem;margin-left:.2rem}
.koicard p{font-size:.93rem;color:var(--ink-2);margin-bottom:.9rem}
.kmeta{display:grid;grid-template-columns:auto 1fr;gap:.2rem .8rem;margin:auto 0 0;font-size:.83rem}
.kmeta dt{color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:.71rem;padding-top:.15rem}
.kmeta dd{margin:0;color:var(--ink)}

/* The Ask B&M launcher is injected by the claudeamour widget after our stylesheet,
   so overriding it needs !important. On phones the sticky call bar owns the bottom
   edge — lift the launcher clear of it. */
@media (max-width:820px){
  .acw-fab{bottom:4.4rem !important}
  .acw-panel{bottom:7.6rem !important;max-height:min(460px,calc(100vh - 12rem)) !important}
}
