/* ============================================================
   BOTANICAL HOUSES — LANDING PAGE
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Bloom & Tonic palette */
  --bt-bg:        #0e1410;
  --bt-green:     #2a3d2e;
  --bt-green-mid: #3b5740;
  --bt-fog:       #8a9e8e;
  --bt-brass:     #b08840;
  --bt-brass-lt:  #d4a84b;
  --bt-text:      #c9d4c5;

  /* Apothicaire du Cœur palette */
  --adc-bg:       #130a0a;
  --adc-burgundy: #4a0e1a;
  --adc-red:      #7a1a28;
  --adc-gold:     #c9972a;
  --adc-gold-lt:  #e8b84b;
  --adc-text:     #d9c4b8;
  --adc-candle:   #ff9a3c;

  /* Shared */
  --master-font:  'Libre Baskerville', Georgia, serif;
  --paris-font:   'IM Fell English', Georgia, serif;
  --transition:   0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--master-font);
  background: #0a0a0a;
  color: #fff;
}

/* ── Site header (master brand) ───────────────────────────── */
.site-header {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
  padding: 0 2rem;
  pointer-events: none;
  user-select: none;
}

.master-brand {
  font-family: var(--master-font);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ── Landing Shop — fixed top-right corner ────────────────── */
.landing-shop {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 101;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
}

.landing-shop__link {
  font-family: 'Cinzel', 'Libre Baskerville', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.35rem 1.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.landing-shop__link:hover {
  color: rgba(201,168,76,0.95);
  border-color: rgba(201,168,76,0.55);
}

/* ── Split screen layout ──────────────────────────────────── */
.split-screen {
  display: flex;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* ── Panel shared styles ──────────────────────────────────── */
.panel {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--transition);
  outline: none;
}

.panel:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: -4px;
}

.panel__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
  pointer-events: none;
}

.panel:hover .panel__overlay,
.panel:focus-visible .panel__overlay {
  opacity: 1;
}

.panel__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 3rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition), opacity var(--transition);
}

.panel__eyebrow {
  font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.55;
}

.panel__name {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.panel__tagline {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  max-width: 26ch;
  opacity: 0.7;
}

.panel__cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  border: 1px solid currentColor;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.panel:hover .panel__cta,
.panel:focus-visible .panel__cta {
  opacity: 0.8;
  transform: translateY(0);
}

/* ── Shared panel background image layer ──────────────────── */
.panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform var(--transition);
}

.panel:hover .panel__bg {
  transform: scale(1.03);
}

/* ── Bloom & Tonic (London / Left) ───────────────────────── */
.panel--london {
  background-color: var(--bt-bg);
  color: var(--bt-text);
  font-family: var(--master-font);
}

.panel--london .panel__bg {
  background-image: url('../images/image14.png');
}

/* Radial fog vignette */
.panel--london .panel__fog {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse 80% 80% at 50% 50%,
      rgba(0,0,0,0.2) 30%,
      rgba(0,0,0,0.65) 100%),
    radial-gradient(ellipse 120% 60% at 50% 100%,
      rgba(42, 61, 46, 0.3) 0%,
      transparent 70%);
  z-index: 1;
}

/* Subtle texture overlay */
.panel--london::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.06) 2px,
      rgba(0,0,0,0.06) 4px
    );
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

.panel--london .panel__overlay {
  background: radial-gradient(ellipse at center, rgba(59, 87, 64, 0.2) 0%, transparent 70%);
}

.panel--london .panel__name {
  color: #dce8d8;
  text-shadow:
    0 0 40px rgba(176, 136, 64, 0.35),
    0 2px 8px rgba(0,0,0,0.8);
}

.panel--london .ampersand {
  color: var(--bt-brass);
  font-style: italic;
}

.panel--london .panel__eyebrow {
  color: #b8cbb4;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.panel--london .panel__tagline {
  color: #b0c4ac;
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.panel--london .panel__cta {
  color: var(--bt-brass);
  border-color: var(--bt-brass);
  opacity: 0.65;
  transform: translateY(0);
}

.panel--london:hover .panel__cta:hover {
  background: rgba(176, 136, 64, 0.12);
}

/* Push London content left so it clears the center divider */
.panel--london .panel__content { padding-right: clamp(140px, 12vw, 165px); }

/* Brass decorative line above name */
.panel--london .panel__content::before {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--bt-brass);
  opacity: 0.6;
  margin: 0 auto 0.25rem;
}

.panel--london .panel__content::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--bt-brass);
  opacity: 0.6;
  margin: 0.25rem auto 0;
}

/* ── Apothicaire du Cœur (Paris / Right) ─────────────────── */
.panel--paris {
  background-color: #2a1008;
  color: #f0e0c8;
  font-family: var(--paris-font);
}

.panel--paris .panel__bg {
  background-image: url('../images/image13.png');
  background-position: center 30%;
}

/* Warm amber candlelight overlay */
.panel--paris .panel__candle-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(80, 40, 8, 0.22) 0%,
      rgba(100, 55, 12, 0.12) 35%,
      rgba(90, 45, 10, 0.15) 65%,
      rgba(60, 25, 5, 0.32) 100%),
    radial-gradient(ellipse 90% 70% at 50% 50%,
      rgba(180, 110, 20, 0.08) 0%,
      rgba(70, 28, 8, 0.28) 80%);
  z-index: 1;
  animation: candleFlicker 6s ease-in-out infinite alternate;
}

@keyframes candleFlicker {
  0%   { opacity: 1; }
  30%  { opacity: 0.93; }
  60%  { opacity: 0.98; }
  80%  { opacity: 0.9; }
  100% { opacity: 1; }
}

.panel--paris::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.02) 3px,
      rgba(0,0,0,0.02) 6px
    );
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

.panel--paris .panel__overlay {
  background: radial-gradient(ellipse at center, rgba(200, 140, 40, 0.15) 0%, transparent 70%);
}

.panel--paris .panel__name {
  font-style: normal;
  color: #f5e8d0;
  text-shadow:
    0 0 40px rgba(240, 180, 80, 0.5),
    0 2px 8px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.panel--paris .panel__name em {
  font-style: italic;
  color: var(--adc-gold-lt);
  font-size: 0.85em;
  display: block;
}

.panel--paris .panel__eyebrow {
  color: rgba(240, 200, 120, 0.85);
  font-family: var(--master-font);
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.panel--paris .panel__tagline {
  color: rgba(245, 228, 200, 0.9);
  font-style: italic;
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

.panel--paris .panel__cta {
  color: #f0d890;
  border-color: #f0d890;
  border-width: 1px;
  font-family: var(--paris-font);
  font-style: italic;
  text-shadow: none;
  opacity: 0.65;
  transform: translateY(0);
}

.panel--paris:hover .panel__cta,
.panel--paris:focus-visible .panel__cta {
  opacity: 0.95;
}

/* Push Paris content right so it clears the center divider */
.panel--paris .panel__content { padding-left: clamp(140px, 12vw, 165px); }

/* Gold decorative rule */
.panel--paris .panel__content::before {
  content: '✦';
  display: block;
  color: var(--adc-gold-lt);
  opacity: 0.7;
  font-size: 0.7rem;
  letter-spacing: 0.6em;
  margin-bottom: 0.25rem;
}

.panel--paris .panel__content::after {
  content: '✦';
  display: block;
  color: var(--adc-gold-lt);
  opacity: 0.7;
  font-size: 0.7rem;
  letter-spacing: 0.6em;
  margin-top: 0.25rem;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: clamp(240px, 20vw, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 0;
}

.divider__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.12) 20%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.12) 80%,
    transparent
  );
}

.divider__emblem {
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  margin: 1rem 0;
}

.divider__emblem svg {
  width: 100%;
  height: 100%;
}

/* ── Hover: panel expansion ───────────────────────────────── */
.split-screen:has(.panel--london:hover) .panel--london,
.split-screen:has(.panel--london:focus-visible) .panel--london {
  flex: 1.15;
}

.split-screen:has(.panel--london:hover) .panel--paris,
.split-screen:has(.panel--london:focus-visible) .panel--paris {
  flex: 0.85;
}

.split-screen:has(.panel--paris:hover) .panel--paris,
.split-screen:has(.panel--paris:focus-visible) .panel--paris {
  flex: 1.15;
}

.split-screen:has(.panel--paris:hover) .panel--london,
.split-screen:has(.panel--paris:focus-visible) .panel--london {
  flex: 0.85;
}

/* Content dim on opposite side */
.split-screen:has(.panel--london:hover) .panel--paris .panel__content,
.split-screen:has(.panel--paris:hover) .panel--london .panel__content {
  opacity: 0.55;
}

/* ── Click/transition animation ──────────────────────────── */
.panel.is-entering {
  animation: enterBrand 0.4s ease forwards;
}

@keyframes enterBrand {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Mobile: stacked layout ───────────────────────────────── */
@media (max-width: 700px) {
  html, body {
    overflow: auto;
  }

  .split-screen {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }

  .panel {
    flex: none;
    min-height: 50dvh;
    transition: none;
  }

  .divider {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    flex-direction: row;
    height: 40px;
    width: 100%;
  }

  .divider__line {
    flex: 1;
    height: 1px;
    width: auto;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255,255,255,0.18) 50%,
      transparent
    );
  }

  .divider__emblem {
    margin: 0 1rem;
  }

  .split-screen:has(.panel--london:hover) .panel--london,
  .split-screen:has(.panel--paris:hover) .panel--paris,
  .split-screen:has(.panel--london:hover) .panel--paris,
  .split-screen:has(.panel--paris:hover) .panel--london {
    flex: none;
    opacity: 1;
  }

  .split-screen:has(.panel--london:hover) .panel--paris .panel__content,
  .split-screen:has(.panel--paris:hover) .panel--london .panel__content {
    opacity: 1;
  }

  .panel__cta {
    opacity: 0.75;
    transform: translateY(0);
  }

  .panel--paris .panel__cta {
    opacity: 0.85;
  }

  .panel__name {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .panel--london .panel__content { padding-right: 3rem; }
  .panel--paris .panel__content  { padding-left: 3rem; }
}

/* ── Landing nav (primary house links) ────────────────────── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 102;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 2rem 0;
  pointer-events: none;
}

.landing-nav__link {
  font-family: 'Cinzel', 'Libre Baskerville', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  pointer-events: all;
  transition: color 0.2s ease;
}

.landing-nav__link:hover { color: rgba(201,168,76,0.9); }

.landing-nav__sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.5rem;
  pointer-events: none;
}

/* ── Centered overlay — direct child of .split-screen, viewport-centered ── */
.landing-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 51;
  max-width: clamp(240px, 20vw, 300px);
  width: 100%;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.35s ease;
}

/* Fade overlay only when cursor is confirmed inside panel area, below the nav (set by JS) */
.split-screen.panel-hovered .landing-overlay,
.split-screen:has(.panel:focus-visible) .landing-overlay {
  opacity: 0;
}

.landing-overlay__primary {
  font-family: 'Cormorant Garamond', 'IM Fell English', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: #e8c870;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(200,160,60,0.3), 0 2px 8px rgba(0,0,0,0.8);
}

.landing-overlay__secondary {
  font-family: 'Cinzel', 'Libre Baskerville', Georgia, serif;
  font-size: clamp(0.5rem, 0.75vw, 0.68rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.landing-overlay__desc {
  font-family: 'Cormorant Garamond', 'IM Fell English', Georgia, serif;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-style: italic;
  color: rgba(240,220,190,0.4);
  line-height: 1.65;
  max-width: 38ch;
}

.landing-overlay__btn {
  display: inline-block;
  pointer-events: all;
  font-family: 'Cinzel', 'Libre Baskerville', Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #e8c870;
  border: 1px solid rgba(201,168,76,0.42);
  padding: 0.65rem 2rem;
  text-decoration: none;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
  margin-top: 0.15rem;
}

.landing-overlay__btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.75);
  color: #e8c870;
}

/* ── Panel hover labels ───────────────────────────────────── */
.panel__hover-label {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.panel--london .panel__hover-label { color: var(--bt-brass-lt); }
.panel--paris .panel__hover-label  { color: #e8c870; }

.panel:hover .panel__hover-label,
.panel:focus-visible .panel__hover-label { opacity: 0.85; }

/* ── Trust strip ──────────────────────────────────────────── */
.landing-trust {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  font-family: 'Cinzel', 'Libre Baskerville', Georgia, serif;
  font-size: 0.48rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}

/* ── Mobile adjustments ───────────────────────────────────── */
@media (max-width: 700px) {
  .landing-overlay { display: none; }

  .landing-overlay__desc { display: none; }

  .landing-nav {
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .landing-trust { display: none; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel__content,
  .panel__cta,
  .panel__overlay {
    transition: none;
  }

  .panel--paris .panel__candle-glow {
    animation: none;
  }
}
