:root {
  --color-primary: #415A44; /* Diep natuurlijk groen */
  --color-primary-hover: #2E4030;
  --color-accent: #C7B49B; /* Zand/Beige tint */
  --color-accent-hover: #A99477;
  --color-text: #2B2B2B;
  --color-text-light: #666666;
  --color-bg: #F9F8F5; /* Warme, lichte zandkleur */
  --color-white: #FFFFFF;
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif; /* Luxe uitstraling */
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==================================
   REUSABLE UTILITIES
   ================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(65, 90, 68, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================
   HEADER / NAVIGATION
   ================================== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  z-index: 100;
  transition: var(--transition);
}

header.scrolled {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  transition: var(--transition);
}

header.scrolled .logo,
.dark-header .logo {
  color: var(--color-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

header.scrolled nav a,
.dark-header nav a {
  color: var(--color-text);
}

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

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

header.scrolled .mobile-menu-btn,
.dark-header .mobile-menu-btn {
  color: var(--color-primary);
}

/* ==================================
   HERO SECTION
   ================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ==================================
   HOUSES GRID (HOMEPAGE)
   ================================== */
.houses {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.house-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.house-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.house-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.house-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.house-card:hover .house-img img {
  transform: scale(1.05);
}

.house-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.house-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.house-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.house-info p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.house-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.feature i {
  color: var(--color-accent);
}

/* ==================================
   USPs SECTION
   ================================== */
.usps {
  padding: 6rem 0;
  background-color: var(--color-white);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.usp-item i {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.usp-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.usp-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ==================================
   HOUSE DETAILS (PER HOUSE)
   ================================== */
.house-hero {
  height: 60vh;
  min-height: 400px;
  margin-top: 80px; /* Offset for header */
  border-radius: var(--border-radius);
  margin-left: 5%;
  margin-right: 5%;
  background-position: center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.house-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  border-radius: var(--border-radius);
}

.house-hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.house-hero-content h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.house-details-section {
  padding: 5rem 0;
}

.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.details-grid > * {
  min-width: 0;
}

.description h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.description p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.sidebar {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  align-self: start;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 1rem;
}

.spec-list {
  list-style: none;
  margin-bottom: 2rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-value {
  font-weight: 600;
}

.sidebar .btn {
  width: 100%;
}

.gallery {
  margin-top: 4rem;
}

.gallery-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 10px; /* Ruimte voor de knoppen op mobiel */
}

@media (min-width: 768px) {
  .gallery-slider-wrapper {
    padding: 0;
  }
}

@media (min-width: 992px) {
  .gallery-slider-wrapper {
    margin: 0 -50px;
    padding: 0 50px;
  }
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding: 10px 0 1rem 0; /* Extra padding om afsnijden knop-schaduw te voorkomen */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.gallery-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.gallery-track img {
  flex: 0 0 calc(100% - 1rem); /* Volledige breedte mobiel */
  height: 220px; /* Minder hoog */
  object-fit: cover;
  border-radius: var(--border-radius);
  scroll-snap-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Lichte schaduw voor diepte */
}

@media (min-width: 768px) {
  .gallery-track img {
    flex: 0 0 calc(50% - 0.5rem); /* 2 foto's naast elkaar */
    height: 260px; /* Netjes in verhouding */
  }
}

@media (min-width: 1200px) {
  .gallery-track img {
    flex: 0 0 calc(33.333% - 0.67rem); /* Grotere foto's nu het full-width is */
    height: 350px; 
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid rgba(0,0,0,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1); /* Lichte vergroting ipv alleen kleur */
}

.slider-prev {
  left: -15px;
}

.slider-next {
  right: -15px;
}

@media (min-width: 768px) {
  .slider-prev {
    left: -20px;
  }
  .slider-next {
    right: -20px;
  }
}

@media (min-width: 992px) {
  .slider-prev {
    left: 5px;
  }
  .slider-next {
    right: 5px;
  }
}

/* ==================================
   FOOTER
   ================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 2rem;
  text-align: center;
}

footer p {
  opacity: 0.8;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ==================================
   CONTACT PAGE
   ================================== */
.contact-section {
  padding: 8rem 0;
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.contact-methods {
  margin-top: 3rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--color-accent);
  width: 50px;
  height: 50px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method div h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--color-primary);
}

.contact-method div p {
  margin-bottom: 0;
  font-size: 1rem;
}

.contact-form-container {
  background-color: var(--color-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(65, 90, 68, 0.1);
}

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* ==================================
   RESPONSIVE
   ================================== */
@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .hero { background-attachment: scroll; height: 70vh; }
  .hero-content h1 { font-size: 2.8rem; }
  .details-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-top: 2rem; }
  .house-hero { height: 50vh; margin-left: 0; margin-right: 0; border-radius: 0; }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  .logo {
    font-size: 1.2rem;
  }
  .mobile-menu-btn { display: block; }
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }
  nav ul.active {
    max-height: 400px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  nav a {
    color: var(--color-text) !important;
    display: block;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .hero { height: 60vh; min-height: 400px; }
  .hero-content {
    margin-top: 60px;
    padding: 0 1rem;
  }
  .hero-content h1 { font-size: 2rem; }
  .houses { padding: 4rem 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
