/* =============================================================================
   MA Performance Renovations — public site styles
   Colors/fonts come from tokens.css. Mobile-first.
   ============================================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg, picture { display: block; max-width: 100%; }
img, video { height: auto; }
picture img { width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: var(--lh-tight); color: var(--navy); margin: 0 0 var(--space-4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); font-weight: 700; }
p { margin: 0 0 var(--space-4); }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oak-text); }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.lead { font-size: var(--fs-lg); color: var(--muted); }
.rounded img, img.rounded { border-radius: var(--radius-lg); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-js .js-only { display: none !important; }
.center-text { text-align: center; }
.center-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-7); }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 1000; background: var(--navy); color: var(--white); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); color: var(--white); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.caption { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--space-3); }

.dev-bar { background: #FFE58A; color: #3D2E00; font-size: var(--fs-xs); padding: var(--space-2) var(--gutter); line-height: 1.4; border-bottom: 1px solid #E0C050; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--oak); --btn-fg: var(--ink); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.75rem 1.35rem;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-base); line-height: 1.2;
  text-decoration: none; color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-border); border-radius: var(--radius);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary:hover { --btn-bg: var(--oak-hover); --btn-fg: var(--white); }
.btn--secondary { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--secondary:hover { --btn-bg: var(--navy-700); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--light { --btn-bg: rgb(255 255 255 / 0.1); --btn-fg: var(--white); --btn-border: rgb(255 255 255 / 0.65); backdrop-filter: blur(4px); }
.btn--light:hover { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); }
.btn--ghost:hover { --btn-bg: var(--navy-100); box-shadow: none; }
.btn--danger { --btn-bg: var(--danger); --btn-fg: var(--white); }
.btn--danger:hover { --btn-bg: color-mix(in srgb, var(--danger) 85%, black); }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn--lg { min-height: 54px; padding: 0.9rem 1.6rem; font-size: var(--fs-lg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- Logo ---------- */
.logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--navy); }
.logo img, .logo__img { display: block; height: 48px; width: auto; }
@media (max-width: 420px) { .logo img, .logo__img { height: 40px; } }
.site-footer .logo__img { height: 56px; }
.logo__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--oak); font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.logo__sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oak-text); }
.logo--light { color: var(--white); }
.logo--light .logo__mark { background: var(--oak); color: var(--navy); }
.logo--light .logo__sub { color: var(--oak); }
.logo:hover { color: inherit; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 244 238 / 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--navy); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.no-js .nav-toggle { display: none; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; text-decoration: none; font-weight: 600; color: var(--ink); padding: var(--space-3) 0; }
.site-nav__list a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--oak); }
.site-nav__list a:hover { color: var(--oak-text); }
.site-nav__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.lang-switch, .header-phone { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); padding: var(--space-2); border-radius: var(--radius-sm); }
.lang-switch:hover, .header-phone:hover { background: var(--navy-100); color: var(--navy); }

@media (max-width: 959px) {
  .js .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: var(--bone); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: var(--space-4) var(--gutter) var(--space-6); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
  .js .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav__list a { font-size: var(--fs-lg); border-bottom: 1px solid var(--border); padding: var(--space-4) 0; }
  .site-nav__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--oak); padding-left: var(--space-3); }
  .site-nav__actions { margin-top: var(--space-5); flex-direction: column; align-items: stretch; }
  .site-nav__actions .btn { width: 100%; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav { width: 100%; padding-bottom: var(--space-4); }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--space-5); }
  .site-nav__list { display: flex; gap: var(--space-5); }
  .site-nav__list a { padding: var(--space-2) 0; }
}
@media (min-width: 960px) and (max-width: 1279px) { .site-nav, .site-nav__list { gap: var(--space-4); } .lang-switch span, .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (min-width: 960px) { .site-nav__list a { white-space: nowrap; } .site-nav__actions { flex-wrap: nowrap; } .site-nav__actions .btn { white-space: nowrap; } }

/* ---------- Sections & headings ---------- */
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--bone-2); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--oak); }
.section--navy .section-heading__intro, .section--navy p { color: var(--on-navy-muted); }
.eyebrow { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--oak-text); margin-bottom: var(--space-3); }
.eyebrow--light { color: var(--oak); }
.section-heading { max-width: 720px; margin-bottom: var(--space-7); }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading__intro { font-size: var(--fs-lg); color: var(--muted); margin: 0; }
.mini-title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--oak-text); margin: var(--space-5) 0 var(--space-2); font-family: var(--font-heading); }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); min-height: min(88vh, 760px); display: flex; align-items: center; background: var(--navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(20 40 61 / 0.92) 0%, rgb(20 40 61 / 0.78) 45%, rgb(20 40 61 / 0.35) 100%); }
.hero__inner { padding-block: var(--space-9); }
.hero__title { color: var(--white); max-width: 15ch; font-size: var(--fs-4xl); margin-bottom: var(--space-5); }
.hero__sub { font-size: var(--fs-lg); max-width: 56ch; color: var(--on-navy); margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero__points { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); font-weight: 600; font-size: var(--fs-sm); }
.hero__points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__points .icon { color: var(--oak); }
@media (max-width: 560px) { .hero__actions .btn { width: 100%; } }
/* Phones: the sticky bottom bar (Call / Book) already shows these actions, so hide the duplicate hero buttons */
@media (max-width: 767px) {
  .hero .hero__actions { display: none; }
  .hero .hero__sub { margin-bottom: var(--space-5); }
}


/* Video hero: poster image first, video fades in on top once it plays (see site.js) */
.hero--video { min-height: min(92vh, 820px); }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero--video::after {
  background:
    linear-gradient(100deg, rgb(20 40 61 / 0.9) 0%, rgb(20 40 61 / 0.72) 42%, rgb(20 40 61 / 0.3) 100%),
    linear-gradient(180deg, rgb(20 40 61 / 0) 60%, rgb(20 40 61 / 0.55) 100%);
}
.hero--video .hero__title { max-width: 16ch; }
.hero--video .hero__title, .hero--video .hero__sub { text-shadow: 0 2px 24px rgb(10 20 31 / 0.35); }
@media (max-aspect-ratio: 4/5) {
  /* portrait phones: text sits over the whole video, so darken evenly */
  .hero--video::after { background: linear-gradient(180deg, rgb(20 40 61 / 0.62) 0%, rgb(20 40 61 / 0.78) 50%, rgb(20 40 61 / 0.92) 100%); }
  .hero--video { min-height: auto; }
}

/* Split hero: copy + framed portrait photo (config/site.php → hero.layout = 'split') */
.hero--split {
  --hero-glow: radial-gradient(ellipse 55% 70% at 78% 42%, rgb(192 138 75 / 0.22), transparent 70%);
  /* navy veil: denser behind the copy (legibility), lighter toward the photo */
  --hero-veil: linear-gradient(100deg, rgb(20 40 61 / 0.93) 0%, rgb(20 40 61 / 0.8) 42%, rgb(20 40 61 / 0.5) 100%);
  min-height: 0;
  background: var(--hero-glow), var(--hero-veil), url("/media/hero/wood-texture.jpg") center / cover no-repeat, var(--navy);
  background: var(--hero-glow), var(--hero-veil),
    image-set(url("/media/hero/wood-texture.webp") type("image/webp"), url("/media/hero/wood-texture.jpg") type("image/jpeg")) center / cover no-repeat,
    var(--navy);
}
.hero--split::after { display: none; }
.hero--split .hero__inner { display: grid; gap: var(--space-8); align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 4vw, 6.5rem); }
@media (min-width: 960px) { .hero--split .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-8); } }
.hero--split .hero__title { font-size: clamp(2.25rem, 1.5rem + 2.3vw, 3.4rem); max-width: 17ch; }
.hero--split .hero__sub { max-width: 50ch; }
.hero__title-accent {
  display: block;
  background: linear-gradient(95deg, #D9A866 0%, var(--oak) 55%, #E7C08C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title-accent { background-size: 200% 100%; animation: accentShine 2.4s var(--ease) 0.5s both; }
}
@keyframes accentShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero__figure { position: relative; margin: 0; width: min(100%, 480px); justify-self: center; }
@media (min-width: 960px) { .hero__figure { justify-self: end; margin-right: 22px; } }
/* offset oak frame behind the photo */
.hero__figure::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid rgb(192 138 75 / 0.6); border-radius: 22px; pointer-events: none; }
.hero__frame { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-600); box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06); }
.hero__frame picture, .hero__frame img { width: 100%; height: 100%; }
.hero__frame img { object-fit: cover; object-position: 50% 42%; }
/* soft vignette to blend the photo into the navy */
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgb(20 40 61 / 0.35) 100%); pointer-events: none; }
.hero__badge { position: absolute; left: -28px; bottom: 36px; z-index: 1; display: flex; align-items: center; gap: var(--space-3); max-width: 320px; padding: var(--space-3) var(--space-4); border-radius: 14px; background: var(--bone); color: var(--navy); box-shadow: var(--shadow-lg); }
.hero__badge-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: var(--oak); }
.hero__badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero__badge strong { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-sm); }
.hero__badge small { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 959px) {
  .hero__figure { width: min(100%, 440px); }
  .hero__frame { aspect-ratio: 5 / 6; }
  .hero__badge { left: 12px; bottom: -22px; }
  .hero__figure::before { inset: 16px -12px -12px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero--split .hero__copy > * { animation: heroUp 0.8s var(--ease) both; }
  .js .hero--split .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .js .hero--split .hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .js .hero--split .hero__copy > :nth-child(n+4) { animation-delay: 0.18s; }
  .js .hero--split .hero__frame { animation: heroPhoto 1.1s var(--ease) 0.1s both; }
  .js .hero--split .hero__figure::before { animation: heroFrame 1.1s var(--ease) 0.35s both; }
  .js .hero--split .hero__badge { animation: heroUp 0.7s var(--ease) 0.6s both; }
}
@keyframes heroUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroPhoto { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes heroFrame { from { opacity: 0; transform: translate(-12px, -12px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--navy); color: var(--on-navy); padding-block: var(--space-8); overflow: hidden; }
.page-hero--image { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg picture, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(20 40 61 / 0.93) 0%, rgb(20 40 61 / 0.75) 60%, rgb(20 40 61 / 0.45) 100%); }
.page-hero h1 { color: var(--white); max-width: 22ch; font-size: var(--fs-3xl); }
.page-hero__intro { font-size: var(--fs-lg); max-width: 60ch; color: var(--on-navy); margin: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.page-hero--compact { padding-block: var(--space-7); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--reviews { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bone-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card--link:hover .card__media img { transform: scale(1.04); }
/* Home service cards: larger, taller (portrait) photos, centered */
/* Home services: photo + name + short tagline (2 columns on phones, 3 on desktop) */
.svc-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); } }
.svc__link { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-lg); }
.svc__media { aspect-ratio: 4 / 3; border-radius: clamp(14px, 3vw, 22px); overflow: hidden; background: var(--bone-2); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.svc__media picture, .svc__media img { display: block; width: 100%; height: 100%; }
.svc__media img { object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.svc__placeholder { display: grid; place-items: center; height: 100%; color: var(--oak); }
.svc__placeholder .icon { width: 48px; height: 48px; }
.svc__title { font-size: clamp(1.02rem, 0.9rem + 0.7vw, 1.4rem); line-height: 1.25; margin: var(--space-4) 0 var(--space-1); color: var(--navy); }
.svc__tags { margin: 0; font-size: clamp(0.82rem, 0.78rem + 0.25vw, 0.95rem); color: var(--muted); line-height: 1.45; }
.svc__link:hover .svc__media { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.svc__link:hover .svc__media img { transform: scale(1.05); }
.svc__link:hover .svc__title { color: var(--oak-text); }
/* Materials guidance note under the services grid */
.guide-note { display: flex; gap: var(--space-4); align-items: flex-start; max-width: 780px; margin: var(--space-8) auto 0; padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.guide-note__icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--oak); color: var(--navy); }
.guide-note__icon .icon { width: 24px; height: 24px; }
.guide-note__title { margin: 2px 0 var(--space-1); font-size: var(--fs-lg); color: #fff; }
.guide-note__text { margin: 0; color: rgb(255 255 255 / 0.85); line-height: 1.55; }
.guide-note + .center-actions { margin-top: var(--space-6); }
@media (max-width: 520px) { .guide-note { flex-direction: column; padding: var(--space-5); } }


.card__body { padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; flex: 1; }
.card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--oak-soft); color: var(--oak-text); margin-bottom: var(--space-3); }
.card__title { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.card__title a { text-decoration: none; color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--muted); flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: var(--navy); font-family: var(--font-heading); }
.card--link:hover .card__more .icon { transform: translateX(3px); }
.card__more .icon { transition: transform var(--dur) var(--ease); }

/* ---------- Features ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.features--four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); }
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--oak); margin-bottom: var(--space-4); }
.feature__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.feature__text { color: var(--muted); margin: 0; font-size: var(--fs-sm); }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: var(--space-7); align-items: start; }
.split--center { align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--reverse .split__media { order: 2; }
}
.split__copy > h2 { font-size: var(--fs-2xl); }
.split__media img.is-portrait { aspect-ratio: 4 / 5; max-height: 680px; object-fit: cover; }
.tag { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--oak-soft); color: var(--oak-text); border-radius: 999px; padding: var(--space-1) var(--space-3); font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-2); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist .icon { color: var(--success); margin-top: 0.2em; }
@media (min-width: 560px) { .checklist--cols { grid-template-columns: 1fr 1fr; } }
.subnav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 20; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-5); overflow-x: auto; }
.subnav a { display: block; padding: var(--space-4) 0; white-space: nowrap; text-decoration: none; font-weight: 600; color: var(--navy); }
.subnav a:hover { color: var(--oak-text); }
.prose p { max-width: 65ch; }
.signature { font-family: var(--font-heading); font-weight: 700; color: var(--navy); }

/* ---------- Before / after slider ---------- */
.ba { --pos: 50%; }
.ba__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bone-2); box-shadow: var(--shadow); user-select: none; touch-action: pan-y; aspect-ratio: 3 / 2; }
.ba__img { position: absolute; inset: 0; }
.ba__img picture, .ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--white); transform: translateX(-50%); pointer-events: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1); }
.ba__handle::before { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.ba__handle .icon { position: relative; flex-shrink: 0; max-width: none; width: 22px; height: 22px; margin: 0 -5px; color: var(--navy); stroke-width: 2.5; }
.ba__tag { position: absolute; top: var(--space-3); padding: var(--space-1) var(--space-3); border-radius: 999px; background: rgb(20 40 61 / 0.82); color: var(--white); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.ba__tag--before { left: var(--space-3); }
.ba__tag--after { right: var(--space-3); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__range:focus-visible + .ba__handle, .ba__frame:focus-within .ba__handle::before { outline: 3px solid var(--focus); outline-offset: 2px; }
.no-js .ba__frame { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.no-js .ba__img { position: relative; }
.no-js .ba__img--before { clip-path: none; order: -1; }
.no-js .ba__handle, .no-js .ba__range { display: none; }
/* Home: two before/after projects side by side (landscape wider, portrait narrower, same height) */
.ba-duo { display: grid; gap: var(--space-6); }
.ba-duo__item { margin: 0; min-width: 0; }
@media (min-width: 900px) {
  .ba-duo--2 { grid-template-columns: 1.55fr 1fr; align-items: start; }
  .ba-duo--2 .ba-duo__item.is-portrait:first-child { order: 2; }
  .ba-duo--2 .ba__frame { width: 100%; height: clamp(380px, 36vw, 540px); aspect-ratio: auto !important; }
  .ba-duo--1 { max-width: 880px; margin-inline: auto; }
}
@media (max-width: 899px) { .ba-duo .is-portrait .ba__frame { aspect-ratio: 4 / 5 !important; } }


/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.process__step { position: relative; padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.12); }
.process__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--oak); color: var(--navy); font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; margin-bottom: var(--space-4); }
.process__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.process__step p { margin: 0; font-size: var(--fs-sm); }
.process--five { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* ---------- Service area ---------- */
.area-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.area-card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--oak-soft); color: var(--oak-text); margin-bottom: var(--space-3); }
/* Service area with Google Map: copy + ZIP check on the left, map spanning the right column */
.area-split { row-gap: var(--space-6); }
@media (min-width: 900px) {
  .area-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-areas: "copy map" "card map"; align-items: start; }
  .area-split .split__copy { grid-area: copy; }
  .area-split .area-card { grid-area: card; }
  .area-split .area-map { grid-area: map; align-self: center; }
  .area-split .section-heading { margin-bottom: var(--space-5); }
}
.area-map { position: relative; margin: 0; }
.area-map__wrap { position: relative; }
.area-map__wrap::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid rgb(192 138 75 / 0.55); border-radius: 22px; pointer-events: none; }
.area-map__frame { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3.4; background: var(--bone-2); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.area-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.area-map__caption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: calc(var(--space-5) + 18px); font-size: var(--fs-sm); color: var(--muted); }
.area-map__key { display: inline-flex; align-items: center; }
.area-map__legend { display: inline-block; flex-shrink: 0; width: 22px; height: 0; border-top: 2px dotted #D93025; margin-right: var(--space-2); vertical-align: middle; }
.area-map__caption a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 600; }
.area-map__caption .icon { width: 14px; height: 14px; }
.area-map__caption .area-map__pin { width: 16px; height: 16px; margin-right: var(--space-2); color: var(--oak-text); }
@media (max-width: 899px) { .area-map__wrap::before { inset: 12px -8px -12px 12px; } .area-map__frame { aspect-ratio: 1 / 1; } }
.zip-check { display: flex; gap: var(--space-2); }
.zip-check .input { flex: 1; min-width: 0; }
.zip-check__result { margin: var(--space-3) 0 0; font-weight: 600; min-height: 1.6em; }
.zip-check__result.is-ok { color: var(--success); }
.zip-check__result.is-no { color: var(--warn); }
.zip-check__result a { margin-left: var(--space-2); }

/* ---------- Reviews ---------- */
.review { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.review__stars { display: flex; gap: 2px; color: var(--oak); }
.icon--star { fill: currentColor; width: 18px; height: 18px; }
.review blockquote { margin: 0; flex: 1; font-size: var(--fs-lg); }
.review figcaption { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-600) 100%); color: var(--on-navy); padding-block: var(--space-8); }
.cta-band__inner { display: grid; gap: var(--space-5); align-items: center; }
.cta-band h2 { color: var(--white); font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.cta-band p { margin: 0; color: var(--on-navy-muted); max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* ---------- Photos ---------- */
.photo-strip { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.photo-strip figure { margin: 0; }
.photo-strip img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-strip figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--space-2); }
.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.mini-gallery img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }

/* ---------- Gallery page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter { border: 1px solid var(--border-strong); background: var(--white); color: var(--navy); border-radius: 999px; padding: var(--space-2) var(--space-5); font-weight: 600; min-height: 44px; transition: background-color var(--dur-fast), color var(--dur-fast); }
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: dense; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 900px) { .gallery__item--wide { grid-column: span 2; } }
.gallery__item.is-hidden { display: none; }
.gallery__figure { margin: 0; }
.gallery__link { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--bone-2); aspect-ratio: 4 / 3; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__link:hover img { transform: scale(1.04); }
.gallery__zoom { position: absolute; right: var(--space-3); bottom: var(--space-3); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--navy); box-shadow: var(--shadow); }
.gallery__caption { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--ink); }
.gallery__service { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oak-text); }
.gallery__item--wide .ba__frame { aspect-ratio: 16 / 9; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-7) var(--space-4) var(--space-5); border: 0; background: rgb(10 20 31 / 0.96); color: var(--white); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(10 20 31 / 0.9); }
.lightbox__stage { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox__stage img, .lightbox__stage video { max-width: min(100%, 1400px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { margin: var(--space-4) 0 0; text-align: center; color: #E6E1D8; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.12); color: var(--white); }
.lightbox__btn:hover { background: rgb(255 255 255 / 0.25); }
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-3); top: 50%; transform: translateY(-50%); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem); box-shadow: var(--shadow-sm); margin-bottom: var(--space-5); }
.form-card > h2 { font-size: var(--fs-2xl); }
.form-card--danger { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.form-row { display: grid; gap: 0 var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row--city { grid-template-columns: 2fr 1fr; } }
.field { margin-bottom: var(--space-5); }
.field__label { display: block; font-weight: 600; margin-bottom: var(--space-2); color: var(--ink); }
.field__optional { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-sm); color: var(--muted); margin: var(--space-2) 0 0; }
.field__error { color: var(--danger); font-size: var(--fs-sm); font-weight: 600; margin: var(--space-2) 0 0; }
.input { display: block; width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; background: var(--white); border: 1.5px solid var(--border-strong); border-radius: var(--radius); color: var(--ink); font-size: 1rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
textarea.input { min-height: 110px; resize: vertical; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.has-error .input, .input[aria-invalid="true"] { border-color: var(--danger); }
.form-note { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--space-4); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: var(--space-2) var(--space-4); border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--white); font-weight: 600; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error .chip span { border-color: var(--danger); }

.choice-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: var(--space-2); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); height: 100%; padding: var(--space-5); border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--white); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast); }
.choice__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--oak-soft); color: var(--oak-text); }
.choice__title { font-family: var(--font-heading); font-weight: 800; color: var(--navy); font-size: var(--fs-lg); }
.choice__text { font-size: var(--fs-sm); color: var(--muted); }
.choice:hover .choice__box { border-color: var(--border-strong); }
.choice input:checked + .choice__box { border-color: var(--navy); background: var(--navy-100); box-shadow: 0 0 0 1px var(--navy); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-grid.has-error .choice__box { border-color: var(--danger); }

.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--navy-100); color: var(--ink); margin-bottom: var(--space-5); border-left: 4px solid var(--navy); }
.notice p { margin: 0; }
.notice p + p { margin-top: var(--space-2); }
.notice .icon { margin-top: 0.15em; }
.notice--success { background: var(--success-bg); border-left-color: var(--success); color: #133F29; }
.notice--success .icon { color: var(--success); }
.notice--error { background: var(--danger-bg); border-left-color: var(--danger); color: #5E1712; }
.notice--warn { background: var(--warn-bg); border-left-color: #C08A1B; color: #4A2F00; }
.notice.center-text { justify-content: center; }

/* ---------- Booking ---------- */
.book-layout { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .book-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .book-aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); } }
.stepper { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: flex; gap: var(--space-2); counter-reset: s; }
.stepper__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); position: relative; text-align: center; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.stepper__item::before { content: ""; position: absolute; top: 18px; right: calc(50% + 22px); left: calc(-50% + 22px); height: 2px; background: var(--border); }
.stepper__item:first-child::before { display: none; }
.stepper__num { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 2px solid var(--border-strong); font-family: var(--font-heading); font-weight: 800; color: var(--muted); transition: all var(--dur) var(--ease); }
.stepper__check { display: none; width: 18px; height: 18px; }
.stepper__item[aria-current="step"] { color: var(--navy); }
.stepper__item[aria-current="step"] .stepper__num { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: 0 0 0 4px var(--navy-100); }
.stepper__item.is-done { color: var(--ink); }
.stepper__item.is-done::before, .stepper__item[aria-current="step"]::before { background: var(--navy); }
.stepper__item.is-done .stepper__num { background: var(--oak); border-color: var(--oak); color: var(--navy); }
.stepper__item.is-done .stepper__digit { display: none; }
.stepper__item.is-done .stepper__check { display: block; }
@media (max-width: 559px) { .stepper__label { display: none; } .stepper__item[aria-current="step"] .stepper__label { display: block; position: absolute; top: 42px; white-space: nowrap; } .stepper { margin-bottom: var(--space-7); } }
.no-js .stepper { display: none; }

.step { border: 0; margin: 0 0 var(--space-6); padding: 0; min-width: 0; }
.js .booking .step { display: none; margin: 0; }
.js .booking .step.is-active { display: block; animation: stepIn var(--dur) var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step__title { display: block; width: 100%; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-2xl); color: var(--navy); margin-bottom: var(--space-5); padding: 0; }
.step__count { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oak-text); margin-bottom: var(--space-1); }
.step__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.no-js .step + .step { padding-top: var(--space-6); border-top: 1px solid var(--border); }
.details { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bone); border: 1px solid var(--border); }
.details__title { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.out-of-area__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3) !important; }
[data-zip-status].is-ok { color: var(--success); font-weight: 600; }

.slot-picker__tz { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--muted); background: var(--bone); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.slot-picker__enhanced { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .slot-picker__enhanced { grid-template-columns: 1.1fr 1fr; } }
.calendar { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); background: var(--white); }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.calendar__title { margin: 0; font-size: var(--fs-lg); text-transform: capitalize; }
.calendar__nav { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--navy); }
.calendar__nav:hover:not(:disabled) { background: var(--navy-100); }
.calendar__nav:disabled { opacity: 0.35; cursor: default; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__dow { text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding: var(--space-1) 0; }
.calendar__day { position: relative; aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 0; background: transparent; color: color-mix(in srgb, var(--ink) 38%, var(--bone)); font-weight: 600; font-size: var(--fs-sm); }
.calendar__day:disabled { cursor: default; }
.calendar__day.is-available { background: var(--navy-100); color: var(--navy); }
.calendar__day.is-available::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--oak); }
.calendar__day.is-available:hover { background: color-mix(in srgb, var(--navy) 16%, white); }
.calendar__day[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.calendar__day[aria-pressed="true"]::after { background: var(--oak); }
.calendar__day.is-today { box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.calendar__legend { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--muted); margin: var(--space-3) 0 0; }
.calendar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oak); display: inline-block; }
.times__title { font-size: var(--fs-base); margin-bottom: var(--space-3); }
.times__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-2); }
.time { position: relative; }
.time input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.time span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--white); font-weight: 700; color: var(--navy); transition: all var(--dur-fast); }
.time:hover span { border-color: var(--navy); }
.time input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.time input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.times__status { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--space-3); }
.times__skeleton { height: 48px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bone) 25%, var(--bone-2) 50%, var(--bone) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .times__skeleton { animation: none; } }

.review-list { margin: 0 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.review-list > div { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oak-text); grid-column: 1; }
.review-list dd { margin: 0; grid-column: 1; font-weight: 600; white-space: pre-line; }
.review-list button { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 0; background: none; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: var(--space-2); }

.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
.aside-card h2 { font-size: var(--fs-lg); }
.aside-card .checklist { font-size: var(--fs-sm); margin: 0; }
.aside-card--navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.aside-card--navy h2 { color: var(--white); }
.aside-card--navy p { color: var(--on-navy-muted); font-size: var(--fs-sm); }

/* ---------- Confirmation / manage ---------- */
.confirm__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3rem); box-shadow: var(--shadow); }
.confirm__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: var(--space-4); }
.confirm__icon .icon { width: 34px; height: 34px; }
.confirm h1 { font-size: var(--fs-3xl); }
.confirm__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 var(--space-6); }
.confirm__subtitle { font-size: var(--fs-xl); }
.summary { margin: var(--space-5) 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.summary > div { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); background: var(--bone); }
.summary > div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .summary > div { grid-template-columns: 180px 1fr; } }
.summary dt { font-size: var(--fs-sm); color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.manage h1 { font-size: var(--fs-3xl); }
.manage__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: center; }
.status { display: inline-flex; align-items: center; padding: var(--space-1) var(--space-3); border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.status--confirmed { background: var(--success-bg); color: var(--success); }
.status--pending { background: var(--warn-bg); color: var(--warn); }
.status--cancelled { background: var(--danger-bg); color: var(--danger); }
.status--completed { background: var(--navy-100); color: var(--navy); }
.status--no_show { background: #EEE; color: #444; }

/* ---------- Contact & FAQ ---------- */
.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 380px 1fr; align-items: start; } }
.contact-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: var(--space-6); }
.contact-card h2 { color: var(--white); font-size: var(--fs-xl); }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-5); }
.contact-list li { display: flex; gap: var(--space-3); }
.contact-list .icon { color: var(--oak); margin-top: 0.2em; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-navy-muted); font-weight: 600; }
.contact-list a { color: var(--white); font-weight: 600; font-size: var(--fs-lg); }
.contact-list small { color: var(--on-navy-muted); font-size: var(--fs-sm); margin-top: var(--space-1); }
.contact-card__cta { border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: var(--space-5); }
.contact-card__cta p { color: var(--on-navy-muted); font-size: var(--fs-sm); }
.faq { display: grid; gap: var(--space-3); }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: var(--fs-lg); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 7px; left: 0; width: 16px; height: 2px; background: var(--oak-text); transition: transform var(--dur) var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 var(--space-5) var(--space-4); color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------- Badges ---------- */
.badges { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; background: var(--navy-100); color: var(--navy); }
.badges--light .badge { background: rgb(255 255 255 / 0.1); color: var(--white); border: 1px solid rgb(255 255 255 / 0.2); }
.badge .icon { color: var(--oak); width: 1.1em; height: 1.1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D5D0C6; padding-top: var(--space-8); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.site-footer__brand p { margin-top: var(--space-4); max-width: 34ch; }
.site-footer__title { color: var(--white); font-size: var(--fs-base); margin-bottom: var(--space-3); }
.site-footer__links, .site-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: #EDE8DF; text-decoration: none; }
.site-footer a:hover { color: var(--oak); text-decoration: underline; }
.site-footer__contact li { display: flex; gap: var(--space-2); align-items: flex-start; }
.site-footer__contact .icon { color: var(--oak); margin-top: 0.15em; width: 1.1em; height: 1.1em; }
.social { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; gap: var(--space-2); }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / 0.08); }
.social a:hover { background: var(--oak); color: var(--navy); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); border-top: 1px solid rgb(255 255 255 / 0.1); margin-top: var(--space-7); padding-block: var(--space-5); color: #B5AFA4; }
.site-footer__bottom p { margin: 0; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); background: rgb(247 244 238 / 0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgb(20 40 61 / 0.08); }
.mobile-bar__btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 50px; border-radius: var(--radius); font-family: var(--font-heading); font-weight: 800; text-decoration: none; }
.mobile-bar__btn--call { background: var(--navy); color: var(--white); }
.mobile-bar__btn--book { background: var(--oak); color: var(--ink); }
.mobile-bar__btn:hover { color: inherit; filter: brightness(1.05); }
@media (max-width: 767px) { body:has(.mobile-bar) { padding-bottom: 76px; } }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Direct contact options (website-only mode) ---------- */
.contact-options { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .contact-options--grid { grid-template-columns: repeat(3, 1fr); } }
.contact-option {
  display: flex; align-items: center; gap: var(--space-4); height: 100%;
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.contact-option:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.contact-option__icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--oak); }
.contact-option__icon .icon { width: 24px; height: 24px; }
.contact-option--wa .contact-option__icon { background: #25D366; color: var(--white); }
.contact-option__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.contact-option__body strong { font-family: var(--font-heading); font-weight: 800; color: var(--navy); font-size: var(--fs-lg); }
.contact-option__value { font-weight: 600; overflow-wrap: anywhere; }
.contact-option__body small { color: var(--muted); font-size: var(--fs-sm); }
.contact-option__arrow { color: var(--oak-text); transition: translate var(--dur) var(--ease); }
.contact-option:hover .contact-option__arrow { translate: 4px 0; }
.contact-direct > h2 { font-size: var(--fs-2xl); }


/* Booking: two fixed visit times + WhatsApp option for other times */
.step__intro { margin: calc(var(--space-2) * -1) 0 var(--space-4); color: var(--muted); }
.other-time { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: #EEF9F2; border: 1px solid #CBEBD7; }
.other-time__icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #25D366; color: var(--white); }
.other-time__body { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.other-time__body strong { font-family: var(--font-heading); color: var(--navy); }
.other-time__body span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 559px) { .other-time .btn { width: 100%; } }

/* ---------- Booking preview mode ---------- */
.btn--wa { --btn-bg: #25D366; --btn-fg: #0B3B1E; }
.btn--wa:hover { --btn-bg: #1EBE5A; --btn-fg: #06260F; }
.confirm__icon--wa { background: #DCF8E6; color: #128C4A; }
.preview-notice { border-left-color: var(--oak); background: var(--oak-soft); }
.preview-notice .icon { color: var(--oak-text); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  --wa: #25D366;
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; height: 58px; min-width: 58px; padding: 0 17px; border-radius: 999px;
  background: var(--wa); color: var(--white); text-decoration: none;
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.35), 0 0 0 0 rgb(37 211 102 / 0.45);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur-fast);
}
.wa-float:hover, .wa-float:focus-visible { color: var(--white); background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 14px 28px -6px rgb(0 0 0 / 0.4); }
.wa-float__icon { width: 26px; height: 26px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); transition: max-width var(--dur-slow) var(--ease), margin var(--dur-slow) var(--ease); }
@media (hover: hover) and (min-width: 768px) {
  .wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 240px; margin-left: 10px; }
}
/* gentle attention pulse, twice, a few seconds after load */
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: waPulse 2.2s var(--ease) 4s 2; }
}
@keyframes waPulse { 0% { box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.35), 0 0 0 0 rgb(37 211 102 / 0.5); } 70% { box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.35), 0 0 0 16px rgb(37 211 102 / 0); } 100% { box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.35), 0 0 0 0 rgb(37 211 102 / 0); } }
/* phones: sit above the sticky Call / Book bar */
@media (max-width: 767px) {
  body:has(.mobile-bar) .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wa-float { height: 54px; min-width: 54px; padding: 0 14px; }
}
@media print { .wa-float { display: none; } }

/* ---------- Error pages ---------- */
.error-page__code { font-family: var(--font-heading); font-weight: 800; font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; color: var(--oak); margin-bottom: var(--space-4); }

/* ---------- Motion system (site.js tags elements; only active with JS and without reduced motion) ---------- */
.motion [data-anim] { opacity: 0; }
.motion [data-anim="up"] { translate: 0 28px; }
.motion [data-anim="zoom"] { scale: 0.965; }
.motion [data-anim].is-in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity 0.8s var(--ease), translate 0.9s var(--ease), scale 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

@media (prefers-reduced-motion: no-preference) {
  /* interior page headers: copy rises in, background photo settles */
  .js .page-hero__inner > * { animation: heroUp 0.8s var(--ease) both; }
  .js .page-hero__inner > :nth-child(2) { animation-delay: 0.08s; }
  .js .page-hero__inner > :nth-child(3) { animation-delay: 0.16s; }
  .js .page-hero__inner > :nth-child(n+4) { animation-delay: 0.24s; }
  .js .page-hero__bg img { animation: heroSettle 1.8s var(--ease) both; }
  /* links & buttons micro-interactions */
  .btn span + .icon { transition: translate var(--dur) var(--ease); }
  .btn:hover span + .icon { translate: 3px 0; }
  @media (min-width: 960px) {
    .site-nav__list a { position: relative; }
    .site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
    .site-nav__list a:hover::after { transform: scaleX(1); }
    .site-nav__list a[aria-current="page"]::after { display: none; }
  }
  .feature__icon, .card__icon { transition: transform var(--dur) var(--ease), background-color var(--dur); }
  .feature:hover .feature__icon, .card--link:hover .card__icon { transform: translateY(-3px) rotate(-4deg); }
  .feature { transition: border-color var(--dur), box-shadow var(--dur) var(--ease); }
  .feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
}
@keyframes heroSettle { from { opacity: 0.6; transform: scale(1.08); } to { opacity: 1; transform: none; } }

/* ---------- Stacking cards on phones (site.js sets --i and --stack-p) ---------- */
@media (max-width: 767px) {
  .is-stack { gap: var(--space-4); }
  .is-stack > * {
    position: sticky;
    top: calc(var(--header-h) + 14px + var(--i, 0) * 12px);
    transform-origin: 50% 0;
    transform: scale(calc(1 - var(--stack-p, 0) * 0.07));
    box-shadow: 0 -10px 28px -14px rgb(20 40 61 / 0.28), var(--shadow-sm);
  }
  .is-stack > *::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--navy); opacity: calc(var(--stack-p, 0) * 0.14); pointer-events: none; }
  .features.is-stack > .feature { background: var(--white); }
  .process.is-stack > .process__step { background: var(--navy-600); border-color: rgb(255 255 255 / 0.14); }
  .process.is-stack > .process__step::after { background: #000; opacity: calc(var(--stack-p, 0) * 0.25); }
}

@media print {
  .site-header, .site-footer, .mobile-bar, .cta-band, .dev-bar { display: none !important; }
  body { background: white; }
}
