/* ============================================
   Chalets Ardennen - Rustic Modern Styles
   ============================================ */

:root {
  /* Colors */
  --primary: #2D5016;
  --primary-light: #3A6B1E;
  --primary-subtle: #F2F7EE;
  --wood-dark: #4A3728;
  --wood-medium: #8B6F47;
  --wood-light: #C4A77D;
  --bg: #FBF9F5;
  --surface: #F5F0E8;
  --surface-dark: #E8DFD0;
  --text-primary: #2A2118;
  --text-secondary: #5C4F3D;
  --text-muted: #766A58;
  --border: #DDD5C7;
  --accent-warm: #C27832;
  --white: #FFFDF9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(42,33,24,0.06);
  --shadow-md: 0 4px 12px rgba(42,33,24,0.08);
  --shadow-lg: 0 12px 24px rgba(42,33,24,0.1);
  --shadow-warm: 0 8px 32px rgba(194,120,50,0.12);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

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

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

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-primary);
  background-color: var(--bg);
}

/* Typography */
h1, h2, h3, .font-serif {
  font-family: 'Vollkorn', Georgia, serif;
}

.display-text {
  font-family: 'Vollkorn', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.18; font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.33; font-weight: 600; }

.body-large { font-size: 1.125rem; line-height: 1.67; }
.body-small { font-size: 0.875rem; line-height: 1.57; }
.caption { font-size: 0.75rem; line-height: 1.5; font-weight: 600; letter-spacing: 0.03em; }
.label { font-size: 0.6875rem; line-height: 1.45; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Wood Divider */
.wood-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}
.wood-divider::before,
.wood-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.wood-divider .leaf {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Image Placeholders */
.img-placeholder {
  background-color: var(--surface-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  overflow: hidden;
  position: relative;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(194,120,50,0.08) 0%, rgba(45,80,22,0.06) 100%);
}

.img-placeholder span {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px;
}

/* Organic shape for decorative elements */
.organic-shape {
  border-radius: 40% 60% 55% 45% / 55% 45% 40% 60%;
}

/* Warm Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: var(--shadow-warm);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  transition-duration: 200ms;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: var(--primary-subtle);
  box-shadow: var(--shadow-md);
}

/* Nav */
.nav-rustic {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 300ms ease;
  background-color: rgba(251,249,245,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-rustic.scrolled {
  background-color: rgba(251,249,245,0.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 250ms ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background-color: var(--primary);
  transition: all 250ms ease;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after {
  left: 0;
  right: 0;
}

/* Card hover */
.card-hover {
  transition: transform 500ms ease, box-shadow 500ms ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Image zoom on hover */
.img-zoom {
  overflow: hidden;
}
.img-zoom .img-placeholder {
  transition: transform 500ms ease;
}
.img-zoom:hover .img-placeholder {
  transform: scale(1.03);
}

/* Photo Mosaic */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.photo-mosaic .mosaic-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.photo-mosaic .mosaic-item {
  border-radius: var(--radius-lg);
  min-height: 180px;
}
.photo-mosaic .mosaic-large {
  min-height: 380px;
}

@media (max-width: 768px) {
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .photo-mosaic .mosaic-large {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}
@media (max-width: 480px) {
  .photo-mosaic {
    grid-template-columns: 1fr;
  }
  .photo-mosaic .mosaic-item {
    min-height: 200px;
  }
}

/* Quote */
.quote-nature {
  position: relative;
  padding: 48px;
  background-color: var(--surface);
  border-radius: var(--radius-xl);
}
.quote-nature::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: 'Vollkorn', serif;
  font-size: 5rem;
  color: var(--wood-light);
  line-height: 1;
  opacity: 0.5;
}

/* Season Card */
.season-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 32px;
  transition: transform 500ms ease, box-shadow 500ms ease;
}
.season-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

/* CTA Section */
.cta-warm {
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
}
.cta-warm h2 {
  color: var(--white);
}
.cta-warm p {
  color: rgba(255,253,249,0.85);
}
.cta-warm .btn-primary {
  background-color: var(--white);
  color: var(--primary);
}
.cta-warm .btn-primary:hover {
  background-color: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* Form Styling */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.12);
}
.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Table */
.warm-table {
  width: 100%;
  border-collapse: collapse;
}
.warm-table th {
  background-color: var(--surface);
  padding: 14px 20px;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}
.warm-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.warm-table tr:last-child td {
  border-bottom: none;
}
.warm-table tbody tr:hover {
  background-color: var(--primary-subtle);
}

/* Mobile Table Card */
@media (max-width: 640px) {
  .warm-table thead { display: none; }
  .warm-table tr {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 12px;
  }
  .warm-table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .warm-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 16px;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: rgba(42,33,24,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background-color: var(--bg);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 400ms ease;
  padding: 80px 32px 32px;
  overflow-y: auto;
}
.mobile-nav.active {
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Vollkorn', serif;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color 250ms ease;
}
.mobile-nav a:hover {
  color: var(--primary);
}

/* Amenity Row */
.amenity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.amenity-row:last-child {
  border-bottom: none;
}
.amenity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Feature Icon */
.feature-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Availability Hint */
.availability-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background-color: var(--primary-subtle);
  border-radius: var(--radius-lg);
  color: var(--primary);
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 102;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 300ms ease;
  border-radius: 2px;
}
.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);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links-desktop { display: none !important; }
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Utility */
.max-w-site { max-width: 1200px; margin-left: auto; margin-right: auto; }
.max-w-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
