/* Casa Carpe Diem — casacarpediem.be
   Statische herbouw van de website. Geen externe afhankelijkheden. */

:root {
  /* Palet overgenomen uit de Elementor-kit van de originele site (post 9):
     primary #F8C285, secondary #54595F, text #7A7A7A */
  --sun: #f8c285;
  --sun-deep: #eaa856;
  --sun-ink: #6f4611;
  --sand: #fdf7f0;
  --sand-dark: #f6ead9;
  --ink: #54595f;
  --ink-soft: #7a7a7a;
  --sea: #54595f;
  --sea-dark: #3a3e43;
  --line: #ece2d4;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(44, 42, 38, .09);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* height:auto is essential — de <img>-tags dragen width/height-attributen, zonder
   deze regel houdt de browser de hoogte vast en wordt de foto uitgerekt. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--sun-ink); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.brand strong { font-size: 1.24rem; font-weight: 600; letter-spacing: .01em; }
.brand span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sun-ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  color: var(--ink);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .95rem;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a.active { color: var(--sea-dark); font-weight: 600; }

.nav a.cta {
  background: var(--sun);
  color: var(--sun-ink);
  padding: 9px 17px;
}
.nav a.cta:hover { background: var(--sun-deep); color: var(--sun-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(74vh, 660px);
  padding: 90px 0;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  background: #333 center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 28, .34), rgba(20, 26, 28, .58));
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero p {
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  max-width: 640px;
  margin: 0 auto 1.6em;
  color: rgba(255, 255, 255, .93);
}

.page-hero {
  padding: 84px 0;
  background: var(--sand);
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .2em; }
.page-hero p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--sun);
  color: var(--sun-ink);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid var(--sun);
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--sun-deep); border-color: var(--sun-deep); color: var(--sun-ink); }

.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .15); }

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tint { background: var(--sand); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: .74rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--sun-ink);
  margin-bottom: .8em;
  font-weight: 600;
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.flip .split-media { order: 2; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.7rem; display: block; margin-bottom: .4em; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--sea);
  font-weight: 700;
}

/* ---------- Facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.facts .num { display: block; font-size: 2rem; font-weight: 600; color: var(--sea); line-height: 1.1; }
.facts .lbl { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  line-height: 0;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery button:hover img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 20, 21, .93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 6px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 12px; font-size: .92rem; }
.lightbox .lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 18px; top: 18px; font-size: 1.3rem; }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 520px;
}
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--sand-dark); font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

.note { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sun);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.quote p { font-style: italic; margin-bottom: .7em; }
.quote cite { font-style: normal; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .9rem; font-weight: 600; }
input, textarea, select {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
textarea { min-height: 150px; resize: vertical; }

/* form.js van forms.alexweb.be voegt dit statusbericht zelf toe aan het formulier.
   In de tweekoloms-grid moet het over de volle breedte staan. */
.form-grid .form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.band {
  background: var(--sea);
  color: #fff;
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .9); max-width: 600px; margin: 0 auto 1.6em; }
.band .btn { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.band .btn:hover { background: var(--sun-deep); color: var(--sun-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9c4bb;
  padding: 56px 0 26px;
  font-size: .94rem;
}
.site-footer h4 { color: #fff; margin: 0 0 .8em; font-size: 1rem; }
.site-footer a { color: #c9c4bb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .86rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .grid.cols-3, .grid.cols-2, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .split { gap: 30px; }
  .split.flip .split-media { order: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; }
  .nav a { padding: 12px 8px; border-radius: 6px; }
  .nav a.cta { text-align: center; margin-top: 8px; }
  .site-header { position: relative; }
}

@media (max-width: 560px) {
  section { padding: 54px 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
}
