/* Palette: soft whites with teal and green accents. Text colours were
   checked against WCAG AA (4.5:1): --accent, --accent-deep and --green are
   safe for text on --paper/--panel/--mist; --sage and --seafoam are
   decorative only (too light for text). On the dark footer use
   --footer-text / --footer-accent instead. */
:root{
  --ink:#10201F;
  --text:#24302F;
  --paper:#F7FBFA;
  --panel:#FFFFFF;
  --mist:#E6F3F0;
  --accent:#1E7A74;
  --accent-deep:#145F5A;
  --green:#3F7D5C;
  --sage:#8FBFA6;
  --seafoam:#A9DCD3;
  --footer:#123634;
  --footer-text:#CFE3DF;
  --footer-accent:#8FD3C7;
  --line: rgba(16,52,50,0.1);
  --shadow: 0 24px 50px -26px rgba(16,52,50,0.32);
  --shadow-sm: 0 12px 26px -14px rgba(16,52,50,0.26);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Events lean green instead of teal to read as a distinct section — every
   component below keys off --accent/--accent-deep, so overriding them here
   on <body> re-themes the whole page without duplicating component CSS. */
.theme-events{ --accent:var(--green); --accent-deep:#2E6448; }
*{box-sizing:border-box;}
figure{ margin:0; }
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--paper); color:var(--text);
  font-family:'Montserrat', sans-serif; font-weight:400; font-size:16px; line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
h1,h2,h3,h4{font-family:'Montserrat', sans-serif; font-weight:300; margin:0; letter-spacing:0.01em;}
.script{ font-family:'Bonheur Royale', cursive; font-weight:400; }
/* .wrap owns horizontal padding only and sections own vertical padding
   only, so an element that is both (e.g. class="program-detail wrap")
   keeps both instead of one shorthand wiping out the other. */
.wrap{max-width:1180px; margin:0 auto; padding-inline:40px;}
section{position:relative;}
.eyebrow{
  font-family:'Montserrat', sans-serif; font-weight:600; font-size:0.76rem;
  letter-spacing:0.24em; text-transform:uppercase; color:var(--accent);
}
.eyebrow.on-dark{ color:var(--mist); }

.ring-divider{ display:flex; align-items:center; gap:16px; margin:20px 0 24px; }
.ring-divider .l{ height:1px; background:var(--line); flex:1; max-width:60px; }
.ring-divider svg{ width:22px; height:22px; }
.center .ring-divider{ justify-content:center; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:'Montserrat', sans-serif; font-weight:500; font-size:0.86rem;
  letter-spacing:0.12em; text-transform:uppercase;
  padding:16px 32px; border-radius:100px; border:1px solid var(--ink);
  cursor:pointer; background:none;
  transition:background-color .5s var(--ease-soft), color .5s var(--ease-soft), border-color .5s var(--ease-soft),
    transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.btn:not([disabled]):hover{ transform:translateY(-2px); box-shadow:0 14px 28px -16px rgba(20,95,90,0.55); }
.btn-dark{ background:var(--accent-deep); color:#fff; border-color:var(--accent-deep); }
.btn-dark:hover{ background:var(--accent); border-color:var(--accent); }
.btn-ghost{ background:transparent; color:var(--accent-deep); border-color:var(--accent-deep); }
.btn-ghost:hover{ background:var(--accent-deep); color:#fff; }
.btn-sm{ padding:10px 20px; font-size:0.74rem; }
.btn[disabled]{ opacity:0.4; cursor:not-allowed; }

/* header */
header{ position:sticky; top:0; z-index:100; background:rgba(247,251,250,0.88); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line); transition:box-shadow .6s var(--ease-soft), background-color .6s var(--ease-soft); }
header.scrolled{ background:rgba(255,255,255,0.94); box-shadow:0 10px 30px -22px rgba(16,52,50,0.45); }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px clamp(18px,4vw,40px); max-width:1180px; margin:0 auto; }
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img{ height:clamp(44px,6vw,64px); width:auto; }
/* Logos are recoloured here, so any logo uploaded with a transparent
   background reads clearly: solid black on the light header, solid white
   on the dark footer (see the footer rules), whatever colour the file is. */
header .brand img{ filter:brightness(0); }
.brand .script{ font-size:clamp(1.4rem,3vw,2rem); color:var(--ink); }
nav.links{ display:flex; align-items:center; gap:clamp(0px,0.6vw,4px); flex-wrap:nowrap; min-width:0; }
.nav-item{ position:relative; flex-shrink:0; }
.nav-item > a{ display:block; padding:10px clamp(8px,1.3vw,16px); font-weight:500; font-size:clamp(0.72rem,1vw,0.84rem); letter-spacing:0.08em; text-transform:uppercase; white-space:nowrap; }
.nav-item > a:hover, .nav-item > a.active{ color:var(--accent); }
.nav-item .submenu{
  position:absolute; top:calc(100% + 8px); left:0; background:var(--panel);
  border:1px solid var(--line); border-radius:14px; min-width:180px; padding:8px;
  opacity:0; visibility:hidden; transform:translateY(6px); transition:all .2s ease; box-shadow:var(--shadow-sm);
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu{ opacity:1; visibility:visible; transform:translateY(0); }
.submenu a{ display:block; padding:9px 14px; font-weight:400; font-size:0.88rem; border-radius:8px; text-transform:none; letter-spacing:0; }
.submenu a:hover{ background:var(--paper); color:var(--accent); }
.nav-right{ display:flex; align-items:center; gap:18px; }
.cart-link{ font-weight:500; font-size:0.84rem; letter-spacing:0.08em; text-transform:uppercase; display:flex; align-items:center; gap:6px; }
.cart-count{ background:var(--accent); color:#fff; border-radius:100px; font-size:0.7rem; padding:1px 7px; }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; }
.menu-toggle span{ display:block; width:22px; height:1.5px; background:var(--ink); margin:5px 0; }
.logo-fallback{ font-family:'Bonheur Royale', cursive; font-size:2.1rem; color:#000; line-height:1; }

/* hero */
.hero{ padding:80px 0 100px; }
.hero .wrap{ display:grid; grid-template-columns:1fr 0.92fr; gap:60px; align-items:center; }
.hero h1{ font-size:clamp(2.6rem,5vw,4.3rem); font-weight:300; line-height:1.08; margin:22px 0 26px; }
.hero h1 .script{ font-size:1.5em; color:var(--accent); font-weight:400; }
.hero p.lede{ font-size:1.12rem; color:var(--text); opacity:0.72; max-width:44ch; margin-bottom:34px; }
.hero .cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero .meta-row{ display:flex; gap:40px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:26px; }
.hero .meta-row .stat b{ display:block; font-weight:300; font-size:1.9rem; color:var(--ink); }
.hero .meta-row .stat span{ font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; opacity:0.6; }
.hero-visual{ position:relative; height:480px; }
.hv-main{ position:absolute; width:82%; height:400px; top:0; right:0; border-radius:200px 200px 24px 24px; overflow:hidden; box-shadow:var(--shadow); }
.hv-wash{ width:100%; height:100%; background:linear-gradient(165deg,#E6F3F0,#8FBFA6 55%,#1E7A74 100%); }
.hv-wash img{ width:100%; height:100%; object-fit:cover; }
.hv-chip{ position:absolute; left:0; bottom:24px; background:var(--panel); border-radius:20px; padding:18px 22px; box-shadow:var(--shadow-sm); display:flex; align-items:center; gap:14px; max-width:230px; }
.hv-chip .dot{ position:relative; width:40px; height:40px; border-radius:50%; background:linear-gradient(140deg,var(--seafoam),var(--accent)); flex-shrink:0; }
.hv-chip .txt b{ display:block; font-size:0.86rem; font-weight:600; }
.hv-chip .txt span{ font-size:0.76rem; opacity:0.6; }

/* page header (non-home pages) */
.page-header{ padding:56px 0 44px; border-bottom:1px solid var(--line); }
.page-header h1{ font-size:clamp(2.2rem,4vw,3.2rem); margin-top:10px; }
.page-header p{ opacity:0.7; max-width:60ch; margin-top:16px; font-size:1.05rem; }

.page-header-center{ text-align:center; }
.page-header-center p{ margin-left:auto; margin-right:auto; }

.flex-body-with-image{ max-width:none; }
.flex-header-grid{ display:grid; grid-template-columns:1.7fr 1fr; gap:40px; align-items:start; }
.flex-header-image img{ width:100%; height:100%; object-fit:cover; border-radius:20px; box-shadow:var(--shadow-sm); }
.flex-header-image{ aspect-ratio:3/4; border-radius:20px; overflow:hidden; background:var(--mist); position:sticky; top:100px; }
@media (max-width:900px){
  .flex-header-grid{ grid-template-columns:1fr; }
  .flex-header-image{ max-width:560px; margin:0 auto; position:static; }
}

.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.9rem,3.2vw,2.6rem); margin-top:6px; }
.section-head p{ opacity:0.68; margin-top:14px; font-size:1.04rem; }

/* programs */
.programs{ padding-block:90px; }
.program-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.program-card{ background:var(--panel); border-radius:28px; padding:40px 32px; box-shadow:var(--shadow-sm); transition:transform .25s ease, box-shadow .25s ease; display:flex; flex-direction:column; }
.program-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.program-card .icon-ring{ width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:24px; }
.program-card h3{ font-weight:500; font-size:1.32rem; margin-bottom:12px; }
.program-card p{ opacity:0.68; font-size:0.98rem; margin-bottom:24px; flex:1; }
.program-card .price{ font-weight:600; font-size:1.02rem; border-top:1px solid var(--line); padding-top:18px; }
.program-card .price small{ display:block; opacity:0.6; font-size:0.8rem; font-weight:400; margin-top:3px; }
.program-card a.card-link{ display:inline-flex; gap:8px; margin-top:18px; font-size:0.84rem; text-transform:uppercase; letter-spacing:0.1em; font-weight:600; color:var(--accent); }
.program-card a.card-link:hover{ text-decoration:underline; }
/* Class names match the stored icon_color values (kept so existing content
   doesn't need migrating); the colours are the teal/green palette. */
.ring-beige{ background:linear-gradient(140deg,var(--mist),var(--seafoam)); }
.ring-terracotta{ background:linear-gradient(140deg,var(--seafoam),var(--accent)); }
.ring-sage{ background:linear-gradient(140deg,#CFE8DA,var(--green)); }

.program-detail{ padding-block:60px 100px; display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; }
.program-detail .body{ opacity:0.8; }
.program-detail .body p{ margin:0 0 18px; }
.booking-panel{ background:var(--panel); border-radius:28px; padding:36px 32px; box-shadow:var(--shadow-sm); align-self:start; position:sticky; top:110px; }
.booking-panel .price{ font-size:1.8rem; font-weight:300; margin-bottom:4px; }
.booking-panel .price small{ display:block; font-size:0.85rem; opacity:0.6; font-weight:400; }
.session-list{ margin:20px 0; display:flex; flex-direction:column; gap:10px; }
.session-list li{ display:flex; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; font-size:0.9rem; }
.session-list li span.tag{ opacity:0.55; font-size:0.78rem; }

/* outline / about */
.outline{ padding:10px 0 100px; }
.outline .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:start; }
.outline p{ opacity:0.7; font-size:1.02rem; margin-bottom:24px; }
.age-badges{ display:flex; gap:10px; flex-wrap:wrap; }
.age-badge{ font-weight:500; font-size:0.84rem; padding:10px 18px; border-radius:100px; border:1px solid var(--line); background:var(--panel); }
.chip-cloud{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ font-size:0.88rem; font-weight:500; padding:10px 18px; border-radius:100px; background:var(--panel); border:1px solid var(--line); }

/* gallery */
.gallery{ padding:90px 0 100px; }
/* As many columns as fit: one on phones, up to four on wide screens. */
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap:clamp(14px,2vw,22px); }
.gallery-grid .plate{ height:auto; aspect-ratio:4/3; }
.gallery-grid > p{ grid-column:1 / -1; }
.gallery-grid figure:nth-child(4n+1) .plate{ background:linear-gradient(160deg,#E6F3F0,#1E7A74); }
.gallery-grid figure:nth-child(4n+2) .plate{ background:linear-gradient(160deg,#EEF6F1,#8FBFA6); }
.gallery-grid figure:nth-child(4n+3) .plate{ background:linear-gradient(160deg,#F4FAF8,#A9DCD3); }
.gallery-grid figure:nth-child(4n+4) .plate{ background:linear-gradient(160deg,#DCEBE4,#3F7D5C); }
.plate{ height:200px; border-radius:22px; box-shadow:var(--shadow-sm); overflow:hidden; background:linear-gradient(160deg,#E6F3F0,#8FBFA6); }
.plate img{ width:100%; height:100%; object-fit:cover; transition:transform 1.4s var(--ease-soft); }
figure:hover .plate img{ transform:scale(1.04); }
.gallery-grid figcaption{ font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; opacity:0.7; text-align:center; margin-top:12px; overflow-wrap:anywhere; }

/* gallery carousel (homepage teaser) */
.gallery-carousel{ position:relative; padding:0 8px; }
.carousel-viewport{ overflow:hidden; }
.carousel-track{ display:flex; gap:22px; transition:transform .9s var(--ease-soft); touch-action:pan-y; }
.carousel-slide{ flex:0 0 calc(25% - 16.5px); min-width:0; }
.carousel-slide .plate{ height:200px; }
.carousel-slide figcaption{ font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase; opacity:0.6; text-align:center; margin-top:12px; }
.carousel-btn{
  position:absolute; top:84px; width:44px; height:44px; border-radius:50%;
  background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow-sm);
  display:flex; align-items:center; justify-content:center; font-size:1.5rem; line-height:1;
  cursor:pointer; z-index:5; color:var(--ink);
}
.carousel-btn:hover{ background:var(--accent); color:#fff; border-color:var(--accent); }
.carousel-btn[hidden]{ display:none; }
.carousel-prev{ left:-14px; }
.carousel-next{ right:-14px; }

/* testimonials */
.testimonials{ padding:20px 0 100px; }
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.testi-card{ background:var(--panel); border-radius:24px; padding:34px 30px; box-shadow:var(--shadow-sm); }
.testi-card .script{ font-size:2.6rem; color:var(--accent); line-height:0.7; display:block; margin-bottom:16px; }
.testi-card p{ font-size:1rem; opacity:0.78; margin-bottom:20px; }
.testi-card .stars{ color:var(--accent); letter-spacing:2px; margin-bottom:8px; font-size:0.85rem;}
.testi-card .who{ font-weight:600; font-size:0.82rem; letter-spacing:0.06em; text-transform:uppercase; }

.rating-badge{ display:flex; align-items:center; gap:16px; margin:56px auto 0; max-width:380px; justify-content:center; background:var(--panel); border-radius:100px; padding:16px 28px; box-shadow:var(--shadow-sm); }
.rating-badge .score{ font-weight:600; font-size:1.5rem; }
.rating-badge .stars{ color:var(--accent); letter-spacing:2px; }
.rating-badge small{ display:block; opacity:0.6; font-size:0.74rem; letter-spacing:0.06em; text-transform:uppercase; }

/* shop */
.shop{ padding:10px 0 100px; }
.shop-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.shop-card{ position:relative; height:320px; border-radius:28px; overflow:hidden; display:flex; align-items:flex-end; padding:28px; box-shadow:var(--shadow); }
.shop-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(10,40,38,0.55), transparent 60%); }
.shop-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 1.4s var(--ease-soft); }
.shop-card:hover img{ transform:scale(1.05); }
.shop-card .label{ position:relative; z-index:2; color:#fff; }
.shop-card .label h3{ color:#fff; font-weight:400; font-size:1.55rem; margin-top:6px; }
.shop-1{ background:linear-gradient(160deg,#7FC4B8,#145F5A); }
.shop-2{ background:linear-gradient(160deg,#B5D8C3,#3F7D5C); }
.shop-3{ background:linear-gradient(160deg,#D7EEEA,#5FA79C); }

.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.product-card{ background:var(--panel); border-radius:24px; overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; }
.product-card .thumb{ height:220px; background:linear-gradient(160deg,#E6F3F0,#8FBFA6); overflow:hidden; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform 1.4s var(--ease-soft); }
.product-card:hover .thumb img{ transform:scale(1.05); }
.product-card .body{ padding:22px 22px 26px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-card h3{ font-size:1.1rem; font-weight:500; }
.product-card .price{ font-weight:600; color:var(--accent); }
.product-card form{ margin-top:auto; }

.product-detail{ padding-block:60px 100px; display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.product-detail .thumb{ border-radius:28px; overflow:hidden; box-shadow:var(--shadow); height:460px; background:linear-gradient(160deg,#E6F3F0,#8FBFA6); }
.product-detail .thumb{ display:block; }
.product-detail .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-media{ min-width:0; }
.product-thumbs{ list-style:none; margin:16px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(76px, 1fr)); gap:12px; }
.product-thumbs a{ display:block; aspect-ratio:1; border-radius:14px; overflow:hidden; box-shadow:var(--shadow-sm); background:linear-gradient(160deg,#E6F3F0,#8FBFA6); }
.product-thumbs img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease-soft); }
.product-thumbs a:hover img, .product-thumbs a:focus-visible img{ transform:scale(1.06); }
.product-thumbs a:focus-visible, .product-detail .thumb:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }
.product-detail .price{ font-size:1.7rem; color:var(--accent); font-weight:600; margin:14px 0 24px; }
.qty-row{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.qty-row input{ width:70px; padding:10px 12px; border-radius:100px; border:1px solid var(--line); text-align:center; font-family:inherit; }

.cart-page table{ width:100%; border-collapse:collapse; margin-bottom:30px; }
.cart-page th{ text-align:left; font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; opacity:0.6; padding:0 0 14px; border-bottom:1px solid var(--line); }
.cart-page td{ padding:18px 0; border-bottom:1px solid var(--line); vertical-align:middle; }
.cart-page td.qty input{ width:60px; padding:8px; border-radius:8px; border:1px solid var(--line); text-align:center; }
.cart-summary{ display:flex; justify-content:flex-end; }
.cart-summary .box{ background:var(--panel); border-radius:20px; padding:26px 30px; box-shadow:var(--shadow-sm); min-width:280px; }
.cart-summary .total{ display:flex; justify-content:space-between; font-weight:600; font-size:1.2rem; margin:14px 0 20px; }
.empty-state{ text-align:center; padding:80px 0; opacity:0.6; }

.checkout-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; }
.contact-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; }
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:0.82rem; font-weight:600; letter-spacing:0.04em; margin-bottom:8px; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding:14px 16px; border-radius:14px; border:1px solid var(--line);
  font-family:inherit; font-size:0.96rem; background:var(--panel);
}
.form-field textarea{ min-height:110px; resize:vertical; }
.form-errors{ color:#a33; font-size:0.85rem; margin-top:6px; }
.payment-choice{ display:flex; flex-direction:column; gap:10px; }
.payment-option{
  display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--line);
  border-radius:14px; cursor:pointer; font-weight:400; margin:0;
}
.payment-option:has(input:checked){ border-color:var(--accent); background:rgba(30,122,116,0.06); }
.payment-option input{ width:auto; flex-shrink:0; }
.payment-option span{ display:flex; flex-direction:column; gap:2px; }
.payment-option small{ opacity:0.6; font-weight:400; }
.order-summary{ background:var(--panel); border-radius:20px; padding:28px; box-shadow:var(--shadow-sm); align-self:start; }
.order-summary li{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line); font-size:0.92rem; }

/* booking */
.booking-form{ background:var(--panel); border-radius:28px; padding:40px; box-shadow:var(--shadow-sm); max-width:640px; margin:0 auto; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.confirmation-banner{ background:var(--mist); border-radius:24px; padding:32px; text-align:center; margin-bottom:40px; }

/* CTA banner */
.cta-banner{ background:var(--mist); border-radius:40px; margin:0 40px 100px; padding:90px 60px; text-align:center; }
.cta-banner h2{ font-weight:300; font-size:clamp(2rem,3.6vw,3rem); margin-bottom:18px; }
.cta-banner p{ opacity:0.72; max-width:50ch; margin:0 auto 32px; font-size:1.05rem; }

/* generic flex page blocks */
/* Text-only pages have no inner .wrap, so they carry their own side padding
   (the max-width includes it, keeping a ~680px reading column). */
.flex-body{ padding:20px 40px 100px; max-width:840px; margin:0 auto; }
.flex-body.flex-body-with-image{ padding-inline:0; }
.flex-body h2{ font-size:1.8rem; margin:36px 0 16px; }
.flex-body p{ opacity:0.78; margin-bottom:18px; }
.flex-body blockquote{ border-left:3px solid var(--accent); margin:24px 0; padding:6px 0 6px 22px; font-style:italic; opacity:0.85; }
.flex-body figure{ margin:30px 0; }
.flex-body figure img{ border-radius:20px; box-shadow:var(--shadow-sm); }
.flex-body figcaption{ font-size:0.8rem; opacity:0.6; margin-top:8px; }

/* footer */
footer{ position:relative; background:var(--footer); color:var(--footer-text); padding:70px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1.2fr 0.8fr 0.8fr 0.8fr 1.2fr; gap:44px; }
.newsletter-form{ display:flex; flex-direction:column; gap:12px; margin-top:16px; max-width:240px; }
.newsletter-form input[type="email"]{
  padding:12px 16px; border-radius:100px; border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.06); color:#fff; font-family:inherit; font-size:0.9rem;
}
.newsletter-form input[type="email"]::placeholder{ color:var(--footer-text); opacity:0.6; }
.newsletter-form button{ align-self:flex-start; }
/* The site's dark button would vanish against the dark footer. */
footer .newsletter-form .btn-dark{ background:var(--footer-accent); border-color:var(--footer-accent); color:var(--footer); }
footer .newsletter-form .btn-dark:hover{ background:#fff; border-color:#fff; color:var(--footer); }
footer .newsletter-form input[type="email"]:focus{ outline:none; border-color:var(--footer-accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--footer-accent) 35%, transparent); }
.newsletter-form-inline{
  flex-direction:row; max-width:420px; margin:28px auto 0; gap:10px; align-items:center;
}
.newsletter-form-inline input[type="email"]{
  background:#fff; border:1px solid var(--line); color:var(--text); flex:1;
}
.newsletter-form-inline input[type="email"]::placeholder{ color:var(--text); opacity:0.5; }
.newsletter-form-inline button{ align-self:auto; }
@media (max-width:560px){
  .newsletter-form-inline{ flex-direction:column; }
}
footer .brand{ margin-bottom:16px; display:inline-block; }
.footer-logo-chip{ display:inline-flex; align-items:center; }
.footer-logo-chip img{ height:56px; width:auto; max-width:220px; object-fit:contain; filter:brightness(0) invert(1); }
.footer-logo-fallback{ font-size:1.9rem; color:#fff; }
footer h4{ font-weight:600; letter-spacing:0.14em; text-transform:uppercase; font-size:0.78rem; margin-bottom:18px; color:var(--footer-accent); }
footer p{ opacity:0.7; font-size:0.96rem; max-width:32ch; }
footer li{ margin-bottom:11px; }
footer a{ font-size:0.96rem; }
footer a{ transition:color .5s var(--ease-soft); }
footer a:hover{ color:var(--footer-accent); }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{ width:38px; height:38px; border-radius:50%; border:1px solid var(--sage); display:flex; align-items:center; justify-content:center; font-size:0.85rem; }
.social-row a{ transition:background-color .5s var(--ease-soft), border-color .5s var(--ease-soft), color .5s var(--ease-soft); }
.social-row a:hover{ background:var(--footer-accent); border-color:var(--footer-accent); color:var(--footer); }
.foot-bottom{ margin-top:54px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.1); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.82rem; opacity:0.6; }

/* messages */
.messages{ list-style:none; margin:0; padding:14px 40px; max-width:1180px; margin:0 auto; }
.messages li{ background:var(--mist); border-radius:14px; padding:14px 20px; margin-top:14px; font-size:0.92rem; }

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */
/* Inline display styles (e.g. the checkout surcharge row) otherwise beat
   the hidden attribute and the element never hides. */
[hidden]{ display:none !important; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
a, button{ -webkit-tap-highlight-color:rgba(30,122,116,0.14); }
h1, h2{ color:var(--ink); }

/* 16px stops iOS Safari zooming the page whenever a field is focused. */
.form-field input, .form-field textarea, .form-field select,
.newsletter-form input[type="email"], .search-form input, .qty-row input, .cart-page td.qty input{ font-size:16px; }

.search-form{ display:flex; flex-wrap:wrap; gap:10px; max-width:480px; margin-top:20px; }
.search-form input{ flex:1 1 200px; min-width:0; padding:14px 18px; border-radius:100px; border:1px solid var(--line); font-family:inherit; background:var(--panel); }

/* Soft teal wash behind the testimonials, so the page isn't one flat white. */
.testimonials{ background:linear-gradient(180deg, var(--paper), var(--mist) 45%, var(--paper)); padding-top:80px; }

.program-card, .testi-card, .product-card{ transition:transform .7s var(--ease-soft), box-shadow .7s var(--ease-soft); }
.testi-card:hover, .product-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }

/* ---------------------------------------------------------------------
   Soothing motion
   Everything here moves slowly, eases gently and animates only transform
   and opacity (cheap for phones to render). All of it is switched off for
   visitors who ask their device for reduced motion — see the end of file.
   --------------------------------------------------------------------- */

/* Drifting watercolour washes behind the hero, page headers and CTA. */
.hero, .page-header, .cta-banner{ overflow:hidden; isolation:isolate; }
.hero::before, .hero::after, .page-header::before, .cta-banner::before, .cta-banner::after{
  content:""; position:absolute; z-index:-1; border-radius:50%; pointer-events:none;
}
.hero::before{
  width:620px; height:620px; top:-220px; right:-160px;
  background:radial-gradient(circle, rgba(169,220,211,0.6), rgba(169,220,211,0) 68%);
  animation:drift-a 26s ease-in-out infinite alternate;
}
.hero::after{
  width:520px; height:520px; bottom:-240px; left:-180px;
  background:radial-gradient(circle, rgba(143,191,166,0.45), rgba(143,191,166,0) 68%);
  animation:drift-b 32s ease-in-out infinite alternate;
}
.page-header::before{
  width:460px; height:460px; top:-230px; right:-120px;
  background:radial-gradient(circle, rgba(169,220,211,0.55), rgba(169,220,211,0) 68%);
  animation:drift-a 28s ease-in-out infinite alternate;
}
.cta-banner{ background:linear-gradient(150deg, var(--mist), #F4FAF8 55%, #E3F1EA); }
.cta-banner::before{
  width:420px; height:420px; top:-180px; left:-120px;
  background:radial-gradient(circle, rgba(30,122,116,0.18), rgba(30,122,116,0) 68%);
  animation:drift-b 30s ease-in-out infinite alternate;
}
.cta-banner::after{
  width:380px; height:380px; bottom:-170px; right:-100px;
  background:radial-gradient(circle, rgba(63,125,92,0.2), rgba(63,125,92,0) 68%);
  animation:drift-a 34s ease-in-out infinite alternate;
}
@keyframes drift-a{
  from{ transform:translate3d(0,0,0) scale(1); }
  to{ transform:translate3d(-60px,40px,0) scale(1.12); }
}
@keyframes drift-b{
  from{ transform:translate3d(0,0,0) scale(1.06); }
  to{ transform:translate3d(70px,-30px,0) scale(0.94); }
}

/* Gentle entrance on page load. */
@keyframes rise-in{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@keyframes fade-in{ from{ opacity:0; } to{ opacity:1; } }
.hero .wrap > div:first-child > *, .page-header .wrap > *{ animation:rise-in 1.1s var(--ease-soft) both; }
.hero .wrap > div:first-child > :nth-child(2), .page-header .wrap > :nth-child(2){ animation-delay:.12s; }
.hero .wrap > div:first-child > :nth-child(3), .page-header .wrap > :nth-child(3){ animation-delay:.24s; }
.hero .wrap > div:first-child > :nth-child(4), .page-header .wrap > :nth-child(4){ animation-delay:.36s; }
.hero .wrap > div:first-child > :nth-child(n+5), .page-header .wrap > :nth-child(n+5){ animation-delay:.48s; }
.hero-visual{ animation:fade-in 1.6s var(--ease-soft) .3s both; }

/* The hero artwork and review chip float slowly, out of step with each other. */
@keyframes float-soft{ 0%, 100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
.hv-main{ animation:float-soft 9s ease-in-out infinite; }
.hv-chip{ animation:float-soft 11s ease-in-out -4s infinite; }
.hv-chip .dot::after{
  content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--seafoam);
  animation:ripple 4.5s var(--ease-soft) infinite;
}
@keyframes ripple{ from{ transform:scale(1); opacity:0.8; } to{ transform:scale(1.9); opacity:0; } }

/* Scroll reveals. purviart.js staggers siblings via an inline transition-delay. */
[data-reveal]{
  opacity:0; transform:translateY(24px);
  transition:opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft), box-shadow .7s var(--ease-soft);
}
[data-reveal].in{ opacity:1; transform:translateY(0); }
/* Revealed cards need a selector at least as specific as the one above, or
   their hover lift is overridden by transform:translateY(0). */
.program-card:hover, [data-reveal].in:is(.program-card, .testi-card, .product-card):hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
[data-reveal] .ring-divider .l{ transform:scaleX(0); transform-origin:left; transition:transform 1.6s var(--ease-soft) .35s; }
.center[data-reveal] .ring-divider .l, [data-reveal] .center .ring-divider .l{ transform-origin:center; }
[data-reveal].in .ring-divider .l{ transform:scaleX(1); }
.ring-divider .l{ background:linear-gradient(90deg, var(--seafoam), var(--accent)); height:2px; border-radius:2px; }

/* A slow-moving wave where the page meets the footer. The SVG is twice the
   viewport wide and holds two identical wave periods, so sliding it by half
   its width loops seamlessly. */
.footer-wave{ position:relative; height:64px; overflow:hidden; line-height:0; margin-top:20px; }
.footer-wave svg{ position:absolute; bottom:-1px; left:0; width:200%; max-width:none; height:100%; }
.footer-wave .wave-back{ fill:var(--sage); opacity:0.35; animation:wave-drift 38s linear infinite reverse; }
.footer-wave .wave-front{ fill:var(--footer); height:78%; animation:wave-drift 26s linear infinite; }
@keyframes wave-drift{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------------------------------------------------------------------
   Waves behind the navigation bar
   Three translucent layers drifting at different speeds. The layer sits
   behind the header's contents (z-index:-1 inside the header's own stacking
   context) and clips itself, so dropdowns and the phone menu can still
   extend below the header. Only transforms animate.
   --------------------------------------------------------------------- */
.nav-waves{ position:absolute; inset:0; overflow:hidden; z-index:-1; pointer-events:none; line-height:0; }
.nav-wave{ position:absolute; left:0; top:-1px; width:200%; max-width:none; height:100%; will-change:transform; }
.nav-wave path{ transform-origin:top; animation:wave-swell 9s ease-in-out infinite alternate; }
.nav-wave-1{ fill:var(--seafoam); opacity:0.2; animation:wave-drift 52s linear infinite; }
.nav-wave-2{ fill:var(--sage); opacity:0.12; animation:wave-drift 36s linear infinite reverse; }
.nav-wave-2 path{ animation-duration:7.5s; animation-delay:-3s; }
.nav-wave-3{ fill:var(--accent); opacity:0.06; animation:wave-drift 26s linear infinite; }
.nav-wave-3 path{ animation-duration:6s; animation-delay:-1s; }
/* A page with its own accent colour tints all three layers with it. */
body.has-accent .nav-wave{ fill:var(--accent); }
body.has-accent .nav-wave-1{ opacity:0.09; }
body.has-accent .nav-wave-2{ opacity:0.06; }
body.has-accent .nav-wave-3{ opacity:0.04; }
@keyframes wave-swell{ from{ transform:scaleY(0.88); } to{ transform:scaleY(1.06); } }
@media (max-width:560px){
  /* Gentler on phones, where the bar is shorter and the logo smaller. */
  .nav-wave{ height:80%; width:300%; }
}

/* ---------------------------------------------------------------------
   Navigation (hamburger menu)
   Switches earlier than the other breakpoints — the nav has enough items
   that it crowds the header well before 980px.
   --------------------------------------------------------------------- */
.menu-toggle{ padding:11px; margin-right:-11px; }
.menu-toggle span{ transition:transform .45s var(--ease-soft), opacity .3s var(--ease-soft); }
@media (max-width:1140px){
  .menu-toggle{ display:block; }
  nav.links{
    display:flex; flex-direction:column; align-items:stretch; gap:0;
    position:absolute; top:100%; left:0; right:0;
    background:var(--panel); padding:6px clamp(18px,4vw,40px) 22px;
    border-bottom:1px solid var(--line); box-shadow:0 24px 40px -28px rgba(16,52,50,0.45);
    max-height:calc(100vh - 72px); max-height:calc(100dvh - 72px); overflow-y:auto; overscroll-behavior:contain;
    opacity:0; visibility:hidden; transform:translateY(-10px);
    transition:opacity .45s var(--ease-soft), transform .45s var(--ease-soft), visibility 0s linear .45s;
  }
  header.nav-open nav.links{ opacity:1; visibility:visible; transform:none; transition-delay:0s; }
  .nav-item{ border-bottom:1px solid var(--line); }
  .nav-item:last-child{ border-bottom:none; }
  .nav-item > a{ padding:14px 4px; font-size:0.86rem; }
  /* Submenus rely on :hover, which doesn't exist on touch — expand them
     inline instead of leaving them permanently unreachable on mobile. */
  .nav-item .submenu{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; background:transparent; padding:0 0 10px 14px;
    margin-top:-4px; min-width:0;
  }
  .submenu a{ font-size:0.9rem; opacity:0.75; padding:10px 12px; }
  header.nav-open .menu-toggle span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
  header.nav-open .menu-toggle span:nth-child(2){ opacity:0; }
  header.nav-open .menu-toggle span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }
}

/* ---------------------------------------------------------------------
   Responsive layout
   --------------------------------------------------------------------- */
@media (max-width:980px){
  .hero{ padding-block:56px 80px; }
  .hero .wrap{ grid-template-columns:1fr; gap:48px; }
  .hero-visual{ height:380px; }
  .hv-main{ height:340px; width:86%; }
  .program-grid{ grid-template-columns:1fr; }
  .program-detail{ grid-template-columns:1fr; gap:40px; }
  .booking-panel{ position:static; }
  .product-detail{ grid-template-columns:1fr; gap:36px; padding-block:36px 80px; }
  .program-detail{ padding-block:40px 80px; }
  .product-detail .thumb{ height:380px; }
  .checkout-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .outline .wrap{ grid-template-columns:1fr; gap:40px; }
  .carousel-slide{ flex:0 0 calc(50% - 11px); }
  .testi-grid{ grid-template-columns:1fr; gap:24px; }
  .shop-grid{ grid-template-columns:1fr; }
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* Cart table becomes stacked cards — five columns don't fit a phone. */
@media (max-width:640px){
  .cart-page thead{ display:none; }
  .cart-page table, .cart-page tbody, .cart-page tr, .cart-page td{ display:block; width:100%; }
  .cart-page tr{ background:var(--panel); border-radius:18px; padding:14px 18px; margin-bottom:14px; box-shadow:var(--shadow-sm); }
  .cart-page td{ border:none; padding:7px 0; display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .cart-page td[data-label]::before{ content:attr(data-label); font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase; opacity:0.6; }
  .cart-page td.item{ font-weight:600; font-size:1.02rem; }
  .cart-page td.actions{ justify-content:flex-end; }
  .cart-summary .box{ min-width:0; width:100%; }
}

@media (max-width:560px){
  .wrap{ padding-inline:20px; }
  .flex-body{ padding-inline:20px; }
  .flex-body.flex-body-with-image{ padding-inline:0; }
  .messages{ padding:6px 20px; }
  .hero{ padding-block:36px 64px; }
  .hero .meta-row{ gap:18px 30px; }
  .hero-visual{ height:320px; }
  .hv-main{ height:290px; width:88%; border-radius:150px 150px 22px 22px; }
  .hv-chip{ bottom:6px; padding:14px 16px; }
  .hero::before{ width:420px; height:420px; right:-200px; }
  .hero::after{ width:360px; height:360px; }
  .page-header{ padding-block:40px 32px; }
  .programs, .gallery{ padding-block:64px; }
  .testimonials{ padding-block:64px 72px; }
  .shop{ padding-bottom:72px; }
  .section-head{ margin-bottom:36px; }
  .program-card{ padding:32px 24px; border-radius:24px; }
  .booking-panel{ padding:28px 22px; }
  .booking-form{ padding:28px 20px; border-radius:22px; }
  .product-grid{ grid-template-columns:1fr; }
  .product-detail .thumb{ height:300px; border-radius:22px; }
  .shop-card{ height:240px; border-radius:22px; }
  .footer-grid{ grid-template-columns:1fr; gap:34px; }
  .cta-banner{ margin:0 16px 70px; padding:56px 24px; border-radius:28px; }
  .form-row{ grid-template-columns:1fr; gap:0; }
  .carousel-slide{ flex:0 0 100%; }
  .carousel-prev{ left:0; }
  .carousel-next{ right:0; }
  .footer-wave{ height:44px; }
}

/* On touch screens hover "sticks" after a tap — don't leave cards lifted. */
@media (hover:none){
  .program-card:hover, .testi-card:hover, .product-card:hover,
  [data-reveal].in:is(.program-card, .testi-card, .product-card):hover{ transform:none; box-shadow:var(--shadow-sm); }
  .btn:not([disabled]):hover{ transform:none; }
  .btn:not([disabled]):hover{ box-shadow:none; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation:none !important;
    transition-duration:.01ms !important; transition-delay:0s !important;
  }
  [data-reveal]{ opacity:1; transform:none; }
  [data-reveal] .ring-divider .l{ transform:none; }
}

/* Honeypot spam trap — kept off-screen rather than display:none, since some
   bots skip fields hidden that way. Real visitors never see or reach it. */
.hp-field{ position:absolute !important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ---------------------------------------------------------------------
   Per-page appearance (chosen in a page's Settings tab)
   The accent and background colours arrive as inline CSS variables on
   <body>. Everything else here keys off a class set from the same settings.
   --------------------------------------------------------------------- */
@supports (color: color-mix(in srgb, red 10%, white)){
  /* Soft panels pick up a tint of the page's own accent. */
  body.has-accent{ --mist:color-mix(in srgb, var(--accent) 11%, white); }
  /* ...and so does the soft wash behind the page header. */
  body.has-accent:not(.header-band):not(.header-compact) .page-header::before{
    background:radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 68%);
  }
}
body.has-background header{ background:var(--paper); }

/* Header styles */
.header-centered .page-header .wrap{ text-align:center; }
.header-centered .page-header p{ margin-left:auto; margin-right:auto; }
.header-band .page-header{ background:var(--accent-deep); border-bottom:0; color:#fff; }
.header-band .page-header h1,
.header-band .page-header .eyebrow{ color:#fff; }
.header-band .page-header p{ color:#fff; opacity:0.92; }
.header-band .page-header::before{
  background:radial-gradient(circle, rgba(255,255,255,0.2), rgba(255,255,255,0) 68%);
}
.header-compact .page-header{ padding:28px 0 22px; }
.header-compact .page-header h1{ font-size:clamp(1.7rem,3vw,2.2rem); margin-top:6px; }
.header-compact .page-header::before{ display:none; }
.header-compact .page-header .wrap > *{ animation:none; }

/* Content width */
.width-narrow .flex-body{ max-width:640px; }
.width-wide .flex-body{ max-width:1100px; }

/* Image layouts */
@media (min-width:901px){
  .flex-header-grid.is-image-left{ grid-template-columns:1fr 1.7fr; }
}
.flex-banner{ padding-top:36px; }
.flex-banner img{
  width:100%; aspect-ratio:16/7; object-fit:cover; border-radius:20px; box-shadow:var(--shadow-sm);
}
@media (max-width:700px){
  .flex-banner{ padding-top:24px; }
  .flex-banner img{ aspect-ratio:4/3; }
}

/* ---------------------------------------------------------------------
   Footer follows the page's accent colour
   Derived shades are checked for readability (core/tests.py).
   --------------------------------------------------------------------- */
@supports (color: color-mix(in srgb, red 10%, white)){
  body.has-accent{
    --footer:color-mix(in srgb, var(--accent-deep) 55%, #0B1A19);
    --footer-accent:color-mix(in srgb, var(--accent) 42%, #FFFFFF);
    --footer-text:color-mix(in srgb, var(--accent) 10%, #EEF4F2);
  }
  body.has-accent .footer-wave .wave-back{ fill:var(--accent); opacity:0.22; }
  body.has-accent .social-row a{ border-color:var(--footer-accent); }
}

/* ---------------------------------------------------------------------
   Hover feedback (pointer devices only, so taps don't leave things "stuck")
   --------------------------------------------------------------------- */
@media (hover:hover){
  .gallery-grid figure{ transition:transform .6s var(--ease-soft); }
  .gallery-grid figure:hover{ transform:translateY(-6px); }
  .gallery-grid .plate{ transition:box-shadow .6s var(--ease-soft); }
  .gallery-grid figure:hover .plate{ box-shadow:var(--shadow); }
  .gallery-grid figure:hover .plate img{ transform:scale(1.06); filter:saturate(1.08); }
  .gallery-grid figcaption{ transition:color .4s var(--ease-soft), opacity .4s var(--ease-soft); }
  .gallery-grid figure:hover figcaption{ color:var(--accent); opacity:1; }
  a.plate{ cursor:zoom-in; }

  .nav-item > a{ position:relative; }
  .nav-item > a::after{
    content:""; position:absolute; left:clamp(8px,1.3vw,16px); right:clamp(8px,1.3vw,16px); bottom:4px;
    height:2px; border-radius:2px; background:var(--accent); transform:scaleX(0); transform-origin:left;
    transition:transform .45s var(--ease-soft);
  }
  .nav-item > a:hover::after, .nav-item:focus-within > a::after{ transform:scaleX(1); }

  .product-card .thumb img, .shop-card img{ transition:transform 1.2s var(--ease-soft); }
  .product-card:hover .thumb img, .shop-card:hover img{ transform:scale(1.05); }
  footer ul a{ display:inline-block; transition:color .4s var(--ease-soft), transform .4s var(--ease-soft); }
  footer ul a:hover{ transform:translateX(3px); }
  .cart-link:hover{ color:var(--accent); }
}
a.plate{ display:block; }
a.plate:focus-visible{ outline:3px solid var(--accent); outline-offset:4px; }

/* ---------------------------------------------------------------------
   Gallery viewer (tap or click an image to see the whole artwork)
   --------------------------------------------------------------------- */
.lightbox{ border:0; padding:0; background:transparent; max-width:none; max-height:none; width:100%; height:100%; }
.lightbox::backdrop{ background:rgba(10,24,23,0.86); }
.lightbox[open]{ display:grid; place-items:center; animation:fade-in .35s var(--ease-soft); }
.lightbox figure{ margin:0; display:grid; gap:12px; justify-items:center; padding:56px 16px 24px; max-width:100%; }
.lightbox img{ max-width:min(92vw, 1400px); max-height:78vh; width:auto; height:auto; border-radius:14px; box-shadow:0 30px 60px -30px rgba(0,0,0,0.7); }
.lightbox figcaption{ color:#EEF4F2; font-size:0.85rem; letter-spacing:0.06em; text-transform:uppercase; text-align:center; }
.lightbox button{
  position:fixed; width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.08); color:#fff; font-size:1.4rem; line-height:1; cursor:pointer;
  display:grid; place-items:center; transition:background-color .3s var(--ease-soft);
}
.lightbox button:hover, .lightbox button:focus-visible{ background:rgba(255,255,255,0.22); outline:none; }
.lightbox .lb-close{ top:14px; right:14px; }
.lightbox .lb-prev{ left:14px; top:50%; transform:translateY(-50%); }
.lightbox .lb-next{ right:14px; top:50%; transform:translateY(-50%); }
.lightbox .lb-count{ color:#EEF4F2; opacity:0.7; font-size:0.8rem; }
@media (max-width:560px){
  .lightbox .lb-prev, .lightbox .lb-next{ top:auto; bottom:14px; transform:none; }
  .lightbox img{ max-height:70vh; }
}
@media (prefers-reduced-motion:reduce){
  .lightbox[open]{ animation:none; }
}

/* ---------------------------------------------------------------------
   Header search
   --------------------------------------------------------------------- */
.visually-hidden{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.header-search{ position:relative; display:flex; align-items:center; }
.search-toggle{ display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:var(--ink); transition:background-color .3s var(--ease-soft), color .3s var(--ease-soft); }
.search-toggle:hover, .search-toggle[aria-expanded="true"]{ background:var(--mist); color:var(--accent); }
.search-toggle:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.header-search-form{
  position:absolute; top:calc(100% + 14px); right:-10px; z-index:120;
  display:flex; gap:8px; padding:10px; width:min(420px, calc(100vw - 32px));
  background:var(--panel); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow);
  animation:rise-in .35s var(--ease-soft);
}
.header-search-form[hidden]{ display:none; }
.header-search-form input{ flex:1; min-width:0; padding:10px 14px; border:1px solid var(--line); border-radius:100px; font:inherit; font-size:16px; }
.header-search-form input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
@media (max-width:560px){
  .header-search{ position:static; }
  .header-search-form{ left:16px; right:16px; width:auto; top:calc(100% + 8px); }
}

/* Search results */
.search-results ul{ list-style:none; padding:0; }
.search-result{ padding:22px 0; border-bottom:1px solid var(--line); }
.search-result h3{ margin:6px 0 8px; }
.search-result a:hover h3{ color:var(--accent); }
.search-count{ opacity:0.7; }
.search-price{ font-weight:600; color:var(--accent-deep); }
.search-pages{ display:flex; gap:12px; margin-top:28px; }
