/* Self-hosted fonts (fontsource): no Google request chain before text can draw */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/plus-jakarta-sans-latin-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg-dark: #080c11;
  --panel-glass: rgba(10, 15, 22, 0.52);
  --panel-border: rgba(255, 255, 255, 0.12);
  --amber-core: #f59e0b;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #e2e8f0;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* PERMANENT DARK OBSIDIAN STICKY NAVIGATION */
nav.sticky, nav {
  background-color: rgba(8, 12, 17, 0.9) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* PERMANENT DARK OBSIDIAN FOOTER */
footer {
  background-color: rgba(8, 12, 17, 0.95) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#mobile-menu {
  background-color: rgba(8, 12, 17, 0.95) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Local French Country Estate Backdrop */
.organic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: url('../images/background-mobile.webp') center center / cover no-repeat;
  filter: brightness(0.68) contrast(1.05) saturate(0.95);
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(8, 12, 17, 0.35) 0%, rgba(8, 12, 17, 0.75) 100%),
              linear-gradient(to bottom, rgba(8, 12, 17, 0.3) 0%, rgba(8, 12, 17, 0.85) 100%);
  pointer-events: none;
}

.glass-panel {
  background: var(--panel-glass);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--panel-border);
}

.glass-input {
  background: rgba(4, 7, 11, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 1024px) {
  .split-pane {
    transition: flex-grow 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  }
  .split-container:hover .split-pane {
    flex-grow: 1;
  }
  .split-container .split-pane:hover {
    flex-grow: 1.4;
  }
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 440px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, border-color 0.4s ease;
  will-change: transform, opacity;
}

.carousel-card.pos-center {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 30;
  pointer-events: auto;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.15);
}

.carousel-card.pos-left {
  transform: translate(calc(-50% - 280px), -46%) scale(0.85);
  opacity: 0.45;
  z-index: 10;
  cursor: pointer;
}

.carousel-card.pos-right {
  transform: translate(calc(-50% + 280px), -46%) scale(0.85);
  opacity: 0.45;
  z-index: 10;
  cursor: pointer;
}

.carousel-card.pos-hidden {
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .carousel-card.pos-left {
    transform: translate(calc(-50% - 150px), -48%) scale(0.8);
    opacity: 0.2;
  }
  .carousel-card.pos-right {
    transform: translate(calc(-50% + 150px), -48%) scale(0.8);
    opacity: 0.2;
  }
}
/* LENIS SMOOTH SCROLL */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
/* GALLERIES: horizontal swipe carousel on mobile */
@media (max-width: 639px) {
  #property-gallery, #digital-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  #property-gallery::-webkit-scrollbar, #digital-gallery::-webkit-scrollbar { display: none; }
  #property-gallery > *, #digital-gallery > * { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Full-size background only on larger screens; phones get a 105 KB version */
@media (min-width: 900px) { .organic-bg { background-image: url('../images/background.webp'); } }

/* Site standard (7 Nov 2026): no blue box on tap (P12); no iPhone zoom into form fields, which happens under 16px (P7) */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 640px) { input, select, textarea { font-size: 16px !important; } }

/* Privacy pages (7 Nov 2026): plain readable text inside the glass card */
.legal { color: #cbd5e1; font-size: 15px; line-height: 1.65; }
.legal h2 { color: #fff; font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.legal li { margin: 4px 0; }
.legal a { color: #fbbf24; text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { font-size: 13px; color: #94a3b8; }
@media (min-width: 640px) { .legal { padding: 40px !important; } }
