/*
Theme Name: Deltarecht
Theme URI: https://www.deltarecht.nl
Author: Deltarecht
Description: Maatwerkthema voor Deltarecht juridisch advies. Maakt bij activeren automatisch de pagina's Home, Rechtsgebieden, Over ons en Contact aan, met menu en contactformulier. Geen externe fonts of trackers (AVG-vriendelijk).
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: deltarecht
*/

:root {
	--dr-ink: #102a3a;
	--dr-ink-2: #1d3d52;
	--dr-water: #2b7a83;
	--dr-water-light: #d8ebec;
	--dr-sand: #f4efe6;
	--dr-sand-2: #e7dfd0;
	--dr-text: #22303a;
	--dr-muted: #5b6b76;
	--dr-white: #ffffff;
	--dr-radius: 6px;
	--dr-max: 1120px;
	--dr-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--dr-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--dr-sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--dr-text);
	background: var(--dr-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--dr-water); }
a:hover { color: var(--dr-ink); }
h1, h2, h3, h4 {
	font-family: var(--dr-serif);
	color: var(--dr-ink);
	line-height: 1.2;
	font-weight: 600;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 999;
	background: var(--dr-white); padding: .6em 1em; top: 8px; left: 8px;
}

.dr-wrap { max-width: var(--dr-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.dr-header {
	background: var(--dr-white);
	border-bottom: 1px solid var(--dr-sand-2);
	position: sticky; top: 0; z-index: 50;
}
.admin-bar .dr-header { top: 32px; }
.dr-header .dr-wrap {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 76px; gap: 24px;
}
.dr-brand {
	display: flex; align-items: center; gap: 12px;
	text-decoration: none; color: var(--dr-ink);
}
.dr-brand:hover { color: var(--dr-ink); }
.dr-brand svg { flex: none; }
.dr-brand-name {
	font-family: var(--dr-serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .01em;
}
.dr-brand-tag {
	display: block; font-family: var(--dr-sans); font-size: .72rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--dr-muted); font-weight: 500; margin-top: -2px;
}
.dr-logo { height: 52px; width: auto; flex: none; }
.dr-footer .dr-logo { height: 48px; background: #fff; border-radius: 6px; padding: 4px; }

.dr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.dr-nav a {
	display: block; padding: 8px 14px; text-decoration: none; color: var(--dr-ink);
	font-weight: 500; font-size: .97rem; border-radius: var(--dr-radius);
}
.dr-nav a:hover { background: var(--dr-sand); color: var(--dr-ink); }
.dr-nav .current-menu-item > a,
.dr-nav .current_page_item > a { color: var(--dr-water); }
.dr-nav li:last-child a {
	background: var(--dr-ink); color: var(--dr-white); margin-left: 6px;
}
.dr-nav li:last-child a:hover { background: var(--dr-water); }

.dr-menu-toggle {
	display: none; background: none; border: 1px solid var(--dr-sand-2);
	border-radius: var(--dr-radius); padding: 8px 12px; font: inherit; color: var(--dr-ink); cursor: pointer;
}

@media (max-width: 820px) {
	.dr-menu-toggle { display: block; }
	.dr-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--dr-white); border-bottom: 1px solid var(--dr-sand-2); padding: 12px 24px 20px; }
	.dr-nav.is-open { display: block; }
	.dr-nav ul { flex-direction: column; align-items: stretch; }
	.dr-nav li:last-child a { margin-left: 0; text-align: center; margin-top: 6px; }
}
@media (max-width: 782px) { .admin-bar .dr-header { top: 46px; } }

/* ---------- Buttons ---------- */
.dr-btn, .wp-block-button__link {
	display: inline-block; padding: 14px 26px; border-radius: var(--dr-radius);
	background: var(--dr-water); color: var(--dr-white); text-decoration: none;
	font-weight: 600; font-size: 1rem; border: 0; cursor: pointer; transition: background .15s;
}
.dr-btn:hover, .wp-block-button__link:hover { background: var(--dr-ink); color: var(--dr-white); }
.dr-btn--ghost { background: transparent; color: var(--dr-white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.dr-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.dr-hero {
	position: relative; overflow: hidden;
	background: var(--dr-ink); color: #dce7ec;
	padding: 110px 0 120px;
}
.dr-hero h1 { color: var(--dr-white); max-width: 15em; }
.dr-hero p.dr-lead { font-size: 1.2rem; max-width: 34em; color: #c6d6de; }
.dr-hero .dr-eyebrow { color: #8fc6cb; }
.dr-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.dr-hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 120px; pointer-events: none; }
.dr-hero-lines { position: absolute; right: -80px; top: 40px; width: 520px; opacity: .18; pointer-events: none; }
@media (max-width: 820px) { .dr-hero { padding: 72px 0 100px; } .dr-hero-lines { display: none; } }

.dr-eyebrow {
	display: inline-block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
	font-weight: 600; color: var(--dr-water); margin-bottom: 14px;
}

/* ---------- Page header ---------- */
.dr-pagehead { background: var(--dr-sand); padding: 72px 0 56px; border-bottom: 1px solid var(--dr-sand-2); }
.dr-pagehead h1 { margin-bottom: .2em; }
.dr-pagehead p { color: var(--dr-muted); font-size: 1.15rem; max-width: 40em; margin: 0; }

/* ---------- Content ---------- */
.dr-main { padding: 72px 0 96px; }
.dr-entry > * { max-width: 760px; }
.dr-entry > .alignwide, .dr-entry > .wp-block-columns, .dr-entry > .wp-block-group { max-width: none; }
.dr-entry h2 { margin-top: 1.6em; }
.dr-entry > h2:first-child,
.dr-entry .dr-eyebrow + h2,
.dr-band > h2:first-child { margin-top: 0; }
.dr-entry p.dr-eyebrow { margin-bottom: 8px; }
.dr-entry ul { padding-left: 1.2em; }
.dr-entry li { margin-bottom: .35em; }

/* Cards (Columns block with class dr-cards) */
.wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 32px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; } }
.dr-cards .wp-block-column {
	background: var(--dr-white); border: 1px solid var(--dr-sand-2); border-radius: var(--dr-radius);
	padding: 28px 26px 18px; position: relative;
}
.dr-cards .wp-block-column::before {
	content: ""; position: absolute; left: 26px; top: 0; width: 36px; height: 3px; background: var(--dr-water);
}
.dr-cards h3 { margin-top: 4px; }
.dr-cards p { color: var(--dr-muted); font-size: .98rem; }

/* Band (Group block with class dr-band) */
.dr-band {
	background: var(--dr-sand); border-radius: var(--dr-radius);
	padding: 44px 40px 28px; margin: 48px 0;
}
.dr-band--dark { background: var(--dr-ink); color: #c6d6de; }
.dr-band--dark h2, .dr-band--dark h3 { color: var(--dr-white); }
.dr-band--dark .wp-block-button__link { background: var(--dr-water); }
@media (max-width: 600px) { .dr-band { padding: 32px 22px 18px; } }

/* Steps */
.dr-steps { counter-reset: drstep; }
.dr-steps .wp-block-column { counter-increment: drstep; }
.dr-steps .wp-block-column h3::before {
	content: counter(drstep, decimal-leading-zero); display: block;
	font-family: var(--dr-sans); font-size: .8rem; letter-spacing: .14em; color: var(--dr-water); margin-bottom: 6px;
}

/* Team */
.dr-team .wp-block-column { text-align: left; }
.dr-avatar {
	width: 72px; height: 72px; border-radius: 50%; background: var(--dr-water-light); color: var(--dr-ink);
	display: flex; align-items: center; justify-content: center; font-family: var(--dr-serif);
	font-size: 1.5rem; font-weight: 600; margin-bottom: 14px;
}
.dr-role { color: var(--dr-water) !important; font-weight: 600; font-size: .9rem !important; margin-top: -.5em; }

/* ---------- Contact ---------- */
.dr-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .dr-contact-grid { grid-template-columns: 1fr; } }
.dr-form { display: grid; gap: 18px; }
.dr-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--dr-ink); margin-bottom: 6px; }
.dr-form input[type=text], .dr-form input[type=email], .dr-form input[type=tel], .dr-form textarea, .dr-form select {
	width: 100%; padding: 13px 14px; font: inherit; color: var(--dr-text);
	border: 1px solid #cfd6da; border-radius: var(--dr-radius); background: var(--dr-white);
}
.dr-form input:focus, .dr-form textarea:focus, .dr-form select:focus {
	outline: none; border-color: var(--dr-water); box-shadow: 0 0 0 3px var(--dr-water-light);
}
.dr-form textarea { min-height: 160px; resize: vertical; }
.dr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .dr-form-row { grid-template-columns: 1fr; } }
.dr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--dr-muted); }
.dr-consent input { margin-top: 5px; }
.dr-consent label { font-weight: 400; color: var(--dr-muted); margin: 0; }
.dr-hp { position: absolute; left: -9999px; }
.dr-notice { padding: 14px 18px; border-radius: var(--dr-radius); margin-bottom: 20px; font-weight: 500; }
.dr-notice--ok { background: #e3f2ea; color: #1d5c3b; }
.dr-notice--err { background: #fbe9e7; color: #8a2a1d; }

.dr-card-info { background: var(--dr-sand); border-radius: var(--dr-radius); padding: 30px 28px; }
.dr-card-info h3 { margin-bottom: .8em; }
.dr-card-info dl { margin: 0; }
.dr-card-info dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dr-muted); font-weight: 600; margin-top: 16px; }
.dr-card-info dd { margin: 2px 0 0; color: var(--dr-ink); }
.dr-card-info a { color: var(--dr-ink); text-decoration: none; border-bottom: 1px solid var(--dr-sand-2); }

/* ---------- Footer ---------- */
.dr-footer { background: var(--dr-ink); color: #a9bdc8; padding: 64px 0 28px; font-size: .95rem; }
.dr-footer a { color: #d7e4ea; text-decoration: none; }
.dr-footer a:hover { color: var(--dr-white); }
.dr-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .dr-footer-grid { grid-template-columns: 1fr; } }
.dr-footer h4 { color: var(--dr-white); font-family: var(--dr-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.dr-footer ul { list-style: none; margin: 0; padding: 0; }
.dr-footer li { margin-bottom: 6px; }
.dr-footer .dr-brand-name { color: var(--dr-white); }
.dr-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
