/* Salon 428 / V10. The footer's warm charcoal becomes the page canvas.
   Raw brand colours and original photographs remain unchanged. */
:root { color-scheme:dark; }
body.dark-theme {
  --ink:var(--brand-paper);
  --ink-soft:#d4cbbf;
  --muted:#b8aea1;
  --cream:var(--brand-ink);
  --paper:#34302c;
  --sand:#302c28;
  --line:#514a43;
  --clay-deep:#bdc8b5;
  --error:#f2aa9e;
  --shadow:0 12px 44px -20px rgba(0,0,0,.55);
  background:var(--brand-ink);
  color:var(--brand-paper);
}

/* Keep the canvas continuous rather than alternating white and beige blocks. */
body.dark-theme.masthead-page { background-image:none; }
body.dark-theme :is(.section,.section--paper,.section--sand,.section--ink,.masthead) {
  background-color:var(--brand-ink);
  color:var(--brand-paper);
}
body.dark-theme :is(.hero-cine,.wall-panel,.services-hero,.team-wall,.profile__media,.profile__gallery,.shop-catalogue,.shop-filter-panel,.site-footer,.dev-credit) {
  background-color:var(--brand-ink);
}
body.dark-theme .profile__gallery-wrap { background:var(--brand-ink); color:var(--brand-paper); }
body.dark-theme .brand-field {
  background-color:color-mix(in srgb,var(--brand-field-bg) 28%,var(--brand-ink));
  box-shadow:none;
}
body.dark-theme .brand-field::before { opacity:.5; }
body.dark-theme :is(.hero-cine,.hero-cine__title,.section--ink h2,.section--ink h3,.site-footer h4,.site-footer a:hover,.hero-cine__alt:hover,.hero-cine__meta a:hover) {
  color:var(--brand-paper);
}
body.dark-theme .masthead .lede { color:var(--ink-soft); }
body.dark-theme .marquee { background:var(--brand-ink); color:var(--muted); }
body.dark-theme .site-footer :is(p,.brand__tag,.info-list li span:first-child),
body.dark-theme .footer-bottom { color:var(--muted); }
body.dark-theme .site-footer .info-list li[data-today="true"],
body.dark-theme .site-footer .info-list li[data-today="true"] span:first-child { color:var(--brand-paper); }
body.dark-theme .dev-credit__label { color:#aea396; }

/* All header states, including the mobile menu, now stay on charcoal. */
body.dark-theme .site-header,
body.dark-theme.masthead-page .site-header:not(.site-header--over) { background:var(--brand-ink); }
body.dark-theme .site-header--over:not(.is-stuck) { background:transparent; }
body.dark-theme .site-header.is-stuck,
body.dark-theme .site-header--over.is-stuck,
body.dark-theme.masthead-page .site-header.is-stuck,
body.dark-theme.nav-open .site-header { background:rgba(43,40,37,.95); border-color:var(--line); }
body.dark-theme .mobile-nav { background:var(--brand-ink); color:var(--brand-paper); }
body.dark-theme .brand__logo--ink { opacity:0 !important; }
body.dark-theme .brand__logo--paper { opacity:1 !important; }
body.dark-theme .site-header .brand__tag { color:var(--muted) !important; }
body.dark-theme .site-header .nav__link { color:var(--ink-soft) !important; }
body.dark-theme .site-header .nav__link:is(:hover,[aria-current="page"]) { color:var(--brand-paper) !important; border-color:var(--brand-moss-mid); }
body.dark-theme .site-header .nav-toggle { border-color:#81766b; }
body.dark-theme .site-header .nav-toggle span { background:var(--brand-paper); }
body.dark-theme .site-header .nav-toggle[aria-expanded="true"] span { background:#fff; }

/* Cream primary actions; moss is reserved for their interactive states. */
body.dark-theme .btn,
body.dark-theme .site-header .btn,
body.dark-theme .site-header--over.is-stuck .btn,
body.dark-theme.nav-open .site-header--over .btn {
  color:var(--brand-ink); background:var(--brand-paper); border-color:var(--brand-paper);
}
body.dark-theme .btn--ghost {
  color:var(--brand-paper); background:transparent; border-color:#9b9082;
}
body.dark-theme .btn:is(:hover,:focus-visible,:active),
body.dark-theme .site-header .btn:is(:hover,:focus-visible,:active),
body.dark-theme .site-header--over.is-stuck .btn:is(:hover,:focus-visible,:active),
body.dark-theme.nav-open .site-header--over .btn:is(:hover,:focus-visible,:active) {
  background:var(--brand-moss); color:var(--brand-paper); border-color:var(--brand-moss-mid); outline-color:var(--clay-deep);
}
body.dark-theme :focus-visible { outline-color:var(--clay-deep); }
body.dark-theme .link-underline:hover { color:var(--clay-deep); border-color:var(--clay-deep); }
body.dark-theme .rail .rail__item { color:var(--muted); }
body.dark-theme .rail .rail__item:is(:hover,:focus-visible,[aria-current="true"]) { color:var(--clay-deep); }
body.dark-theme .client-service-group[open] > summary,
body.dark-theme :is(.profile__role,.stylist__role) { color:var(--clay-deep); }

/* Native inputs, error messages and dialogs are legible on the same canvas. */
body.dark-theme :is(.profile,.book-help__panel,.cart-drawer,.checkout) { color:var(--brand-paper); background:var(--brand-ink); }
body.dark-theme .field :is(input,select,textarea) {
  background:#34302c; color:var(--brand-paper); border-color:#81766b;
}
body.dark-theme .field :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
body.dark-theme .field :is(input,select,textarea):focus {
  border-color:var(--clay-deep); box-shadow:0 0 0 3px rgba(189,200,181,.2);
}
body.dark-theme .field.has-error :is(input,select,textarea),
body.dark-theme .consultation-form [aria-invalid="true"] { border-color:var(--error); }
body.dark-theme :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--brand-moss-mid); }
body.dark-theme .waiver-template-label { color:#edb8af; border-color:#b37870; }
body.dark-theme :is(.waiver-copy,.book-policy) { background:var(--paper); border-left-color:#b37870; }
body.dark-theme .book-policy__flag { color:#edb8af; }
body.dark-theme .profile__close { background:var(--paper); color:var(--brand-paper); }
body.dark-theme .profile__gallery-empty { color:var(--ink-soft); background:var(--brand-ink); }
body.dark-theme .policy-toc { background:var(--paper); }

/* Product drawings stay intact. The catalogue and demo cart share the theme. */
body.dark-theme .product { background:#37332f; }
body.dark-theme .product:hover { background:#403b35; }
body.dark-theme .product .btn--ghost { color:var(--brand-paper); background:transparent; border-color:#a69c8f; }
body.dark-theme .product .btn--ghost:is(:hover,:focus-visible) { color:var(--brand-paper); background:var(--brand-moss); }
body.dark-theme .cart-button__count,
body.dark-theme .site-header--over:not(.is-stuck) .cart-button__count { background:var(--brand-paper); color:var(--brand-ink); }
body.dark-theme .shop-filter-panel .chip:is(:hover,:focus-visible,[aria-pressed="true"]) { color:var(--clay-deep); }
body.dark-theme .shop-filter-panel__eyebrow { color:var(--muted); }

/* V11: clean, frameless photographs without the rejected edge feathering.
   Grayscale, subdued contrast and the transparent backing remain. */
body.dark-theme .arch:has(.photo-detail),
body.dark-theme .media:has(.photo-detail) {
  border:0; border-radius:0; box-shadow:none; background:transparent;
  -webkit-mask-image:none;
  mask-image:none;
}
body.dark-theme img.photo-detail {
  filter:grayscale(1) contrast(.84) brightness(.86) !important;
  opacity:.86;
  mix-blend-mode:luminosity;
}
body.dark-theme .gallery:has(.photo-detail) { gap:0; }
body.dark-theme .gallery .media:has(.photo-detail) { border-radius:0; }
body.dark-theme .photo-wash::before { opacity:.1; }
body.dark-theme .masthead.photo-wash::before { opacity:.16; }
body.dark-theme .hero-cine:has(.photo-background) .hero-cine__scrim {
  background:linear-gradient(to bottom,rgba(43,40,37,.55),rgba(43,40,37,.4) 48%,#2b2825 100%);
}
body.dark-theme .services-hero .wall-panel__scrim {
  background:linear-gradient(to bottom,rgba(43,40,37,.4),rgba(43,40,37,.28) 35%,#2b2825 100%);
}
@media(max-width:959px) {
  body.dark-theme .section .split > .arch.ratio-tall:has(.photo-detail) {
    -webkit-mask-image:none;
    mask-image:none;
  }
}

/* V12: photographs fill their sections and blend uniformly with the canvas.
   There are no inset image edges, feather masks or gradient overlays here. */
body.dark-theme .section-texture { position:relative; isolation:isolate; }
.section-texture > .section-photo {
  position:absolute; inset:0; overflow:hidden; z-index:0; pointer-events:none;
  opacity:.52; mix-blend-mode:soft-light;
}
.section-photo__image {
  display:block; width:100%; height:100%; max-height:none;
  object-fit:cover; object-position:center;
  filter:grayscale(1) contrast(.85);
}
.section-texture > .wrap { position:relative; z-index:1; }
.service-overview { display:grid; gap:clamp(2rem,5vw,4.5rem); align-items:start; }
.service-overview__intro h2 { margin-bottom:1.25rem; }
.service-overview__intro p { max-width:38ch; }
.section-texture .split { align-items:center; }
@media(min-width:60em) {
  .service-overview { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
  .section-texture .split--reverse > :first-child { grid-column:2; }
  .card-grid--four { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #ch-why .section-head--split { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; }
  #ch-why .section-head--split h2, #ch-why .section-head--split .lede { margin-bottom:0; }
}
@media(min-width:80em) {
  .card-grid--four { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:959px) {
  .section-texture > .section-photo { opacity:.34; }
}

/* V13: ease only the full-width photo layer into the shared charcoal canvas.
   Text, controls and section geometry remain opaque and unchanged. The wide,
   eased ramps avoid a visible band where the photograph ends. */
.section-texture > .section-photo {
  --photo-edge: min(14rem, 28%);
  --photo-edge-mask: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,.038) calc(var(--photo-edge) * .125),
    rgba(0,0,0,.146) calc(var(--photo-edge) * .25),
    rgba(0,0,0,.309) calc(var(--photo-edge) * .375),
    rgba(0,0,0,.5) calc(var(--photo-edge) * .5),
    rgba(0,0,0,.691) calc(var(--photo-edge) * .625),
    rgba(0,0,0,.854) calc(var(--photo-edge) * .75),
    rgba(0,0,0,.962) calc(var(--photo-edge) * .875),
    #000 var(--photo-edge),
    #000 calc(100% - var(--photo-edge)),
    rgba(0,0,0,.962) calc(100% - var(--photo-edge) * .875),
    rgba(0,0,0,.854) calc(100% - var(--photo-edge) * .75),
    rgba(0,0,0,.691) calc(100% - var(--photo-edge) * .625),
    rgba(0,0,0,.5) calc(100% - var(--photo-edge) * .5),
    rgba(0,0,0,.309) calc(100% - var(--photo-edge) * .375),
    rgba(0,0,0,.146) calc(100% - var(--photo-edge) * .25),
    rgba(0,0,0,.038) calc(100% - var(--photo-edge) * .125),
    transparent 100%);
  -webkit-mask-image: var(--photo-edge-mask);
  mask-image: var(--photo-edge-mask);
}
