/* ============================================
   NYMA LUXURY, Conciergerie Villas Marrakech
   Editorial Luxury Design
   ============================================ */

:root {
  --terracotta: #A0674B;
  --terracotta-dark: #8A5640;
  --terracotta-light: #B8836A;
  --terracotta-glow: rgba(160,103,75,0.15);
  --beige: #EDE8D8;
  --sable: #C9B99A;
  --blanc-casse: #FAF7F2;
  --cream: #F5F0E8;
  --text-dark: #1C1008;
  --text-body: #3D3228;
  --text-muted: #7A7068;
  --footer-bg: #0D0A07;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Satoshi', 'Jost', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 24px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans); color: var(--text-dark); background: var(--blanc-casse);
  line-height: 1.6; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }

/* --- Font Faces --- */
@font-face {
  font-family: 'Satoshi';
  src: url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Regular.woff2') format('woff2'),
       url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Medium.woff2') format('woff2'),
       url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Bold.woff2') format('woff2'),
       url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Light.woff2') format('woff2'),
       url('font 2/Satoshi_Complete/Fonts/WEB/fonts/Satoshi-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}

/* --- Animations keyframes --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@keyframes lineGrow {
  from { width: 0; }
  to { width: 48px; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes modalOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.92) translateY(20px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.35); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@keyframes eyebrowReveal {
  from { opacity: 0; letter-spacing: 0.4em; }
  to { opacity: 1; letter-spacing: 0.2em; }
}

/* --- Reveal animations (IntersectionObserver) --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 24px 48px; display: flex; align-items: center; justify-content: space-between;
  transition: all 0.6s var(--ease-out-expo);
}
.navbar.scrolled {
  background: rgba(28, 16, 8, 0.92);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding: 14px 48px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.navbar-logo img { height: 36px; width: auto; transition: all 0.4s var(--ease-out-expo); }
.navbar-logo:hover img { transform: scale(1.04); opacity: 0.85; }
.navbar-links { display: flex; align-items: center; gap: 36px; }
.navbar-links a {
  color: #fff; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase; transition: all 0.3s ease; position: relative;
}
.navbar-links .nav-link-text::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px;
  background: var(--terracotta-light); transition: width 0.4s var(--ease-out-expo);
}
.navbar-links .nav-link-text:hover::after { width: 100%; }
.navbar-links a:hover { color: var(--terracotta-light); }

.btn-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 10px 22px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.4s var(--ease-out-expo);
}
.btn-nav-cta:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}
.navbar.scrolled .btn-nav-cta { border-color: rgba(255,255,255,0.3); }
.btn-nav-cta svg { width: 16px; height: 16px; }

/* Hamburger button */
.navbar-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 1001;
  padding: 0; order: 1;
}
.navbar-burger span {
  display: block; width: 100%; height: 1.5px; background: #fff;
  border-radius: 1px; position: absolute; left: 0;
  transition: all 0.4s var(--ease-out-expo);
}
.navbar-burger span:nth-child(1) { top: 0; }
.navbar-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navbar-burger span:nth-child(3) { bottom: 0; }
.navbar-burger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.navbar-burger.open span:nth-child(2) { opacity: 0; }
.navbar-burger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  animation: heroZoom 12s ease-out forwards;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,10,7,0.3) 0%,
    rgba(13,10,7,0.45) 40%,
    rgba(13,10,7,0.75) 80%,
    rgba(13,10,7,0.88) 100%);
}
.hero-grain {
  position: absolute; inset: -50%; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03; pointer-events: none;
  animation: grain 8s steps(10) infinite;
}
.hero-content {
  position: relative; z-index: 2; max-width: 800px; padding: 0 24px;
}
.hero-eyebrow {
  display: block; font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: #fff; margin-bottom: 24px;
  animation: eyebrowReveal 1.2s var(--ease-out-expo) 0.2s both;
}
.hero-logo {
  width: 120px; margin: 0 auto 48px;
  animation: fadeIn 1.2s ease 0.3s both;
  filter: drop-shadow(0 2px 20px rgba(0,0,0,0.2));
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 300; color: #fff; line-height: 1.08;
  margin-bottom: 24px; letter-spacing: -0.03em;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.5s both;
}
.hero h1 em {
  font-style: italic; font-weight: 300;
  color: #fff;
}
.hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.6); font-weight: 300;
  margin-bottom: 48px; line-height: 1.8; letter-spacing: 0.01em;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.7s both;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--terracotta); color: #fff;
  padding: 18px 40px; border-radius: 60px;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.5s var(--ease-out-expo);
  animation: fadeUp 1s var(--ease-out-expo) 0.9s both;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 30px rgba(160,103,75,0.25);
}
.btn-hero::before {
  content: ''; position: absolute; inset: 0; border-radius: 60px;
  background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta-dark));
  opacity: 0; transition: opacity 0.5s ease; z-index: 0;
}
.btn-hero:hover::before { opacity: 1; }
.btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 50px rgba(160,103,75,0.4);
}
.btn-hero svg, .btn-hero span { position: relative; z-index: 1; }
.btn-hero svg { width: 20px; height: 20px; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: float 3s ease-in-out infinite;
}
.hero-scroll svg { width: 24px; height: 24px; color: rgba(255,255,255,0.35); transition: color 0.3s ease; }
.hero-scroll:hover svg { color: rgba(255,255,255,0.7); }

/* --- Section commons --- */
.section { padding: var(--section-padding); }
.section-title {
  font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300; text-align: center; margin-bottom: 16px; color: var(--text-dark);
  letter-spacing: -0.02em; line-height: 1.15;
}
.section-subtitle {
  text-align: center; font-size: 0.95rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 64px;
  font-weight: 300; line-height: 1.8; letter-spacing: 0.01em;
}
.section-line {
  display: block; width: 48px; height: 1.5px;
  background: var(--terracotta); margin: 0 auto 28px;
  opacity: 0.7;
}
.section-line.revealed { animation: lineGrow 0.8s ease forwards; }

/* --- About --- */
.about { background: var(--blanc-casse); text-align: center; }
.about-text {
  max-width: 600px; margin: 0 auto 64px;
  font-size: 1.05rem; line-height: 2; color: var(--text-body); font-weight: 300;
  letter-spacing: 0.01em;
}
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; max-width: 900px; margin: 0 auto;
  background: rgba(160,103,75,0.1); border-radius: 20px; overflow: hidden;
}
.about-stat {
  background: var(--blanc-casse);
  padding: 40px 24px; text-align: center;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
}
.about-stat:hover { background: #fff; }
.about-stat-number {
  display: block; font-family: var(--font-serif);
  font-size: 3.2rem; font-weight: 300; color: var(--terracotta);
  line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em;
}
.about-stat-suffix {
  font-size: 1.4rem; font-weight: 300; opacity: 0.6;
}
.about-stat-prefix {
  position: absolute; top: 36px; left: 50%; transform: translateX(-70px);
  font-family: var(--font-serif); font-size: 1.8rem; color: var(--terracotta); opacity: 0.5;
}
.about-stat-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 4px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.about-stat-sub {
  display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400;
}

/* --- Villas --- */
.villas { background: var(--cream); position: relative; }
.villas::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sable), transparent);
}
.villas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; max-width: var(--max-width); margin: 0 auto;
}

.villa-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(160,103,75,0.08);
  box-shadow: 0 1px 2px rgba(28,16,8,0.03);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.4s ease;
  cursor: pointer; position: relative;
  display: flex; flex-direction: column;
}
.villa-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
  opacity: 0; transition: opacity 0.5s ease;
  z-index: 3;
}
.villa-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(28,16,8,0.12), 0 6px 16px rgba(160,103,75,0.08);
  border-color: rgba(160,103,75,0.2);
}
.villa-card:hover::before { opacity: 1; }

.villa-card-img-wrap {
  position: relative; overflow: hidden; height: 300px; z-index: 1;
  background: var(--beige);
}
.villa-card-img-wrap img {
  width: 100%; height: 100%; min-height: 100%; min-width: 100%;
  object-fit: cover; display: block;
  transition: transform 0.9s var(--ease-out-expo), filter 0.6s ease;
  filter: saturate(0.95);
}
.villa-card:hover .villa-card-img-wrap img { transform: scale(1.06); filter: saturate(1.05); }
.villa-card-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,10,7,0.08) 0%, transparent 30%, transparent 55%, rgba(13,10,7,0.55) 100%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.villa-card-badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-dark); padding: 7px 12px; border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.villa-card-badge svg { width: 11px; height: 11px; color: var(--terracotta); }

.villa-card-gallery-hint {
  position: absolute; bottom: 18px; right: 18px; z-index: 2;
  background: transparent;
  color: #fff; padding: 0; border-radius: 0;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateX(8px);
  transition: all 0.5s var(--ease-out-expo);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.villa-card-gallery-hint::before {
  content: ''; display: inline-block; width: 24px; height: 1px;
  background: #fff;
  transition: width 0.4s ease;
}
.villa-card-gallery-hint svg { display: none; }
.villa-card:hover .villa-card-gallery-hint { opacity: 1; transform: translateX(0); }

.villa-body {
  padding: 28px 28px 28px; position: relative; z-index: 1;
  display: flex; flex-direction: column; flex: 1;
}
.villa-name {
  font-family: var(--font-serif); font-size: 1.7rem;
  font-weight: 400; margin-bottom: 6px; color: var(--text-dark);
  letter-spacing: -0.015em; line-height: 1.1;
}
.villa-location {
  font-size: 0.68rem; color: var(--terracotta);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.villa-location::before {
  content: ''; display: inline-block; width: 18px; height: 1px;
  background: var(--terracotta); opacity: 0.5;
}

.villa-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}
.villa-tag {
  font-size: 0.7rem; color: var(--text-body); background: transparent;
  padding: 5px 12px 5px 11px; border-radius: 2px; font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(160,103,75,0.18);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.villa-tag::before {
  content: ''; display: inline-block; width: 4px; height: 4px;
  background: var(--terracotta); border-radius: 50%;
  opacity: 0.7;
}
.villa-card:hover .villa-tag {
  border-color: rgba(160,103,75,0.35);
  background: rgba(160,103,75,0.04);
}

.villa-desc {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 24px; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}

.villa-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(28,16,8,0.06);
}
.btn-villa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terracotta); color: #fff;
  padding: 12px 22px; border-radius: 2px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.btn-villa::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}
.btn-villa:hover {
  background: var(--terracotta-dark); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(160,103,75,0.35);
}
.btn-villa:hover::after { transform: translateX(100%); }
.btn-villa svg { width: 13px; height: 13px; position: relative; z-index: 1; }
.btn-villa > span, .btn-villa { position: relative; }

.btn-villa-details {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-body);
  padding: 12px 4px; border-radius: 0;
  font-size: 0.72rem; font-weight: 600;
  border: none; border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out-expo);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
}
.btn-villa-details::after {
  content: '→'; display: inline-block;
  transition: transform 0.4s var(--ease-out-expo);
  font-size: 0.9rem;
  margin-left: 2px;
}
.btn-villa-details:hover {
  color: var(--terracotta);
}
.btn-villa-details:hover::after { transform: translateX(4px); }

/* --- Villa Modal (split layout) --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(13,10,7,0.85); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-overlay.active .modal { animation: modalIn 0.5s var(--ease-out-expo) forwards; }
.modal-overlay.closing .modal { animation: modalOut 0.3s ease forwards; }

.modal {
  background: #fff; border-radius: 16px; overflow: hidden;
  max-width: 960px; width: 100%; max-height: 88vh;
  position: relative;
  display: flex; flex-direction: row;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; border: none; cursor: pointer;
}
.modal-close:hover { background: #fff; transform: scale(1.08) rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; color: var(--text-dark); }

.modal-gallery {
  position: relative; width: 45%;
  aspect-ratio: 1;
  overflow: hidden; flex-shrink: 0; background: #0D0A07;
}
.modal-gallery-track {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  transition: transform 0.6s var(--ease-out-expo);
}
.modal-gallery-track img {
  width: 100%; height: 100%;
  object-fit: cover; flex-shrink: 0; display: block;
}
.modal-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; border: none; cursor: pointer; z-index: 5;
}
.modal-gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.modal-gallery-nav svg { width: 18px; height: 18px; color: var(--text-dark); }
.modal-gallery-prev { left: 12px; }
.modal-gallery-next { right: 12px; }
.modal-gallery-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.modal-gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.modal-gallery-dot.active { background: #fff; transform: scale(1.3); }

.modal-body {
  flex: 1; padding: 40px 36px; overflow-y: auto; max-height: 88vh;
  display: flex; flex-direction: column;
}
.modal-villa-name {
  font-family: var(--font-serif); font-size: 2rem;
  font-weight: 300; margin-bottom: 6px; letter-spacing: -0.02em;
}
.modal-villa-location {
  font-size: 0.75rem; color: var(--terracotta);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.modal-villa-capacity {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px;
}
.modal-villa-capacity svg { width: 16px; height: 16px; }
.modal-villa-features {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.modal-feature {
  display: flex; align-items: center; gap: 7px;
  background: var(--cream); padding: 9px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-body);
  border: 1px solid rgba(0,0,0,0.04);
}
.modal-feature svg { width: 15px; height: 15px; color: var(--terracotta); }
.modal-villa-desc {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; font-weight: 300;
  margin-bottom: 32px; flex-grow: 1;
}
.modal-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terracotta); color: #fff;
  padding: 15px 32px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.4s var(--ease-out-expo);
  align-self: flex-start;
}
.modal-cta:hover {
  background: var(--terracotta-dark); transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(160,103,75,0.3);
}
.modal-cta svg { width: 18px; height: 18px; }

/* --- Services --- */
.services {
  background: var(--blanc-casse); position: relative;
}
.services::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sable), transparent);
}
.services-grid {
  display: flex; gap: 24px; max-width: var(--max-width); margin: 0 auto;
}
.service-card {
  flex: 1; background: #fff;
  border: 1px solid rgba(0,0,0,0.04); border-radius: 16px;
  padding: 48px 32px; text-align: center;
  box-shadow: 0 2px 20px rgba(28,16,8,0.03);
  transition: all 0.5s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--terracotta);
  border-radius: 0 0 4px 4px; opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
}
.service-card:hover::before { opacity: 1; width: 60px; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(28,16,8,0.07);
}
.service-icon {
  width: 48px; height: 48px; margin: 0 auto 24px; color: var(--terracotta);
  transition: all 0.4s var(--ease-out-expo);
}
.service-card:hover .service-icon { transform: scale(1.08); }
.service-card h3 {
  font-family: var(--font-serif); font-size: 1.4rem;
  font-weight: 400; margin-bottom: 14px; color: var(--text-dark);
  letter-spacing: -0.01em;
}
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; font-weight: 300; }

/* --- Testimonials (infinite marquee) --- */
.testimonials {
  background: var(--cream); overflow: hidden; position: relative;
}
.testimonials::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sable), transparent);
}
.testimonials-marquee-wrap {
  display: flex; flex-direction: column; gap: 20px;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.testimonials-marquee {
  display: flex; gap: 20px; width: max-content;
}
.testimonials-marquee.scroll-left { animation: marqueeLeft 50s linear infinite; }
.testimonials-marquee.scroll-right { animation: marqueeRight 50s linear infinite; }
.testimonials-marquee:hover { animation-play-state: paused; }

.testimonial-card {
  background: #fff; border-radius: 16px; padding: 30px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 16px rgba(28,16,8,0.03);
  position: relative;
  width: 360px; min-width: 360px; flex-shrink: 0;
  transition: all 0.4s var(--ease-out-expo);
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(28,16,8,0.07);
  transform: translateY(-2px);
}
.testimonial-stars {
  display: flex; gap: 2px; margin-bottom: 16px; color: var(--terracotta);
}
.testimonial-stars svg { width: 14px; height: 14px; }
.testimonial-text {
  font-size: 0.88rem; color: var(--text-body); line-height: 1.7; font-weight: 300;
  margin-bottom: 22px; font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--cream);
}
.testimonial-info h4 {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px;
}
.testimonial-info p {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 400;
}
.testimonial-quote {
  position: absolute; top: 16px; right: 22px;
  font-family: var(--font-serif); font-size: 3.5rem;
  color: var(--cream); line-height: 1; pointer-events: none;
}

/* --- CTA Final --- */
.cta-final {
  background: var(--text-dark); text-align: center; padding: 120px 24px;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(160,103,75,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(160,103,75,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-final::after {
  content: ''; position: absolute; inset: -50%; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02; pointer-events: none;
  animation: grain 8s steps(10) infinite;
}
.cta-final .section-title { color: #fff; position: relative; z-index: 1; }
.cta-final .section-subtitle { color: rgba(255,255,255,0.45); position: relative; z-index: 1; }
.cta-final .section-line { background: var(--terracotta); position: relative; z-index: 1; }
.btn-cta-final {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--terracotta); color: #fff;
  padding: 20px 48px; border-radius: 60px;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.5s var(--ease-out-expo);
  position: relative; overflow: hidden; z-index: 1;
  box-shadow: 0 4px 30px rgba(160,103,75,0.3);
}
.btn-cta-final::before {
  content: ''; position: absolute; inset: 0; border-radius: 60px;
  background: linear-gradient(135deg, var(--terracotta-light), var(--terracotta-dark));
  opacity: 0; transition: opacity 0.5s ease; z-index: 0;
}
.btn-cta-final:hover::before { opacity: 1; }
.btn-cta-final:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 50px rgba(160,103,75,0.45);
}
.btn-cta-final svg, .btn-cta-final span { position: relative; z-index: 1; }
.btn-cta-final svg { width: 22px; height: 22px; }

/* --- Footer --- */
.footer {
  background: var(--footer-bg); text-align: center;
  padding: 56px 24px 40px; position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,103,75,0.3), transparent);
}
.footer-logo { width: 72px; margin: 0 auto 24px; opacity: 0.6; transition: opacity 0.4s ease; }
.footer:hover .footer-logo { opacity: 0.85; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.4); font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--terracotta-light); }
.footer-line { width: 48px; height: 1px; background: rgba(160,103,75,0.3); margin: 0 auto 20px; }
.footer p { color: rgba(255,255,255,0.25); font-size: 0.75rem; letter-spacing: 0.06em; }

/* --- WhatsApp floating --- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: all 0.4s var(--ease-out-expo);
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* --- Responsive --- */
@supports (padding: env(safe-area-inset-bottom)) {
  .whatsapp-float { bottom: calc(20px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); }
  .footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .navbar { padding-left: calc(48px + env(safe-area-inset-left)); padding-right: calc(48px + env(safe-area-inset-right)); }
}

@media (max-width: 1024px) {
  .villas-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 20px 32px; }
  .navbar.scrolled { padding: 12px 32px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px 20px; }

  .navbar-burger { display: block; }
  .navbar { padding: 16px 20px; }
  .navbar.scrolled { padding: 12px 20px; }

  .navbar-links {
    position: fixed; top: 0; right: 0; width: 280px; height: 100vh; height: 100dvh;
    background: rgba(13,10,7,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 80px 36px 40px; gap: 28px;
    transform: translateX(100%); transition: transform 0.5s var(--ease-out-expo);
    z-index: 999;
  }
  .navbar-links.open { transform: translateX(0); }
  .navbar-links .nav-link-text {
    display: block; font-size: 1.3rem; font-weight: 300;
    font-family: var(--font-serif); letter-spacing: 0.02em;
    text-transform: none;
  }
  .navbar-links .nav-link-text::after { display: none; }
  .btn-nav-cta { margin-top: 20px; }

  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .about-stat { padding: 30px 16px; }
  .about-stat-number { font-size: 2.4rem; }
  .services-grid { flex-direction: column; }
  .villas-grid { grid-template-columns: 1fr; gap: 24px; max-width: 480px; margin: 0 auto; }
  .villa-card-img-wrap { height: 280px; }
  .testimonial-card { width: 300px; min-width: 300px; padding: 24px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-logo { width: 100px; }
  .hero-eyebrow { font-size: 0.65rem; }
  .cta-final { padding: 80px 20px; }
  .btn-cta-final { padding: 16px 32px; font-size: 0.85rem; }
  .modal-overlay { padding: 12px; }
  .modal { flex-direction: column; max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
  .modal-gallery { width: 100%; aspect-ratio: 1; max-height: 50vh; flex-shrink: 0; }
  .modal-body { padding: 28px 24px; max-height: none; overflow-y: visible; flex-shrink: 0; }
  .modal-villa-name { font-size: 1.6rem; }
  .modal-close { top: 10px; right: 10px; width: 36px; height: 36px; }
  .modal-close svg { width: 16px; height: 16px; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .navbar-logo img { height: 28px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 36px; }
  .hero-logo { width: 80px; margin-bottom: 36px; }
  .hero-eyebrow { font-size: 0.6rem; margin-bottom: 20px; }
  .btn-hero { padding: 16px 32px; font-size: 0.82rem; }
  .section-title { font-size: 1.7rem; }
  .section-subtitle { font-size: 0.88rem; margin-bottom: 40px; }
  .about-text { font-size: 0.92rem; }
  .about-stat { padding: 24px 12px; }
  .about-stat-number { font-size: 2rem; }
  .about-stat-label { font-size: 0.72rem; }
  .about-stat-sub { font-size: 0.65rem; }
  .about-stat-prefix { font-size: 1.4rem; transform: translateX(-50px); }
  .villa-card-img-wrap { height: 260px; }
  .villa-body { padding: 22px 22px 22px; }
  .villa-name { font-size: 1.45rem; }
  .villa-desc { font-size: 0.82rem; }
  .villa-card-footer { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 16px; }
  .btn-villa, .btn-villa-details { justify-content: center; padding-left: 0; padding-right: 0; }
  .btn-villa-details { padding: 8px 0; }
  .service-card { padding: 36px 22px; }
  .service-card h3 { font-size: 1.2rem; }
  .service-card p { font-size: 0.85rem; }
  .testimonial-card { width: 270px; min-width: 270px; padding: 22px; }
  .testimonial-text { font-size: 0.82rem; }
  .modal-gallery { max-height: 45vh; }
  .modal-body { padding: 22px 18px; }
  .modal-villa-name { font-size: 1.4rem; }
  .modal-cta { padding: 14px 26px; font-size: 0.82rem; width: 100%; justify-content: center; }
  .btn-cta-final { padding: 14px 28px; font-size: 0.82rem; }
  .footer { padding: 40px 20px 32px; }
  .footer-logo { width: 56px; }
  .footer-links { gap: 20px; }
  .footer-links a { font-size: 0.7rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.7rem; }
  .about-stat { padding: 20px 10px; }
  .about-stat-number { font-size: 1.8rem; }
  .villas-grid { gap: 18px; }
  .villa-card-img-wrap { height: 220px; }
  .testimonial-card { width: 250px; min-width: 250px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 24px 40px; }
  .hero-logo { width: 60px; margin-bottom: 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { margin-bottom: 20px; }
  .hero-scroll { display: none; }
}

@media (hover: none) {
  .villa-card:hover { transform: none; }
  .villa-card:hover .villa-card-img-wrap img { transform: none; }
  .villa-card-gallery-hint { opacity: 1; transform: translateX(0); }
  .service-card:hover { transform: none; }
  .about-stat:hover { background: var(--blanc-casse); }
  .testimonial-card:hover { transform: none; }
  .testimonials-marquee:hover { animation-play-state: running; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-bg { animation: none; }
  .hero-grain { animation: none; }
  .testimonials-marquee { animation-duration: 90s !important; }
}

/* ============================================
   SEO, Section bilingue EN + Liens SEO Footer
   ============================================ */
.seo-en {
  padding: 80px 24px 40px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.seo-en .section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.seo-en .section-subtitle { max-width: 780px; margin: 16px auto 0; color: var(--text-body); }
.seo-en .about-text { max-width: 780px; margin: 18px auto 0; font-size: 0.9rem; color: var(--text-muted); }
.hero-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 8px 0 14px; opacity: 0.92; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 4px 0 18px; text-align: center; line-height: 1.55; }
.footer-seo-links {
  max-width: 820px;
  margin: 16px auto 0;
  font-size: 0.78rem;
  line-height: 1.9;
  text-align: center;
  color: rgba(255,255,255,0.45);
}
.footer-seo-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 0 4px;
  transition: color 0.2s ease;
}
.footer-seo-links a:hover { color: var(--terracotta-light); }
