/* kerkweg.css - Kantoorvilla Kerkweg (2026-10-27). Phone first: the base rules are for a phone,
   the @media (min-width: ...) blocks add the wider layouts. No framework, no web fonts. */

:root {
    --ink: #1c2a25;          /* text */
    --muted: #5b6862;
    --green: #1f3a32;        /* deep green: header, buttons */
    --green-2: #2d5246;
    --amber: #d39a3a;        /* the lit windows in the hero photo */
    --cream: #f7f3ec;        /* alternating sections */
    --paper: #ffffff;
    --line: #e4ddd1;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(28, 42, 37, .06), 0 6px 20px rgba(28, 42, 37, .08);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bar-h: 64px;           /* bottom action bar on a phone */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 17px/1.6 var(--sans);
    color: var(--ink);
    background: var(--paper);
    padding-bottom: var(--bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-alt { background: var(--cream); }
.kicker {
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
    color: var(--amber); margin-bottom: .4em;
}
.intro { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.note { color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .8em 1.3em; border-radius: 999px; border: 2px solid var(--green);
    background: var(--green); color: #fff; font-weight: 600; text-decoration: none;
    transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--green); border-color: #fff; }
.btn-light:hover { background: var(--cream); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .8); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.pill {
    display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
    color: var(--ink); text-decoration: none; font-weight: 600;
}
.pill svg { color: var(--green-2); }

/* ------------------------------------------------------------- top bar */
.topbar {
    position: fixed; inset: 0 0 auto; z-index: 20; height: 60px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 20px; color: #fff;
    transition: background .25s, box-shadow .25s;
}
.topbar.solid { background: rgba(31, 58, 50, .96); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.brand span { color: var(--amber); }
.topnav { display: none; }
.topcall {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, .15); color: #fff; text-decoration: none;
}
.topcall span { display: none; }

/* ------------------------------------------------------------- hero */
.hero {
    position: relative; min-height: 88svh; display: flex; align-items: flex-end;
    color: #fff; overflow: hidden; background: var(--green);
}
.hero picture, .hero picture img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
}
.hero::after {   /* darker at the top (header) and at the bottom (text) */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 18, .55) 0%, rgba(10, 22, 18, 0) 22%,
                                rgba(10, 22, 18, .15) 45%, rgba(10, 22, 18, .85) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 0 20px 40px; max-width: 760px; }
.eyebrow { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-bottom: .6em; }
.hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.8rem); margin-bottom: .35em; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.lead { font-size: 1.1rem; opacity: .95; max-width: 46ch; }
.status { margin: 0 0 1.4em; }
.status > span {
    display: inline-flex; align-items: center; gap: .55em; padding: .4em .9em;
    border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
    font-size: .92rem; font-weight: 600;
}
.dot { width: .6em; height: .6em; border-radius: 50%; background: #6fd08c; box-shadow: 0 0 0 4px rgba(111, 208, 140, .25); }
.status-full .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(211, 154, 58, .25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Vacant or full: decided by whether any room is shown (no script needed) */
.status-vacant { display: none !important; }
body:has(.room:not([hidden])) .status-vacant { display: inline-flex !important; }
body:has(.room:not([hidden])) .status-full { display: none !important; }
body:has(.room:not([hidden])) .full-notice { display: none; }
body:not(:has(.room:not([hidden]))) .rooms-note { display: none; }

/* ------------------------------------------------------------- facts */
.facts {
    list-style: none; margin: 0; padding: 18px 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px;
    background: var(--green); color: #fff; text-align: center;
}
.facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--amber); }
.facts span { font-size: .85rem; opacity: .85; }

/* ------------------------------------------------------------- te huur */
.full-notice {
    background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--amber);
    border-radius: var(--radius); padding: 24px;
}
.full-notice p { color: var(--muted); }
.rooms { display: grid; gap: 20px; }
.room {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.room-body { flex: 1; display: flex; flex-direction: column; }
.room dl { margin-top: auto !important; }   /* prices on one line across the cards */
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f2f5f8; padding: 8px; }
.room-body { padding: 18px 20px 20px; }
.room h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.room h3 span { font-family: var(--sans); font-size: .95rem; color: var(--green-2); background: var(--cream); padding: .15em .6em; border-radius: 999px; white-space: nowrap; }
.room-where { color: var(--muted); font-size: .95rem; }
.room dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.room dt { color: var(--muted); }
.room dd { margin: 0; font-weight: 600; text-align: right; }
.rooms-note { margin-top: 18px; }

/* ------------------------------------------------------------- het pand */
.features { display: grid; gap: 14px; margin-top: 28px; }
.feature {
    background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
    display: grid; grid-template-columns: 44px 1fr; column-gap: 14px;
}
.feature svg {
    grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px;
    background: var(--cream); fill: var(--green-2);
}
.feature h3 { font-size: 1.05rem; margin: 0 0 .2em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.gallery {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 32px 20px 8px; scrollbar-width: thin;
}
.gallery a { flex: 0 0 82%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------- huurders */
.tenants { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.tenants a, .tenants div {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink); background: #fff; height: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.tenants a:hover { border-color: var(--green-2); box-shadow: var(--shadow); }
.mono {
    grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: var(--green); color: var(--amber);
    font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
}
.tenants strong { line-height: 1.3; }
.tenants strong + span { color: var(--muted); font-size: .9rem; line-height: 1.35; }

/* ------------------------------------------------------------- kosten */
details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
summary {
    cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--green-2); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px; color: var(--muted); }
details p:last-child { padding-bottom: 6px; }

/* ------------------------------------------------------------- ligging */
.location { display: grid; gap: 24px; }
.location img { border-radius: var(--radius); box-shadow: var(--shadow); }
address { font-style: normal; font-weight: 600; margin-bottom: 1.2em; }

/* ------------------------------------------------------------- contact */
.contact { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.card {
    background: var(--green); color: #fff; border-radius: calc(var(--radius) + 6px);
    padding: 28px 24px; box-shadow: var(--shadow);
}
.card p { opacity: .92; }
.card .btn { background: var(--amber); border-color: var(--amber); color: var(--green); }
.card .btn:hover { background: #e2ab4d; }
/* the meldingenlijst form (on the green card) */
.signup { display: grid; gap: 14px; margin-top: 8px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.field label span { color: var(--amber); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 16px;   /* 16px: phones don't zoom in on the field */
    padding: .65em .8em; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .95); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; }
.field.invalid input, .field.invalid select { border-color: #ffb4a8; box-shadow: 0 0 0 2px #ffb4a8; }
.field-msg { display: block; color: #ffd1c9; font-size: .85rem; margin-top: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; opacity: .95; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.consent.invalid span { text-decoration: underline wavy #ffb4a8; }
.form-error { background: rgba(255, 180, 168, .18); border-left: 4px solid #ffb4a8; padding: 10px 12px; border-radius: 8px; margin: 0; }
.signup .btn { justify-content: center; }
.signup .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-done { margin-top: 8px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .1); border-left: 4px solid var(--amber); }
.signup-done h3 { margin-bottom: .3em; }
.done-small { font-size: .9rem; opacity: .8; margin: 0; }

.person { padding: 28px 4px 0; }
.person p { color: var(--muted); }
.person-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------- footer + action bar */
.footer { text-align: center; padding: 28px 20px; color: var(--muted); font-size: .9rem; background: var(--cream); }
.footer p { margin: .2em 0; }

.actionbar {
    position: fixed; inset: auto 0 0; z-index: 20; height: var(--bar-h);
    display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.actionbar a {
    display: flex; align-items: center; justify-content: center; gap: .45em;
    border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--green);
    background: var(--cream);
}
.actionbar a.primary { background: var(--green); color: #fff; }

/* ------------------------------------------------------------- lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 18, 15, .88); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 8px; }
.lb-close {
    position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
    display: grid; place-items: center;
}

/* ============================================================= wider screens */
@media (min-width: 640px) {
    .facts { grid-template-columns: repeat(4, 1fr); padding: 22px 20px; }
    .rooms, .features { grid-template-columns: 1fr 1fr; }
    .tenants { grid-template-columns: 1fr 1fr; }
    .gallery a { flex-basis: 46%; }
    .signup { grid-template-columns: 1fr 1fr; }
    .signup .wide { grid-column: 1 / -1; }
    .hero-text { padding: 0 40px 56px; }
}

@media (min-width: 960px) {
    body { padding-bottom: 0; font-size: 18px; }
    .actionbar { display: none; }
    .topbar { padding: 0 32px; height: 68px; }
    .topnav { display: flex; gap: 28px; margin-left: auto; }
    .topnav a { color: #fff; text-decoration: none; font-weight: 500; opacity: .9; }
    .topnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
    .topcall { width: auto; height: auto; padding: .5em 1em; border-radius: 999px; gap: .5em; }
    .topcall span { display: inline; font-weight: 600; }
    .hero { min-height: 92vh; }
    .hero-text { padding: 0 0 80px; margin-left: max(32px, calc((100vw - 1120px) / 2 + 20px)); }
    .section { padding: 88px 0; }
    .rooms { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .tenants { grid-template-columns: repeat(3, 1fr); }
    .gallery { padding: 48px max(20px, calc((100vw - 1120px) / 2 + 20px)) 8px; }
    .gallery a { flex-basis: 32%; }
    .location { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
    .contact .narrow { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; max-width: 1120px; align-items: start; }
    .person { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
