/*
Theme Name: Van Dijk (demo)
Description: Het thema van Autobedrijf Van Dijk, een verzonnen dealer voor de demo van VoertuigWP. Bewust een gewoon dealerthema dat niet op de site van VoertuigWP lijkt; alleen de demobalk is ons merk.
Author: VoertuigWP
Version: 0.1.0
Requires at least: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: vandijk-demo
*/

/* Marges van gewone alinea's en koppen in de inhoud: WordPress zet ze in een flow-layout op 0 */
.is-layout-flow > :is(p, ul, ol, dl) { margin-block: 1em; }
.is-layout-flow > h1 { margin-block: 0 .5em; }
.is-layout-flow > h2 { margin-block: 0 .75em; }
.is-layout-flow > h3 { margin-block: 1em; }

:root { --text: #1F2933; --muted: #5B6672; --line: #DDE2E7; --soft: #F3F5F7; --dark: #13202D; }

* { box-sizing: border-box; }
body { margin: 0; font-family: "Nunito Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; }
a { color: var(--wp--preset--color--primary); }
h1, h2, h3 { color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: 1.75rem; margin: 0 0 .75em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Knoppen van het thema; de plugin gebruikt wp-element-button en neemt deze stijl over. */
.button, .wp-element-button { display: inline-block; padding: .75rem 1.25rem; border: 0; border-radius: 6px; background: var(--wp--preset--color--primary); color: #fff; font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; }
.button:hover, .wp-element-button:hover { background: #163F70; }
.button--ghost { background: transparent; color: var(--wp--preset--color--primary); box-shadow: inset 0 0 0 2px currentColor; }
.button--ghost:hover { background: rgba(27, 79, 140, .08); }
.button--light { background: #fff; color: var(--dark); }
.button--light:hover { background: #E8EDF2; }
select, input, textarea { font: inherit; color: inherit; }
select { padding: .5rem 2rem .5rem .75rem; border: 1px solid #C3CBD3; border-radius: 4px; background: #fff; }

/* Kop en menu */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header > .container { display: flex; align-items: center; gap: 2rem; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--dark); text-decoration: none; }
.brand b { font-size: 1.6rem; font-weight: 900; letter-spacing: -.01em; }
.brand small { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--primary); margin-top: 4px; }
.site-nav { flex: 1; }
.site-nav .wp-block-navigation__container { gap: 1.5rem; }
.site-nav.wp-block-navigation .wp-block-navigation-item__content { color: var(--text); font-weight: 600; text-decoration: none; }
.site-nav.wp-block-navigation .wp-block-navigation-item__content:hover, .site-nav .current-menu-item > a { color: var(--wp--preset--color--primary); }
.site-nav .current-menu-item > a { box-shadow: 0 2px 0 currentColor; }
.header-phone { font-weight: 700; color: var(--dark); text-decoration: none; }

/* Home */
.hero { position: relative; color: #fff; background: var(--dark); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .container { position: relative; padding-top: 112px; padding-bottom: 112px; }
.hero h1 { color: #fff; max-width: 14em; }
.hero p { font-size: 1.2rem; max-width: 34em; margin: 0 0 1.75rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.section { padding: 72px 0; }
.section--soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.usps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.usps h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.usps p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.split p { color: var(--muted); }

/* Pagina's */
.page-title { padding: 36px 0 12px; }
.page-title p { color: var(--muted); max-width: 40em; margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 .75rem; }
.crumbs a { color: inherit; }
.main { padding-bottom: 80px; }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
.info-box { padding: 1.5rem; border-radius: 6px; background: var(--soft); }
.info-box h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.info-box p { margin: 0 0 1rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1.5rem; margin: 0 0 1rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }

/* Voet */
.site-footer { background: var(--dark); color: #C9D2DB; padding: 56px 0 24px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .hours dt { color: #C9D2DB; }
.site-footer .hours dd { color: #fff; font-weight: 400; }
.site-footer .base { margin-top: 40px; padding-top: 16px; border-top: 1px solid #2A3A4A; font-size: .85rem; }

@media (max-width: 781px) {
	.site-header > .container { gap: .75rem 1.5rem; padding-top: 12px; padding-bottom: 12px; }
	.site-nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 1.25rem; }
	.hero .container { padding-top: 64px; padding-bottom: 64px; }
	.usps, .split, .two-col, .site-footer .cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.section { padding: 48px 0; }
}

/* ===================================================================================
 * De demobalk: het enige van ons merk op de demo-site.
 * "Toon de plugin" zet een stippellijn om alles wat de plugin maakt; de rest is het thema.
 * =================================================================================== */

.demobar { background: #16181D; color: #fff; font: 14px/1.4 system-ui, sans-serif; }
.demobar .container { display: flex; align-items: center; gap: .5rem 1rem; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.demobar .vwp-logo { font: 800 16px/1 "JetBrains Mono", monospace; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.demobar .vwp-logo b { color: #C8162B; margin: 0 1px; font-weight: 800; }
.demobar .hint { color: #B9BCC4; }
.demobar .sp { flex: 1; }
.demobar button { font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; background: none; color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; padding: 7px 10px; cursor: pointer; }
.demobar button[aria-pressed="true"] { background: #fff; color: #16181D; }
.demobar .cta { color: #fff; font-weight: 700; }

.vwp-map [data-vwp] { position: relative; outline: 2px dashed #16181D; outline-offset: 6px; }
.vwp-map [data-vwp]::before { content: attr(data-vwp); position: absolute; z-index: 5; top: -8px; left: -8px; transform: translateY(-100%); padding: 5px 7px; border-radius: 4px 4px 0 0; background: #16181D; color: #fff; font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.vwp-map .hero [data-vwp] { outline-color: #fff; }
/* Ruimte voor het label, zodat het niets van de plugin afdekt. */
body.vwp-map [data-vwp] { margin-top: 36px; }
@media (max-width: 781px) { .demobar .hint { display: none; } }


/* WordPress: de pagina staat op volle breedte, .container begrenst; de plugin krijgt de breedte van het thema */
.wp-site-blocks { padding-left: 0; padding-right: 0; }
.wp-site-blocks > *, .entry-content > * { margin-block-start: 0; }
.voertuigwp-page { padding-top: 24px; padding-bottom: 80px; }
.button--light.wp-block-button > .wp-block-button__link { background: #fff; color: var(--dark); }
.button--light.wp-block-button > .wp-block-button__link:hover { background: #E8EDF2; }
.section-head > p { margin: 0; }
/* de voertuigpagina: het sjabloon van de plugin, met ruimte onder de kop en boven de voet */
main.is-layout-constrained { padding-top: 32px; padding-bottom: 80px; }
