/* ============================================
   AJOUAMAI IMMO-BUSINESS — High-End Luxury Editorial Design System
   Refined Theme inspired by Le Monde Real Estate, Junot.fr & Daniel Féau
   ============================================ */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400&family=McLaren&display=swap');

/* ============================================
   Root CSS Variables & Design Tokens
   ============================================ */
:root {
  --font-serif: 'Sansation', sans-serif;
  --font-display: 'Sansation', sans-serif;
  --font-sans: 'McLaren', cursive, system-ui, sans-serif;
  
  --color-black: #0A0A0A;
  --color-black-pure: #000000;
  --color-dark: #111111;
  --color-dark-light: #1A1A1A;
  --color-white: #FFFFFF;
  --color-offwhite: #FAFAFA;
  --color-bg-light: #F5F5F5;
  --color-gray-100: #EFEFEF;
  --color-gray-300: #CCCCCC;
  --color-gray-500: #888888;
  --color-gray-700: #444444;
  
  --color-gold: #B8A882;
  --color-gold-light: #D4C7A3;
  --color-gold-dark: #8E7E5A;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Base Resets & Setup
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Custom Luxury Text Selection Style
   ============================================ */
::selection {
  background-color: var(--color-gold);
  color: #000000;
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--color-gold);
  color: #000000;
  text-shadow: none;
}

/* Dark Section Selection Variant */
.bg-black ::selection,
.bg-dark ::selection,
.header-transparent ::selection,
footer ::selection {
  background-color: var(--color-gold-light);
  color: #000000;
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background-color: var(--color-offwhite);
  overflow-x: hidden;
  line-height: 1.7;
}

::selection {
  background-color: var(--color-gold);
  color: #ffffff;
}

/* ============================================
   Typography Helper Classes
   ============================================ */
.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-sans);
}

.tracking-spaced {
  letter-spacing: 5px;
}

.tracking-wider-xl {
  letter-spacing: 0.35em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sansation', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
}

/* ============================================
   Header States & Color Conflict Solutions
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

/* Transparent Header (on dark Hero sections) */
#site-header.header-transparent {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
#site-header.header-transparent .header-link {
  color: #ffffff;
}
#site-header.header-transparent .header-logo {
  filter: brightness(0) invert(1);
}
#site-header.header-transparent .header-btn {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
#site-header.header-transparent .header-btn:hover {
  background-color: #ffffff;
  color: #000000;
}
#site-header.header-transparent .burger-line {
  background-color: #ffffff;
}

/* Scrolled Header (Solid White Glassmorphic) */
#site-header.scrolled,
#site-header.header-solid {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
#site-header.scrolled .header-link,
#site-header.header-solid .header-link {
  color: #111111;
}
#site-header.scrolled .header-logo,
#site-header.header-solid .header-logo {
  filter: brightness(0);
}
#site-header.scrolled .header-btn,
#site-header.header-solid .header-btn {
  border-color: #111111;
  color: #111111;
}
#site-header.scrolled .header-btn:hover,
#site-header.header-solid .header-btn:hover {
  background-color: #111111;
  color: #ffffff;
}
#site-header.scrolled .burger-line,
#site-header.header-solid .burger-line {
  background-color: #111111;
}

/* Nav Link Hover Underline */
.nav-link-underline {
  position: relative;
}
.nav-link-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}
.nav-link-underline:hover::after,
.nav-link-underline.active::after {
  width: 100%;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Clip Path Text Reveal */
.clip-up {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transform: translateY(20px);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.clip-up.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Buttons */
.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold);
  color: #111111;
  background-color: transparent;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-gold-outline:hover {
  background-color: var(--color-gold);
  color: #FFFFFF;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184, 168, 130, 0.25);
}

/* ============================================
   Ticker / Marquee Scroll Text
   ============================================ */
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.ticker-content {
  display: inline-flex;
  animation: ticker-slide 35s linear infinite;
}

.ticker-wrapper:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ============================================
   Bespoke Luxury Buttons
   ============================================ */
.btn-lemonde-consultation {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-black);
}

.btn-lemonde-consultation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 168, 130, 0.3), transparent);
  transition: left 0.7s ease;
}

.btn-lemonde-consultation:hover::before {
  left: 100%;
}

.btn-lemonde-consultation:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(184, 168, 130, 0.4);
}

.btn-lemonde-consultation svg {
  transition: transform 0.3s ease;
}

.btn-lemonde-consultation:hover svg {
  transform: translateX(6px);
}

/* Outline Gold Button */
.btn-gold-outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: var(--transition-smooth);
}
.btn-gold-outline:hover {
  background-color: var(--color-gold);
  color: #ffffff;
}

/* ============================================
   Cards & Image Hover Effects
   ============================================ */
.card-hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}
.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.zoom-on-hover {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .zoom-on-hover,
.zoom-on-hover:hover {
  transform: scale(1.06);
}

/* Gold Accent Lines & Dividers */
.gold-accent-line {
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(184, 168, 130, 0.2) 100%);
}

.wavy-gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.wavy-gold-divider::before,
.wavy-gold-divider::after {
  content: '';
  height: 1px;
  width: 50px;
  background-color: var(--color-gold);
  opacity: 0.6;
}

/* ============================================
   Form Underline Custom Inputs (Breteuil / Féau style)
   ============================================ */
.input-underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid #D1D5DB;
  padding: 14px 0;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #111111;
  outline: none;
  transition: border-color 0.3s ease;
}
.input-underline:focus {
  border-bottom-color: var(--color-gold);
}
.input-underline::placeholder {
  color: #9CA3AF;
  font-weight: 300;
}

/* ============================================
   Modern Luxury Select Buttons System
   ============================================ */
select,
.select-underline,
.select-modern {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23B8A882' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #111111;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

select:hover,
.select-underline:hover,
.select-modern:hover {
  border-color: var(--color-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111111' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  box-shadow: 0 4px 16px rgba(184, 168, 130, 0.15);
  transform: translateY(-1px);
}

select:focus,
.select-underline:focus,
.select-modern:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 168, 130, 0.2);
  background-color: #FFFFFF;
}

/* Option tags styling */
select option,
.select-underline option,
.select-modern option {
  background-color: #FFFFFF;
  color: #111111;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
}

select option:checked,
.select-underline option:checked,
.select-modern option:checked {
  background-color: var(--color-gold) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

/* Transparent Hero Select Variant */
.select-hero {
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FFFFFF' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

.select-hero:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.select-hero option {
  background-color: #111111 !important;
  color: #FFFFFF !important;
}

/* Multi-step form progress bar */
.step-progress-bar {
  height: 2px;
  background-color: #E5E7EB;
  position: relative;
  overflow: hidden;
}
.step-progress-fill {
  height: 100%;
  background-color: var(--color-gold);
  transition: width 0.4s ease;
}

/* ============================================
   Swiper.js Custom Styles (Featured Properties Slider)
   ============================================ */
.swiper-button-next-custom,
.swiper-button-prev-custom {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.swiper-button-next-custom:hover,
.swiper-button-prev-custom:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #ffffff;
}

.swiper-pagination-bullet-custom {
  width: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
  margin: 0 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.swiper-pagination-bullet-custom-active {
  background: var(--color-gold);
  width: 50px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ============================================================
   JV — Staggered Arch Values Section (Junot Screenshot Style)
   ============================================================ */

/* Section wrapper — warm beige like Junot */
.jv-section {
  padding: 6rem 0 7rem;
  background-color: #F2EDE6;
}

/* Inner container */
.jv-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section Header ── */
.jv-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 4.5rem;
}

.jv-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.jv-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 300;
  color: #111;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.jv-rule {
  width: 3.5rem;
  height: 1px;
  background-color: var(--color-gold);
  margin: 0 auto 1.25rem;
}

.jv-subheading {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: #777;
}

/* ── 3-Column Grid ── */
.jv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Arch Image Container ── */
.jv-arch {
  width: 100%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background-color: #E8E0D8;
  aspect-ratio: 3 / 4;
}

.jv-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.jv-col:hover .jv-arch img {
  transform: scale(1.05);
}

/* ── Column layouts ── */

/* Side columns: arch image on top, text below */
.jv-col--side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Center column: text at top, arch image below */
.jv-col--center {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Center text sits above the image */
.jv-content--top {
  padding: 0 0.5rem;
}

/* ── Typography ── */

.jv-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 300;
  line-height: 1.2;
  color: #111111;
  margin: 0 0 0.75rem;
}

/* Italic gold second line — exactly like Junot */
.jv-title em {
  font-style: italic;
  font-weight: 300;
  color: #8E7E5A;
  display: block;
  font-family: var(--font-serif);
  transition: color 0.35s ease;
}

.jv-col:hover .jv-title em {
  color: #111111;
}

.jv-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555555;
  margin: 0;
}

/* Side column content padding */
.jv-col--side .jv-content {
  padding: 0 0.25rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .jv-section {
    padding: 4rem 0 5rem;
  }

  .jv-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  /* On mobile center col: image first, then text */
  .jv-col--center {
    flex-direction: column-reverse;
    padding-top: 0;
  }

  .jv-content--top {
    padding: 0;
  }

  .jv-arch {
    aspect-ratio: 4 / 3;
    border-radius: 999px 999px 0 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .jv-grid {
    gap: 1.25rem;
  }

  .jv-title {
    font-size: 1.4rem;
  }
}

/* ============================================================
   Drag-Scroll Auto-Carousel — Featured Properties
   ============================================================ */

/* Hide scrollbar entirely while keeping scroll functionality */
.scrollbar-none {
  -ms-overflow-style: none;  /* IE / Edge */
  scrollbar-width: none;     /* Firefox */
}
.scrollbar-none::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}

/* Cursor affordance for draggable containers */
.drag-scroll {
  cursor: grab;
}
.drag-scroll.cursor-grabbing,
.drag-scroll:active {
  cursor: grabbing;
}

/* Prevent text / image selection while dragging */
.drag-scroll * {
  user-select: none;
  -webkit-user-drag: none;
}

/* Smooth momentum on iOS Safari */
.drag-scroll {
  -webkit-overflow-scrolling: touch;
}

