/* ═══════════════════════════════════════════════════════════
   Klipskuur – style.css
   Pure CSS3. Zero frameworks. Zero bloat.
   ═══════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --accent:   #a69586;
  --cream:    #f4f0e7;
  --bg:       #ffffff;
  --text:     #2c2c2c;
  --muted:    #999999;
  --max-w:    1100px;
  --header-h: 80px;
  --gap:      2rem;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.display {
  font-family: 'Herr Von Muellerhoff', cursive;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.prose {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}
.prose p { margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; color: var(--muted); }

h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h5 { font-size: 0.85rem; margin-bottom: 0.75rem; }
h6 { font-size: 0.72rem; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section { padding: 3.5rem 0; }
.section--sm { padding: 2rem 0; }
.section--flush { padding: 0; }

/* ─── SEPARATOR ──────────────────────────────────────────── */
.separator {
  display: block;
  margin: 1.25rem auto 2rem;
  /* width/height set by img element's natural size */
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--cream);
}

.header-inner {
  position: relative;           /* anchor for mobile dropdown */
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo a { display: block; line-height: 0; }
.logo img { height: 48px; width: auto; }

/* ─── NAV TOGGLE (CSS-only hamburger) ───────────────────── */
#nav-toggle { display: none; }

.nav-toggle-label {
  display: none;                /* shown only on mobile */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 201;
}
.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}

/* Animate hamburger → X when checked */
#nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
  width: 0;
}
#nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── MAIN NAV ───────────────────────────────────────────── */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--accent);
}
.main-nav a:hover::after,
.main-nav a.current::after {
  width: 100%;
}

.main-nav .social-link {
  color: var(--accent);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.main-nav .social-link:hover { color: var(--text); }
.main-nav .social-link::after { display: none; }

/* ─── HERO SLIDESHOW ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  /* Aspect ratio 1096 × 562 */
  padding-bottom: 51.28%;
  overflow: hidden;
  background: var(--cream);
}

.welcome-hero {
  width: 80%;
  margin: 0 auto;
}

.welcome-hero .slide {
  background: var(--cream);
}

.welcome-hero .slide img {
  object-fit: contain;
}

.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFade 15s infinite;
}

.hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stagger each slide by (15s / 5 slides) = 3s */
.hero .slide:nth-child(1) { animation-delay:  0s; }
.hero .slide:nth-child(2) { animation-delay:  3s; }
.hero .slide:nth-child(3) { animation-delay:  6s; }
.hero .slide:nth-child(4) { animation-delay:  9s; }
.hero .slide:nth-child(5) { animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 1; }
  17%  { opacity: 1; }   /* visible for ~2.5 s */
  22%  { opacity: 0; }   /* 0.75 s crossfade */
  98%  { opacity: 0; }
  100% { opacity: 1; }   /* ready for next cycle */
}

/* ─── GALLERY GRID ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
}

.gallery-grid figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid figure img:hover {
  transform: scale(1.04);
}

/* Lightbox overlay (toggled via JS) */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox[hidden] { display: none; }

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

#lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 501;
  background: none;
  border: none;
  padding: 0;
}
#lb-close:hover { color: #fff; }

/* ─── PHOTOGRAPHERS ─────────────────────────────────────── */
.photographers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.photographer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photographer img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border: 3px solid var(--cream);
  transition: border-color 0.25s;
}

.photographer a:hover img {
  border-color: var(--accent);
}

/* ─── CONTACT PAGE ───────────────────────────────────────── */
.map-wrap { width: 100%; margin-bottom: 0; }
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid h5 { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 2.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
  margin-top: 0.25rem;
}
.contact-form button:hover {
  background: var(--accent);
  color: #fff;
}

.contact-details p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.contact-details a { color: var(--accent); }
.contact-details a:hover { text-decoration: underline; }

.contact-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--accent);
  transition: color 0.2s;
}
.contact-social:hover { color: var(--text); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--accent); }

.footer-logo {
  text-align: center;
  padding: 2rem var(--gap);
  background: var(--bg);
}
.footer-logo img {
  max-height: 80px;
  margin: 0 auto;
}

.footer-bottom {
  border-top: 1px solid var(--cream);
  padding: 1.5rem var(--gap);
}

.footer-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-cols h6 { color: var(--muted); }
.footer-cols h6 span { color: var(--accent); }
.footer-cols h6 a { color: var(--muted); transition: color 0.2s; }
.footer-cols h6 a:hover { color: var(--accent); }

.footer-cols .col-center { text-align: center; }
.footer-cols .col-right  { text-align: right; }

.footer-fb {
  display: inline-flex;
  color: var(--accent);
  transition: color 0.2s;
}
.footer-fb:hover { color: var(--text); }

/* ─── BACK TO TOP ────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 100;
  cursor: pointer;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover { background: var(--text); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-cols .col-right { text-align: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }

  .nav-toggle-label { display: flex; }

  /* Dropdown nav */
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--cream);
    border-bottom: 1px solid var(--cream);
    padding: 0.5rem var(--gap) 1rem;
    z-index: 199;
  }
  #nav-toggle:checked ~ .main-nav { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--cream); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a {
    display: block;
    padding: 0.8rem 0;
    font-size: 0.78rem;
  }
  .main-nav a::after { display: none; }

  .hero { padding-bottom: 65%; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .photographers {
    gap: 1.25rem;
  }
  .photographer img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photographers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero { padding-bottom: 75%; }
  .map-wrap iframe { height: 280px; }
}
