/* Makelaar Midden Frankrijk — thème Grav */
@font-face { font-family: 'Roboto'; font-weight: 300; font-style: normal; font-display: swap;
  src: url('../fonts/roboto-v19-latin-300.woff2') format('woff2'), url('../fonts/roboto-v19-latin-300.woff') format('woff'); }
@font-face { font-family: 'Roboto'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/roboto-v19-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v19-latin-regular.woff') format('woff'); }
@font-face { font-family: 'Roboto'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../fonts/roboto-v19-latin-500.woff2') format('woff2'), url('../fonts/roboto-v19-latin-500.woff') format('woff'); }
@font-face { font-family: 'Roboto'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/roboto-v19-latin-700.woff2') format('woff2'), url('../fonts/roboto-v19-latin-700.woff') format('woff'); }

:root {
  --primary: #c4074e;
  --primary-dark: #a0063f;
  --plum: #622043;
  --gradient: linear-gradient(100deg, #622043 15%, #c4074e 100%);
  --text: #777;
  --heading: #111;
  --border: #e6e6e6;
  --bg-soft: #f7f5f6;
  --radius: 4px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .12);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 300 16px/1.8 'Roboto', system-ui, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; gap: 40px; }
.col-main { flex: 1 1 560px; min-width: 0; }
.col-aside { flex: 0 1 330px; }
.col-gallery { flex: 0 1 480px; min-width: 0; }
.col-half { flex: 1 1 420px; min-width: 0; }

.btn { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.2em; border-radius: var(--radius);
  font-weight: 500; font-size: 15px; line-height: 1.4; border: 0; cursor: pointer; transition: background .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand img { height: 62px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav ul a { color: var(--heading); font-weight: 400; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav ul a:hover, .main-nav ul a.active { border-color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--heading); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 16px 20px; box-shadow: var(--shadow); display: none; }
  .nav-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 16px; justify-content: center; }
}

/* Hero (home) */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; background: #444 center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 70%); }
.hero .container { position: relative; }
.hero-content { color: #fff; max-width: 620px; padding: 60px 0; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 50px); }
.hero-list { margin: 0 0 1.4em; padding-left: 1.2em; font-size: clamp(17px, 2vw, 21px); font-weight: 500; line-height: 1.6; }
.hero-cta { display: inline-flex; gap: .5em; align-items: center; color: #fff; background: var(--primary); padding: .55em 1.2em; border-radius: var(--radius); font-weight: 500; }
.hero-cta:hover { color: #fff; background: var(--primary-dark); }
.hero-cta .icon { transition: transform .2s; }
.hero-cta:hover .icon { transform: translateX(4px); }

/* Blocks */
.block { padding: 70px 0; }
.section-title { font-size: clamp(30px, 4vw, 44px); }
.section-subtitle { font-size: clamp(18px, 2.2vw, 24px); color: var(--heading); font-weight: 400; margin: -.4em 0 1.6em; }
.center { text-align: center; }
.intro .row { align-items: center; }
.intro-img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.showcase-dark { background: var(--gradient); }
.showcase-dark .section-title, .showcase-dark .section-subtitle, .showcase-dark .view-all a { color: #fff; }
.view-all { text-align: right; margin-top: 18px; }
.view-all a { font-weight: 500; font-size: 14px; color: var(--heading); display: inline-flex; gap: .4em; align-items: center; }

/* Slider (home) */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.s-prev, .s-next { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: var(--heading); box-shadow: var(--shadow); font-size: 26px; line-height: 1; cursor: pointer; }
.s-prev { left: -14px; } .s-next { right: -14px; }
@media (max-width: 1000px) { .slider-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .slider-track { grid-auto-columns: 85%; } .s-prev, .s-next { display: none; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 10px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: block; color: inherit; height: 100%; }
.card figure { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover figure img { transform: scale(1.04); }
.card-body { padding: 16px 18px 18px; }
.card h3 { font-size: 17px; margin-bottom: .4em; }
.card p { margin: 0; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: var(--radius); }
.badge-verkocht { background: #333; }
.badge-onder-bod, .badge-onder-compromis { background: var(--plum); }

/* Inner pages */
.page-banner { height: clamp(140px, 22vw, 300px); background: center/cover no-repeat; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; margin: 0; font-size: 13px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: #bbb; }
.breadcrumb a { color: var(--text); }
.page { padding-bottom: 70px; }
.page-title { font-size: clamp(30px, 4vw, 40px); margin-top: 10px; }
.page-subtitle { font-size: 20px; color: var(--heading); font-weight: 400; margin-top: -.4em; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.prose { font-size: 15px; }
.prose h2 { font-size: 24px; font-weight: 500; margin-top: 1.2em; }
.prose h3 { font-size: 20px; margin-top: 1.2em; }
.prose img { display: inline-block; margin: 8px 8px 8px 0; border-radius: var(--radius); }
.prose ul { padding-left: 1.3em; }
.aside-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-box h3 { font-size: 22px; }
.checklist, .plain { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.checklist .icon { color: #3aa35b; margin-right: 6px; }
.plain li { padding: 4px 0; }

/* Woning gallery */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 57 / 45; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; cursor: zoom-in; }
.gallery-slide.is-active { opacity: 1; z-index: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-prev, .g-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); font-size: 26px; line-height: 1; cursor: pointer; color: var(--heading); }
.g-prev { left: 10px; } .g-next { right: 10px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .woning .col-gallery { order: 2; } .woning .col-gallery .gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
@media (max-width: 899px) { .woning .col-gallery { order: -1; flex-basis: 100%; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lb-close { top: 10px; right: 10px; } .lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; bottom: 16px; color: #ddd; font-size: 14px; }

/* Forms (Grav form plugin) */
.form-group, .form-field { margin-bottom: 16px; }
.form-label label, .form-field label { display: block; color: var(--heading); font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.prose input[type=text], .prose input[type=email], .prose input[type=tel], .prose textarea {
  width: 100%; font: inherit; color: var(--heading); padding: 10px 12px; border: 1px solid #ccc; border-radius: var(--radius); }
.prose textarea { min-height: 150px; }
.prose input:focus, .prose textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.prose button[type=submit], .prose .button { background: var(--primary); color: #fff; border: 0; padding: .65em 1.6em; border-radius: var(--radius); font: 500 15px 'Roboto', sans-serif; cursor: pointer; }
.notices { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.notices.green, .notices.success { background: #e7f6ec; color: #22663a; }
.notices.red, .notices.error { background: #fdecef; color: #9b1235; }

/* Footer */
.site-footer { background: var(--gradient); color: #fff; padding: 40px 0 30px; font-size: 14px; }
.site-footer a { color: #fff; opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.social { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.social-item { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 4px; font-size: 18px; }
.social-facebook { background: #3b5998; } .social-instagram { background: #c13584; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-cols strong { display: block; margin-bottom: 10px; font-weight: 500; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { padding: 3px 0; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }
.copyright { font-size: 13px; padding: 16px 0; color: var(--heading); }
@media (max-width: 899px) {
  .gallery-thumbs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72px; overflow-x: auto; padding-bottom: 4px; }
}
