/* ============================================
   Chalets Ardennen — Premium Agency Styles
   Design Tokens as CSS Custom Properties
   ============================================ */

:root {
  /* Colors */
  --color-primary: #2C2825;
  --color-secondary: #5C534A;
  --color-accent: #B8956A;
  --color-accent-light: #D4B896;
  --color-bg: #FAF8F5;
  --color-surface: #F0EDE8;
  --color-text: #2C2825;
  --color-text-secondary: #7A7067;
  --color-text-muted: #A69D93;
  --color-border: #E5E0D8;
  --color-success: #5B7A5E;
  --color-error: #A65D5D;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(44,40,37,0.05);
  --shadow-md: 0 4px 12px rgba(44,40,37,0.08);
  --shadow-lg: 0 12px 32px rgba(44,40,37,0.12);
  --shadow-xl: 0 24px 48px rgba(44,40,37,0.16);

  /* Radii */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-entrance: 600ms ease-out;
  --transition-hover: 300ms ease;
  --transition-button: 200ms ease;
}

/* ============================================
   Base & Reset
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography Classes
   ============================================ */

.font-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  line-height: 80px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.font-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  line-height: 64px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.font-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  line-height: 48px;
  font-weight: 400;
}

.font-h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
}

.font-h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.font-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

.font-body-sm {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

.font-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive typography */
@media (max-width: 768px) {
  .font-display {
    font-size: 42px;
    line-height: 48px;
  }
  .font-h1 {
    font-size: 36px;
    line-height: 42px;
  }
  .font-h2 {
    font-size: 30px;
    line-height: 38px;
  }
  .font-h3 {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ============================================
   Scroll Animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--transition-entrance), transform var(--transition-entrance);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Hero Parallax
   ============================================ */

.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .hero-parallax {
    background-attachment: scroll;
  }
}

/* ============================================
   Navigation
   ============================================ */

.nav-fixed {
  transition: background-color var(--transition-hover), box-shadow var(--transition-hover);
  background-color: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Nav over dark hero images — white text with gradient overlay */
.nav-fixed.nav-hero {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-fixed.nav-hero .nav-link,
.nav-fixed.nav-hero > div > a.font-serif {
  color: #FAF8F5 !important;
}

.nav-fixed.nav-hero .nav-link:hover {
  color: var(--color-accent-light) !important;
}

.nav-fixed.nav-hero .hamburger span {
  background-color: #FAF8F5;
}

.nav-fixed.nav-hero .lang-switch {
  border-color: rgba(250, 248, 245, 0.3);
}

.nav-fixed.nav-hero .lang-switch button {
  color: rgba(250, 248, 245, 0.7);
}

.nav-fixed.nav-hero .lang-switch button.active {
  background-color: rgba(250, 248, 245, 0.2);
  color: #FAF8F5;
}

.nav-fixed.nav-hero .btn-primary {
  background-color: rgba(250, 248, 245, 0.15);
  border: 1px solid rgba(250, 248, 245, 0.3);
}

.nav-fixed.nav-hero .btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Scrolled state — always revert to light background */
.nav-fixed.scrolled {
  background: rgba(250, 248, 245, 0.97) !important;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-fixed.scrolled .nav-link {
  color: var(--color-secondary) !important;
}

.nav-fixed.scrolled .nav-link:hover {
  color: var(--color-primary) !important;
}

.nav-fixed.scrolled > div > a.font-serif {
  color: var(--color-primary) !important;
}

.nav-fixed.scrolled .hamburger span {
  background-color: var(--color-primary);
}

.nav-fixed.scrolled .lang-switch {
  border-color: var(--color-border);
}

.nav-fixed.scrolled .lang-switch button {
  color: var(--color-text-muted);
}

.nav-fixed.scrolled .lang-switch button.active {
  background-color: var(--color-primary);
  color: #FAF8F5;
}

.nav-fixed.scrolled .btn-primary {
  background-color: var(--color-accent);
  border: none;
}

.nav-link {
  position: relative;
  transition: color var(--transition-hover);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-hover);
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   Property Card
   ============================================ */

.property-card .card-image {
  transition: transform var(--transition-hover);
}

.property-card:hover .card-image {
  transform: scale(1.05);
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
  background-color: var(--color-accent);
  color: #FAF8F5;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background-color var(--transition-button), box-shadow var(--transition-button), transform var(--transition-button);
}

.btn-primary:hover {
  background-color: #A6845E;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  padding: 14px 32px;
  border: 1px solid var(--color-accent);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background-color var(--transition-button), color var(--transition-button);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #FAF8F5;
}

/* ============================================
   Image Placeholders
   ============================================ */

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* ============================================
   Section Divider
   ============================================ */

.section-divider {
  width: 48px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 0 auto;
}

/* ============================================
   Mobile Navigation
   ============================================ */

.mobile-menu {
  transform: translateX(100%);
  transition: transform var(--transition-hover);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ============================================
   Gallery Lightbox
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(44, 40, 37, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #FAF8F5;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
}

/* ============================================
   Capacity Badge
   ============================================ */

.capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-secondary);
}

/* ============================================
   Quote Block
   ============================================ */

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  line-height: 44px;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .quote-text {
    font-size: 24px;
    line-height: 34px;
  }
}

/* ============================================
   Form Styles
   ============================================ */

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  transition: border-color var(--transition-button), box-shadow var(--transition-button);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

/* ============================================
   Pricing Table
   ============================================ */

.pricing-table th {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 12px 20px;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}

.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--color-text);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Hamburger Icon
   ============================================ */

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform var(--transition-button), opacity var(--transition-button);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Language Switcher
   ============================================ */

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lang-switch button {
  padding: 4px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-text-muted);
  transition: background-color var(--transition-button), color var(--transition-button);
}

.lang-switch button.active {
  background-color: var(--color-primary);
  color: #FAF8F5;
}

/* ============================================
   Amenity list
   ============================================ */

.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.amenity-item:last-child {
  border-bottom: none;
}

.amenity-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}
