/* Belyse — base styles. Component styles stay inline, as in the design source. */

:root {
  --bly-ink: #272525;
  --bly-muted: #6F6466;
  --bly-paper: #F7F2F3;
  --bly-blush: #F6E3E7;
  --bly-rose: #EFC5CD;
  --bly-rose-2: #D9A0AE;
  --bly-wine: #A63D5E;
  --bly-line: #E7DADD;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bly-paper); color: var(--bly-ink); font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--bly-wine); text-decoration: none; }
a:hover { color: var(--bly-ink); }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
.bly-page { min-height: 100vh; background: var(--bly-paper); overflow-x: clip; }

:focus-visible { outline: 2px solid var(--bly-wine); outline-offset: 3px; }

/* Breakpoint wrappers, replacing the design runtime's isDesktop / isMobile (Nav: 1000px). */
.bly-bp-desktop, .bly-bp-mobile, .bly-bp-phone { display: contents; }
@media (max-width: 999px) { .bly-bp-desktop { display: none; } }
@media (min-width: 1000px) { .bly-bp-mobile { display: none; } }
@media (min-width: 640px) { .bly-bp-phone { display: none; } }

#bly-mobile-nav:not([hidden]) { display: flex; }
@media (min-width: 1000px) { #bly-mobile-nav { display: none !important; } }

/* State wrappers toggled by assets/js/belyse.js (design sc-if on client state). */
[data-bly-if] { display: contents; }
[data-bly-if][hidden] { display: none !important; }

/* Sticky booking bar: phones only, after scrolling (design: < 720px, scrollY > 480). */
.bly-sticky:not([hidden]) { display: flex; }
@media (min-width: 720px) { .bly-sticky { display: none !important; } }
@media (max-width: 719px) { .bly-footer-bottom { padding-bottom: 96px !important; } }

/* Footer link hovers (design style-hover). */
.bly-f-link:hover, .bly-f-link:focus-visible { color: var(--bly-rose) !important; }
.bly-f-sub:hover, .bly-f-sub:focus-visible { color: var(--bly-paper) !important; }

/* Scroll reveal. Content is visible without JS; the script only arms below-the-fold items. */
[data-reveal] { transition: opacity .7s ease, transform .7s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Before/after range input (design: input[type=range].ba). */
.bly-ba input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; }
.bly-ba input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; cursor: ew-resize; }
.bly-ba input[type=range]:focus-visible { outline: none; }
.bly-ba:focus-within { outline: 2px solid var(--bly-wine); outline-offset: 3px; }

/* The design's <image-slot> while no photo is assigned. */
.bly-slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: repeating-linear-gradient(135deg, #F6E3E7 0 14px, #F2D9DF 14px 28px); color: var(--bly-muted); font-size: 13px; line-height: 18px; text-align: center; }
.bly-slot span { max-width: 220px; background: rgba(255,255,255,.8); padding: 8px 12px; border-radius: 10px; }

/* Legal pages and other plain content. */
.bly-prose { font-size: 17px; line-height: 1.7; color: var(--bly-ink); }
.bly-prose h1 { font-family: Cormorant, Georgia, serif; font-weight: 600; font-size: clamp(40px,5vw,64px); line-height: 1.02; margin: 0 0 32px; }
.bly-prose h2, .bly-prose h3 { font-family: Cormorant, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 1.6em 0 .5em; }
.bly-prose h2 { font-size: 32px; } .bly-prose h3 { font-size: 24px; }
.bly-prose a { border-bottom: 1px solid currentColor; }
.bly-prose ul, .bly-prose ol { padding-left: 1.2em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Booking page. Amelia's trigger buttons stay in the DOM (Amelia binds to them) but are invisible. */
.bly-amelia-triggers > button { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); }
/* the renamed Stripe label wraps instead of overflowing its button (as on the live site) */
.am-fs__payments-main-button-stripe p { white-space: normal !important; text-align: center !important; line-height: 1.25 !important; }
/* The design's add-on sheet docks to the bottom on phones (design: mobile < 640). */
@media (max-width: 639px) {
  [data-bly-if="modalOpen"] > div { align-items: flex-end !important; padding: 0 !important; }
  [data-bly-if="modalOpen"] [role=dialog] { border-radius: 24px 24px 0 0 !important; max-height: 92vh !important; }
}
/* Space for the fixed selection bar at the bottom of the booking page. */
main:has(~ [role=region][aria-label="Servicii selectate"]) { padding-bottom: 120px; }

/* CookieYes banner in the brand palette (its template hard-codes its own blue). */
.cky-consent-container, .cky-modal, .cky-preference-center { font-family: "Hanken Grotesk", sans-serif !important; }
.cky-btn-revisit-wrapper { background-color: var(--bly-ink) !important; }
.cky-btn.cky-btn-accept { background: var(--bly-ink) !important; border-color: var(--bly-ink) !important; color: #fff !important; border-radius: 9999px !important; }
.cky-btn.cky-btn-reject, .cky-btn.cky-btn-customize, .cky-btn.cky-btn-preferences { background: transparent !important; border-color: var(--bly-ink) !important; color: var(--bly-ink) !important; border-radius: 9999px !important; }
.cky-consent-container a, .cky-preference-center a, .cky-show-desc-btn { color: var(--bly-wine) !important; }
.cky-switch input[type=checkbox]:checked { background: var(--bly-wine) !important; }

/* Micro-interactions (approved 2026-11-09 from content/microinteractiuni-demo.html).
   Kept in this file rather than a stylesheet of their own: one more render-blocking request
   delayed the italic display face enough to cause a layout shift (Lighthouse CLS 0.12). Rules that
   must beat hover.css, which loads later, carry an extra `html` for specificity.
   Hooks are the converter's hover classes and data attributes, so the
   generated page markup stays untouched. Only transform, opacity, colour and background-size
   move. Everything is switched off for prefers-reduced-motion at the end of this file. */

:root {
  --bly-ease-out: cubic-bezier(.22, 1, .36, 1);
  --bly-ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* 01 · Dark buttons (bly-h1): wine sweeps in from the left; press gives a small squeeze.
   The inline background resets background-image, hence !important on the sweep layer. */
.bly-h1 {
  background-image: linear-gradient(var(--bly-wine), var(--bly-wine)) !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  background-size: 0% 100% !important;
  transition: background-size .45s var(--bly-ease-out), color .3s, transform .2s var(--bly-ease-out) !important;
}
html .bly-h1:hover, html .bly-h1:focus-visible {
  background: #272525 linear-gradient(var(--bly-wine), var(--bly-wine)) no-repeat 0 0 / 100% 100% !important;
}
html .bly-h1:active, html .bly-h6:active, .bly-h2:active, .bly-h8:active, [data-bly-click="s.onPick"]:active, [data-bly-click="f.pick"]:active { transform: scale(.97) !important; }
/* Outline buttons (bly-h6) and light buttons: smooth fill instead of an instant swap. */
.bly-h6, .bly-h2, .bly-h8 { transition: background-color .3s, color .3s, transform .2s var(--bly-ease-out) !important; }

/* 02 · Service cards (bly-h5): softer lift, and the photo in the arch moves closer. */
.bly-h5 { transition: transform .45s var(--bly-ease-out), box-shadow .45s var(--bly-ease-out) !important; }
html .bly-h5:hover, html .bly-h5:focus-within { box-shadow: 0 18px 40px rgba(39,37,37,.10) !important; }
.bly-h5 img { transition: transform 1.1s var(--bly-ease-out); }
.bly-h5:hover img, .bly-h5:focus-within img { transform: scale(1.06); }
.bly-h7 { transition: transform 1.1s var(--bly-ease-out) !important; }

/* 03 · Price picker: cards and buttons ease between states; booking.js adds the pop and the bump. */
[data-bly-loop="g.items"] { transition: background-color .3s, border-color .3s, box-shadow .3s; }
[data-bly-loop="g.items"]:has([aria-pressed="true"]) { box-shadow: 0 0 0 3px var(--bly-blush); }
[data-bly-click="s.onPick"] { transition: background-color .3s, color .3s, transform .2s var(--bly-ease-out); }

/* 04 · Before/after: the handle grows while held. */
[data-bly-ba] [aria-hidden="true"] > span { transition: transform .25s var(--bly-ease-spring); }
[data-bly-ba].bly-grab [aria-hidden="true"] > span { transform: scale(1.15); }

/* 05 · Scroll reveal: ease-out; belyse.js staggers siblings by 80 ms. */
[data-reveal] { transition: opacity .8s var(--bly-ease-out), transform .8s var(--bly-ease-out); }

/* 06 · FAQ: the +/× turns smoothly (the height is animated by belyse.js). */
[data-bly-click="q.toggle"] > :last-child { transition: transform .4s var(--bly-ease-out), background-color .3s, color .3s !important; }
[data-bly-click="q.toggle"][aria-expanded="true"] > :last-child { background: #272525; color: #F7F2F3; border-color: #272525 !important; }

/* 07 · Filter chips: one dark pill slides between them (created by belyse.js). */
.bly-chips { position: relative; isolation: isolate; }
.bly-chips > [data-bly-click="f.pick"] { position: relative; z-index: 1; background: transparent !important; transition: color .3s, transform .2s var(--bly-ease-out); }
.bly-chip-pill { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 9999px; background: #272525; pointer-events: none; transition: transform .45s var(--bly-ease-out), width .45s var(--bly-ease-out), height .45s var(--bly-ease-out); }

/* 09 · Desktop menu: a thin line draws in under the link; the current page keeps it. */
nav[aria-label="Principal"] a {
  border-bottom-color: transparent !important;
  background: linear-gradient(#272525, #272525) no-repeat 0 100% / 0 1.5px;
  transition: background-size .35s var(--bly-ease-out), color .3s;
}
nav[aria-label="Principal"] a:hover, nav[aria-label="Principal"] a:focus-visible, nav[aria-label="Principal"] a[aria-current="page"] { background-size: 100% 1.5px; }

/* 10 · Offer prices: the old price is struck by a line that draws in once (belyse.js arms it). */
[style*="text-decoration:line-through"].bly-strike { position: relative; text-decoration: none !important; }
[style*="text-decoration:line-through"].bly-strike::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 52%; height: 1.5px; background: currentColor;
  transform-origin: left; transform: scaleX(0); transition: transform .6s .15s var(--bly-ease-out);
}
[style*="text-decoration:line-through"].bly-strike.bly-in::after { transform: scaleX(1); }

/* Reduced motion: final states only. */
@media (prefers-reduced-motion: reduce) {
  .bly-h1, .bly-h2, .bly-h5, .bly-h6, .bly-h7, .bly-h8, .bly-h5 img, [data-bly-loop="g.items"], [data-bly-click],
  [data-bly-click] > :last-child, .bly-chip-pill, nav[aria-label="Principal"] a, [data-bly-ba] span,
  [style*="text-decoration:line-through"].bly-strike::after { transition: none !important; animation: none !important; }
  .bly-h5:hover img, .bly-h5:focus-within img { transform: none; }
  [style*="text-decoration:line-through"].bly-strike::after { transform: scaleX(1); }
}

/* CookieYes' floating re-open icon sits on top of the sticky booking bar on phones (2026-11-09).
   Below 720px it is hidden; the footer's "Setări cookie-uri" reopens the preferences on every device. */
@media (max-width: 719px) { .cky-btn-revisit-wrapper { display: none !important; } }

/* Offer bar: slides away while scrolling down, back on scrolling up (belyse.js, owner request 2026-11-09).
   Transform only, so the page never reflows. */
[data-bly-topbar] { transition: transform .35s var(--bly-ease-out); will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-bly-topbar] { transition: none; } }
