/* ============================================================================
   Selena van Vliet – rustig, chique (offwhite/zand) met subtiel rood accent
   Fixes:
   - Homepage foto’s: geen uitrekken/overlopen (object-fit + vaste hoogtes waar nodig)
   - Kaarten op overige pagina’s terug (page-hero/content-card/two-col)
   - Nav “Ontwerper” met klein “Nieuw” label
   ============================================================================ */

/* Reset */
*{margin:0;padding:0;box-sizing:border-box}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}

:root{
  --bg: #faf9f6;         /* offwhite */
  --card: #ffffff;       /* wit */
  --sand: #efe6d8;       /* zacht zand */
  --sand-2:#e7d9c4;      /* zand rand */
  --text:#3f3a32;        /* warm donker */
  --muted:#6a6257;       /* zacht */
  --gold:#b89452;        /* luxe goud */
  --red:#b24a3a;         /* rustig rood accent */
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --radius: 16px;
}

/* Layout */
html,body{height:100%}
body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  display:flex;
  flex-direction:column;
}
main{flex:1;padding: 28px 5% 46px;max-width: 1120px;width:100%;margin:0 auto}

/* Shared “card” helper (mag overal gebruikt worden) */
.card{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

/* Header / nav */
header{
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav{
  display:flex;
  justify-content:center;
  flex-wrap: wrap;         /* voorkomt overflow / “buiten beeld” */
  gap: 18px;
  row-gap: 8px;
  padding: 14px 5%;
}
nav a{
  font-weight: 600;
  color: var(--text);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, transform .12s ease;
}
nav a:hover{color: var(--red); transform: translateY(-1px);}
nav a.active{color: var(--gold); border-bottom-color: var(--gold);}

/* Nav label voor Ontwerper */
nav a.nav-ontwerp{position: relative;}
nav a.nav-ontwerp::after{
  content: "Nieuw";
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  color: var(--text);
  background: rgba(255,255,255,.6);
  vertical-align: middle;
}
nav a.nav-ontwerp.active::after{
  border-color: rgba(196,170,105,.45);
  background: rgba(196,170,105,.12);
}

/* Typography */
h1,h2,h3{font-family: Georgia, "Times New Roman", serif;letter-spacing:.2px}
h1{font-size: clamp(2.1rem, 3.2vw, 3rem); margin-bottom: 6px}
h2{font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 14px; color: #2c2822}
p{color: var(--muted)}
.intro-text{font-size: 1.03rem; margin: 12px 0}

/* Buttons */
.cta-button{
  display:inline-block;
  background: linear-gradient(135deg, var(--gold), #caa66a);
  color: #fff;
  border: 1px solid rgba(0,0,0,.06);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-top: 12px;
  box-shadow: 0 10px 18px rgba(184,148,82,.25);
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
}
.cta-button:hover{
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 14px 22px rgba(184,148,82,.30);
}
.ghost-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  color: var(--text);
  background: rgba(255,255,255,.55);
  font-weight: 700;
  text-decoration:none;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.ghost-button:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.72);
  border-color: rgba(0,0,0,.18);
}

/* Hero wrapper + subtle stained glass background */
.hero-wrapper{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
.stained-glass-bg{
  position:absolute; inset:-40px;
  opacity: .18;
  filter: blur(10px);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(178,74,58,.34), transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(184,148,82,.40), transparent 55%),
    radial-gradient(circle at 30% 85%, rgba(239,230,216,.80), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(178,74,58,.20), transparent 60%),
    linear-gradient(135deg, rgba(184,148,82,.14), rgba(178,74,58,.10));
  background-size: 140% 140%;
  animation: glassFloat 14s ease-in-out infinite;
  pointer-events:none;
}
@keyframes glassFloat{
  0%   {transform: translate3d(0,0,0) scale(1); background-position: 0% 50%}
  50%  {transform: translate3d(-10px,8px,0) scale(1.03); background-position: 100% 40%}
  100% {transform: translate3d(0,0,0) scale(1); background-position: 0% 50%}
}
.hero-content{position: relative;padding: 34px 32px 26px}

/* Floating profile image */
.profile-image-container.float-right{
  float:right;
  width: 260px;
  height: 260px;
  margin: 18px 0 18px 34px;
  border-radius: 50%;
  overflow:hidden;
  box-shadow: 0 0 0 6px #fff, 0 0 0 14px rgba(184,148,82,.95), 0 18px 30px rgba(0,0,0,.12);
  background: var(--sand);
}
.profile-image-container.float-right img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.03);
}
.clearfix::after{content:"";display:table;clear:both}

/* Hero photo placeholder (als je een echte foto gebruikt) */
.hero-photo-placeholder{
  margin-top: 22px;
  background: linear-gradient(135deg, var(--sand), #fff);
  border: 1px dashed rgba(178,74,58,.35);
  border-radius: 14px;
  min-height: 240px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 18px;
  color: #756c60;
  overflow:hidden;              /* voorkomt “buiten beeld” */
}
.hero-photo-placeholder img{
  width:100%;
  height:240px;                 /* vaste hoogte + cover voorkomt uitrekken */
  object-fit:cover;
  display:block;
}

/* Info strip */
.info-strip{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.info-item{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 14px 14px 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.info-item h3{font-size: 1.05rem;margin-bottom: 6px;color: #2f2a24}
.info-item p{font-size:.95rem}

/* Ontwerper (CTA blok op homepage) */
.designer-cta{
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(196,170,105,.18), rgba(244,239,229,1));
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}
.designer-cta-inner{
  display:flex;
  gap: 18px;
  align-items: stretch;
  justify-content: space-between;
}
.designer-cta-text{flex: 1 1 520px;}
.designer-cta-text h2{margin: 0 0 8px; font-size: 1.45rem;}
.designer-cta-text p{margin: 0; color: var(--muted);}
.designer-cta-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.designer-cta-preview{
  flex: 0 0 240px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(255,255,255,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.designer-cta-preview-inner{
  display:flex;
  flex-direction:column;
  gap: 4px;
  padding: 10px;
}
.designer-cta-preview-inner span{font-size: 22px;line-height: 1;color: var(--gold)}
.designer-cta-preview-inner strong{font-size: 1.02rem;}
.designer-cta-preview-inner small{color: var(--muted);}

/* Stories */
.stories-section{margin-top: 28px}
.stories-intro{max-width: 820px;margin-bottom: 16px}
.stories-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.story-card{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.story-card h3{padding: 12px 14px 0; font-size: 1.12rem}
.story-card p{padding: 8px 14px 16px; font-size:.95rem}

/* FIX: echte <img> in cards */
.story-image{
  width:100%;
  height:190px;
  object-fit:cover;
  cursor: zoom-in;
  display:block;
}
/* placeholders */
.story-image-placeholder,
.video-gif-placeholder{
  height: 190px;
  background: linear-gradient(135deg, var(--sand), #fff);
  border-bottom: 1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#756c60;
  text-align:center;
  padding: 14px;
}

/* Gallery (klik om te vergroten) */
.image-gallery{
  margin-top: 18px;
  display:flex;
  gap: 14px;
}
/* FIX: echte <img> gebruiken, geen background hacks */
.image-placeholder{
  flex:1;
  width:100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 6px solid #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.image-placeholder:hover{transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.10)}

/* Portfolio grid */
.gallery-section{margin-top: 18px}
.gallery-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.project-card{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.project-card img{width:100%;height: 220px;object-fit: cover;cursor: zoom-in}
.project-card h3{padding: 12px 14px 0; color: #2f2a24}
.project-card p{padding: 8px 14px 16px; font-size:.95rem}

/* Contact page */
.contact-hero{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  position: relative;
  overflow:hidden;
}
.contact-hero::before{
  content:"";
  position:absolute; inset:-40px;
  opacity:.16;
  filter: blur(14px);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(178,74,58,.32), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(184,148,82,.36), transparent 60%);
  pointer-events:none;
}
.contact-hero > *{position:relative}

.contact-container{
  margin-top: 16px;
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 14px;
}
.contact-card,
.contact-info-block{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  padding: 16px;
}
.contact-title{margin-bottom: 10px}
.contact-form label{display:block;font-weight:700;margin: 10px 0 6px}
.contact-form input,
.contact-form textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fbfbfa;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(178,74,58,.45);
  box-shadow: 0 0 0 4px rgba(178,74,58,.10);
}

/* Accent box */
.contact-accent-box{
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 12px;
  background: linear-gradient(135deg, rgba(178,74,58,.10), rgba(184,148,82,.14));
  border: 1px solid rgba(178,74,58,.18);
  font-weight: 700;
  color: #3b2f28;
}

/* Extra pagina’s (diensten/werkwijze/restauratie/FAQ) — kaarten terug */
.page-hero{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  position: relative;
  overflow:hidden;
}
.page-hero::before{
  content:"";
  position:absolute; inset:-40px;
  opacity:.14;
  filter: blur(14px);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(178,74,58,.28), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(184,148,82,.34), transparent 60%);
  pointer-events:none;
}
.page-hero > *{position:relative}

.content-card{
  margin-top: 16px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  padding: 16px;
}
.two-col{
  margin-top: 16px;
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 14px;
}
.checklist{margin: 10px 0 0; padding-left: 18px; color: var(--muted);}
.checklist li{margin: 6px 0}
.faq-list{margin-top: 10px}
.faq-list details{
  background: #fbfbfa;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 12px;
  margin: 10px 0;
}
.faq-list summary{cursor: pointer;font-weight: 800;color: #2f2a24}
.faq-list p{margin-top: 8px}

/* Footer */
footer{
  background: rgba(255,255,255,.88);
  border-top: 1px solid rgba(0,0,0,.06);
  text-align:center;
  padding: 16px 5%;
  color: var(--muted);
}

/* Lightbox */
#lightbox-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  align-items:center;
  justify-content:center;
  z-index: 200;
  padding: 22px;
}
#lightbox-image{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.close-lightbox{
  position:fixed;
  top: 14px;
  right: 18px;
  font-size: 38px;
  line-height: 38px;
  color: #fff;
  cursor:pointer;
  user-select:none;
}

/* Responsive */
@media (max-width: 940px){
  .designer-cta-inner{flex-direction:column}
  .designer-cta-preview{flex: 0 0 auto; min-height: 120px}
  .info-strip{grid-template-columns:1fr}
  .stories-grid{grid-template-columns:1fr}
  .image-gallery{flex-direction:column}
  .profile-image-container.float-right{float:none;margin: 16px auto 14px;}
  .hero-content{padding: 26px 18px 20px}
  .contact-container{grid-template-columns: 1fr}
  .two-col{grid-template-columns:1fr}
}

/* =========================================================================
   Fix: Ontwerp pagina mag niet horizontaal overflowen
   ========================================================================= */
.page-ontwerp,
.page-ontwerp body{overflow-x: hidden;}
.page-ontwerp main{max-width: 1320px;width: 100%;overflow-x: clip;}
.page-ontwerp .designer-layout,
.page-ontwerp .designer-layout > *{min-width: 0;max-width: 100%;}
.page-ontwerp .stage,
.page-ontwerp .panel,
.page-ontwerp .stage-frame{max-width: 100%;overflow: hidden;}
.page-ontwerp #canvas{max-width: 100%;display: block;}
@media (max-width: 520px){
  .page-ontwerp main{padding-left: 14px; padding-right: 14px;}
  .page-ontwerp nav{padding-left: 14px; padding-right: 14px;}
}
