/* ============================================
   EDficient — Unified Design System
   Aesthetic: Editorial luxury meets creative agency
   Fonts: Cormorant Garamond (display) + Outfit (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --accent:       #EC6502;
  --accent-dark:  #c75500;
  --bg:           #FAFAF7;
  --text:         #1A1A1A;
  --text-muted:   #767676;
  --border:       rgba(0,0,0,0.09);
  --white:        #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --radius:       6px;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
  --shadow:       0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.14);
  --transition:   0.28s ease;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.hero-header {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

.wrapper {
  width: 1200px;
  max-width: 94%;
  margin: 0 auto;
  padding: 0 28px;
  flex: 1;
}

/* ============================================
   NAV
   ============================================ */
header {
  padding: 36px 0 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}

nav .togglebtn {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 42px;
  right: 5%;
  z-index: 10;
  cursor: pointer;
  display: none;
}

nav .togglebtn span {
  display: block;
  background: var(--accent);
  margin: 6px 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: 0.3s;
  transition-property: transform, opacity;
}

nav .navlinks {
  list-style: none;
  display: flex;
  align-items: center;
}

nav .navlinks li { display: inline-block; }

nav .navlinks li a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: 2.4rem;
  position: relative;
  padding-bottom: 5px;
  transition: color var(--transition);
}

nav .navlinks li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.32s ease;
}

nav .navlinks li a:hover { color: var(--accent); }
nav .navlinks li a:hover::after { width: 100%; }

.navlinks .current-page {
  color: var(--accent) !important;
  font-weight: 600;
}
.navlinks .current-page::after {
  width: 100% !important;
}

/* ============================================
   HERO CONTENT AREA
   ============================================ */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 1rem;
}

.hero-text {
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 0.7s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LOGO & HEAD IMAGE
   ============================================ */
.images-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
  position: relative;
}

/* Decorative ring behind the head image */

.hoofd {
  width: 70px;
  height: 111px;
  object-fit: cover;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.logo2 {
  max-width: 300px;
  height: auto;
}

/* ============================================
   BODY TEXT
   ============================================ */
.hero-text p {
  font-size: 1.05rem;
  line-height: 1.92;
  color: var(--text);
  font-weight: 300;
  max-width: 700px;
  position: relative;
}

/* Decorative opening quote mark for longer pages */
.hero-text p:first-of-type::before {
  content: none;
}

.hero-text p a[style] {
  font-weight: 600;
}

/* Inline success-stories label */
.hero-text > p:last-of-type {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.hero-text .social a,
.hero-text .social #openContactForm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: inherit;
}

.hero-text .social i {
  color: var(--text);
  font-size: 15px;
  transition: color var(--transition);
}

.hero-text .social a:hover,
.hero-text .social #openContactForm:hover {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(236,101,2,0.3);
}

.hero-text .social a:hover i,
.hero-text .social #openContactForm:hover i {
  color: white;
}

/* ============================================
   GALLERY — INDEX (multi-item grid)
   ============================================ */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 16px;
  animation: fadeUp 0.7s 0.15s cubic-bezier(.22,.68,0,1.2) both;
}

.gallery-item {
  flex: 1 1 calc(33.33% - 10px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  background: #eee;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Orange overlay strip on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.gallery-item:hover::after { transform: scaleX(1); }

.gallery-item p {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 8px 0 6px;
  padding: 0 4px;
}

/* ============================================
   GALLERY — SINGLE IMAGE (carefree, rewarding, fun, contact)
   ============================================ */
.gallery-center {
  justify-content: center;
  margin: 20px 0;
}

.gallery-center .gallery-item {
  flex: 0 0 52%;
  max-width: 580px;
  cursor: default;
}

.gallery-center .gallery-item img {
  height: auto;
  filter: none;
  border-radius: var(--radius);
}

.gallery-center .gallery-item:hover img { transform: none; filter: none; }
.gallery-center .gallery-item::after    { display: none; }

/* Carefree page: clickable single image */
.gallery-clickable .gallery-item {
  cursor: pointer;
}
.gallery-clickable .gallery-item img {
  filter: grayscale(20%);
  transition: filter 0.5s, transform 0.5s;
}
.gallery-clickable .gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.gallery-clickable .gallery-item::after { display: block; }

/* ============================================
   MODAL — REDESIGNED CAROUSEL
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Fade-in animation for the overlay */
.modal.is-open {
  animation: modalIn 0.25s ease both;
}
@keyframes modalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: transparent;
  animation: slideUp 0.3s cubic-bezier(.22,.68,0,1.1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 24px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Image frame */
.modal-frame {
  position: relative;
  width: 100%;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
}

.modal img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.22s ease;
  background: #111;
}

.modal img.fading { opacity: 0; }

#carouselVideo {
  width: 100%;
  max-height: 68vh;
  background: #000;
  display: none;
  transition: opacity 0.22s ease;
}
#carouselVideo.fading { opacity: 0; }

/* Arrow nav buttons — on the sides */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.22s ease;
  backdrop-filter: blur(4px);
}
.modal-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(236,101,2,0.45);
}
.modal-arrow.prev { left: 5px; }
.modal-arrow.next { right: 5px; }

/* Counter + close bar below image */
.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px 0;
}

.modal-counter {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: white;
}

.modal-hint {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: white;
  letter-spacing: 0.08em;
}

/* Close button — top-right of overlay */
.modal .close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2100;
  line-height: 1;
}
.modal .close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Progress bar at bottom of frame */
.modal-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 0 2px 0 0;
}

/* ── Keep old selector names for JS compat ── */
.modal-controls { display: none; }

/* ============================================
   CONTACT FORM POPUP
   ============================================ */
.contact-form-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.contact-form-content {
  background: white;
  padding: 42px 40px 36px;
  border-radius: 12px;
  width: 90%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeUp 0.35s ease both;
  border-top: 3px solid var(--accent);
}

.contact-form-content h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.1;
}

.contact-form-content h2 span {
  color: var(--accent);
}

.contact-form-content label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.contact-form-content input,
.contact-form-content textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.contact-form-content input:focus,
.contact-form-content textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236,101,2,0.1);
}

.contact-form-content textarea {
  resize: vertical;
  min-height: 108px;
}

.contact-form-content .btn {
  width: 100%;
  background: var(--accent);
  color: white;
  padding: 13px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  margin-top: 4px;
}

.contact-form-content .btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(236,101,2,0.35);
  transform: translateY(-1px);
}

.contact-form-content .close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1;
  transition: color var(--transition);
}
.contact-form-content .close-btn:hover { color: var(--accent); }

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
  margin-right: 0;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}
 
.lang-toggle button {
  background: transparent;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: all 0.2s ease;
  line-height: 1.6;
  white-space: nowrap;
}
 
.lang-toggle button.active {
  background: var(--accent);
  color: white;
}
 
.lang-toggle button:not(.active):hover {
  color: var(--accent);
}

/* ── Mobile: sit right next to the hamburger ── */
@media (max-width: 930px) {
  .lang-toggle {
    position: absolute;
    top: 42px;
    right: calc(5% + 42px);  /* hamburger is at right:5%, width ~30px + gap */
    margin-right: 0;
    z-index: 10;
  }
}

/* ============================================
   NEXT PAGE BUTTON
   ============================================ */
.next-page {
  display: none;
  max-width: 96px;
  height: auto;
  margin: 20px 0 14px auto;
  transition: opacity var(--transition), transform var(--transition);
}
.next-page:hover {
  opacity: 0.8;
  transform: translateX(4px);
}

/* ============================================
   ORANGE BAR
   ============================================ */
.oranje-balk {
  width: 100%;
  line-height: 0;
  margin-top: auto;
  margin-top: 10px;
}

.desktop-balk {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-balk { display: none; }

/* ============================================
   DIVIDER ACCENT
   ============================================ */
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ============================================
   RESPONSIVE — 930px
   ============================================ */
@media (max-width: 930px) {
  .logo { display: none; }
  .logo2 { max-width: 86%; }

  nav .togglebtn { display: block; }

  .click span  { position: absolute; margin-top: 12px; }
  .click span:first-child  { transform: rotate(-40deg); }
  .click span:nth-child(2) { opacity: 0; margin: 0; }
  .click span:last-child   { transform: rotate(45deg); top: 0; }

  nav .navlinks {
    display: block;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 110px;
    right: 5%;
    background: white;
    z-index: 999;
    box-shadow: var(--shadow);
    padding: 20px 28px;
    width: max-content;
    border-radius: 10px;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-top: 2px solid var(--accent);
  }

  nav .navlinks.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  nav .navlinks li  { display: block; }
  nav .navlinks li a {
    display: block;
    margin-bottom: 16px;
    text-align: center;
    margin-right: 0;
  }

  .gallery-item img,
  .gallery-item video { filter: grayscale(0%); }

  .mobile-balk { display: block; width: 100%; height: auto; }
  .desktop-balk { display: none; }
  .next-page { display: block; }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  .container { flex-direction: column; padding-top: 1.5rem; }
  .hero-text  { padding: 28px 0; }
  .gallery-item { flex: 1 1 calc(50% - 10px); }
  .gallery-item img,
  .gallery-item video { height: 150px; }
  .gallery-center .gallery-item { flex: 0 0 90%; max-width: none; }
  .modal-content { width: 94%; }
  .modal img, #carouselVideo { max-height: 55vh; }
  .modal-arrow { width: 36px; height: 36px; font-size: 0.95rem; }
  .modal-arrow.prev { left: 5px; }
  .modal-arrow.next { right: 5px; }
  .hero-text p { font-size: 1rem; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .gallery-item { flex: 1 1 100%; }
  .contact-form-content { padding: 32px 24px 28px; }
  .modal img, #carouselVideo { max-height: 48vh; }
  .modal-arrow { width: 32px; height: 32px; font-size: 0.85rem; }
  .modal-arrow.prev { left: 5px; }
  .modal-arrow.next { right: 5px; }
  .images-wrapper::before { width: 80px; height: 80px; }
}
