@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Roboto+Condensed:wght@400;700&family=Source+Sans+Pro:wght@400;600;700&display=swap");

:root {
  --accent: #e6aa21;
  --dark: #181818;
  --page-bg: #d8dcde;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px;
  color: #666;
  background: var(--page-bg);
}

.font-display {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

/* Layout: zijbalk echt vastgezet (position: fixed, zoals het origineel se
   "fixed_position" sidebar) zodat alleen het hoofdcontent-deel meescrollt,
   i.p.v. de hele pagina (incl. zijbalk) als één geheel te laten scrollen. */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-sidebar {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  background-image: url('media/atelier-achtergrond.jpg');
  background-size: cover;
  background-position: center;
}
@media (min-width: 900px) {
  :root {
    /* Zijbalk vult de ruimte naast het (max 1100px) content-blok op */
    --sidebar-w: clamp(460px, calc(100vw - 1100px), 820px);
  }
  .layout-sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
  }
  .layout-main {
    margin-left: var(--sidebar-w);
    max-width: 1100px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  }
}

/* De menu/contact-kolom staat gecentreerd in de (bredere) zijbalk, zodat de
   foto-achtergrond links én rechts zichtbaar blijft — net als het origineel
   (class "centered-contents"), i.p.v. edge-to-edge over de hele zijbalk. */
.sidebar-inner {
  width: 100%;
}
@media (min-width: 900px) {
  .sidebar-inner {
    width: 290px;
    margin: 0 auto;
  }
}

.sidebar-logo-box {
  background: #fff;
  padding: 1.5rem 0;
  text-align: center;
}
.sidebar-logo {
  max-width: 290px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.sidebar-dark {
  background: rgba(24, 24, 24, 0.92);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}
.sidebar-nav a {
  display: block;
  padding: 10px 0 10px 38px;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}
/* Geen hover-stijl: menu ziet er op touch en met muis hetzelfde uit. Alleen de actieve pagina is oranje. */
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.sidebar-contact {
  padding: 1.5rem 2rem;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.sidebar-contact h4 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #fff;
  margin-bottom: 0.75rem;
}
.sidebar-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0;
}
.sidebar-contact a {
  color: #fff;
}
.sidebar-contact .icon {
  color: var(--accent);
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
@media (hover: hover) {
  .sidebar-contact a:hover {
    color: var(--accent);
  }
}

.sidebar-cta-wrap {
  padding: 0.5rem 2rem 2rem;
}
.sidebar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 400;
  padding: 12px 15px;
  font-size: 15px;
  transition: opacity 0.2s ease;
}
.sidebar-cta:hover {
  opacity: 0.9;
}

.layout-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.layout-main > .site-footer {
  margin-top: auto;
}

/* Hero: edge-to-edge met compacte overlay-box rechtsboven, geen donkere
   gradient over de hele foto (zoals het origineel). */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-content {
  position: absolute;
  top: 2rem;
  right: 2rem;
  left: auto;
  z-index: 2;
  max-width: 340px;
  background: rgba(40, 38, 35, 0.68);
  color: #fff;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

/* Intro-balk: H4-stijl tekst + gouden CONTACT-knop, zoals origineel */
.intro-row h4 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.3;
  color: #222;
}

/* Drie-koloms iconen-rij onder de hero (Portfolio / Nieuwe creatie / Mooi?) */
.teaser-row-wrap {
  background: #f4f4f4;
}
.teaser-row {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .teaser-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.teaser-icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.teaser-item h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: #2e2e2e;
  margin-bottom: 0.5rem;
}
.teaser-item p {
  color: #777;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* "IEDER BEELD IS UNIEK!" — parallax achtergrond + donker overlay-kader rechts */
.madonna-row {
  position: relative;
  background-image: url('media/beeld-background.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-color: #c1c1c1;
  background-size: auto 100%;
}
.madonna-card {
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  padding: 2.5rem;
  max-width: 32rem;
  margin-left: auto;
}
.madonna-card h4 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 24px;
  margin-bottom: 1rem;
}
.madonna-card h5 {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.madonna-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* Testimonial-sectie: gouden achtergrond, zoals origineel */
.testimonial-row {
  background: #e1af00;
  color: #fff;
}
.testimonial-row .punchline {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
.testimonial-row h4 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #fff;
}
.testimonial-bubble {
  position: relative;
  background: #fff;
  color: #555;
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  font-style: italic;
  line-height: 1.6;
}
.testimonial-bubble::after {
  content: "";
  position: absolute;
  left: 2.25rem;
  bottom: -14px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #fff;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  font-weight: 600;
}
.testimonial-author img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fff;
  flex-shrink: 0;
}

/* Uitgelichte beelden op de homepage */
.feature-card {
  display: block;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 2px 10px rgba(46, 32, 19, 0.1);
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}
.feature-card:hover img {
  transform: scale(1.06);
}
.feature-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(46, 32, 19, 0.85), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Beeldenbank-gridpagina (zelfde kaart-stijl, los bestand zodat beide pagina's 'm kunnen gebruiken) */
.gallery-link {
  display: block;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 2px 10px rgba(46, 32, 19, 0.08);
}
.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}
.gallery-link:hover img {
  transform: scale(1.06);
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(46, 32, 19, 0.85), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Proces-stappen */
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step p {
  color: #666;
  line-height: 1.6;
  padding-top: 0.4rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.guestbook-entry {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.guestbook-entry:last-child {
  border-bottom: none;
}

.site-footer {
  background: var(--dark);
}

/* Detailpagina per beeld */
.beeld-hero {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 1.25rem;
}
.beeld-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.beeld-meta div {
  background: #faf6f0;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
}
.beeld-meta p:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.beeld-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .beeld-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
.beeld-gallery .gallery-link {
  border-radius: 0.5rem;
}
.beeld-audio {
  display: block;
  width: 100%;
  accent-color: var(--accent);
}

/* Lightbox (hergebruikt van het michellemerel-project) */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Beheerpagina */
.admin-tab {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab.active {
  color: #222;
  border-bottom-color: var(--accent);
}
.admin-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}
.admin-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  color: #333;
}
.admin-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.admin-hint {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.25rem;
}
.admin-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.admin-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}
.admin-photo {
  position: relative;
  cursor: pointer;
}
.admin-photo input {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  accent-color: #c0392b;
}
.admin-photo:has(input:checked) img {
  opacity: 0.35;
  outline: 3px solid #c0392b;
}
