/* Moderne homepage (home.type = 'modern' in het siteprofiel)
   Wordt ALLEEN op de homepage geladen, en alles hangt onder .hm.
   De accentkleur (--hm-accent) zet de layout op basis van home.accent_color
   of het kleurschema. */

:root { --hm-accent: #378ac4; --hm-on-accent: #fff; --hm-accent-text: #378ac4; } /* standaard; de layout zet de echte kleuren erna */
/* --hm-accent      = vlakken (knoppen, contactbalk)
   --hm-on-accent   = tekst OP de accentkleur (wit of donker, automatisch leesbaar)
   --hm-accent-text = accentkleur als tekst op wit (zo nodig donkerder gemaakt) */

.hm {
	--hm-ink: #22282d;
	--hm-muted: #5f666c;
	--hm-line: #dedfe1;
	--hm-paper: #f5f5f3;
	--hm-radius: 3px;
	color: var(--hm-ink);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.hm *, .hm *:before, .hm *:after { box-sizing: border-box; }
.hm img { max-width: 100%; display: block; }
.hm svg { width: 22px; height: 22px; flex-shrink: 0; }
.hm a { text-decoration: none; }
.hm a:focus-visible { outline: 3px solid var(--hm-accent); outline-offset: 4px; }

.hm h1, .hm h2, .hm h3, .hm p, .hm figure, .hm blockquote { margin: 0; padding: 0; }
.hm h1, .hm h2, .hm h3 { color: var(--hm-ink); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-transform: none; }
.hm h2 { font-size: 40px; }
.hm h3 { font-size: 21px; }
.hm p { color: var(--hm-muted); }

.hm-container { width: 1180px; max-width: calc(100% - 48px); margin-left: auto; margin-right: auto; }
.hm-section { padding-top: 90px; padding-bottom: 90px; }
.hm-section--top-line { border-top: 1px solid var(--hm-line); }
.hm-tinted { background: var(--hm-paper); }

.hm-eyebrow { display: block; margin-bottom: 18px; color: var(--hm-accent-text); font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.hm-eyebrow--line { display: flex; align-items: center; gap: 13px; color: #fff; }
.hm-eyebrow--line:before { content: ''; width: 27px; height: 2px; background: var(--hm-accent); }

/* Knoppen en links */
.hm-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hm .hm-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 22px; border: 1px solid var(--hm-accent); border-radius: var(--hm-radius); background: var(--hm-accent); color: var(--hm-on-accent); font-size: 15px; font-weight: 600; line-height: 1.5; transition: filter .2s, transform .2s; }
.hm .hm-button:hover { filter: brightness(.9); transform: translateY(-2px); color: var(--hm-on-accent); }
.hm .hm-button--outline, .hm .hm-button--outline:hover { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hm .hm-button--outline:hover { background: rgba(255, 255, 255, .12); filter: none; }
.hm .hm-button--light { background: #fff; border-color: #fff; color: var(--hm-ink); }
.hm .hm-button--light:hover { color: var(--hm-ink); background: var(--hm-paper); filter: none; }
.hm .hm-link { display: inline-flex; align-items: center; gap: 16px; color: var(--hm-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.hm .hm-link:hover { color: var(--hm-accent-text); }

/* Hero */
.hm-hero { position: relative; z-index: 0; display: flex; align-items: center; min-height: 555px; overflow: hidden; background: var(--hm-ink); color: #fff; }
.hm-hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -2; }
.hm-hero-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 27, 31, .94) 0%, rgba(20, 27, 31, .8) 28%, rgba(20, 27, 31, .18) 72%, rgba(20, 27, 31, .12)); }
.hm-hero--plain .hm-hero-shade { display: none; }
.hm-hero-content { padding-top: 70px; padding-bottom: 80px; }
.hm .hm-hero h1 { max-width: 780px; color: #fff; font-size: 64px; font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.hm .hm-hero p { max-width: 540px; margin-top: 25px; color: #eceeef; font-size: 17px; }
.hm-hero-caption { position: absolute; right: 48px; bottom: 24px; padding-left: 15px; border-left: 2px solid var(--hm-accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hm-hero-caption span { display: block; margin-top: 3px; color: #ddd; font-size: 11px; }

/* Belofte-balk (eerste vier USP's): als groep gecentreerd, ook bij 1-3 USP's
   en als ze over meer regels verdeeld worden (flex in plaats van vaste kolommen) */
.hm-promise { background: var(--hm-paper); border-bottom: 1px solid var(--hm-line); }
.hm-promise .hm-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px; padding-top: 23px; padding-bottom: 23px; }
.hm-promise span { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.hm-promise svg { color: var(--hm-accent-text); }

/* Intro met CMS-tekst */
.hm-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; align-items: start; }
.hm .hm-prose { width: auto; }
.hm .hm-prose p { margin-top: 0; margin-bottom: 16px; font-size: 17px; line-height: 1.8; text-align: left; }
.hm .hm-prose h1, .hm .hm-prose h2, .hm .hm-prose h3 { margin: 28px 0 14px; font-size: 24px; }
.hm .hm-prose > :first-child { margin-top: 0; }
.hm .hm-prose a { color: var(--hm-accent-text); text-decoration: underline; }
.hm .hm-prose img { height: auto; margin: 16px 0; }

/* Koppen boven een blok */
.hm-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.hm-heading .hm-eyebrow { margin-bottom: 13px; }
.hm .hm-lead { max-width: 860px; margin-top: -12px; font-size: 17px; }

/* Werkzaamheden (projectcategorieën) */
.hm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px; }
.hm-card { overflow: hidden; background: #fff; border: 1px solid #e6e6e4; border-radius: var(--hm-radius); }
.hm-card img { width: 100%; aspect-ratio: 1.65; object-fit: cover; transition: transform .45s; }
.hm-card:hover img { transform: scale(1.025); }
.hm-card-body { padding: 27px; }
.hm .hm-card h3 a { color: var(--hm-ink); }
.hm .hm-card h3 a:hover { color: var(--hm-accent-text); }
.hm .hm-card p { min-height: 76px; margin-top: 13px; font-size: 15px; line-height: 1.65; }
.hm .hm-card .hm-link { margin-top: 20px; }

/* USP's */
.hm-usps { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 50px; row-gap: 40px; margin-top: 50px; }
.hm-usps .hm-item { padding-top: 27px; border-top: 1px solid var(--hm-line); }
.hm .hm-usps h3 { margin-top: 16px; }
.hm-usp-icon { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 50%; color: var(--hm-accent-text); background: var(--hm-paper); }
.hm .hm-usp-text, .hm .hm-usp-text p { margin-top: 13px; color: var(--hm-muted); font-size: 15px; }

/* Extra blok uit het CMS */
.hm .hm-extra .hm-prose { max-width: 860px; }

/* Team */
.hm-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hm-team img { width: 100%; aspect-ratio: 1.2; object-fit: cover; object-position: center 30%; border-radius: var(--hm-radius); }
.hm-team-caption { display: flex; align-items: center; justify-content: space-between; padding-top: 23px; }
.hm .hm-team-caption p { margin-top: 5px; font-size: 14px; }
.hm .hm-team-caption > a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #c9ccce; border-radius: 50%; color: var(--hm-ink); }
.hm .hm-team-caption > a:hover { color: var(--hm-accent-text); border-color: var(--hm-accent-text); }

/* Klantbeoordelingen */
.hm-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hm-reviews figure { padding: 30px; background: var(--hm-paper); border-top: 3px solid var(--hm-accent); }
.hm .hm-reviews blockquote, .hm .hm-reviews blockquote p { margin-top: 12px; padding: 0; background: none; color: var(--hm-muted); font-size: 15px; font-style: italic; border: 0; }
.hm-reviews figcaption { margin-top: 18px; font-size: 14px; font-weight: 600; }

/* Nieuws */
/* minmax(0, 1fr): beide kolommen altijd exact even breed, ook bij lange titels */
.hm-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.hm-news .hm-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
/* Elk bericht heeft een afbeeldingsvak van dezelfde maat (ook zonder eigen foto) */
.hm-news-media { display: block; width: 180px; height: 200px; overflow: hidden; background: var(--hm-paper); border-radius: var(--hm-radius); }
.hm-news-media img { width: 100%; height: 100%; object-fit: cover; }
/* Standaardafbeelding = logo: passend en met ruimte eromheen, niet bijgesneden */
/* wit vlak: logo's zijn vaak een JPG met witte achtergrond */
.hm-news-media--logo { display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid var(--hm-line); background: #fff; }
.hm-news-media--logo img { height: auto; max-height: 100%; object-fit: contain; }
.hm-news time { color: var(--hm-muted); font-size: 12px; }
.hm .hm-news h3 { margin-top: 9px; line-height: 1.3; }
.hm .hm-news h3 a { color: var(--hm-ink); }
.hm .hm-news h3 a:hover { color: var(--hm-accent-text); }
.hm .hm-news p { margin-top: 12px; font-size: 15px; }
.hm .hm-news .hm-link { margin-top: 16px; }

/* Contactbalk */
.hm-cta { padding: 56px 0; background: var(--hm-accent); color: var(--hm-on-accent); }
.hm-cta .hm-container { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hm .hm-cta .hm-eyebrow { margin-bottom: 12px; color: var(--hm-on-accent); }
.hm .hm-cta .hm-button--outline, .hm .hm-cta .hm-button--outline:hover { color: var(--hm-on-accent); border-color: currentColor; }
.hm .hm-cta h2 { max-width: 770px; color: var(--hm-on-accent); font-size: 36px; }
.hm .hm-cta .hm-actions { flex-shrink: 0; margin-top: 0; }

/* Contactbalk sluit direct aan op de footer: het thema geeft elke <footer>
   40px ruimte erboven (style.css: footer { margin-top: 40px }), wat na de
   gekleurde balk een witte strook geeft. Geldt voor de moderne en klassieke footer. */
.hm--ends-with-cta + footer { margin-top: 0; }

/* Header even breed als de inhoud (body.m-wide); zelfde regels als in modern.css,
   zodat dit ook werkt als alleen de moderne homepage aan staat. */
@media only screen and (min-width: 960px) {
	.m-wide header .container { width: 1200px; max-width: calc(100% - 28px); }
	.m-wide header .eight.columns { width: calc(50% - 20px); }
	.m-wide header .sixteen.columns { width: calc(100% - 20px); }
	.m-wide header .one-third.column { width: calc(33.333% - 20px); }
	.m-wide header .two-thirds.column { width: calc(66.666% - 20px); }
}

/* Tablet */
@media only screen and (max-width: 959px) {
	.hm h2 { font-size: 34px; }
	.hm .hm-hero h1 { font-size: 52px; }
	.hm-hero { min-height: 500px; }
	.hm-hero-caption { display: none; }
	.hm-promise .hm-container { column-gap: 36px; }
	.hm-intro { grid-template-columns: 1fr 1fr; gap: 40px; }
	.hm-cards { gap: 18px; }
	.hm-card-body { padding: 20px; }
	.hm .hm-card p { min-height: 0; font-size: 14px; }
	.hm-usps { column-gap: 25px; }
	.hm-team, .hm-reviews { gap: 20px; }
	.hm-news .hm-item { grid-template-columns: minmax(0, 1fr); }
	.hm-news-media { width: 100%; height: 220px; }
	.hm-cta .hm-container { gap: 30px; }
	.hm .hm-cta h2 { font-size: 30px; }
}

/* Mobiel */
@media only screen and (max-width: 767px) {
	.hm-container { max-width: calc(100% - 40px); }
	.hm-section { padding-top: 58px; padding-bottom: 58px; }
	.hm h2 { font-size: 30px; }
	.hm-hero { min-height: 520px; }
	.hm .hm-hero h1 { font-size: 42px; }
	.hm .hm-hero p { font-size: 16px; }
	.hm-hero-content { padding-top: 50px; padding-bottom: 50px; }
	.hm-hero-shade { background: linear-gradient(90deg, rgba(21, 28, 33, .91), rgba(21, 28, 33, .6)); }
	.hm .hm-button { padding: 13px 17px; gap: 14px; font-size: 14px; }
	.hm-promise .hm-container { column-gap: 24px; row-gap: 10px; }
	.hm-promise span { gap: 7px; font-size: 13px; }
	.hm-intro { grid-template-columns: 1fr; gap: 25px; }
	.hm-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
	.hm-cards { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
	.hm-card img { aspect-ratio: 1.3; }
	.hm-card-body { padding: 18px 15px; }
	.hm .hm-card h3 { font-size: 18px; }
	.hm .hm-card p { display: none; }
	.hm-usps { grid-template-columns: 1fr 1fr; gap: 28px 25px; margin-top: 30px; }
	.hm-team, .hm-reviews, .hm-news { grid-template-columns: 1fr; gap: 32px; }
	.hm-team img { aspect-ratio: 1.45; }
	.hm-cta { padding: 40px 0; }
	.hm-cta .hm-container { flex-direction: column; align-items: flex-start; gap: 26px; }
	.hm .hm-cta h2 { font-size: 28px; }
}

@media only screen and (max-width: 479px) {
	.hm .hm-hero h1 { font-size: 36px; }
	.hm-actions { flex-direction: column; align-items: flex-start; }
	.hm-cards, .hm-usps { grid-template-columns: 1fr; }
	.hm-card img { aspect-ratio: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
	.hm *, .hm *:before, .hm *:after { transition: none !important; }
}
