/*
Theme Name: Cybertopia
Theme URI: https://cybertopia.be
Author: Cybertopia
Author URI: https://cybertopia.be
Description: Licht blokthema voor Cybertopia – Partner in IT. Alle secties zijn aanpasbaar in de blokeditor.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cybertopia
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 24px; }
body { -webkit-font-smoothing: antialiased; }

.ct-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-dark);
	margin: 0;
}
.ct-dark .ct-eyebrow { color: var(--wp--preset--color--accent-light); }
.ct-dark .ct-card .ct-eyebrow { color: var(--wp--preset--color--accent-dark); }
.ct-muted { color: var(--wp--preset--color--muted); }

/* ---------- Header ---------- */
.ct-header { background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); }
.ct-logo { margin: 0; line-height: 1; }
.ct-logo a { text-decoration: none; color: var(--wp--preset--color--ink); display: inline-flex; flex-direction: column; }
.ct-logo strong { font-size: 22px; font-weight: 800; letter-spacing: 0.04em; }
.ct-logo span { font-size: 10px; font-weight: 600; letter-spacing: 0.32em; color: var(--wp--preset--color--muted); margin-top: 5px; }
.ct-nav a { font-weight: 600; text-decoration: none; }
.ct-nav a:hover { color: var(--wp--preset--color--accent); }

/* ---------- Secties ---------- */
.ct-section { padding-top: 104px !important; padding-bottom: 104px !important; }
.ct-dark { background: var(--wp--preset--color--navy); color: #fff; }
.ct-dark a:not(.wp-element-button) { color: #fff; }
.ct-dark .ct-muted { color: #C3CCDD; }
.ct-dark .ct-card .ct-muted { color: var(--wp--preset--color--muted); }
.ct-white { background: #fff; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

.ct-h1 { font-size: clamp(38px, 5.2vw, 60px) !important; line-height: 1.05 !important; letter-spacing: -0.02em; }
.ct-h2 { font-size: clamp(32px, 3.6vw, 44px) !important; line-height: 1.1 !important; letter-spacing: -0.015em; }
.ct-lead { font-size: 19px; line-height: 1.6; max-width: 600px; }
.ct-trust { font-size: 14px; font-weight: 600; word-spacing: 2px; }

/* ---------- Raster van 3 ---------- */
.ct-grid3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: var(--wp--style--global--wide-size, 1240px) !important; margin-left: auto !important; margin-right: auto !important; }
.ct-grid3 > * { margin: 0 !important; }
@media (max-width: 960px) { .ct-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ct-grid3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Kaarten ---------- */
.ct-card {
	background: #fff;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 32px !important;
}
.ct-dark .ct-card { border: 0; border-radius: 20px; }
.ct-dark .ct-card a:not(.wp-element-button) { color: var(--wp--preset--color--ink); }
.ct-card h3 { font-size: 21px; margin: 0; }
.ct-card p { margin: 0; }
.ct-icon svg { width: 40px; height: 40px; display: block; }

.ct-panel { background: var(--wp--preset--color--navy); color: #fff; border-radius: 20px; padding: 40px !important; }
.ct-panel .ct-eyebrow { color: var(--wp--preset--color--accent-light); }

.ct-shot {
	min-height: 220px; margin: 0 !important; background: #DDE3EE;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 600; color: var(--wp--preset--color--muted);
}
.ct-project { padding: 0 !important; overflow: hidden; }
.ct-shot-img { margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.ct-shot-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.ct-project .ct-project-body { padding: 24px; }
.ct-project h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.ct-project h3 a:hover { color: var(--wp--preset--color--accent); }
.ct-project h3 a::after { content: " ↗"; font-size: 0.8em; color: var(--wp--preset--color--muted); }
.ct-shot-img a { display: block; }
.ct-shot-img a:hover img { opacity: .92; }

/* ---------- Stappen (genummerde lijst) ---------- */
.ct-steps { list-style: none; padding: 0; margin: 0; counter-reset: ct; display: flex; flex-direction: column; gap: 16px; }
.ct-steps li { counter-increment: ct; position: relative; padding-left: 46px; min-height: 32px; line-height: 1.5; font-size: 15px; }
.ct-steps li::before {
	content: counter(ct); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 999px;
	background: #EEF1F7; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 14px;
}
.ct-numbered { list-style: none; padding: 0; margin: 0; counter-reset: ctn; display: flex; flex-direction: column; gap: 28px; }
.ct-numbered li { counter-increment: ctn; position: relative; padding-left: 56px; font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--muted); }
.ct-numbered li::before {
	content: "0" counter(ctn); position: absolute; left: 0; top: 3px; font-family: var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--accent-dark); font-size: 15px;
}
.ct-numbered strong { display: block; font-size: 20px; color: var(--wp--preset--color--ink); }
.ct-check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #DCE2EE; }
.ct-check li { position: relative; padding-left: 26px; }
.ct-check li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--accent-light); font-weight: 800; }

/* ---------- Chips ---------- */
.ct-chips { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.ct-chips p { margin: 0; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: #E7EBF3; }
.ct-chips p.ct-chips-label { background: none; padding: 8px 0; font-size: 15px; font-weight: 700; }

/* ---------- Reviews ---------- */
.ct-review { background: var(--wp--preset--color--ground); border-radius: 18px; padding: 32px !important; margin: 0 !important; border: 0 !important; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ct-review p { font-size: 18px; line-height: 1.55; font-weight: 500; margin: 0; }
.ct-review cite { font-style: normal; font-size: 15px; font-weight: 700; }

/* ---------- FAQ ---------- */
.ct-faq .wp-block-details { border-bottom: 1px solid #D5DBE6; padding: 22px 0; margin: 0; }
.ct-faq .wp-block-details:first-child { border-top: 1px solid #D5DBE6; }
.ct-faq summary { font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform .2s; }
.ct-faq details[open] summary::after { transform: rotate(45deg); }
.ct-faq details p { margin: 12px 0 0; color: var(--wp--preset--color--muted); }

/* ---------- Contact ---------- */
.ct-contact-info p { margin: 0; }
.ct-label { font-size: 13px !important; font-weight: 600; color: #9FAAC2; }
.ct-value { font-weight: 700; font-size: 17px; }
.ct-form .fluentform { max-width: 100%; }
.ct-form .ff-el-input--label label { color: var(--wp--preset--color--ink); font-weight: 700; font-size: 14px; }
.ct-form { background: #fff; color: var(--wp--preset--color--ink); border-radius: 20px; padding: 36px !important; }
.ct-form input[type="text"], .ct-form input[type="email"], .ct-form textarea, .ct-form select {
	border: 1.5px solid #C9D0DD !important; border-radius: 10px !important; padding: 14px 16px !important; font-size: 16px !important; min-height: 48px;
}
.ct-form button[type="submit"], .ct-form .ff-btn-submit {
	background: var(--wp--preset--color--accent) !important; color: #fff !important; border: 0 !important;
	border-radius: 12px !important; padding: 16px 26px !important; font-weight: 700 !important; font-size: 16px !important;
}

/* ---------- Juridische pagina's ---------- */
.ct-legal h2 { font-size: 26px; margin-top: 48px; margin-bottom: 8px; }
.ct-legal h3 { font-size: 19px; margin-top: 28px; margin-bottom: 4px; }
.ct-legal p, .ct-legal li { color: #2D3748; }
.ct-legal ul { padding-left: 22px; }
.ct-legal li { margin-bottom: 6px; }
.ct-legal a { text-decoration: underline; }

.ct-form .ct-form-note { margin-top: 16px; }
.ct-form .ct-form-note a { color: var(--wp--preset--color--ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.ct-footer { background: #071122; color: #9FAAC2; font-size: 14px; }
.ct-footer a { color: #C3CCDD; text-decoration: none; }
.ct-footer a:hover { color: #fff; }
.ct-footer p { margin: 0; }

/* ---------- Knoppen ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; border: 1.5px solid currentColor; color: inherit;
}
.ct-dark .wp-block-button.is-style-outline > .wp-block-button__link { border-color: #5B6C8F; color: #fff; }
.ct-btn-dark .wp-block-button__link { background: var(--wp--preset--color--ink) !important; }
.ct-btn-full, .ct-btn-full .wp-block-button__link { width: 100%; text-align: center; }

@media (max-width: 781px) {
	.ct-section { padding-top: 72px !important; padding-bottom: 72px !important; }
	.ct-header-buttons { display: none !important; }
}
