/* ============================================================
   landing.css — Hero Diagonal Split
   YëreDesign — Deux zones, deux univers
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  --lux-dark:    #030303;
  --lux-dark-2:  #080808;
  --lux-gold:    #FFFFFF;
  --lux-accent:  #C9A96E;
  --shop-white:  #FFFFFF;
  --shop-dark:   #000000;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --t-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--lux-dark);
  color: #fff;
  overflow: hidden;
}

/* ── OVERLAYS ────────────────────────────────────────────── */
.landing-overlays {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
}
.landing-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.landing-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.45) 100%);
}

/* ── CONTAINER ───────────────────────────────────────────── */
.landing-split-container {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ── WATERMARK ───────────────────────────────────────────── */
.landing-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 25vw;
  font-weight: 400;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  user-select: none;
}

/* ── DIAGONAL DIVIDER ────────────────────────────────────── */
/* Sits in the center, creates the angled visual separator */
.landing-split-container::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  /* positioned at 50% of viewport */
  left: calc(50% - 1px);
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--lux-gold) 20%,
    var(--lux-gold) 80%,
    transparent 100%
  );
  opacity: 0.35;
  z-index: 30;
  pointer-events: none;
  transform: skewX(-4deg);
  transform-origin: top;
  transition: opacity 0.5s ease;
}
.landing-split-container:hover::before {
  opacity: 0.15;
}

/* ── PANELS ──────────────────────────────────────────────── */
.split-side {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: flex 0.75s cubic-bezier(0.165, 0.84, 0.44, 1), 
              filter 0.5s ease, 
              opacity 0.5s ease;
  filter: grayscale(100%);
  opacity: 0.6;
  cursor: pointer;
}

.split-side:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Hover expansion */
.landing-split-container:has(.side-restauration:hover) .side-restauration { flex: 1.65; }
.landing-split-container:has(.side-restauration:hover) .side-boutique     { flex: 0.35; filter: grayscale(100%); opacity: 0.3; }
.landing-split-container:has(.side-boutique:hover)     .side-boutique     { flex: 1.65; }
.landing-split-container:has(.side-boutique:hover)     .side-restauration { flex: 0.35; filter: grayscale(100%); opacity: 0.3; }

/* ── RESTAURATION — Dark Luxury ──────────────────────────── */
.side-restauration {
  background: var(--lux-dark);
}

/* Background image */
.side-restauration::after {
  content: '';
  position: absolute;
  inset: -5%;
  background: url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?q=80&w=2000') center/cover no-repeat;
  filter: grayscale(40%) brightness(0.22) sepia(20%);
  transition: filter 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}
.side-restauration:hover::after {
  filter: grayscale(10%) brightness(0.32) sepia(15%);
  transform: scale(1.06);
}

/* Gold grain overlay */
.side-restauration::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(201,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.06) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* ── BOUTIQUE — Clean Modern ─────────────────────────────── */
.side-boutique {
  background: var(--shop-white);
}

.side-boutique::after {
  content: '';
  position: absolute;
  inset: -5%;
  background: url('https://images.unsplash.com/photo-1445205170230-053b83016050?q=80&w=2000') center/cover no-repeat;
  filter: grayscale(30%) brightness(0.85);
  transition: filter 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}
.side-boutique:hover::after {
  filter: grayscale(0%) brightness(0.9);
  transform: scale(1.04);
}

.side-boutique::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(250,250,248,0.92) 0%, rgba(250,250,248,0.75) 50%, rgba(240,238,233,0.88) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.side-boutique:hover::before {
  opacity: 0.7;
}

/* ── DIAGONAL EDGE on panels ─────────────────────────────── */
/* Right edge of restauration panel — angled clip */
.side-restauration {
  clip-path: polygon(0 0, 100% 0, calc(100% - 5vw) 100%, 0 100%);
  margin-right: calc(-5vw / 2);
  z-index: 2;
}
/* Left edge of boutique panel */
.side-boutique {
  clip-path: polygon(5vw 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* ── CONTENT ─────────────────────────────────────────────── */
.side-logo, .side-content {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

/* Logo — corner positioning */
.side-logo {
  position: absolute;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-display);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 50;
}

/* Restauration : Top Left on Hover */
.side-restauration .side-logo {
  top: 40px;
  left: 40px;
  color: var(--lux-accent);
  transform: translate(-10px, -10px);
}
.side-restauration:hover .side-logo {
  opacity: 1;
  visibility: visible;
  transform: translate(10px, 10px);
}

/* Boutique : Bottom Right on Hover */
.side-boutique .side-logo {
  bottom: 40px;
  right: 40px;
  color: var(--shop-dark);
  transform: translate(10px, 10px);
}
.side-boutique:hover .side-logo {
  opacity: 1;
  visibility: visible;
  transform: translate(-10px, -10px);
}

/* Center content block */
.side-content {
  text-align: center;
  max-width: 480px;
  padding: 0 40px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* ─── RESTAURATION content ─── */
.side-restauration .side-content .side-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lux-accent);
  display: block;
  margin-bottom: 0.5rem;
}
.side-restauration .side-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 0.8;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.side-restauration .side-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 2.5rem;
  display: block;
}
.side-restauration .side-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--t-smooth);
  pointer-events: auto;
  border-radius: 4px;
}
.side-restauration .side-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 15px 45px rgba(255,255,255,0.15);
}

/* ─── BOUTIQUE content ─── */
.side-boutique .side-content .side-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}
.side-boutique .side-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 400;
  color: var(--shop-dark);
  line-height: 0.8;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.side-boutique .side-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #666;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 2.5rem;
  display: block;
}
.side-boutique .side-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  color: var(--shop-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--t-smooth);
  pointer-events: auto;
  border-radius: 4px;
}
.side-boutique .side-btn:hover {
  background: var(--shop-dark);
  color: var(--shop-white);
  border-color: var(--shop-dark);
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

/* Hover content scale */
.split-side:hover .side-content {
  transform: scale(1.03) translateY(-4px);
}

/* Shrink content on non-hovered side */
.landing-split-container:has(.side-restauration:hover) .side-boutique .side-content,
.landing-split-container:has(.side-boutique:hover) .side-restauration .side-content {
  transform: scale(0.88);
  opacity: 0.5;
}

/* ── BOTTOM NAV HINT ─────────────────────────────────────── */
.landing-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  font-family: var(--font-display);
  pointer-events: none;
  background: rgba(0,0,0,0.8);
  padding: 10px 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  backdrop-filter: blur(10px);
  animation: hintPulse 4s ease-in-out infinite;
}
.landing-hint::before,
.landing-hint::after {
  content: '';
  width: 20px;
  height: 1px;
  background: #C9A96E;
  opacity: 0.8;
}@keyframes hintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── SOCIAL LINKS ────────────────────────────────────────── */
.landing-socials {
  position: fixed;
  bottom: 40px;
  right: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 50;
  opacity: 0;
  transform: translateX(16px);
  animation: socialReveal 1s 0.8s forwards cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes socialReveal {
  to { opacity: 1; transform: translateX(0); }
}
.landing-socials a {
  font-family: 'Rubik', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  writing-mode: vertical-rl;
}
.landing-socials a:hover {
  color: var(--lux-gold);
  opacity: 1;
}

/* ── YEAR MARKER ─────────────────────────────────────────── */
.landing-year {
  position: fixed;
  bottom: 40px;
  left: 44px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.15em;
  z-index: 50;
  pointer-events: none;
}

/* ── ENTRY ANIMATION ─────────────────────────────────────── */
body.loaded .side-restauration .side-content {
  animation: entryLeft 1.1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.loaded .side-boutique .side-content {
  animation: entryRight 1.1s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes entryLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes entryRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .landing-split-container {
    flex-direction: column;
  }
  /* Remove diagonal clip on mobile */
  .side-restauration, .side-boutique {
    clip-path: none;
    margin-right: 0;
    flex: 1 !important;
  }
  .landing-split-container::before { display: none; }

  .side-title { font-size: 3rem !important; }
  .side-logo { display: none; }
  .landing-socials { display: none; }
  .landing-year { display: none; }

  .landing-split-container:has(.side-restauration:hover) .side-restauration,
  .landing-split-container:has(.side-boutique:hover) .side-boutique {
    flex: 1 !important;
  }
  .landing-split-container:has(.side-restauration:hover) .side-boutique,
  .landing-split-container:has(.side-boutique:hover) .side-restauration {
    flex: 1 !important;
    opacity: 1 !important;
  }
  .landing-split-container:has(.side-restauration:hover) .side-boutique .side-content,
  .landing-split-container:has(.side-boutique:hover) .side-restauration .side-content {
    transform: none;
    opacity: 1;
  }

  /* Boutique gets light divider on mobile */
  .side-boutique::before {
    background: linear-gradient(135deg, rgba(250,250,248,0.95) 0%, rgba(250,250,248,0.85) 100%);
    opacity: 1 !important;
  }
}
