/*
Theme Name: Ctjies.nl
Theme URI: https://ctjies.nl
Author: Ctjies.nl
Description: Maatwerk blokthema voor Ctjies.nl, internetprovider voor non-profit, low-profit en MKB-organisaties.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ctjies
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.ctj-main :where(p, h1, h2, h3, figure) { margin: 0; }
.ctj-main :where(h1, h2, h3) { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}
.ctj-wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }

/* ---------- Header en menu ---------- */
.ctj-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 32px; max-width: 1280px; margin: 0 auto; padding: 24px 32px; box-sizing: border-box;
}
.ctj-logo { margin: 0; }
.ctj-logo a {
	display: block; width: 106px; height: 72px;
	background: url(assets/images/logo.png) center / contain no-repeat;
	font-size: 0; line-height: 0; color: transparent; text-indent: -9999px; overflow: hidden;
	mix-blend-mode: multiply;
}
.ctj-logo-sm a { width: 71px; height: 48px; }
.ctj-nav { font-size: 16px; font-weight: 500; }
.ctj-nav .wp-block-navigation-item__content {
	padding: 12px 0; color: var(--wp--preset--color--ink); text-decoration: none;
}
.ctj-nav .ctj-more > .wp-block-navigation-item__content {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
	border: 2px solid var(--wp--preset--color--ink); border-radius: 999px; font-weight: 600; cursor: pointer;
}
.ctj-nav .wp-block-navigation__submenu-container {
	background: #fff !important; border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 16px; box-shadow: 0 16px 40px rgba(43, 37, 8, 0.16);
	padding: 8px !important; min-width: 240px;
}
.ctj-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
}
.ctj-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--pale);
}

/* ---------- Knoppen ---------- */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
	border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 17px; text-decoration: none;
	background: var(--wp--preset--color--cheese); color: var(--wp--preset--color--ink);
}
.wp-block-button__link:hover { background: #F1D32B; color: var(--wp--preset--color--ink); }
.ctj-btn-outline .wp-block-button__link { background: #fff; border-color: var(--wp--preset--color--ink); }
.ctj-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--pale); }
.wp-block-buttons.ctj-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Icoontjes (SVG in CSS) ---------- */
.ctj-icon {
	flex: none; width: 48px; height: 48px; border-radius: 14px; background-color: var(--wp--preset--color--pale);
	background-repeat: no-repeat; background-position: center; background-size: 26px;
}
.ctj-icon-coin { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M14.8 9.2a3.2 3.2 0 1 0 0 5.6M9 11h4M9 13h4'/></svg>"); }
.ctj-icon-sliders { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12'/><circle cx='16' cy='6' r='2'/><circle cx='10' cy='12' r='2'/><circle cx='18' cy='18' r='2'/></svg>"); }
.ctj-icon-mail { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='3'/><path d='M3 8l9 6 9-6'/></svg>"); }
.ctj-service .ctj-icon, .ctj-info .ctj-icon {
	width: 52px; height: 52px; border-radius: 16px; background-color: var(--wp--preset--color--cheese);
}
.ctj-service .ctj-icon-site, .ctj-service .ctj-icon-mail, .ctj-service .ctj-icon-shield, .ctj-service .ctj-icon-sparkle, .ctj-service .ctj-icon-chat,
.ctj-info .ctj-icon-user, .ctj-info .ctj-icon-pin { background-size: 26px; }
.ctj-icon-site { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='16' rx='3'/><path d='M3 9h18'/></svg>"); }
.ctj-service .ctj-icon-mail { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='3'/><path d='M3 8l9 6 9-6'/></svg>"); }
.ctj-icon-shield { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l8 3v6c0 4.5-3.2 8-8 9-4.8-1-8-4.5-8-9V6z'/><path d='M9 12l2 2 4-4'/></svg>"); }
.ctj-icon-sparkle { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/><path d='M19 17l.8 2.2L22 20l-2.2.8L19 23l-.8-2.2L16 20l2.2-.8z'/></svg>"); }
.ctj-icon-chat { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/><path d='M9 11h6M9 14h4'/></svg>"); }
.ctj-icon-user { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/></svg>"); }
.ctj-icon-pin { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>"); }

/* ---------- Hero ---------- */
.ctj-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.ctj-hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ctj-badge {
	align-self: flex-start; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px;
	padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--gold);
}
.ctj-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.ctj-lead { font-size: 20px; line-height: 1.6; color: var(--wp--preset--color--muted); max-width: 560px; }

.ctj-hero-visual { flex: 1 1 440px; min-width: 0; position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.ctj-hero-visual::before { content: ""; position: absolute; inset: 0; background: var(--wp--preset--color--pale); border-radius: 40px; }
.ctj-window { position: relative; width: 78%; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(43, 37, 8, 0.14); overflow: hidden; }
.ctj-win-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #F7EFC4; }
.ctj-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E6DDB0; display: block; }
.ctj-win-bar span { margin-left: 12px; flex: 1; background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 12px; color: #5A5538; }
.ctj-win-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.ctj-win-body b { display: block; height: 10px; border-radius: 5px; background: var(--wp--preset--color--line); }
.ctj-win-body b.w56 { width: 56%; height: 18px; border-radius: 6px; background: var(--wp--preset--color--ink); }
.ctj-win-body b.w92 { width: 92%; }
.ctj-win-body b.w78 { width: 78%; }
.ctj-win-body em { display: block; margin-top: 8px; width: 132px; height: 38px; border-radius: 999px; background: var(--wp--preset--color--cheese); }
.ctj-win-tiles { margin-top: 12px; display: flex; gap: 12px; }
.ctj-win-tiles u { flex: 1; height: 72px; border-radius: 12px; background: #F7EFC4; display: block; }
.ctj-win-tiles u.y { background: var(--wp--preset--color--cheese); }
.ctj-mailchip {
	position: absolute; right: 4%; bottom: 8%; width: 230px; background: #fff; border-radius: 16px;
	box-shadow: 0 16px 40px rgba(43, 37, 8, 0.18); padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.ctj-mailicon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--wp--preset--color--cheese) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2508' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='3'/><path d='M3 8l9 6 9-6'/></svg>") center / 22px no-repeat; }
.ctj-mailchip strong { display: block; font-size: 14px; font-weight: 600; }
.ctj-mailchip small { display: block; font-size: 13px; color: #5A5538; }

/* ---------- Banden en secties ---------- */
.ctj-band { border-top: 1px solid #EFE8C4; border-bottom: 1px solid #EFE8C4; }
.ctj-band-white { background: #fff; }
.ctj-band-dark { background: var(--wp--preset--color--ink); color: #fff; border: 0; }
.ctj-band > .ctj-wrap, .ctj-section > .ctj-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.ctj-intro { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.ctj-intro h2, .ctj-band-dark h2 { font-size: clamp(30px, 4vw, 44px); }
.ctj-intro p { font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--muted); }
.ctj-band-dark h2 { color: #fff; max-width: 680px; }

/* Voordelen */
.ctj-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.ctj-card { flex: 1 1 300px; min-width: 0; background: var(--wp--preset--color--cream); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.ctj-card h3 { font-size: 24px; margin-top: 8px; }
.ctj-card p { font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--muted); }

/* Diensten */
.ctj-services { display: flex; flex-wrap: wrap; gap: 20px; }
.ctj-service { flex: 1 1 360px; min-width: 0; background: #fff; border: 1px solid #EFE8C4; border-radius: 24px; padding: 28px; display: flex; align-items: flex-start; gap: 20px; }
.ctj-service-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ctj-service h3 { font-size: 22px; line-height: 1.2; }
.ctj-service p { font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--muted); }
.ctj-cta-tile { flex: 1 1 360px; min-width: 0; background: var(--wp--preset--color--cheese); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ctj-cta-tile h3 { font-size: 22px; line-height: 1.2; }
.ctj-cta-tile a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wp--preset--color--ink); font-weight: 600; font-size: 17px; }

/* Pakketten */
.ctj-prices { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.ctj-price { flex: 1 1 420px; min-width: 0; background: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; }
.ctj-price--dark { background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink); }
.ctj-price h3 { font-size: 28px; }
.ctj-price-name { display: flex; flex-direction: column; gap: 8px; }
.ctj-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ctj-amount { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ctj-price--dark .ctj-amount { color: var(--wp--preset--color--cheese); }
.ctj-per { font-size: 16px; color: var(--wp--preset--color--muted); }
.ctj-price--dark .ctj-per { color: #E7E2C8; }
.wp-block-table.ctj-spec { margin: 0; }
.wp-block-table.ctj-spec table { width: 100%; border-collapse: collapse; border: 0; font-size: 16px; }
.wp-block-table.ctj-spec td { border: 0; border-top: 1px solid var(--wp--preset--color--line); padding: 12px 0; }
.wp-block-table.ctj-spec tr:last-child td { border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-table.ctj-spec td:first-child { color: var(--wp--preset--color--muted); }
.wp-block-table.ctj-spec td:last-child { text-align: right; font-weight: 600; }
.ctj-price--dark .wp-block-table.ctj-spec td { border-color: #5A5330; }
.ctj-price--dark .wp-block-table.ctj-spec td:first-child { color: #E7E2C8; }
.ctj-notes { display: flex; flex-wrap: wrap; gap: 24px; }
.ctj-notes p { flex: 1 1 420px; min-width: 0; font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--muted); }

/* Stappen */
.ctj-steps { display: flex; flex-wrap: wrap; gap: 32px; }
.ctj-step { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ctj-step-n { font-size: 56px; font-weight: 700; line-height: 1; color: var(--wp--preset--color--cheese); }
.ctj-step h3 { font-size: 24px; color: #fff; }
.ctj-step p { font-size: 16px; line-height: 1.6; color: #E7E2C8; }

/* Contactblok op de homepage */
.ctj-contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.ctj-contact-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ctj-contact-text h2 { font-size: clamp(30px, 4vw, 44px); }
.ctj-contact-text p { font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--muted); }
.ctj-formcard { flex: 1 1 420px; min-width: 0; background: #fff; border: 1px solid #EFE8C4; border-radius: 24px; padding: 32px; box-sizing: border-box; }

/* ---------- Formulier ---------- */
.ctj-form { display: flex; flex-direction: column; gap: 20px; }
.ctj-form .ctj-field { display: flex; flex-direction: column; gap: 8px; }
.ctj-form label { font-size: 15px; font-weight: 600; }
.ctj-form input[type="text"], .ctj-form input[type="email"], .ctj-form textarea {
	width: 100%; box-sizing: border-box; border: 1.5px solid #8C8556; border-radius: 12px; background: #fff;
	padding: 0 16px; min-height: 48px; font-size: 16px; line-height: 1.4; font-family: inherit; color: var(--wp--preset--color--ink);
}
.ctj-form textarea { padding: 12px 16px; resize: vertical; }
.ctj-form button {
	min-height: 52px; border: 0; border-radius: 999px; background: var(--wp--preset--color--cheese);
	color: var(--wp--preset--color--ink); font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer; padding: 0 28px;
}
.ctj-form button:hover { background: #F1D32B; }
.ctj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ctj-notice { border-radius: 14px; padding: 14px 18px; font-size: 16px; margin-bottom: 20px; }
.ctj-notice--ok { background: #EAF6D8; color: #25400F; }
.ctj-notice--err { background: #FBE3DD; color: #6B1B0B; }

/* ---------- Pagina's: kop, contact, voorwaarden ---------- */
.ctj-pagehead { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.ctj-pagehead h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.ctj-pagehead p { font-size: 19px; line-height: 1.6; color: var(--wp--preset--color--muted); max-width: 640px; }
.ctj-contact-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; padding-top: 16px; padding-bottom: 96px; }
.ctj-infocard { flex: 1 1 380px; min-width: 0; background: var(--wp--preset--color--ink); color: #fff; border-radius: 28px; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 32px; }
.ctj-infocard h2 { font-size: 32px; color: var(--wp--preset--color--cheese); }
.ctj-info { display: flex; align-items: flex-start; gap: 16px; }
.ctj-info-label { font-size: 14px; color: #E7E2C8; margin-bottom: 4px; }
.ctj-info-value { font-size: 19px; font-weight: 600; line-height: 1.5; }
.ctj-contact-grid .ctj-formcard { padding: 40px; border-radius: 28px; display: flex; flex-direction: column; gap: 20px; }
.ctj-contact-grid .ctj-formcard h2 { font-size: 28px; }

.ctj-terms-wrap { max-width: 1000px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.ctj-toc { background: var(--wp--preset--color--pale); border-radius: 24px; padding: 28px 32px; margin-bottom: 24px; }
.ctj-toc h2 { font-size: 20px; margin-bottom: 16px; }
.ctj-toc ul { list-style: none; margin: 0; padding: 0; column-width: 280px; column-gap: 32px; font-size: 16px; line-height: 1.5; }
.ctj-toc li { padding: 7px 0; break-inside: avoid; }
.ctj-toc a { color: var(--wp--preset--color--ink); }
.ctj-art { scroll-margin-top: 24px; background: #fff; border: 1px solid #EFE8C4; border-radius: 24px; padding: 36px; margin-bottom: 20px; }
.ctj-art h2 { font-size: 28px; line-height: 1.2; margin-bottom: 20px; }
.ctj-art p { font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.ctj-art p strong { color: var(--wp--preset--color--gold); margin-right: 0.5em; }
.ctj-art ul { margin: 0 0 14px 44px; padding: 0; font-size: 17px; line-height: 1.7; }
.ctj-art li { margin-bottom: 6px; }
.ctj-art .wp-block-table { margin: 4px 0 14px 44px; }
.ctj-art .wp-block-table table { border-collapse: collapse; font-size: 16px; width: auto; }
.ctj-art .wp-block-table th, .ctj-art .wp-block-table td { text-align: left; padding: 10px 20px 10px 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.ctj-art .wp-block-table th { font-weight: 600; color: var(--wp--preset--color--muted); }
.ctj-art .wp-block-table figcaption { text-align: left; font-weight: 600; color: var(--wp--preset--color--muted); margin: 0 0 8px; }
.ctj-pagebody { max-width: 1000px; margin: 0 auto; padding: 0 32px 96px; box-sizing: border-box; }

/* ---------- Footer ---------- */
.ctj-footer { border-top: 1px solid #EFE8C4; background: #fff; }
.ctj-footer-in { max-width: 1280px; margin: 0 auto; padding: 32px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 15px; color: var(--wp--preset--color--muted); }
.ctj-footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ctj-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ctj-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Telefoon ---------- */
@media (max-width: 600px) {
	.ctj-wrap, .ctj-header, .ctj-footer-in, .ctj-terms-wrap, .ctj-pagebody { padding-left: 20px; padding-right: 20px; }
	.ctj-price, .ctj-art, .ctj-infocard, .ctj-contact-grid .ctj-formcard { padding: 24px; }
	.ctj-art ul, .ctj-art .wp-block-table { margin-left: 20px; }
	.ctj-mailchip { right: 2%; }
}
