/*
Theme Name: Luxaria Estates
Theme URI: https://luxaria.ma
Author: Luxaria Estates
Author URI: https://luxaria.ma
Description: Thème sur mesure pour Luxaria Estates — villas modernes de luxe à Bouskoura. Pages d'accueil, projets, galerie, visite 360°, contact.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxaria
Tags: real-estate, luxury, custom-colors, custom-menu, full-width-template
*/

/* ===== Luxaria Estates — global styles ===== */
:root {
  --navy: #1f2a3a;
  --navy-deep: #16202d;
  --navy-soft: #2a3648;
  --ivory: #f5f1e8;
  --ivory-warm: #ede7d8;
  --gold: #c2a36b;
  --gold-bright: #d4b87f;
  --gold-deep: #8a6f3e;
  --sage: #7a8a6a;
  --sage-deep: #5a6a4a;
  --muted: #9a9282;
  --line: rgba(194, 163, 107, 0.25);
  --line-strong: rgba(194, 163, 107, 0.6);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --display: 'Cormorant Garamond', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--navy); color: var(--ivory); font-family: var(--sans); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

/* === Type === */
.serif { font-family: var(--serif); font-weight: 400; }
.display { font-family: var(--display); font-weight: 300; letter-spacing: 0.005em; }
.eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: "—"; margin-right: 12px; opacity: 0.7; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.05; letter-spacing: 0.005em; }
h1 { font-size: clamp(38px, 6vw, 88px); }
h2 { font-size: clamp(30px, 4.4vw, 58px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
p { font-size: 16px; color: rgba(245, 241, 232, 0.78); max-width: 60ch; }
.italic { font-style: italic; color: var(--gold); }

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px;
  background: linear-gradient(to bottom, rgba(22,32,45,0.85), rgba(22,32,45,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(22,32,45,0.92);
  padding: 14px 56px;
  border-bottom-color: var(--line);
}
.brand {
  display: flex; align-items: flex-end; gap: 10px;
  font-family: var(--display); letter-spacing: 0.32em; font-size: 14px;
  color: var(--ivory);
}
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-name .name { font-size: 14px; letter-spacing: 0.32em; }
.brand-name .sub { font-size: 9px; letter-spacing: 0.42em; opacity: 0.6; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links > * {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,241,232,0.78); position: relative; padding: 6px 0;
  transition: color 0.25s;
}
.nav-links > *:hover, .nav-links > *.active { color: var(--gold); }
.nav-links > *.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}

/* dropdown */
.dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.dropdown-trigger::after { content: ""; display: inline-block; border: 4px solid transparent; border-top-color: currentColor; margin-left: 2px; transform: translateY(2px); }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: -20px;
  background: var(--navy-deep); border: 1px solid var(--line);
  min-width: 220px; padding: 10px 0;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; font-size: 12px; letter-spacing: 0.18em;
  color: rgba(245,241,232,0.8); transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover { background: var(--navy-soft); color: var(--gold); }
.dropdown-menu a .tag { font-size: 9px; letter-spacing: 0.22em; color: var(--muted); padding: 3px 8px; border: 1px solid var(--muted); }
.dropdown-menu a.live .tag { color: var(--gold); border-color: var(--gold); }

.lang-pill {
  font-size: 11px; letter-spacing: 0.22em; padding: 6px 12px;
  border: 1px solid var(--line-strong); color: var(--gold);
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--navy); }
.btn.solid { background: var(--gold); color: var(--navy); }
.btn.solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn.ghost { border-color: rgba(245,241,232,0.5); color: var(--ivory); }
.btn.ghost:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn .arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* === Floating RDV === */
.float-rdv {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  box-shadow: 0 14px 38px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(0,0,0,0.45); }
.float-btn.gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold-deep); font-weight: 500; }
.float-btn.wa { background: #25d366; color: #fff; }
.float-btn .ico { width: 16px; height: 16px; }

/* === Footer === */
.site-footer {
  background: var(--navy-deep); border-top: 1px solid var(--line);
  padding: 80px 56px 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  max-width: 1400px; margin: 0 auto;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.footer-grid h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 22px;
}
.footer-grid p, .footer-grid li, .footer-grid a {
  font-size: 13px; color: rgba(245,241,232,0.7); line-height: 2; list-style: none;
}
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1400px; margin: 30px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase;
}
.partners {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.32em; color: var(--gold);
}
.partners span:first-child { color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em; }

/* === Section building blocks === */
section { padding: 120px 56px; position: relative; }
.container { max-width: 1400px; margin: 0 auto; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.divider { width: 60px; height: 1px; background: var(--gold); margin: 28px 0; }
.gold-line { color: var(--gold); }

/* === Image placeholders (when no real image yet) === */
.placeholder {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(245,241,232,0.04) 0 12px, rgba(245,241,232,0.07) 12px 13px),
    linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.placeholder::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(194,163,107,0.18);
  pointer-events: none;
}
.placeholder .ph-label { position: relative; z-index: 1; padding: 6px 14px; background: rgba(22,32,45,0.7); }

/* === Logo SVG ornament (used as small mark) === */
.gold-frame { border: 1px solid var(--gold); }

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* === Tablet === */
@media (max-width: 1100px) {
  .site-header { padding: 18px 32px; }
  .site-header.scrolled { padding: 12px 32px; }
  .nav-links { gap: 24px; }
  .nav-links > * { font-size: 11px; letter-spacing: 0.18em; }
  section { padding: 100px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 32px 48px; }
  .site-footer { padding: 70px 0 0; }
}

/* === Mobile === */
@media (max-width: 760px) {
  .site-header { padding: 14px 20px; }
  .site-header.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex !important; }
  .lang-pill { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name .name { font-size: 12px; letter-spacing: 0.28em; }
  .brand-name .sub { font-size: 8px; }
  section { padding: 70px 20px; }
  h1 { font-size: clamp(34px, 9vw, 52px) !important; }
  h2 { font-size: clamp(28px, 7vw, 42px) !important; }
  h3 { font-size: clamp(20px, 5vw, 26px) !important; }
  p { font-size: 15px; }
  .btn { padding: 14px 22px; font-size: 10px; letter-spacing: 0.22em; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 20px 40px; }
  .footer-bottom { flex-direction: column; gap: 14px; padding: 22px 20px; text-align: center; }
  .site-footer { padding: 50px 0 0; }
  .float-rdv { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { padding: 11px 16px; font-size: 10px; letter-spacing: 0.18em; }
  .float-btn .ico { width: 14px; height: 14px; }
  .partners { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 11px; letter-spacing: 0.22em; }
}

/* === Small mobile === */
@media (max-width: 380px) {
  .site-header { padding: 12px 14px; }
  section { padding: 60px 16px; }
  .footer-grid { padding: 0 16px 32px; }
  h1 { font-size: clamp(30px, 9vw, 42px) !important; }
}

.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.menu-toggle span { width: 22px; height: 1px; background: var(--ivory); }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-deep);
  display: flex; flex-direction: column;
  padding: 32px 24px;
  transform: translateX(100%); transition: transform 0.4s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .close { align-self: flex-end; font-size: 24px; color: var(--gold); padding: 8px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.mobile-drawer nav a {
  font-family: var(--display); font-size: 28px; color: var(--ivory);
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mobile-drawer nav a.sub { font-size: 16px; padding-left: 16px; color: var(--gold); border: none; font-family: var(--sans); letter-spacing: 0.18em; }

/* ===== Visite 360° — Viewer Height ===== */
.viewer-wrap {
  min-height: 600px;
}
.viewer.v360-viewer {
  min-height: 600px;
  height: 80vh;
}
@media (max-width: 768px) {
  .viewer-wrap {
    min-height: 400px;
  }
  .viewer.v360-viewer {
    min-height: 400px;
    height: 60vh;
  }
}
