/* ============================================================
   A Yentl Touch — shared styles
   Loaded before Tailwind CDN; per-page overrides via body[data-page=].
   ============================================================ */

/* ---------- Base ---------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: #FAF1E6;
  color: #2A1810;
}
::selection { background: #5C1A2E; color: #FAF1E6; }
:focus-visible { outline: 2px solid #5C1A2E; outline-offset: 3px; border-radius: 2px; }

/* ---------- SVG noise grain ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.grain-light::after { opacity: 0.045; mix-blend-mode: multiply; }
.grain-dark::after  { opacity: 0.18;  mix-blend-mode: screen; }

/* ---------- Atmospheric backgrounds ---------- */
.atmosphere {
  background:
    radial-gradient(60% 50% at 18% 25%, rgba(152,122,90,0.10), transparent 60%),
    radial-gradient(50% 60% at 85% 80%, rgba(92,26,46,0.07),  transparent 65%),
    radial-gradient(40% 40% at 50% 100%, rgba(90,58,40,0.08), transparent 70%),
    #FAF1E6;
}
.atmosphere-dark { background: #2A1810; }

/* ---------- Reveal-on-scroll (CSS view-timeline; opt-out via body[data-no-reveal]) ---------- */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  body:not([data-no-reveal]) .reveal {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }
  @keyframes revealUp {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
}

/* ---------- Hairlines & glyphs ---------- */
.rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(42,24,16,0.25) 30%, rgba(42,24,16,0.25) 70%, transparent); }
.num-glyph { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 400; line-height: 1; }
.serif-italic { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }

/* ---------- Editorial pull-quote glyph ---------- */
.quote::before {
  content: "“"; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.5em; line-height: 0.75; display: block; color: #5C1A2E;
  margin-bottom: 0.05em; font-weight: 400;
}

/* ---------- Spring-eased link underline ---------- */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.85rem;
  font-family: "Manrope", system-ui, sans-serif; font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 380ms cubic-bezier(0.22, 1, 0.36, 1),
    color 380ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 380ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #FAF1E6, 0 0 0 4px #5C1A2E; }
.btn:active { transform: translate3d(0, 1px, 0); }
.btn-primary {
  background: #5C1A2E; color: #FAF1E6;
  box-shadow: 0 14px 30px -18px rgba(92,26,46,0.55), 0 4px 10px -6px rgba(42,24,16,0.35);
}
.btn-primary:hover {
  background: #2A1810; transform: translate3d(0,-1px,0);
  box-shadow: 0 22px 40px -22px rgba(92,26,46,0.65), 0 8px 16px -10px rgba(42,24,16,0.45);
}
.btn-ghost { background: transparent; color: #2A1810; border-color: rgba(42,24,16,0.30); }
.btn-ghost:hover { background: rgba(42,24,16,0.04); border-color: #2A1810; transform: translate3d(0,-1px,0); }
.btn-on-dark { background: #FAF1E6; color: #2A1810; }
.btn-on-dark:hover { background: #F5EBDE; transform: translate3d(0,-1px,0); box-shadow: 0 22px 40px -22px rgba(250,241,230,0.4); }

/* ---------- Nav: compact by default + smart-shrink override on the landing ---------- */
#nav {
  background: rgba(250,241,230,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42,24,16,0.1);
  transition: background-color 500ms cubic-bezier(0.22,1,0.36,1), border-color 500ms cubic-bezier(0.22,1,0.36,1);
}
.nav-strip {
  height: 72px;
  transition: height 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-logo {
  height: 52px; width: auto;
  transition: height 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) {
  .nav-strip { height: 90px; }
  .nav-logo  { height: 70px; }
}

/* Landing override: nav is transparent + tall over the hero, shrinks on scroll */
body[data-page="landing"] #nav:not(.nav-scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body[data-page="landing"] #nav:not(.nav-scrolled) .nav-strip { height: 100px; }
body[data-page="landing"] #nav:not(.nav-scrolled) .nav-logo  { height: 80px; filter: brightness(0) invert(1); }
@media (min-width: 768px) {
  body[data-page="landing"] #nav:not(.nav-scrolled) .nav-strip { height: 170px; }
  body[data-page="landing"] #nav:not(.nav-scrolled) .nav-logo  { height: 150px; }
}

/* ---------- Marquee (landing) ---------- */
.marquee { display: flex; width: max-content; animation: marquee 42s linear infinite; }
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* ---------- Treatment card image treatment (landing) ---------- */
.image-treatment::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(42,24,16,0.55) 100%);
}
.image-treatment::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(90,58,40,0.18); mix-blend-mode: multiply;
}
.image-treatment > img,
.image-treatment > div.img {
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.image-treatment:hover > img,
.image-treatment:hover > div.img { transform: scale(1.05); }

/* ---------- Hero scroll cue (landing) ---------- */
@keyframes scrollPulse {
  0%   { opacity: 0.25; transform: translate3d(0, 0, 0) scaleY(1); }
  50%  { opacity: 0.9;  transform: translate3d(0, 6px, 0) scaleY(0.6); }
  100% { opacity: 0.25; transform: translate3d(0, 0, 0) scaleY(1); }
}
.scroll-cue { animation: scrollPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; transform-origin: top center; }

/* ---------- Widget frame (prijslijst, reviews) ---------- */
.widget-frame {
  position: relative;
  background: #FAF1E6;
  border: 1px solid rgba(42,24,16,0.12);
  padding: 1.5rem;
  box-shadow:
    0 30px 60px -30px rgba(42,24,16,0.30),
    0 12px 24px -16px rgba(92,26,46,0.18);
}
.widget-frame::before {
  content: ""; position: absolute;
  inset: -10px -10px auto auto;
  width: 28px; height: 28px;
  border-top: 1px solid rgba(42,24,16,0.30);
  border-right: 1px solid rgba(42,24,16,0.30);
  pointer-events: none;
}
.widget-frame::after {
  content: ""; position: absolute;
  inset: auto auto -10px -10px;
  width: 28px; height: 28px;
  border-bottom: 1px solid rgba(42,24,16,0.30);
  border-left: 1px solid rgba(42,24,16,0.30);
  pointer-events: none;
}
@media (min-width: 768px) {
  .widget-frame { padding: 2rem; }
  body[data-page="reviews"] .widget-frame { padding: 2.25rem; }
}
/* Prijslijst-specific iframe sizing */
body[data-page="prijslijst"] .widget-frame iframe {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 480px;
  border: none;
  margin: 0 auto;
  background: #FAF1E6;
}

/* ---------- Salonized widget overrides ---------- */
.salonized-reviews-mini,
.salonized-reviews { font-family: "Manrope", system-ui, sans-serif; color: #2A1810; }
.salonized-reviews-mini a,
.salonized-reviews a { color: #5C1A2E; }
.salonized-reviews-mini *,
.salonized-reviews *  { font-family: inherit !important; }

/* ---------- Editorial body (behandelingen subpages, merken, contact intro) ---------- */
.editorial-lead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300; font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.45; color: #2A1810;
}
.editorial-body p { font-size: 16px; line-height: 1.75; color: rgba(42, 24, 16, 0.82); margin-top: 1.1em; }
.editorial-body p:first-child { margin-top: 0; }
.editorial-body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-style: italic;
  font-size: 1.6rem; color: #5A3A28;
  margin-top: 1.6em; margin-bottom: 0.3em; line-height: 1.15;
}
.editorial-body h3 + p { margin-top: 0.3em; }
.editorial-body strong { color: #2A1810; font-weight: 500; }
.editorial-body .yentl-voice {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.18rem; line-height: 1.55;
  color: #2A1810;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(92, 26, 46, 0.5);
}

/* ---------- Facts sidebar (merken brand-cards, behandelingen subpages) ---------- */
.facts-card { background: #F5EBDE; border: 1px solid rgba(42, 24, 16, 0.12); padding: 1.5rem 1.75rem; }
.facts-card dt { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #5A3A28; }
.facts-card dd { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; color: #2A1810; line-height: 1.25; margin-top: 4px; }
.facts-card dd + dt { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(42, 24, 16, 0.12); }

/* ---------- Merken brand-card (sidebar with logo + facts) ---------- */
.brand-card { background: #F5EBDE; border: 1px solid rgba(42, 24, 16, 0.12); padding: 1.5rem 1.75rem; }
.brand-card .logo-bay {
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; padding: 0.5rem 0.5rem 1.2rem;
  border-bottom: 1px solid rgba(42, 24, 16, 0.12);
  margin-bottom: 1.2rem;
}
.brand-card .logo-bay img { max-height: 60px; max-width: 100%; height: auto; width: auto; }
.brand-card dt { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #5A3A28; }
.brand-card dd { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; color: #2A1810; line-height: 1.3; margin-top: 4px; }
.brand-card dd + dt { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(42, 24, 16, 0.12); }

/* ---------- Contact-page cards ---------- */
.contact-card {
  display: block;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(42, 24, 16, 0.15);
  background: rgba(245, 235, 222, 0.45);
  transition: background-color 500ms cubic-bezier(0.22, 1, 0.36, 1), border-color 500ms cubic-bezier(0.22, 1, 0.36, 1), transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-card:hover { background: rgba(245, 235, 222, 0.95); border-color: rgba(42, 24, 16, 0.35); }
.contact-card .arrow { transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), color 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.contact-card:hover .arrow { transform: translate3d(4px, 0, 0); color: #5C1A2E; }
.info-card {
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(42, 24, 16, 0.15);
  background: rgba(245, 235, 222, 0.45);
}
@media (min-width: 768px) {
  .contact-card,
  .info-card { padding: 1.75rem 2rem; }
}

/* ---------- Booking modal (Salonized widget lightbox) ---------- */
.booking-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.booking-modal[data-open] { display: flex; }
.booking-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(42, 24, 16, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: bookingFadeIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.booking-modal-panel {
  position: relative; z-index: 1;
  background: #FAF1E6;
  width: calc(100% - 24px); max-width: 980px;
  height: calc(100% - 24px); max-height: 820px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 90px -20px rgba(42, 24, 16, 0.5);
  animation: bookingScaleIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.booking-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(42, 24, 16, 0.1);
  flex-shrink: 0;
}
.booking-modal-title { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 22px; color: #2A1810; margin: 0; }
.booking-modal-close {
  width: 36px; height: 36px;
  border: 1px solid rgba(42, 24, 16, 0.25);
  background: transparent;
  cursor: pointer; font-size: 22px; line-height: 1;
  color: #2A1810; padding: 0;
  transition: background-color 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms cubic-bezier(0.22, 1, 0.36, 1), color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.booking-modal-close:hover { background: rgba(42, 24, 16, 0.06); border-color: rgba(92, 26, 46, 0.5); color: #5C1A2E; }
.booking-iframe { flex: 1; width: 100%; border: 0; background: #FAF1E6; }
@keyframes bookingFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bookingScaleIn { from { opacity: 0; transform: scale(0.96) translate3d(0, 8px, 0); } to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } }
