/* Magdalene - plain static export. Design tokens + custom components.
   Tailwind utility classes are provided by the Tailwind CDN script in each
   page's <head> (JIT-compiles whatever classes appear in the HTML - no
   build step needed). This file holds only what Tailwind can't express:
   brand tokens, fonts, and the bespoke component classes. */

:root {
  --color-ivory: #fffdf9;
  --color-bone: #fbf6ea;
  --color-bone-dim: #f7efdc;
  --color-ink: #3a332c;
  --color-ink-soft: #7a705f;
  --color-gold: #ecd08c;
  --color-gold-soft: #ecd08c;
  --color-greige: #e2ded2;
  --color-silver: #d7dbdf;
  --color-matcha: #8ba86a;
  --color-matcha-soft: #c3d9a8;
  --font-display: "Cormorant Garamond", "Iowan Old Style", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

html { background: var(--color-ivory); color-scheme: light; scroll-behavior: smooth; font-size: 115%; }
body {
  background-color: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
}
* { border-color: var(--color-greige); }
.font-display { font-family: var(--font-display); }

/* ---- Bolder headings so key moments in the copy stand out from body text ---- */
h1, h2, h3 { font-weight: 600; }

/* ---- Gold text is light and low-contrast on the ivory/white backgrounds it sits
   on (eyebrow labels, stats, prices) - bump the weight so it stays readable
   instead of washing out. !important beats Tailwind's CDN-injected font-weight
   utilities (font-medium etc.) that land later in the cascade on the same elements. ---- */
.text-gold { font-weight: 700 !important; }
.text-gold.italic { font-weight: 600 !important; }

/* ---- White marble + gold vein texture: single fixed backdrop on <body>, shared by
   the whole page, so it never seams/cuts between sections. Sections stay transparent
   so the one texture reads through consistently instead of each getting its own
   separately-cropped copy. ---- */
section.bg-ivory,
section.bg-bone,
section.bg-white {
  background-color: transparent;
}

/* ---- CTA: gold thread underline ---- */
.thread-link { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .35rem; }
.thread-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--color-gold); transform: scaleX(.35); transform-origin: left;
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.thread-link:hover::after, .thread-link:focus-visible::after { transform: scaleX(1); }
.thread-link .thread-dot {
  width: 5px; height: 5px; border-radius: 999px; background: var(--color-gold);
  transform: translateX(0); transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.thread-link:hover .thread-dot, .thread-link:focus-visible .thread-dot { transform: translateX(4px); }

/* ---- CTA: frosted glass block, ink-gold wash on hover ---- */
.frame-cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: .85rem;
  background: color-mix(in srgb, var(--color-ivory) 90%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--color-gold) 65%, white 35%);
  box-shadow: 0 1px 1px color-mix(in srgb, white 80%, transparent) inset,
              0 12px 26px -14px color-mix(in srgb, var(--color-ink) 32%, transparent);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1), border-color .3s ease;
  display: inline-block; text-decoration: none; color: var(--color-ink);
}
.frame-cta::before {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-ink) 85%, var(--color-gold) 15%);
  transform: translateX(-101%); transition: transform .45s cubic-bezier(.65,0,.35,1); z-index: -1;
}
.frame-cta:hover::before, .frame-cta:focus-visible::before { transform: translateX(0); }
.frame-cta:hover, .frame-cta:focus-visible {
  color: var(--color-ivory); border-color: color-mix(in srgb, var(--color-ink) 85%, var(--color-gold) 15%);
  transform: translateY(-2px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--color-ink) 45%, transparent);
}

/* ---- Row CTA: sliding index numeral ---- */
.row-cta .row-cta-index { display: inline-block; transition: transform .4s cubic-bezier(.65,0,.35,1); }
.row-cta:hover .row-cta-index, .row-cta:focus-within .row-cta-index { transform: translateX(6px); }

/* ---- Glass surfaces (small badges/buttons - kept position-neutral so they never
   fight the Tailwind absolute/rounded-full utilities already on these elements) ---- */
.glass {
  background: color-mix(in srgb, var(--color-ivory) 88%, transparent);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--color-ink) 18%, white 82%),
              0 1px 1px color-mix(in srgb, white 85%, transparent) inset,
              0 22px 44px -16px color-mix(in srgb, var(--color-ink) 38%, transparent);
}
.glass-gold {
  background: color-mix(in srgb, var(--color-ivory) 96%, transparent);
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 1px 1px color-mix(in srgb, white 85%, transparent) inset,
              0 18px 36px -16px color-mix(in srgb, var(--color-ink) 34%, transparent);
}
.glass-silver {
  background: color-mix(in srgb, var(--color-ivory) 96%, transparent);
  border: 1.5px solid var(--color-silver);
  box-shadow: 0 1px 1px color-mix(in srgb, white 85%, transparent) inset,
              0 18px 36px -16px color-mix(in srgb, var(--color-ink) 34%, transparent);
}
.glass-matcha {
  background: color-mix(in srgb, var(--color-ivory) 90%, var(--color-matcha-soft) 10%);
  border: 1.5px solid var(--color-matcha);
  box-shadow: 0 1px 1px color-mix(in srgb, white 85%, transparent) inset,
              0 18px 36px -16px color-mix(in srgb, var(--color-ink) 34%, transparent);
}
.bg-silver-white { background: linear-gradient(180deg, #ffffff 0%, #f4f4f2 55%, #eef0f1 100%); }

/* ---- Liquid glass tiles: every card/tile on the site shares this treatment -
   translucent frosted body (the marble shows through, blurred and saturated),
   a diagonal specular sheen like iOS glass, a bright rim-light border and a
   soft floating shadow. Tag+class selectors beat the plain Tailwind background
   and border utility classes already on these elements (same specificity, so
   the more specific compound selector wins regardless of stylesheet order). ---- */
a.tile-interactive,
div.tile-interactive,
button.tile-interactive {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--color-ivory) 82%, transparent) 0%,
    color-mix(in srgb, var(--color-ivory) 66%, transparent) 55%,
    color-mix(in srgb, var(--color-gold-soft) 26%, var(--color-ivory) 74%) 100%);
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--color-ink) 30%, var(--color-gold) 70%);
  box-shadow:
    0 2px 1px color-mix(in srgb, white 90%, transparent) inset,
    0 20px 42px -20px color-mix(in srgb, var(--color-ink) 42%, transparent);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .35s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
a.tile-interactive::before,
div.tile-interactive::before,
button.tile-interactive::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg,
    color-mix(in srgb, white 60%, transparent) 0%,
    transparent 32%, transparent 68%,
    color-mix(in srgb, var(--color-gold-soft) 22%, transparent) 100%);
  opacity: .4;
}
a.tile-interactive:hover,
div.tile-interactive:hover,
button.tile-interactive:hover,
a.tile-interactive:focus-within,
div.tile-interactive:focus-within,
button.tile-interactive:focus-within {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--color-gold) 75%, white 25%);
  box-shadow:
    0 2px 1px color-mix(in srgb, white 90%, transparent) inset,
    0 28px 50px -20px color-mix(in srgb, var(--color-ink) 48%, transparent);
}


.placeholder-frame {
  background-image: repeating-linear-gradient(135deg, var(--color-greige) 0px, var(--color-greige) 1px, transparent 1px, transparent 10px);
}

/* ---- Ambient glow blobs ---- */
.ambient-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-glow span { position: absolute; border-radius: 999px; filter: blur(70px); opacity: .32; }

/* ---- Reveal on scroll: disabled site-wide. Fading text/tiles/photos in on
   scroll read as loading lag rather than polish, so everything just renders
   immediately now (same end state the noscript fallback already used). ---- */
.reveal { opacity: 1; }
.reveal.is-visible { animation: none; }

/* ---- O mnie: text takes most of the row width, photo is a narrower
   column at the side, shown at its natural aspect ratio (no cropping). ---- */
@media (min-width: 1024px) {
  #o-mnie-grid { grid-template-columns: 3fr 1fr; }
}

/* ---- Trusted brands: single-row logo strip that auto-scrolls sideways ---- */
.brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6rem, black calc(100% - 6rem), transparent);
  mask-image: linear-gradient(to right, transparent, black 6rem, black calc(100% - 6rem), transparent);
}
.brand-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: brand-scroll 40s linear infinite;
}
.brand-track:hover { animation-play-state: paused; }
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - .625rem)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ---- Hero parallax (transform driven per-frame by script.js) ---- */
[data-parallax] { transform: scale(1.15); will-change: transform; }

/* ---- Hero: full-bleed photo background, with overlaid copy.
   Own layout (not Tailwind utilities) so nothing here fights the purged,
   already-built tailwind.css. ---- */
.hero-section { position: relative; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(46,40,34,.82) 0%, rgba(46,40,34,.72) 50%, rgba(46,40,34,.4) 78%, rgba(46,40,34,0) 96%),
    linear-gradient(0deg, rgba(46,40,34,.35) 0%, rgba(46,40,34,0) 30%);
}
.hero-copy { position: relative; z-index: 1; padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }
.hero-inner { max-width: 40rem; }
@media (min-width: 1024px) {
  .hero-title .block { white-space: nowrap; }
}

/* location line with a short gold rule in front */
.hero-kicker { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--color-gold); }

/* headline: handwritten signature sits on top, serif claim below */
.hero-title { margin-top: 1.4rem; color: var(--color-ivory); font-size: clamp(2.35rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; }
.hero-title .hero-script { display: flex; align-items: center; gap: .35em; color: var(--color-gold); font-size: .8em; line-height: 1.15; margin: 0 0 .2em -.02em; letter-spacing: 0; white-space: nowrap; }
/* signature trails off into a fading gold hairline */
.hero-title .hero-script::after { content: ""; flex: 0 1 4.5em; height: 1px; margin-top: .2em;
  background: linear-gradient(90deg, rgba(236,208,140,.85), rgba(236,208,140,0)); }

/* supporting copy: hairline gold rule on the left, comfortable measure */
.hero-lead { margin-top: 2rem; max-width: 33rem; padding-left: 1.25rem; border-left: 1px solid rgba(236,208,140,.75); color: rgba(255,253,249,.9); font-size: 1rem; line-height: 1.75; }

/* actions: booking is the primary, filled button; offer is the quiet link */
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
/* pill button with a round arrow badge - light, understated (no dark fills) */
.frame-cta.hero-cta-primary { display: inline-flex; align-items: center; gap: .85rem; border-radius: 999px;
  padding: .35rem .35rem .35rem 1.4rem; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,253,249,.08); border: 1px solid rgba(236,208,140,.7); color: var(--color-ivory);
  box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.frame-cta.hero-cta-primary::before { background: rgba(236,208,140,.16); }
.hero-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 999px;
  border: 1px solid rgba(236,208,140,.7); color: var(--color-gold); background: transparent;
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.hero-cta-icon svg { width: .95rem; height: .95rem; }
.frame-cta.hero-cta-primary:hover, .frame-cta.hero-cta-primary:focus-visible { color: var(--color-ivory); border-color: var(--color-gold); box-shadow: none; transform: translateY(-1px); }
.frame-cta.hero-cta-primary:hover .hero-cta-icon, .frame-cta.hero-cta-primary:focus-visible .hero-cta-icon { background: rgba(236,208,140,.22); color: var(--color-ivory); transform: translateX(2px); }
.hero-cta-secondary { color: var(--color-ivory); font-size: .95rem; font-weight: 500; }

@media (max-width: 639px) {
  .hero-scrim { background: linear-gradient(180deg, rgba(46,40,34,.55) 0%, rgba(46,40,34,.62) 55%, rgba(46,40,34,.72) 100%); }
  .hero-kicker { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
  .hero-title .hero-script { font-size: .85em; }
  .hero-lead { font-size: .95rem; padding-left: 1rem; }
}

/* ---- Hero accent line: flowing script instead of the display italic,
   reads as a signature touch against the photo. ---- */
.accent-script { font-family: "Parisienne", var(--font-display); font-style: normal; font-weight: 400 !important; line-height: 1.3; }

/* ---- Mobile nav ---- */
#mobile-menu { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .3s ease-out; }
#mobile-menu.open { grid-template-rows: 1fr; }
#mobile-menu > div { min-height: 0; }

/* ---- Gallery lightbox ---- */
#lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(42,37,32,.9); padding: 1rem; }
#lightbox.open { display: flex; }
#lightbox img { max-height: 85vh; max-width: 100%; object-fit: contain; }

/* Hide scrollbar on horizontal review/gallery rails but keep them scrollable */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---- FAQ accordion (native <details>/<summary> - works without JS) ---- */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { transition: transform .3s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

/* ---- O Salonie section grid (homepage): explicit column split, since
   arbitrary-fraction grid-cols isn't in the prebuilt Tailwind bundle ---- */
@media (min-width: 1024px) {
  #o-salonie-grid { grid-template-columns: 1.25fr 1fr; }
}

/* ---- Footer credit (MM10): subtle, brighter on hover ---- */
.mm10-credit { color: inherit; white-space: nowrap; opacity: .75; transition: opacity .2s; }
.mm10-credit:hover { opacity: 1; }
.mm10-credit:hover .mm10-brand { color: #b8955a; }
.mm10-arrow { width: 11px; height: 11px; opacity: .5; transition: transform .2s, opacity .2s; }
.mm10-credit:hover .mm10-arrow { opacity: 1; transform: translate(2px, -2px); }
