/*
Theme Name: dealiQ
Theme URI: https://dealiq.eu
Author: dealiQ / WALETZKO & WALETZKO sp.j.
Description: Block theme for dealiq.eu. Datasheet logic, visible grid, one signal colour (coral). No page builder.
Version: 0.3.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: dealiq
*/

/* ---- Base ---- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 0.15em; }

/* ---- Layout: section wrapper with visible 6-column grid ---- */
.dq-section { position: relative; }
.dq-wrap {
  max-width: 1440px; margin: 0 auto; padding-left: 64px; padding-right: 64px; box-sizing: border-box; position: relative;
}
/* Column grid: no decorative lines (MW 03.11.2026). Vertical rules only where they separate real columns (datasheet). */
.dq-grid { background-image: none; }
.dq-band-paper { background: #f7f7f7; }
.dq-band-grey { background: #eaeaea; }
.dq-band-ink { background: #141414; color: #ffffff; }
.dq-band-ink a { color: #ffffff; }

.dq-line-top { border-top: 1px solid #e3e3e3; }
/* No separator line where a tonal band already separates (MW 04.11.2026) */
.dq-band-ink + .dq-line-top, .dq-band-grey + .dq-line-top, .dq-band-paper + .dq-line-top,
.dq-band-ink.dq-line-top, .dq-band-grey.dq-line-top, .dq-band-paper.dq-line-top,
.dq-band-ink + * > .dq-line-top:first-child { border-top: 0; }
/* No block gap between top-level sections – each section carries its own spacing */
main.wp-block-group.is-layout-flow > :where(:not(:first-child)) { margin-block-start: 0; }
main.wp-block-group.is-layout-flow > .wp-block-group.is-layout-flow > :where(:not(:first-child)) { margin-block-start: 0; }
.wp-block-post-content.is-layout-flow > :where(:not(:first-child)) { margin-block-start: 0; }
/* band is the last child of the previous section */
:is(section, div):has(> .dq-band-grey:last-child, > .dq-band-paper:last-child, > .dq-band-ink:last-child) + .dq-line-top { border-top: 0; }

/* ---- Typography helpers ---- */
.dq-mono, .dq-label, .dq-eyebrow, .dq-kenn, .dq-num, .dq-tag {
  font-family: var(--wp--preset--font-family--mono);
}
.dq-label {
  font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.dq-label::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: url("assets/logo/dealiQ_Signet.svg") center / contain no-repeat;
}
.dq-label.is-plain::before { display: none; }
.dq-band-ink .dq-label { color: #fe5f38; }
.dq-eyebrow {
  display: inline-block; font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px; border-left: 2px solid #fe5f38; border-right: 2px solid #fe5f38; margin: 0;
}
.dq-kenn {
  margin: 0; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #4b4b4b;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.dq-tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: #141414; color: #ffffff; padding: 4px 8px;
}
.dq-lead { font-weight: 300; font-size: var(--wp--preset--font-size--lead); line-height: 1.5; max-width: 620px; }
.dq-display { font-family: var(--wp--preset--font-family--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; }
.dq-result { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.75rem; line-height: 1.3; letter-spacing: -0.005em; max-width: 760px; }
.dq-muted { color: #4b4b4b; }

/* ---- Buttons ---- */
.dq-btn, .wp-block-button__link {
  font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: #fe5f38; color: #141414; padding: 16px 24px; text-decoration: none; display: inline-block; border-radius: 0;
}
.dq-btn:hover, .wp-block-button__link:hover { background: #141414; color: #ffffff; }
.dq-btn.is-ghost { background: transparent; border: 1px solid #141414; padding: 15px 24px; }
.dq-btn.is-ghost:hover { background: #141414; color: #ffffff; }
.dq-link { font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid #141414; padding-bottom: 2px; }

/* ---- Header / footer ---- */
.dq-header { padding: 28px 0; }
.dq-header .dq-wrap { display: flex; align-items: center; gap: 32px; }
.dq-header .dq-logo img { height: 44px; width: auto; display: block; }
.dq-header .wp-block-navigation { margin-left: auto; }
.dq-header .wp-block-navigation a { text-decoration: none; font-size: 1rem; }
.dq-header .wp-block-navigation .dq-nav-cta a {
  font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: #fe5f38; color: #141414; padding: 14px 20px;
}
.dq-footer { background: #eaeaea; border-top: 1px solid #dcdcdc; padding: 48px 0; font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; letter-spacing: 0.08em; line-height: 1.7; }
.dq-footer .dq-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.dq-footer .dq-logo img { height: 36px; width: auto; display: block; }
.dq-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-transform: uppercase; }
.dq-footer a { text-decoration: none; }
.dq-footer .dq-muted { text-transform: uppercase; font-weight: 700; color: #141414; display: block; margin-bottom: 8px; }
.dq-footer .dq-langs { color: #6b6b6b; }
.dq-footer .dq-langs a { color: #141414; }
.dq-footer .dq-company { margin-top: 16px; font-size: 0.75rem; letter-spacing: 0.06em; line-height: 1.7; color: #4b4b4b; text-transform: none; }
.dq-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; margin: 0; }
.dq-table th, .dq-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid #e3e3e3; }
.dq-table th { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; border-top: 0; padding-top: 0; }
.dq-table td:first-child { width: 36%; }
.dq-list { margin: 12px 0 0; padding-left: 20px; }
.dq-list li { margin-bottom: 10px; }

/* ---- Hero ---- */
.dq-hero { padding: 72px 0 88px; }
.dq-hero .dq-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.dq-hero h1 { max-width: 720px; margin: 0; font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem); line-height: 1.1; }
.dq-hero-col { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.dq-btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.dq-placeholder {
  width: 100%; max-width: 520px; aspect-ratio: 1; box-sizing: border-box; border: 1px dashed #fe5f38; margin-left: auto;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px;
  font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: #4b4b4b; line-height: 1.8;
}

/* ---- Two-column rows (situations, roles, contact) ---- */
.dq-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.dq-row > * { min-width: 0; }
.dq-band-row { padding-top: 48px; padding-bottom: 48px; }
.dq-band-row h3 { margin: 0; font-size: var(--wp--preset--font-size--display-2); font-weight: 400; letter-spacing: -0.01em; }
.dq-band-row p { margin: 0; max-width: 480px; }
.dq-stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---- Numbered lists (modules, steps, scope) ---- */
.dq-numlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dq-numlist > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 24px 0; border-top: 1px solid #141414; }
.dq-numlist > li:last-child { border-bottom: 1px solid #141414; }
.dq-numlist > li:first-child { border-top: 0; }
.dq-numlist .dq-num { font-size: 0.8125rem; letter-spacing: 0.1em; padding-top: 6px; }
.dq-numlist .dq-item-title { font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; display: block; }
.dq-numlist .dq-item-text { display: block; margin-top: 8px; color: #4b4b4b; }
.dq-numlist a { text-decoration: none; display: block; }
.dq-band-ink .dq-numlist > li { border-color: #3a3a3a; }
.dq-band-ink .dq-numlist .dq-num { color: #fe5f38; }
.dq-band-ink .dq-numlist .dq-item-text { color: #d6d6d6; }
.dq-numlist.is-compact > li { padding: 12px 0; border-top: 0; border-bottom: 1px solid #e3e3e3; grid-template-columns: 40px minmax(0, 1fr); }
.dq-numlist.is-compact > li:last-child { border-bottom: 0; }
.dq-numlist.is-compact .dq-num { padding-top: 5px; font-size: 0.75rem; }
.dq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.dq-steps > li { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid #141414; }
.dq-steps .dq-step-title { font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.375rem; line-height: 1.15; }
.dq-modules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }

/* ---- Datasheet (spec rows) ---- */
.dq-spec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid #141414; }
.dq-spec:first-child { border-top: 0; }
.dq-spec > .dq-spec-label { font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: #4b4b4b; padding-top: 4px; margin: 0; }
.dq-spec > div { border-left: 1px solid #e3e3e3; padding-left: 32px; }
.dq-spec > div > :first-child { margin-top: 0; }
.dq-spec p { max-width: 720px; }
.dq-roles ul { list-style: none; margin: 0; padding: 0; }
.dq-roles li { padding: 14px 0; border-top: 1px solid #3a3a3a; }
.dq-roles li:last-child { border-bottom: 1px solid #3a3a3a; }
.dq-roles .dq-role-title { font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.75rem; line-height: 1.2; margin: 0 0 16px; }

/* ---- Posts / latest ---- */
.dq-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.dq-posts article, .dq-post-card { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid #141414; }
.dq-post-card .wp-block-post-title { font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.dq-post-card .wp-block-post-title a { text-decoration: none; }
.dq-post-card .wp-block-post-date { font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: #4b4b4b; }
.dq-archive-list .dq-post-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 28px 0; }
.dq-prose { max-width: 720px; }
.dq-prose p, .dq-prose li { font-size: 1.125rem; line-height: 1.65; }
.dq-prose h2 { font-size: var(--wp--preset--font-size--display-3); margin-top: 2.5rem; }

/* ---- Forms (Fluent Forms / generic) ---- */
.dq-form label, .fluentform label { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #4b4b4b; }
.dq-form input[type="text"], .dq-form input[type="email"], .dq-form select, .dq-form textarea,
.fluentform input[type="text"], .fluentform input[type="email"], .fluentform select, .fluentform textarea {
  font-family: var(--wp--preset--font-family--sans); font-size: 1.0625rem; padding: 14px 16px; border: 1px solid #141414; border-radius: 0; background: #fff; color: #141414; width: 100%; box-sizing: border-box; min-height: 44px;
}
.fluentform .ff-btn-submit, .dq-form button { font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase; background: #fe5f38 !important; color: #141414 !important; border: 0 !important; border-radius: 0 !important; padding: 16px 24px !important; }

/* ---- Breadcrumb ---- */
.dq-crumb { display: flex; gap: 12px; align-items: center; font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.dq-crumb a { text-decoration: none; color: #4b4b4b; }
.dq-crumb .dq-crumb-sep { color: #9a9a9a; }
.dq-page-head { padding: 56px 0 64px; }
.dq-page-head .dq-wrap { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.dq-head-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: end; width: 100%; }
.dq-head-grid h1 { margin: 0; }
h1.dq-display, h1.wp-block-post-title { font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem); line-height: 1.1; }
.dq-head-grid p { margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .dq-wrap { padding-left: 20px; padding-right: 20px; }

  .dq-hero .dq-wrap, .dq-row, .dq-head-grid, .dq-modules-grid, .dq-spec, .dq-posts, .dq-footer .dq-wrap, .dq-archive-list .dq-post-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dq-spec > div { border-left: 0; padding-left: 0; }
  .dq-steps { grid-template-columns: minmax(0, 1fr); }
  .dq-placeholder { display: none; }
  .dq-header .dq-logo img { height: 36px; }
  .dq-hero { padding: 48px 0 56px; }
  .dq-band-row h3 { font-size: 2rem; }
  .dq-btnrow { flex-direction: column; align-items: stretch; }
  .dq-btnrow .dq-btn { text-align: center; }
}

/* ==== dq-b: real-block sections (block test, 0.3.0) ==== */
/* Scope: only elements inside a section group with class "dq-b". Nothing outside .dq-b changes. */

/* Neutralise WordPress flow-layout block gap inside the sections: spacing comes from the rules below */
.dq-b.is-layout-flow > *, .dq-b .is-layout-flow > * { margin-block-start: 0; margin-block-end: 0; }
.dq-b .wp-block-buttons.is-layout-flex { gap: 12px; align-items: normal; }

/* Spacing helpers (replace the inline styles of the wp:html version) */
.dq-b .dq-b-pad-head { padding-top: 40px; padding-bottom: 24px; }
.dq-b .dq-b-pad-section { padding-top: 72px; padding-bottom: 80px; }
.dq-b .dq-b-intro { max-width: 760px; }
.dq-b .dq-b-gap20 { gap: 20px; }
.dq-b .dq-b-mt40 { margin-top: 40px; }
.dq-b .dq-b-mt48 { margin-top: 48px; }
.dq-b .dq-lead { margin-top: 1em; margin-bottom: 1em; }
.dq-b h2.dq-display { margin: 0; font-size: var(--wp--preset--font-size--display-2); letter-spacing: -0.01em; }
.dq-b .dq-b-note { margin: 32px 0 0; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: #b5b5b5; }
.dq-b .dq-b-cta-text { margin: 0; max-width: 520px; font-size: 1.125rem; }
.dq-b .dq-b-contact { margin: 0; font-size: 0.875rem; letter-spacing: 0.06em; line-height: 1.8; }
.dq-b .dq-b-contact a { text-decoration: none; }

/* Hero: key figures (group of paragraphs) */
.dq-b .dq-kenn > p { margin: 0; }

/* Buttons: same look as .dq-btn / .dq-btn.is-ghost */
.dq-b .wp-block-button__link { line-height: inherit; }
.dq-b .wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent; color: #141414; border: 1px solid #141414; padding: 15px 24px;
}
.dq-b .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #141414; color: #ffffff; }

/* Situations: "For whom" link paragraph (same look as a.dq-link) */
.dq-b p.dq-b-link { display: flex; margin: 0; }
.dq-b p.dq-b-link a {
  font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid #141414; padding-bottom: 2px;
}

/* Services: module rows, number from a CSS counter running across both columns, whole row clickable */
.dq-b .dq-modules-grid { counter-reset: dq-module; }
.dq-b .dq-module {
  position: relative; counter-increment: dq-module;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; padding: 24px 0; border: 0 solid #141414; border-top-width: 1px;
}
.dq-b .dq-numlist > .dq-module:first-child { border-top-width: 0; }
.dq-b .dq-numlist > .dq-module:last-child { border-bottom-width: 1px; }
.dq-b .dq-module::before {
  content: counter(dq-module, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 2;
  font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; letter-spacing: 0.1em; padding-top: 6px;
}
.dq-b .dq-module > h3 {
  grid-column: 2; margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: normal;
}
.dq-b .dq-module > h3 a { text-decoration: none; display: block; }
.dq-b .dq-module > h3 a::after { content: ""; position: absolute; inset: 0; }
.dq-b .dq-module > p { grid-column: 2; margin: 8px 0 0; color: #4b4b4b; }
.dq-b.dq-band-ink .dq-module { border-color: #3a3a3a; }
.dq-b.dq-band-ink .dq-module::before { color: #fe5f38; }
.dq-b.dq-band-ink .dq-module > p { color: #d6d6d6; }

/* Steps: number from a CSS counter */
.dq-b .dq-steps { counter-reset: dq-step; }
.dq-b .dq-step {
  counter-increment: dq-step;
  display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid #141414;
}
.dq-b .dq-step::before { content: counter(dq-step); font-family: var(--wp--preset--font-family--mono); }
.dq-b .dq-step > p { margin: 0; }

@media (max-width: 900px) {
  .dq-b .dq-btnrow .wp-block-button__link { display: block; text-align: center; }
}
