* { box-sizing: border-box; }
body {
    margin: 0; font-family: 'Inter', system-ui, sans-serif;
    color: #20303a; background: #f6f4ef; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.eyebrow {
    letter-spacing: 0.32em; text-transform: uppercase;
    font-size: 12px; font-weight: 400; color: #6c8f9c; margin: 0 0 18px;
}

/* Hero */
.hero {
    background:
        radial-gradient(120% 90% at 50% -10%, #1d4753 0%, #0d2730 60%, #081c23 100%);
    color: #eef6f8; padding: 16vh 6vw 14vh; text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero .eyebrow { color: #9fd6e0; }
.hero h1 {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: clamp(38px, 6vw, 76px); line-height: 1.05; margin: 0 0 24px;
}
.hero .lead { font-weight: 300; font-size: clamp(15px, 1.7vw, 19px); opacity: 0.86; margin: 0 auto 36px; max-width: 620px; }
.btn {
    display: inline-block; background: #9fd6e0; color: #0d2730;
    text-decoration: none; font-weight: 500; letter-spacing: 0.04em;
    padding: 14px 30px; border-radius: 40px; transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: #c2e8ef; transform: translateY(-2px); }

/* Templates */
.templates { max-width: 1080px; margin: 0 auto; padding: 9vh 6vw; }
.templates h2 {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: clamp(28px, 3.4vw, 44px); text-align: center; margin: 0 0 48px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(20,40,50,0.08); transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20,40,50,0.14); }
.swatch { height: 140px; display: block; }
.swatch--water   { background: radial-gradient(120% 100% at 50% 0%, #143a47, #0b1f29); }
.swatch--garden  { background: radial-gradient(120% 100% at 50% 0%, #2a4421, #16280f); }
.swatch--trees   { background: radial-gradient(120% 100% at 50% 0%, #3a2c14, #221808); }
.swatch--blossom { background: radial-gradient(120% 100% at 50% 0%, #4a2438, #2a1622); }
.swatch--photo  { background-size: cover; background-position: center; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body strong { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; }
.card-body em { font-style: normal; font-size: 14px; opacity: 0.7; min-height: 40px; }
.card-body .price { font-weight: 500; color: #2b7a8c; margin-top: 4px; }

.site-footer { text-align: center; padding: 6vh 6vw; color: #7d8a91; font-size: 13px; }

/* ── Navigatie ──────────────────────────────────────────── */
.topnav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 6vw; background: #fff; border-bottom: 1px solid #e7e2d8;
    position: sticky; top: 0; z-index: 50;
}
.topnav .brand {
    font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600;
    color: #143a47; text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #44535b; text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: #143a47; }
.nav-cta {
    background: #143a47; color: #fff !important; padding: 9px 18px; border-radius: 30px;
}
.nav-cta:hover { background: #1d4f60; }
.inline { display: inline; margin: 0; }
.link-btn {
    background: none; border: none; cursor: pointer; color: #44535b;
    font-size: 14px; font-family: inherit; padding: 0;
}
.link-btn:hover { color: #143a47; }
.link-danger { color: #b5483f; }

/* ── Flash ──────────────────────────────────────────────── */
.flash { padding: 12px 6vw; font-size: 14px; }
.flash-success { background: #e4f1ec; color: #1f6149; }
.flash-error   { background: #fbe7e4; color: #9b362d; }

/* ── Pagina's & formulieren ─────────────────────────────── */
.page { max-width: 1000px; margin: 0 auto; padding: 6vh 6vw 12vh; }
.page-narrow { max-width: 1140px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.page-head h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(28px, 4vw, 44px); margin: 0; }
.muted { color: #7d8a91; font-size: 14px; }

.form-wrap { display: flex; justify-content: center; padding: 8vh 6vw; }
.form-card { background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(20,40,50,0.10); padding: 44px; width: 100%; max-width: 460px; }
.form-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 32px; margin: 0 0 6px; }
.form-sub { color: #7d8a91; margin: 0 0 28px; }
.form-foot { margin-top: 22px; font-size: 14px; color: #7d8a91; text-align: center; }
.form-foot a, .form-card a { color: #2b7a8c; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: #3a4a52; margin-bottom: 6px; }
.field small { color: #9aa6ac; font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #d4cec3; border-radius: 9px;
    font-family: inherit; font-size: 15px; background: #fcfbf8; color: #20303a;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: #2b7a8c; background: #fff;
    box-shadow: 0 0 0 3px rgba(43,122,140,0.12);
}
.err { display: block; color: #b5483f; font-size: 12.5px; margin-top: 5px; font-style: normal; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }

.btn-block { width: 100%; text-align: center; margin-top: 8px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: #2b7a8c; border: 1px solid #cfe3e7; }
.btn-ghost:hover { background: #eef6f8; transform: none; }

/* Blokken in het presentatieformulier */
.block { border: none; padding: 0; margin: 0 0 36px; }
.block legend {
    font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600;
    color: #143a47; padding: 0; margin-bottom: 16px;
}
.block-standalone { margin-top: 48px; padding-top: 36px; border-top: 1px solid #e7e2d8; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.autosave-status { margin-right: auto; font-size: 13px; color: #7d8a91; transition: color 0.2s; }
.autosave-status.ok { color: #2f8f64; }
.autosave-status.fail { color: #b5483f; }

/* Op brede pagina's losse velden niet onnodig laten uitrekken. */
.page-narrow .block > .field > input,
.page-narrow .block > .field > textarea { max-width: 720px; }

/* Templatekeuze */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tpl-card {
    position: relative; cursor: pointer; border: 2px solid #e2ddd3; border-radius: 12px;
    overflow: hidden; background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.tpl-card:hover { box-shadow: 0 8px 22px rgba(20,40,50,0.1); }
.tpl-card.is-selected { border-color: #2b7a8c; box-shadow: 0 0 0 3px rgba(43,122,140,0.14); }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-swatch { height: 72px; display: block; }
.tpl-name { font-weight: 600; padding: 10px 12px 2px; font-size: 15px; }
.tpl-desc { padding: 0 12px 12px; font-size: 12px; color: #7d8a91; line-height: 1.4; }

.hobby-input {
    width: 100%; padding: 10px 13px; border: 1px solid #d4cec3; border-radius: 9px;
    font-family: inherit; font-size: 15px; background: #fcfbf8; margin-bottom: 10px;
}
.hobby-input:focus { outline: none; border-color: #2b7a8c; background: #fff; }

/* Dashboard */
.empty { text-align: center; padding: 8vh 0; color: #7d8a91; }
.empty .btn { margin-top: 16px; }
.pres-list { display: flex; flex-direction: column; gap: 12px; }
.pres-row {
    display: flex; align-items: center; gap: 16px; background: #fff;
    border-radius: 12px; padding: 14px 18px; box-shadow: 0 6px 18px rgba(20,40,50,0.06);
}
.swatch-sm { width: 46px; height: 46px; border-radius: 9px; flex: none; }
.pres-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pres-main strong { font-size: 16px; }
.pres-actions { display: flex; align-items: center; gap: 14px; }
.pres-actions a { color: #2b7a8c; text-decoration: none; font-size: 14px; }

/* Foto-beheer */
.upload-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.photo-item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(20,40,50,0.08); }
.photo-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.photo-tools { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.cap-form { margin: 0; }
.cap-form input { width: 100%; padding: 6px 8px; border: 1px solid #ddd6ca; border-radius: 6px; font-size: 13px; }
.photo-actions { display: flex; align-items: center; gap: 6px; min-height: 32px; }
.cap-status { margin-right: auto; font-size: 12px; color: #7d8a91; transition: color 0.2s; }
.cap-status.ok { color: #2f8f64; }
.cap-status.fail { color: #b5483f; }
.del-form { margin: 0; }
.icon-btn {
    flex: none; width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ddd6ca; background: #fff; border-radius: 7px;
    color: #2b7a8c; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: #eef6f8; border-color: #aacdd5; }
.icon-btn.icon-danger { color: #b5483f; }
.icon-btn.icon-danger:hover { background: #fbe7e4; border-color: #ecbfb8; }
