/*
Theme Name: Optimismick
Description: Child theme voor optimismick.nl – ICT & AI-advies. Sportieve stijl: zwart, blauw en rood, Anton-koppen.
Template: twentytwentyfive
Version: 2.0.0
Text Domain: optimismick
*/

/* Kleuren voor kleine tekst op zwart (lichter, voor voldoende contrast). */
:root { --om-blue-on-dark: #3FA9F5; --om-red-on-dark: #FF5A5F; }

/* ---------- Header ---------- */
.om-topbar { height: 5px; background: var(--wp--preset--color--accent); margin: 0 !important; }
.om-header { background: var(--wp--preset--color--navy); border-bottom: 3px solid var(--wp--preset--color--blue); padding-top: 16px; padding-bottom: 16px; margin-top: 0 !important; }
.om-brand { gap: 2px !important; }
.om-brand .wp-block-site-title { margin: 0; font-family: var(--wp--preset--font-family--anton); font-weight: 400; font-size: 1.75rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; }
.om-brand .wp-block-site-title a { color: var(--wp--preset--color--white); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.om-brand .wp-block-site-title a::before {
	content: ""; width: 44px; height: 44px; flex: 0 0 44px;
	background: var(--wp--preset--color--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.om-tagline { margin: 0 0 0 56px !important; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--om-red-on-dark); line-height: 1.2; }
.om-header .wp-block-navigation { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; gap: 4px 22px; color: var(--wp--preset--color--white); }
.om-header .wp-block-navigation-item__content { color: var(--wp--preset--color--white); padding: 10px 2px; text-decoration: none; }
.om-header .wp-block-navigation-item__content:hover { color: var(--om-blue-on-dark); }
.om-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--white); box-shadow: inset 0 -3px 0 var(--wp--preset--color--accent); }
.om-header .wp-block-navigation .om-nav-cta > .wp-block-navigation-item__content { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--white); padding: 12px 20px; font-weight: 700; box-shadow: none; }
.om-header .wp-block-navigation .om-nav-cta > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--white); }
.om-header .wp-block-navigation__submenu-container { background: var(--wp--preset--color--navy) !important; border: 0 !important; border-top: 3px solid var(--wp--preset--color--blue) !important; padding: 8px 0; min-width: 280px !important; }
.om-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 18px; }
.om-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--navy) !important; color: var(--wp--preset--color--white) !important; }
.om-header .wp-block-navigation__responsive-container-open, .om-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--white); }

/* ---------- Generic sections ---------- */
main .wp-block-post-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.om-section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.om-mist { background: var(--wp--preset--color--mist); }
.om-dark { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.om-dark h1, .om-dark h2, .om-dark h3 { color: var(--wp--preset--color--white); }
.om-intro { max-width: 700px; }
.om-intro > * { margin-top: 0; margin-bottom: 10px; }
.om-intro h2 { position: relative; padding-bottom: 14px; }
.om-intro h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--wp--preset--color--accent); }
.om-muted { color: var(--wp--preset--color--muted); }
.om-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #C4161D; margin-bottom: 0 !important; }
.om-lead { font-size: 1.1875rem; line-height: 1.6; }
.om-dark .om-lead, .om-dark p { color: var(--wp--preset--color--on-dark); }

/* ---------- Buttons ---------- */
.wp-block-button__link { border-radius: 0 !important; }
.om-btn-accent .wp-block-button__link { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--white); }
.om-btn-accent .wp-block-button__link:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--white); }
.om-btn-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--white); border: 2px solid var(--wp--preset--color--white); }
.om-btn-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy); }
.om-btn-line .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--navy); }
.om-btn-line .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.om-btn-block, .om-btn-block .wp-block-button__link { width: 100%; text-align: center; }
.om-btn-blue .wp-block-button__link { background: var(--wp--preset--color--blue); }
.om-btn-blue .wp-block-button__link:hover { background: var(--wp--preset--color--accent); }

/* ---------- Hero ---------- */
.om-hero { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); border-bottom: 6px solid var(--wp--preset--color--blue); }
.om-hero h1 { color: var(--wp--preset--color--white); margin-top: 16px; margin-bottom: 22px; line-height: 1.02; font-size: clamp(3rem, 7vw, 5.5rem); }
.om-hero p { color: var(--wp--preset--color--on-dark); }
.om-hero .om-eyebrow { color: var(--om-red-on-dark); }
.om-hero-visual {
	min-height: 400px; border: 0;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='100' cy='100' r='34'/%3E%3Cpath d='M100 20v22M100 158v22M20 100h22M158 100h22M43 43l16 16M141 141l16 16M43 157l16-16M141 59l16-16'/%3E%3Ccircle cx='100' cy='100' r='70' stroke='%23E31B23' stroke-width='2' stroke-dasharray='4 8'/%3E%3C/svg%3E") center / 220px no-repeat,
		linear-gradient(135deg, #0077C0 0%, #005A92 100%);
	box-shadow: 14px 14px 0 var(--wp--preset--color--accent);
}

/* Homepage: de dienstensectie direct na de hero is zwart met tegels (sportieve "nieuwstegels"). */
.om-hero + .om-section { background: #141414; }
.om-hero + .om-section h2 { color: var(--wp--preset--color--white); }
.om-hero + .om-section .om-muted { color: var(--wp--preset--color--on-dark); }
.om-hero + .om-section .om-card { background: var(--wp--preset--color--navy); border: 0; border-top: 4px solid var(--wp--preset--color--blue); }
.om-hero + .om-section .om-card:hover { border-top-color: var(--wp--preset--color--accent); }
.om-hero + .om-section .om-card h3 { color: var(--wp--preset--color--white); }
.om-hero + .om-section .om-card p { color: var(--wp--preset--color--on-dark); }
.om-hero + .om-section .om-card svg { color: var(--om-blue-on-dark); }

/* ---------- Cards ---------- */
.om-cards.wp-block-columns, .om-tiles.wp-block-columns, .om-steps.wp-block-columns { flex-wrap: wrap !important; gap: 24px; }
.om-card, .om-tile { box-sizing: border-box; }
.om-cards > .wp-block-column { flex: 1 1 240px !important; }
.om-tiles > .wp-block-column { flex: 1 1 200px !important; }
.om-steps > .wp-block-column { flex: 1 1 220px !important; }
.om-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--wp--preset--color--line); border-top: 4px solid var(--wp--preset--color--blue); border-radius: 0; background: var(--wp--preset--color--white); transition: border-color .15s; }
.om-card > * { margin: 0 !important; }
.om-card h3 { font-size: 1.375rem; letter-spacing: 0.02em; }
.om-card p { color: var(--wp--preset--color--muted); font-size: 0.9375rem; flex-grow: 1; }
.om-card .wp-block-buttons { margin-top: auto !important; }
.om-card svg { width: 34px; height: 34px; color: var(--wp--preset--color--blue); }
.om-tile { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 0; background: var(--wp--preset--color--mist); border-left: 4px solid var(--wp--preset--color--accent); }
.om-tile > * { margin: 0 !important; }
.om-tile h3 { font-size: 1.25rem; }
.om-tile p { color: var(--wp--preset--color--muted); font-size: 0.9375rem; flex-grow: 1; }
.om-tile a { font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; }
.om-tile svg { width: 30px; height: 30px; color: var(--wp--preset--color--blue); }

/* ---------- Stats & steps ---------- */
.om-stat { display: flex; gap: 18px; align-items: baseline; margin: 0 0 16px !important; }
.om-stat-num { font-family: var(--wp--preset--font-family--anton); font-weight: 400; font-size: 3.75rem; color: var(--wp--preset--color--blue); line-height: 1; margin: 0 !important; min-width: 110px; white-space: nowrap; flex-shrink: 0; }
.om-stat-label { margin: 0 !important; color: var(--wp--preset--color--ink); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9375rem; }
.om-step-num { font-family: var(--wp--preset--font-family--anton); font-weight: 400; font-size: 1.5rem; width: 48px; height: 48px; border-radius: 0; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--white); display: flex; align-items: center; justify-content: center; margin: 0 !important; }

/* ---------- Page title band ---------- */
.om-page-hero { background: var(--wp--preset--color--navy); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); margin-top: 0 !important; border-bottom: 6px solid var(--wp--preset--color--blue); }
.om-page-hero h1 { color: var(--wp--preset--color--white); margin: 0; }
.om-cta-box { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); border-left: 6px solid var(--wp--preset--color--accent); padding: 36px; margin-top: 56px !important; }
.om-cta-box > * { margin-top: 0; }
.om-cta-box h3 { color: var(--wp--preset--color--white); font-size: 1.75rem; }
.om-cta-box p { color: var(--wp--preset--color--on-dark); }

/* ---------- Footer ---------- */
.om-footer { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--on-dark); margin-top: 0 !important; border-top: 6px solid var(--wp--preset--color--blue); }
.om-footer h2, .om-footer h3 { color: var(--wp--preset--color--white); }
.om-footer h3 { color: var(--om-red-on-dark); font-size: 1.125rem; letter-spacing: 0.08em; }
.om-footer p { color: var(--wp--preset--color--on-dark); }
.om-footer a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--white); }
.om-footer-main { padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px; }
.om-footer-contact p { margin: 0 0 4px; }
.om-footer-bottom { border-top: 1px solid #262626; padding-top: 20px; padding-bottom: 28px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }
.om-footer-bottom p { margin: 0; color: #9A9A9A; }
.om-footer-bottom a { color: #9A9A9A !important; }

/* ---------- Contact form ---------- */
.om-form-wrap { scroll-margin-top: 24px; }
.om-form { display: flex; flex-direction: column; gap: 18px; }
.om-form p { margin: 0; }
.om-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.om-field { display: flex; flex-direction: column; gap: 6px; }
.om-field label { font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--navy); }
.om-field input, .om-field textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; min-height: 48px; border: 2px solid #CFCFCF; border-radius: 0; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font: 400 1rem/1.5 var(--wp--preset--font-family--roboto); }
.om-field textarea { resize: vertical; min-height: 150px; }
.om-field input:focus, .om-field textarea:focus { outline: 3px solid var(--wp--preset--color--blue); outline-offset: 0; border-color: var(--wp--preset--color--navy); }
.om-form__note { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.om-form__submit .wp-element-button { cursor: pointer; border: 0; }
.om-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.om-form-msg { padding: 14px 18px; margin-bottom: 18px; font-weight: 500; }
.om-form-msg--ok { background: #E6F2FA; color: var(--wp--preset--color--navy); border-left: 5px solid var(--wp--preset--color--blue); }
.om-form-msg--error { background: #FDECEC; color: #8A1015; border-left: 5px solid var(--wp--preset--color--accent); }

/* ---------- Route map ---------- */
.om-map { position: relative; min-height: 380px; overflow: hidden; border: 0; border-top: 4px solid var(--wp--preset--color--blue); background: var(--wp--preset--color--mist); display: flex; align-items: center; justify-content: center; }
.om-map__consent { max-width: 460px; padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.om-map__consent p { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.om-map__load { cursor: pointer; border: 0; }
.om-map.is-loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.om-map__route { margin-top: 16px; }
.om-route-heading { margin-top: 64px !important; }
.om-map__route-btn { background: transparent !important; color: var(--wp--preset--color--navy) !important; border: 2px solid var(--wp--preset--color--navy) !important; }
.om-map__route-btn:hover { background: var(--wp--preset--color--navy) !important; color: var(--wp--preset--color--white) !important; }

/* ---------- Cookie notice ---------- */
.om-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 760px; margin: 0 auto; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 24px; border-radius: 0; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--on-dark); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); border-top: 4px solid var(--wp--preset--color--accent); }
.om-cookie[hidden] { display: none; }
.om-cookie__text { flex: 1 1 360px; margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--wp--preset--color--on-dark); }
.om-cookie__text a { color: var(--wp--preset--color--white); text-decoration: underline; }
.om-cookie__button { flex: 0 0 auto; min-height: 44px; padding: 12px 22px; border: 0; border-radius: 0; background: var(--wp--preset--color--blue); color: var(--wp--preset--color--white); font: 700 0.9375rem/1 var(--wp--preset--font-family--roboto); text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.om-cookie__button:hover { background: var(--wp--preset--color--accent); }
.om-cookie__button:focus-visible { outline: 3px solid var(--wp--preset--color--white); outline-offset: 2px; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.om-hero-visual { min-height: 220px; background-size: 140px, auto; box-shadow: 8px 8px 0 var(--wp--preset--color--accent); }
	.om-tagline { margin-left: 56px !important; }
	.om-stat-num { font-size: 3rem; min-width: 90px; }
}
