/*
Theme Name: Quanby
Theme URI: https://quanby.nl
Author: Quanby Services B.V.
Description: Block theme for Quanby — Kubernetes & platform engineering. Dark navy design with editable section patterns (hero, services, Quanby Lab, why Quanby, call to action).
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quanby
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
::selection { background: #1E6BFF; color: #fff; }
:where(a, button, input, textarea, select):focus-visible { outline: 2px solid #5AAEFF; outline-offset: 2px; }

/* Eyebrow label above headings */
.q-eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-text);
	margin-bottom: 0.5rem !important;
}
.q-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast-2); max-width: 32rem; }
.q-muted { color: var(--wp--preset--color--contrast-2); }

/* Arrow on buttons */
.q-arrow .wp-block-button__link::after { content: "→"; margin-left: 0.6em; }

/* ---------- Header ---------- */
.q-header { border-bottom: 1px solid #13213D; }
.q-header__inner { padding-top: 18px; padding-bottom: 18px; }
.q-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--wp--preset--color--contrast) !important; text-decoration: none; }
.q-logo svg { flex: none; }
.q-logo span { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.22em; }
.q-header .wp-block-navigation a:hover { color: #fff; }
.q-header .wp-block-button__link { padding: 0.6rem 1.1rem; background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--accent); font-weight: 500; font-size: 0.875rem; }
.q-header .wp-block-button__link:hover { background: var(--wp--preset--color--accent); color: #fff; }

/* ---------- Hero ---------- */
.q-hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: 3rem; gap: 3rem; }
.q-hero h1 { margin-top: 0.5rem; }

/* Architecture diagram */
.q-diagram { border: 1px solid #1A2B4C; border-radius: 14px; background: #08142A; padding: 24px; display: flex; flex-direction: column; gap: 0; }
.q-diagram__node { border: 1px solid #2B4A80; border-radius: 10px; background: #0B1A36; padding: 12px 10px; text-align: center; font-size: 0.75rem; color: #C9D4E5; min-width: 0; }
.q-diagram__node strong { display: block; font-size: 0.8125rem; color: #E6ECF5; font-weight: 600; }
.q-diagram__node small { display: block; color: #8FA3C2; font-size: 0.6875rem; }
.q-diagram__apps { align-self: center; padding: 12px 20px; }
.q-diagram__apps ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 22px; justify-content: center; color: #A9B8CE; }
.q-diagram__v { align-self: center; width: 1px; height: 20px; background: #3A6BC0; }
.q-diagram__row { display: flex; align-items: center; gap: 0; }
.q-diagram__row > .q-diagram__node { flex: 1 1 0; }
.q-diagram__h { flex: 0 0 18px; border-top: 1px dashed #3A6BC0; }
.q-diagram__core { flex: 2 1 0 !important; border: 1.5px solid #1E6BFF; border-radius: 12px; background: #0D2148; padding: 18px; box-shadow: 0 0 32px -8px rgba(30, 107, 255, 0.55); }
.q-diagram__core strong { font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem; }
.q-diagram__core em { display: inline-block; margin-top: 10px; font-style: normal; font-size: 0.75rem; color: #A9C8FF; border: 1px solid #2B4A80; border-radius: 6px; padding: 3px 10px; }
.q-diagram__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.q-diagram__grid .q-diagram__node { text-align: left; }
@media (max-width: 600px) {
	.q-diagram__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.q-diagram__row { flex-wrap: wrap; gap: 10px; }
	.q-diagram__h { display: none; }
	.q-diagram__core { flex-basis: 100% !important; order: -1; }
}

/* Technology strip */
.q-tech { border-top: 1px solid #13213D; padding-top: 1.5rem; padding-bottom: var(--wp--preset--spacing--50); text-align: center; }
.q-tech ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 2.75rem; color: #C9D4E5; }

/* ---------- Cards (services) ---------- */
.q-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.q-cards { gap: 18px; margin-top: 2rem; }
.q-card { border: 1px solid #1A2B4C; border-radius: 12px; background: #0A1630; padding: 28px; display: flex; flex-direction: column; }
.q-card > * { margin-top: 0; margin-bottom: 0; }
.q-card > * + * { margin-top: 0.6rem; }
.q-card[class*="q-ico-"] h3::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 1.1rem; background-position: center; background-size: contain; background-repeat: no-repeat; }
.q-ico-person h3::before { background-image: url(assets/icons/person.svg); }
.q-ico-nodes h3::before { background-image: url(assets/icons/nodes.svg); }
.q-ico-cube h3::before { background-image: url(assets/icons/cube.svg); }
.q-card__tagline { color: #C9D4E5; }
.q-card__text { color: var(--wp--preset--color--contrast-2); font-size: 0.9375rem; }
.q-card__footer { margin-top: auto !important; padding-top: 1.25rem; }
.q-card__footer p { margin: 0; }
.q-card__price { font-weight: 600; }
.q-card__footer a { font-size: 0.875rem; }

/* ---------- Quanby Lab ---------- */
.q-lab { border: 1px solid #1A2B4C; border-radius: 14px; background: #08142A; padding: 36px; gap: 40px; }
.q-checklist { list-style: none; padding: 0; color: #C9D4E5; font-size: 0.9375rem; }
.q-checklist li { position: relative; padding-left: 26px; margin-bottom: 0.5rem; }
.q-checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; background: url(assets/icons/check.svg) center / contain no-repeat; }

.q-explorer { border: 1px solid #1A2B4C; border-radius: 12px; background: #060F22; padding: 20px; }
.q-explorer__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; border: 1px solid #1A2B4C; border-radius: 8px; padding: 4px; }
.q-explorer__tabs button { min-height: 40px; padding: 0 22px; border: 0; border-radius: 6px; font: inherit; font-size: 0.875rem; cursor: pointer; background: transparent; color: #C9D4E5; }
.q-explorer__tabs button[aria-selected="true"] { background: #1E6BFF; color: #fff; }
.q-explorer__panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 20px; align-items: center; }
.q-explorer__panel[hidden] { display: none; }
.q-explorer__col { display: flex; flex-direction: column; gap: 10px; }
.q-explorer__node { border: 1px solid #22385F; border-radius: 10px; background: #0B1A36; padding: 12px 14px; }
.q-explorer__node strong { display: block; font-size: 0.875rem; }
.q-explorer__node span { display: block; font-size: 0.75rem; color: #8FA3C2; }
.q-explorer__foot { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.8125rem; color: #8FA3C2; }

/* ---------- Why Quanby ---------- */
.q-reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 20px; font-size: 0.875rem; color: #C9D4E5; }
.q-reasons li { display: flex; align-items: center; gap: 12px; }
.q-reasons li::before { content: ""; flex: none; width: 40px; height: 40px; border: 1px solid #2B4A80; border-radius: 50%; background: url(assets/icons/check.svg) center / 18px no-repeat; }

/* ---------- Call to action ---------- */
.q-cta { border: 1px solid #1A2B4C; border-radius: 14px; padding: 40px; gap: 36px; background-color: #08142A; background-image: radial-gradient(#1E4C9A 1px, transparent 1.2px); background-size: 14px 14px; }
.q-cta > .wp-block-column { background: #08142A; padding: 8px 0; }
.q-cta__contact { border-left: 1px solid #1A2B4C; padding-left: 28px !important; }
.q-cta__contact p { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; }
.q-cta__contact p::before { content: ""; flex: none; width: 20px; height: 20px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.q-cta__mail::before { background-image: url(assets/icons/mail.svg); }
.q-cta__cal::before { background-image: url(assets/icons/calendar.svg); }
.q-cta__contact a { color: var(--wp--preset--color--contrast); }
@media (max-width: 781px) {
	.q-cta__contact { border-left: 0; border-top: 1px solid #1A2B4C; padding-left: 0 !important; padding-top: 20px !important; }
	.q-lab, .q-cta { padding: 24px; }
}

/* ---------- Footer ---------- */
.q-footer { border-top: 1px solid #13213D; font-size: 0.8125rem; color: #8FA3C2; }
.q-footer__inner { padding-top: 28px; padding-bottom: 28px; }
.q-footer a { color: #A9B8CE; }
.q-footer a:hover { color: #fff; }
.q-footer .q-logo span { font-size: 1.05rem; }

/* ---------- Coming soon (public root) ---------- */
.q-soon { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; box-sizing: border-box; }
.q-soon .q-logo { margin-bottom: 2.5rem; }

/* ---------- Regular pages and posts ---------- */
.q-page { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.q-page .wp-block-post-content a { text-decoration: underline; text-underline-offset: 3px; }
.q-page input, .q-page textarea, .q-page select { background: #0B1A36; color: #E6ECF5; border: 1px solid #2B4A80; border-radius: 6px; padding: 10px 12px; font: inherit; }

/* ---------- Quanby Lab page ---------- */
.q-lab-intro h1 { margin-top: 0.5rem; }
.q-section--tight { padding-top: 0; }
.q-explorer--full { padding: 24px; }
.q-explorer__body { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.q-explorer__panels { flex: 999 1 560px; min-width: 0; }
.q-explorer--full .q-explorer__panel { margin-top: 0; align-items: start; }
.q-explorer__label { margin: 0 0 2px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8FA3C2; }
button.q-explorer__node { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 56px; transition: border-color .15s, background-color .15s; }
button.q-explorer__node:hover { border-color: #3A6BC0; background: #0D2148; }
button.q-explorer__node[aria-pressed="true"] { border-color: #1E6BFF; background: #0D2148; box-shadow: 0 0 24px -8px rgba(30, 107, 255, 0.6); }
.q-explorer__detail { flex: 1 1 260px; min-width: 0; align-self: stretch; border: 1px solid #22385F; border-radius: 10px; background: #0B1A36; padding: 22px; }
.q-explorer__detail-title { margin: 0 0 8px; font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 600; }
.q-explorer__detail-text { margin: 0; color: var(--wp--preset--color--contrast-2); font-size: 0.9375rem; }
.q-principles { margin-top: 18px; }
.q-principles .q-card h3 { font-size: 1.125rem; }
