/* ─────────────────────────────────────────────
   Villa Holi Marrakech — Style Principal
   Quiet Luxury · Sable · Crème · Terracotta
   ───────────────────────────────────────────── */

/* ── Variables ── */
:root {
  --cream:      #f5f0e8;
  --sand:       #e8dcc8;
  --taupe:      #9e8a72;
  --terracotta: #c0724a;
  --terra-soft: #d4896a;
  --dark:       #2a211a;
  --mid:        #5a4a3a;
  --light:      #f9f5ef;
  --white:      #fdfaf5;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body:  'Jost', 'Helvetica Neue', sans-serif;

  --gap:  clamp(1.5rem, 4vw, 4rem);
  --max:  1240px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ── Layout Utilities ── */
.container {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.section { padding-block: clamp(4rem, 10vw, 9rem); }
.section-tight { padding-block: clamp(2rem, 6vw, 5rem); }

/* ── Section Labels ── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1.5px solid currentColor;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-hero {
  color: var(--white);
  border-color: rgba(192, 114, 74, 0.6);
  background: rgba(192, 114, 74, 0.25);
  margin-top: 2rem;
}
.btn-hero:hover {
  background: rgba(192, 114, 74, 0.5);
  color: var(--white);
  border-color: rgba(192, 114, 74, 0.8);
}
.btn-primary {
  color: var(--dark);
  border-color: var(--terracotta);
  background: transparent;
}
.btn-primary:hover {
  background: var(--terracotta);
  color: var(--white);
}

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════
   NAV
════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.2rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(253, 250, 245, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 0 rgba(158, 138, 114, 0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

/* Logo image in nav */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* No brightness filter — logo is naturally visible on both light and dark backgrounds */
}
.nav.scrolled .nav-logo-img {
  /* scrolled nav on light background — logo displays naturally */
}

/* Logo + CTA as a single block */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

/* Compact pill button in navbar */
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: rgba(192, 114, 74, 0.35);
  border-color: rgba(192, 114, 74, 0.6);
  color: var(--white);
}
.nav.scrolled .nav-cta {
  color: var(--dark);
  border-color: var(--terracotta);
}
.nav.scrolled .nav-cta:hover {
  background: var(--terracotta);
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--mid); }
.nav-links a:hover { color: var(--terracotta); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
}
.lang-switch {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.3s;
}
.nav.scrolled .lang-switch { color: var(--taupe); }
.lang-switch .lang-fr.active,
.lang-switch .lang-en.active { color: var(--terracotta); }
.lang-sep { margin-inline: 0.2em; opacity: 0.5; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 2px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-inner { text-align: center; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.8rem; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--terra-soft); }
.mobile-lang { margin-top: 2.5rem; }
.mobile-lang .lang-switch { color: var(--taupe); font-size: 0.8rem; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 14, 8, 0.55) 0%,
    rgba(20, 14, 8, 0.25) 50%,
    rgba(20, 14, 8, 0.12) 100%
  );
}
/* Subtle grain texture on hero */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding-inline: 2rem;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(245, 240, 232, 0.85);
  letter-spacing: 0.06em;
}
.hero-price {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-soft);
  margin-top: 1.5rem;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 5vw, 4rem);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 0.8; }
}

/* ════════════════════════════════
   VILLA — Magazine side-by-side layout
════════════════════════════════ */
.villa {
  background: var(--white);
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

/* Magazine layout: text LEFT, photos RIGHT */
.villa-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.villa-text {
  display: flex;
  flex-direction: column;
}
.villa-text .section-title {
  margin-bottom: 1.6rem;
}
.villa-text p {
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 1.4rem;
  line-height: 1.85;
}

/* Stats row below text */
.villa-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--sand);
}
.villa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--terracotta);
  line-height: 1;
}
.stat-unit {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.3rem;
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}
.stat-icon svg {
  width: 28px;
  height: 20px;
}
.villa-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--sand);
}

/* Photos column: 2 stacked with slight offset */
.villa-photos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.villa-photo {
  overflow: hidden;
}
.villa-photo img {
  transition: transform 0.7s var(--ease);
  filter: saturate(0.9) sepia(0.05);
}
.villa-photo:hover img { transform: scale(1.04); }
.villa-photo--top {
  height: clamp(220px, 28vw, 340px);
}
.villa-photo--bottom {
  height: clamp(160px, 20vw, 250px);
  margin-left: clamp(1rem, 3vw, 3rem); /* slight right indent for asymmetry */
}

/* ════════════════════════════════
   GALLERY — Row-based asymmetric layout
════════════════════════════════ */
.galerie { background: var(--light); }
.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: clamp(0.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-row {
  display: grid;
  gap: 6px;
}
.gallery-row--full {
  grid-template-columns: 1fr;
}
.gallery-row--full .gallery-item {
  height: clamp(250px, 40vw, 450px);
}
.gallery-row--2col {
  grid-template-columns: 1fr 1fr;
}
.gallery-row--2col .gallery-item {
  height: clamp(200px, 30vw, 350px);
}
.gallery-row--3col {
  grid-template-columns: 1fr 1fr 1fr;
}
.gallery-row--3col .gallery-item {
  height: clamp(180px, 25vw, 300px);
}
.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  transition: transform 0.7s var(--ease);
  filter: saturate(0.9) sepia(0.05) brightness(1.1);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ════════════════════════════════
   SERVICES
════════════════════════════════ */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--sand);
}
.service-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--sand);
  transition: background 0.3s var(--ease);
}
.service-item:hover { background: var(--light); }

/* Featured full-width service card */
.service-item--featured {
  grid-column: 1 / -1;
  padding: 2.2rem 2rem;
  background: var(--sand);
  border-color: var(--taupe);
}
.service-item--featured:hover { background: var(--sand); }

.service-icon--lg {
  width: 48px;
  height: 48px;
}
.service-icon--lg svg { width: 100%; height: 100%; }

.service-subtitle {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--taupe);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

.service-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--terracotta);
}
.service-icon svg { width: 100%; height: 100%; }
.service-text h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
}

/* ════════════════════════════════
   QUOTE / CITATION
════════════════════════════════ */
.quote-section {
  background: var(--sand);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
/* Light variant after experience (on white bg) */
.quote-section--light {
  background: var(--light);
}
.quote-inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 780px;
  margin: 0 auto;
}
.quote-bar {
  flex-shrink: 0;
  width: 4px;
  height: 60px;
  background: var(--terracotta);
  border-radius: 2px;
  margin-top: 0.3rem;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--mid);
}

/* ════════════════════════════════
   EXPÉRIENCE — Magazine layout: text left, photo right
════════════════════════════════ */
.experience {
  background: var(--dark);
  color: var(--cream);
}
.exp-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.exp-label { color: var(--terra-soft) !important; }
.section-title--light { color: var(--cream); }

/* Magazine side-by-side layout */
.exp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.exp-text-col {
  display: flex;
  flex-direction: column;
}
/* Quote style inside experience */
.exp-quote {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.exp-bar {
  flex-shrink: 0;
  width: 4px;
  height: 60px;
  background: var(--terra-soft);
  border-radius: 2px;
  margin-top: 0.3rem;
}
.exp-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.exp-text-content p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.85;
  color: rgba(232, 220, 200, 0.8);
  font-weight: 300;
}

/* Photo column */
.exp-photo-col {
  display: flex;
  align-items: stretch;
}
.exp-photo {
  width: 100%;
  overflow: hidden;
  height: clamp(350px, 50vw, 520px);
}
.exp-photo img {
  transition: transform 0.7s var(--ease);
  filter: saturate(0.85) sepia(0.08);
}
.exp-photo:hover img { transform: scale(1.04); }

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
.contact { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--sand);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 4px 24px rgba(192, 114, 74, 0.1);
}
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--terracotta);
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.contact-card p {
  font-size: 0.82rem;
  color: var(--taupe);
  font-weight: 300;
}

/* ════════════════════════════════
   RESERVATION
════════════════════════════════ */
.reservation {
  background: var(--white);
  border-top: 1px solid var(--sand);
}
.reservation-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reservation-inner .section-title { margin-bottom: 0.6rem; }
.resa-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--mid);
  margin-bottom: 2rem;
}
.resa-price strong { color: var(--terracotta); font-weight: 500; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: var(--dark);
  color: var(--cream);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(158, 138, 114, 0.2);
}

/* Logo image in footer */
.footer-logo-wrap {
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  /* No brightness filter — logo renders naturally against dark footer */
  opacity: 0.92;
}

.footer-address {
  font-size: 0.82rem;
  color: rgba(232, 220, 200, 0.55);
  line-height: 1.7;
  font-weight: 300;
}
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
}
.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links a,
.footer-contact a {
  font-size: 0.83rem;
  color: rgba(232, 220, 200, 0.6);
  font-weight: 300;
  transition: color 0.25s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--terra-soft); }
.footer-bottom {
  padding-block: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.73rem;
  color: rgba(158, 138, 114, 0.5);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Villa: stack vertically on tablet */
  .villa-layout {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
  .villa-photo--bottom {
    margin-left: 0;
  }

  /* Experience: stack vertically on tablet */
  .exp-layout {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
  .exp-photo {
    height: clamp(250px, 50vw, 380px);
  }

  .gallery-row--3col {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-row--3col .gallery-item:last-child {
    grid-column: span 2;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  .villa-stats {
    gap: 1rem;
  }

  .gallery-row--2col {
    grid-template-columns: 1fr;
  }
  .gallery-row--2col .gallery-item {
    height: clamp(200px, 50vw, 300px);
  }
  .gallery-row--3col {
    grid-template-columns: 1fr;
  }
  .gallery-row--3col .gallery-item {
    grid-column: span 1;
    height: clamp(200px, 50vw, 300px);
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
}
