/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Colors */
  --color-bg:        #f5efe6;   /* warm cream background */
  --color-surface:   #ede0d0;   /* slightly darker card surface */
  --color-accent:    #c0673a;   /* terracotta accent */
  --color-accent-dk: #8b3e1e;   /* darker terracotta for hover states */
  --color-text:      #3b2314;   /* dark brown body text */
  --color-text-muted:#7a5c44;   /* muted brown for secondary text */
  --color-border:    #c9a882;   /* warm tan border */

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Misc */
  --radius:     8px;
  --shadow:     0 4px 16px rgba(59, 35, 20, 0.12);
  --transition: 0.25s ease;
}

/* ============================================================
   Base / Reset
   ============================================================ */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 100%; /* 16px base */
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dk);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background-color: var(--color-surface);
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../achtergrond.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: var(--space-xl) var(--space-md) 0;
}

.hero__inner {
  max-width: 48rem;
  margin: 0 auto;
  padding-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Decorative wave divider between hero and gallery */
.hero__divider {
  position: relative;
  height: 3rem;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.hero__divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background-color: var(--color-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0.4rem var(--space-md);
  margin: 0;
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

.site-nav__link:hover {
  color: var(--color-accent-dk);
  background-color: rgba(192, 103, 58, 0.08);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Mobile: compact on small viewports */
@media (max-width: 37.5rem) {
  .site-nav__list {
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
  }

  .site-nav__link {
    font-size: 0.9rem;
    padding: var(--space-xs);
  }
}

/* ============================================================
   Intro Text Section
   ============================================================ */
.intro {
  background-color: var(--color-bg);
  padding: var(--space-lg) var(--space-md);
}

.intro__container {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.intro__container p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.8;
  text-align: left;
}

/* ============================================================
   Gallery Section
   ============================================================ */
.gallery {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-bg);
}

.gallery__container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  text-align: center;
}

/* Grid: 3 columns on desktop */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow);
}

/* Fixed-height image container */
.gallery__img-wrap {
  height: 280px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.gallery__item img:hover {
  transform: scale(1.04);
}

/* ============================================================
   Gallery — Responsive breakpoints
   ============================================================ */

/* 2 columns at ≤ 900px */
@media (max-width: 56.25rem) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 column at ≤ 600px */
@media (max-width: 37.5rem) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-surface);
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../images/IMG_9910.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact__container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact__heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  margin-bottom: var(--space-md);
  text-align: left;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Side-by-side layout on desktop */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

/* ============================================================
   Contact Info Block
   ============================================================ */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: 8rem;
}

.contact__name,
.contact__naam {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.contact__email,
.contact__location {
  font-size: 1rem;
  color: #fff;
}

.contact__email a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__email a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(192, 103, 58, 0.2);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-group textarea {
  resize: vertical;
}

/* Inline validation error messages */
.field-error {
  font-size: 0.85rem;
  color: #c0392b;
  min-height: 1.2em; /* reserve space so layout doesn't jump */
}

/* Submit button */
.contact-form__submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-md);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.contact-form__submit:hover {
  background-color: var(--color-accent-dk);
}

.contact-form__submit:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.contact-form__submit:active {
  transform: translateY(1px);
}

/* Thank-you message */
#thank-you {
  font-size: 1.1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-sm);
}

/* ============================================================
   Contact Section — Responsive
   ============================================================ */

/* Stack info + form on tablets and below */
@media (max-width: 56.25rem) {
  .contact__layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  letter-spacing: 0.04em;
}
