/* ============================================
   LE BIEN PLANNER DECO — editorial luxury system
   Type: Playfair Display + Montserrat
   Palette: ink, gold, ivory, rose
   ============================================ */

:root {
  --ink: #0a0a0a;
  --char: #141414;
  --slate: #1c1c1c;
  --line: rgba(244, 240, 230, 0.12);
  --line-strong: rgba(244, 240, 230, 0.28);
  --ivory: #f4f0e6;
  --ivory-dim: #cdc7b8;
  --ivory-mute: #8a8678;
  --gold: #c8a96a;
  --gold-bright: #d9bd7a;
  --gold-deep: #8a7240;
  --rose: #d9b6b0;
  --rose-deep: #b08680;

  --serif: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
  --display: "Playfair Display", "Cormorant Garamond", serif;
  --script: "Pinyon Script", "Allura", cursive;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (max-width: 900px) { html { scroll-padding-top: 64px; } }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow.muted { color: var(--ivory-mute); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ivory);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.display em, .display .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-family: var(--display);
}

.script {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-bright);
}

.lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ivory-dim);
  letter-spacing: 0.005em;
}

p { color: var(--ivory-dim); }

/* ── Layout primitives ─────────────────────── */

.wrap { max-width: 1480px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

section { position: relative; padding: 140px 0; }
@media (max-width: 720px) { section { padding: 84px 0; } }

.hair { height: 1px; background: var(--line); width: 100%; }
.hair.gold { background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-tag::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.num {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ── Header / Nav ─────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 56px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
@media (max-width: 900px) { .nav { padding: 18px 24px; grid-template-columns: auto 1fr auto; } }

.nav-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ivory);
}
.nav-brand .brand-img {
  height: 44px; width: auto; display: block;
  filter: drop-shadow(0 0 14px rgba(200,169,106,0.25));
}
.nav-brand .brand-word { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.nav-brand .brand-mark {
  font-style: italic;
  color: var(--gold);
  font-size: 20px;
}
.nav-brand .brand-sub {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.36em;
  color: var(--ivory-mute);
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 38px;
  justify-self: center;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.nav-links a { position: relative; padding: 8px 0; transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
}
@media (max-width: 900px) { .nav-links { display: none; } }

.nav-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  padding: 12px 22px;
  border: 1px solid var(--gold);
  background: transparent;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 720px) { .nav-cta { padding: 10px 14px; font-size: 10px; letter-spacing: 0.22em; } }

/* ── Buttons ─────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 18px 32px;
  cursor: pointer; border: none; background: transparent;
  transition: all .3s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { color: var(--ivory); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arrow { font-family: var(--display); font-style: italic; font-size: 16px; letter-spacing: 0; }

/* ── Logo monogram (phoenix mark + wordmark) ───── */
.monogram {
  display: inline-flex; flex-direction: column; align-items: center;
  font-family: var(--display);
  color: var(--gold);
  line-height: 1;
  gap: 14px;
}
.monogram .mark {
  width: 120px; height: auto; display: block;
  filter: drop-shadow(0 0 24px rgba(200,169,106,0.35));
}
.monogram .word {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.monogram .top {
  font-style: italic; font-size: 26px; letter-spacing: 0.02em;
}
.monogram .mid {
  font-style: italic; font-size: 20px; letter-spacing: 0.02em;
}
.monogram .rule {
  width: 64px; height: 1px; background: var(--gold);
  margin: 6px 0 4px;
  position: relative;
}
.monogram .rule::before, .monogram .rule::after {
  content: ""; position: absolute; top: 50%; width: 4px; height: 4px;
  background: var(--gold); border-radius: 50%; transform: translateY(-50%);
}
.monogram .rule::before { left: -8px; }
.monogram .rule::after { right: -8px; }
.monogram .sub {
  font-family: var(--display); font-style: italic;
  font-size: 11px; letter-spacing: 0.5em; color: var(--gold);
  padding-left: 0.5em;
}
.monogram.left { align-items: flex-start; }
.monogram.left .word { align-items: flex-start; }
.monogram.left .mark { width: 90px; }

/* ── Image slots ─────────────────────────── */
image-slot {
  --is-bg: #15140f;
  --is-border: rgba(200, 169, 106, 0.22);
  --is-fg: var(--ivory-mute);
  --is-accent: var(--gold);
  border-radius: 0 !important;
}

.slot-strip {
  position: relative;
}
.slot-tag {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ivory); z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  pointer-events: none;
}

/* ── Footer ─────────────────────────────── */
.footer {
  background: #060606;
  border-top: 1px solid var(--line);
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.footer h4 {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px; font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ivory-dim); }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-mute);
}
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 16px; text-align: center; } }

/* ── WhatsApp floater ───────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  transition: transform .3s, background .3s;
}
.whatsapp-fab:hover { background: var(--gold); }
.whatsapp-fab:hover svg { fill: var(--ink); }
.whatsapp-fab svg { width: 26px; height: 26px; fill: var(--gold); transition: fill .3s; }

/* ── Reveal animation ───────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

/* ── Marquee ─────────────────────────────── */
.marquee {
  display: flex; gap: 80px; overflow: hidden; white-space: nowrap;
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-style: italic; font-size: 28px; color: var(--ivory-dim);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 80px; align-items: center;
  animation: marq 38s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 80px; }
.marquee-track .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; display: inline-block; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── Cursor hairline grid ───────────────── */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,169,106,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,106,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}

/* ── Utility ─────────────────────────────── */
.italic { font-family: var(--display); font-style: italic; }
.gold { color: var(--gold); }
.rose { color: var(--rose); }
.mute { color: var(--ivory-mute); }
.center { text-align: center; }
.spacer-l { height: 80px; }
.spacer-m { height: 48px; }
.spacer-s { height: 24px; }

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE SYSTEM — global shared components only
   Breakpoints used: 900px (nav) · 767px (mobile) · 479px (xs)
   Desktop ≥ 901px is NEVER modified in this block.
══════════════════════════════════════════════════════════════ */

/* ─── Nav end: CTA + hamburger wrapper ─────────────────────── */
.nav-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ─── Hamburger button ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-hamburger .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(.4, 0, .2, 1),
    opacity 0.25s ease,
    width 0.25s ease;
}
.nav-hamburger.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open .bar:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
}

/* ─── Mobile overlay menu ───────────────────────────────────── */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  padding: 88px 28px 0;
  padding-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  transition:
    opacity 0.38s cubic-bezier(.4, 0, .2, 1),
    transform 0.38s cubic-bezier(.4, 0, .2, 1),
    visibility 0s linear 0.38s;
  pointer-events: none;
  overscroll-behavior: contain;
}
.nav-mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
  transition:
    opacity 0.38s cubic-bezier(.4, 0, .2, 1),
    transform 0.38s cubic-bezier(.4, 0, .2, 1),
    visibility 0s linear 0s;
}
@media (min-width: 901px) {
  .nav-mobile-menu { display: none !important; }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mobile-nav-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 7.5vw, 44px);
  color: var(--ivory-dim);
  letter-spacing: -0.01em;
  transition: color 0.2s ease, padding-left 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mobile-nav-links a:first-child { border-top: 1px solid var(--line); }
.mobile-nav-links a.active,
.mobile-nav-links a:hover { color: var(--gold); }
.mobile-nav-links a:active { padding-left: 6px; }
.mobile-nav-links .mn-num {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ivory-mute);
  flex-shrink: 0;
}

.mobile-nav-footer {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.mobile-nav-footer .btn {
  width: 100%;
  justify-content: center;
}
.mobile-contact-line {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  padding-bottom: 8px;
}
.mobile-contact-line a {
  color: var(--gold);
  -webkit-tap-highlight-color: transparent;
}

/* iOS scroll lock */
body.menu-open { overflow: hidden; }

/* ─── Reveal — no staggered delay on mobile (perf) ─────────── */
@media (max-width: 767px) {
  .reveal.d1, .reveal.d2, .reveal.d3, .reveal.d4 { transition-delay: 0s; }
}

/* ─── Section padding ────────────────────────────────────────── */
@media (max-width: 767px) { section { padding: 72px 0; } }
@media (max-width: 479px) { section { padding: 60px 0; } }

/* ─── Wrap — safe area padding ──────────────────────────────── */
@media (max-width: 767px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

/* ─── Typography scaling ─────────────────────────────────────── */
@media (max-width: 767px) {
  .display { font-size: clamp(36px, 10.5vw, 72px); }
  .lead    { font-size: clamp(17px, 4.5vw, 22px); }
}

/* ─── Buttons — touch targets ────────────────────────────────── */
@media (max-width: 767px) {
  .btn {
    padding: 15px 24px;
    font-size: 10px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .btn .arrow { font-size: 14px; }
  .nav-cta {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
}
@media (max-width: 479px) {
  .nav-cta { display: none; }
}

/* ─── Nav safe area on mobile ────────────────────────────────── */
@media (max-width: 900px) {
  .nav {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

/* ─── Marquee ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .marquee { font-size: 20px; padding: 20px 0; }
  .marquee-track { gap: 48px; }
  .marquee-track span { gap: 48px; }
}
@media (max-width: 479px) {
  .marquee { font-size: 17px; padding: 16px 0; }
  .marquee-track { gap: 32px; animation-duration: 28s; }
  .marquee-track span { gap: 32px; }
}

/* ─── Footer ──────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .footer { padding: 64px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { padding-top: 20px; font-size: 10px; }
}

/* ─── WhatsApp FAB — safe area ───────────────────────────────── */
@media (max-width: 767px) {
  .whatsapp-fab {
    width: 52px; height: 52px;
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
    right: 18px;
  }
  .whatsapp-fab svg { width: 22px; height: 22px; }
}

/* ─── Page CTA sections (bottom of inner pages) ─────────────── */
.page-cta-section {
  padding: 140px 0;
  text-align: center;
}
@media (max-width: 767px) {
  .page-cta-section { padding: 72px 0; }
  .page-cta-section h2 { font-size: clamp(30px, 8vw, 60px); }
}
@media (max-width: 479px) {
  .page-cta-section { padding: 60px 0; }
}

/* ─── Spacers ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .spacer-l { height: 48px; }
  .spacer-m { height: 28px; }
}
