/*
Theme Name: Agten Hosting
Theme URI: https://agtenhosting.com
Description: Child theme van Twenty Twenty-Five voor Agten Hosting.
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Text Domain: agtenhosting
*/

:root {
	--ah-ink: #0B1220;
	--ah-ink-2: #111C2E;
	--ah-ink-line: #24344F;
	--ah-mist: #C7D2E0;
	--ah-teal: #14B8A6;
	--ah-teal-soft: #5EEAD4;
	--ah-line: #E3E8EF;
	--ah-muted: #5B6576;
	--ah-kb: #F2B632;
	--ah-pad-x: clamp(20px, 4vw, 40px);
}

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.ah-main { margin-block-start: 0 !important; }
.ah-page.ah-page > * { margin-block-start: 0; }
.ah-page.ah-page { margin-block-start: 0; }

.ah-section {
	padding: clamp(56px, 8vw, 104px) var(--ah-pad-x);
}
.ah-section.ah-tight { padding-block: clamp(40px, 5vw, 64px); }
.ah-soft { background: var(--wp--preset--color--accent-5); }

.ah-dark {
	background: var(--ah-ink);
	color: var(--ah-mist);
}
.ah-dark :is(h1, h2, h3, h4, strong) { color: #fff; }
.ah-dark a:where(:not(.wp-element-button)) { color: var(--ah-teal-soft); }
.ah-dark a:where(:not(.wp-element-button)):hover { color: #fff; }

.ah-hero {
	background:
		radial-gradient(1000px 500px at 85% -10%, rgba(20, 184, 166, .22), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, rgba(59, 130, 246, .14), transparent 60%),
		var(--ah-ink);
}
.ah-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-block: .3em .35em; }
.ah-hero.ah-small h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.ah-section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ah-lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); max-width: 40em; }
.ah-center { text-align: center; }
.ah-center .ah-lead { margin-inline: auto; }
.ah-muted { color: var(--ah-muted); }

.ah-eyebrow {
	display: inline-block;
	margin: 0;
	padding: .38em .85em;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-3);
	background: var(--wp--preset--color--accent-2);
}
.ah-dark .ah-eyebrow { color: var(--ah-teal-soft); background: rgba(20, 184, 166, .14); }

/* ---------- Knoppen ---------- */
.wp-element-button { padding: .8em 1.35em; transition: background-color .15s, color .15s, border-color .15s; }
.is-style-outline > .wp-element-button {
	background: transparent;
	color: var(--ah-ink);
	border: 2px solid var(--ah-line);
}
.is-style-outline > .wp-element-button:hover { border-color: var(--ah-ink); background: transparent; }
.ah-dark .is-style-outline > .wp-element-button { color: #fff; border-color: rgba(255, 255, 255, .28); }
.ah-dark .is-style-outline > .wp-element-button:hover { border-color: #fff; color: #fff; }

/* ---------- Kaarten & rasters ---------- */
/* Kaarten vullen de rij en staan altijd in het midden, ook als er minder kaarten zijn dan kolommen. */
.ah-grid.ah-grid.is-layout-grid {
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px));
	justify-content: center;
}
.ah-card {
	height: 100%;
	box-sizing: border-box;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--ah-line);
	border-radius: 18px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ah-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(11, 18, 32, .35); border-color: #d3dae4; }
.ah-card > :first-child { margin-top: 0; }
.ah-card h3 { font-size: 1.25rem; margin-block: .6em .4em; }
.ah-card p:where(:not([class*="ah-"])) { color: var(--ah-muted); margin-block: .4em; font-size: 1rem; }
.ah-card .ah-eyebrow { margin-block: .9em .2em; }
.ah-card .ah-link-arrow { margin-block: .9em 0; }
.ah-dark .ah-card { background: var(--ah-ink-2); border-color: var(--ah-ink-line); }
.ah-dark .ah-card p:where(:not([class*="ah-"])) { color: var(--ah-mist); }

.ah-icon-img { margin: 0 !important; }
.ah-icon-img img {
	width: 52px; height: 52px; padding: 12px; box-sizing: border-box;
	border-radius: 14px; background: var(--wp--preset--color--accent-2);
}

.ah-feature { position: relative; padding-top: 40px; }
.ah-feature::before {
	content: ""; position: absolute; left: 28px; top: 28px;
	width: 36px; height: 4px; border-radius: 4px; background: var(--ah-teal);
}

.ah-step-num {
	display: grid; place-items: center;
	width: 44px; height: 44px; margin: 0;
	border-radius: 50%;
	font-weight: 800; font-size: 1.1rem;
	color: var(--ah-ink); background: var(--ah-teal);
}

.ah-tool-card .ah-icon-img img { background: none; padding: 0; width: 56px; height: 56px; border-radius: 14px; }
.ah-tool-card.ah-soon { border-style: dashed; background: transparent; }
.ah-link-arrow a { font-weight: 700; text-decoration: none; }
.ah-link-arrow a::after { content: " →"; transition: margin .15s; }
.ah-link-arrow a:hover::after { margin-left: 4px; }

.ah-art img { display: block; width: 100%; height: auto; }
.ah-art.ah-shadow img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.ah-phone img { max-width: 300px; margin-inline: auto; }

.ah-checks { list-style: none; padding-left: 0; }
.ah-checks li { position: relative; padding-left: 1.8em; margin-block: .5em; }
.ah-checks li::before {
	content: ""; position: absolute; left: 0; top: .45em;
	width: 1.05em; height: 1.05em; border-radius: 50%;
	background: var(--ah-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.2 2.6 2.6L12 5.4' fill='none' stroke='%230B1220' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- Code ---------- */
.wp-block-code {
	background: var(--ah-ink);
	color: #E6EDF5;
	border: 1px solid var(--ah-ink-line);
	border-radius: 12px;
	padding: 18px 20px;
	font-family: var(--wp--preset--font-family--fira-code, ui-monospace, Consolas, monospace);
	font-size: .88rem;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre;
}
.wp-block-code code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.ah-dark .wp-block-code { background: #050912; }
:not(pre) > code { background: var(--wp--preset--color--accent-5); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.ah-dark :not(pre) > code { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Tabel & FAQ ---------- */
.ah-table table { border-collapse: collapse; width: 100%; }
.ah-table :is(th, td) { border: 0; border-bottom: 1px solid var(--ah-line); padding: 14px 12px; text-align: left; vertical-align: top; }
.ah-table th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ah-muted); }
.ah-table td:first-child { font-weight: 700; white-space: nowrap; }

.wp-block-details {
	border: 1px solid var(--ah-line);
	border-radius: 14px;
	padding: 18px 22px;
	background: #fff;
}
.wp-block-details + .wp-block-details { margin-top: 12px; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: .6em; }
.wp-block-details p { color: var(--ah-muted); margin: .4em 0 0; }

/* ---------- Nieuws en lopende tekst ---------- */
.ah-main.ah-main > * { margin-block-start: 0; }
.wp-block-post-template.ah-grid.is-layout-grid { list-style: none; padding: 0; margin: 0; }
.wp-block-post-template.ah-grid > li { margin: 0; }
.ah-news-meta { gap: 10px 14px; align-items: center; font-size: .9rem; color: var(--ah-muted); }
.ah-dark .ah-news-meta { color: var(--ah-mist); }
.ah-news-meta .wp-block-post-terms.ah-eyebrow a { color: inherit; text-decoration: none; }
.ah-news-card .wp-block-post-title { font-size: 1.3rem; margin-block: .7em .3em; }
.ah-news-card .wp-block-post-title a { color: var(--ah-ink); text-decoration: none; }
.ah-news-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-3); }
.ah-news-card .wp-block-post-excerpt__excerpt { color: var(--ah-muted); font-size: 1rem; margin: .3em 0 .8em; }
.ah-news-card .wp-block-post-excerpt__more-text { display: none; }
a.wp-block-read-more.ah-link-arrow { font-weight: 700; text-decoration: none; }
a.wp-block-read-more.ah-link-arrow::after { content: " →"; }
.ah-news .wp-block-query-pagination { margin-top: 40px; gap: 12px; font-weight: 600; }
.ah-link-back a { font-weight: 700; text-decoration: none; }
.ah-hero .wp-block-post-title { font-size: clamp(2rem, 4.2vw, 3rem); margin-block: .4em 0; }

.ah-prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-block: 1.8em .5em; }
.ah-prose h3 { font-size: 1.2rem; margin-block: 1.5em .4em; }
.ah-prose .ah-card h3 { margin-top: 0; }
.ah-prose ul:not(.ah-checks) { padding-left: 1.2em; }
.ah-prose li { margin-block: .35em; }

.ah-footer-bottom a { color: inherit; }

/* ---------- Contact en formulier ---------- */
.ah-contact-cols { gap: 28px; }
.ah-stack > * + * { margin-top: 20px; }
.ah-stack .ah-card { height: auto; }
.ah-form-card { padding: clamp(24px, 4vw, 40px); }
.ah-form-card:hover { transform: none; box-shadow: none; border-color: var(--ah-line); }
.ah-form-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 0; }

.wpcf7 form { display: grid; gap: 18px; margin-top: 24px; }
.wpcf7 form > p, .wpcf7 form .ah-form-row > p { margin: 0; }
.ah-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wpcf7 label { display: block; font-weight: 700; font-size: .95rem; color: var(--ah-ink); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 :is(input[type="text"], input[type="email"], select, textarea) {
	display: block; width: 100%; box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #cfd6e0; border-radius: 10px;
	background: #fff; color: var(--ah-ink);
	font: inherit; font-weight: 400; font-size: 1rem;
	transition: border-color .15s, box-shadow .15s;
}
.wpcf7 select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235B6576' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; padding-right: 40px; }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 :is(input, select, textarea):focus { outline: none; border-color: var(--ah-teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, .25); }
.wpcf7 .wpcf7-quiz-label { display: block; margin-top: 4px; font-weight: 400; color: var(--ah-muted); }
.wpcf7 .wpcf7-quiz { margin-top: 6px; max-width: 200px; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ah-muted); }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ah-teal); flex: none; }
.wpcf7 input[type="submit"] {
	justify-self: start;
	padding: .85em 1.6em; border: 0; border-radius: 10px;
	background: var(--ah-teal); color: var(--ah-ink);
	font: inherit; font-weight: 700; cursor: pointer;
	transition: background-color .15s;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--accent-2); }
.wpcf7 input[type="submit"]:disabled { opacity: .6; cursor: wait; }
.wpcf7 .wpcf7-not-valid { border-color: #c4372a; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; color: #c4372a; font-size: .85rem; font-weight: 600; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 16px; border-radius: 10px; border-width: 1px; font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #1f8a46; background: #eaf7ef; color: #14532d; }
.wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output { border-color: #c4372a; background: #fdeeec; color: #7f1d1d; }
@media (max-width: 600px) { .ah-form-row { grid-template-columns: 1fr; } }

/* ---------- Kijkbox-accent ---------- */
.ah-kb .wp-element-button:where(:not(.is-style-outline > *)) { background: var(--ah-kb); color: #1a1405; }
.ah-kb .wp-block-button:not(.is-style-outline) .wp-element-button:hover { background: #ffd36b; }
.ah-kb .ah-eyebrow { color: var(--ah-kb); background: rgba(242, 182, 50, .14); }
.ah-kb .ah-feature::before, .ah-kb .ah-step-num { background: var(--ah-kb); }
.ah-kb.ah-hero {
	background:
		radial-gradient(900px 500px at 90% -10%, rgba(242, 182, 50, .20), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, rgba(20, 184, 166, .12), transparent 60%),
		#101216;
}
.ah-kb-icon img { width: 72px; height: 72px; border-radius: 18px; }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky; top: 0; z-index: 50;
	margin: 0;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.ah-header {
	padding: 12px var(--ah-pad-x);
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--ah-line);
}
.ah-brand { gap: 10px; }
.ah-brand .wp-block-site-logo img { border-radius: 9px; }
.ah-brand .wp-block-site-title { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.ah-brand .wp-block-site-title a { color: var(--ah-ink); text-decoration: none; }
.ah-header .wp-block-navigation { gap: 6px 26px; font-weight: 600; font-size: .98rem; }
.ah-header .wp-block-navigation a { text-decoration: none; color: var(--ah-ink); }
.ah-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-3); }

/* ---------- Footer ---------- */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
.ah-footer { padding: 64px var(--ah-pad-x) 32px; font-size: .95rem; }
.ah-footer .ah-brand .wp-block-site-title a { color: #fff; }
.ah-footer h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: .8em; }
.ah-footer-links { list-style: none; padding: 0; margin: 0; }
.ah-footer-links li { margin: .45em 0; }
.ah-footer-links a { color: var(--ah-mist) !important; text-decoration: none; }
.ah-footer-links a:hover { color: #fff !important; }
.ah-footer-bottom { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid var(--ah-ink-line); font-size: .88rem; color: #8a97ab; }

/* ---------- Mobiel ---------- */
@media (max-width: 781px) {
	.ah-hero .wp-block-columns { gap: 36px; }
	.ah-reverse-mobile { flex-direction: column-reverse; }
	.ah-table td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.ah-card, .ah-card:hover { transition: none; transform: none; }
}
