/* Solution pages (EN + NL): shared layout and components.
   Used by /solutions/* and /oplossingen/* pages; each page only holds its copy.
   Started from the quick-launch page (2026-10-21). Class prefix: sol-. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: 'Gabarito', sans-serif; background: #fff; color: #111; overflow-x: hidden; }

/* Type scale follows the homepage (index.php): h1 64px/700, section titles
   about 53px/600, service titles about 27px/700, sub-text 14 to 16px. */
.sol {
  --red: #963723; --panel: #2b1206; --ink: #111111; --grey: #474646;
  --line: #e4e4e4; --soft: #F7F7F7; --cream: #fdf5ee;
  --gold: #FFD999; --gold-soft: #FFE8C0; --gold-pale: #FFF3DC;
  --dot: #8B2F1D;
  --radius: 28px; --pad: clamp(16px, 5vw, 56px); --max: 1240px;
  font-size: 15px; line-height: 1.6; color: var(--ink);
}
.sol img { max-width: 100%; display: block; }
.sol a:not(.btn) { color: inherit; }
.sol h1, .sol h2, .sol h3 { font-family: 'Alexandria', sans-serif; line-height: 1.15; letter-spacing: -0.01em; }
.sol h1 { font-weight: 700; font-size: clamp(34px, 4.4vw, 64px); margin-bottom: 24px; }
.sol h2 { font-weight: 600; font-size: clamp(28px, 3.7vw, 53px); letter-spacing: -0.03em; margin-bottom: 18px; }
.sol h3 { font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 8px; }
.sol-accent { color: var(--red); }
.sol-eyebrow { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; display: block; }
.sol-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sol-lead { font-size: 16px; color: var(--grey); max-width: 640px; }
.sol-lead + .sol-lead { margin-top: 14px; }
.sol-sec { padding: clamp(64px, 9vw, 120px) 0; }
.sol-sec[id] { scroll-margin-top: 80px; }

/* buttons */
.sol-btns { display: flex; flex-wrap: wrap; gap: 16px; }
/* Hover: no lift (it moved the edge out from under the cursor and flickered)
   and no gradient-to-flat swap (it cannot animate). The arrow slides like
   the homepage links, and the button darkens slightly. */
/* Focus: red on light sections, gold only on the dark ones (contrast 3:1) */
.sol a:not(.btn):focus-visible, .sol summary:focus-visible, .sol [tabindex]:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sol-btns { align-items: center; }
/* Buttons and text links use the shared /assets/css/buttons.css (.btn). Only
   placement lives here. The hero "See the templates" link points down. */
.sol-hero .sol-textlink > svg { rotate: 90deg; }
.sol-hero .sol-textlink:hover > svg { transform: none; }

/* hero */
/* Desktop: the hero fills the screen under the 68px nav, so no half section peeks in at the bottom (as on the homepage) */
.sol-hero { display: grid; grid-template-columns: 1.45fr 1fr; min-height: max(600px, calc(100vh - 68px)); min-height: max(600px, calc(100svh - 68px)); }
.sol-hero__main { padding: 96px var(--pad) 80px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); display: flex; flex-direction: column; justify-content: center; }
.sol-hero__panel { background: var(--panel); color: #fff; padding: 96px var(--pad) 80px; display: flex; flex-direction: column; justify-content: center; gap: 34px; }
.sol-stat b { display: block; font-family: 'Alexandria', sans-serif; font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1; color: #fff; }
.sol-stat span { color: var(--gold-soft); font-size: 15px; letter-spacing: .04em; }
/* Key facts as a check list, not pills (Cess, 2026-10-21); same ✓ as the fit list */
.sol-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 32px; list-style: none; }
.sol-checks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--grey); }
.sol-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--dot); font-weight: 900; }
.sol-checks b { color: var(--ink); }

/* sheets */
.sol-sheet { background: var(--soft); border-radius: var(--radius) var(--radius) 0 0; }
.sol-sheet--cream { background: var(--cream); }
.sol-head { max-width: 760px; margin-bottom: 48px; }
.sol-grid { display: grid; gap: 22px; }
.sol-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* templates */
/* Each template type in its own full-width tinted band (Cess, 2026-10-21) */
#templates { padding-bottom: 0; }
.sol-group { padding: clamp(48px, 6vw, 80px) 0; }
.sol-group--1 { background: #F3EAE2; }
.sol-group--2 { background: #FFFFFF; }
.sol-group--3 { background: #F3EAE2; }
.sol-num { display: block; font-family: 'Alexandria', sans-serif; font-weight: 700; font-size: clamp(44px, 4vw, 56px); line-height: 1; color: var(--dot); margin-bottom: 12px; }
.sol-group__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; align-items: start; }
.sol-group__head h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 700; }
.sol-group__head .sol-lead, .sol-bestfor { margin-top: 12px; }
.sol-group__head .sol-lead { font-size: 15px; }
.sol-kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block; }
.sol-bestfor { font-size: 14px; color: var(--grey); }
.sol-bestfor b { color: var(--ink); }
.sol-feat { list-style: none; display: grid; gap: 8px; }
.sol-feat li { padding-left: 26px; position: relative; font-size: 15px; color: var(--grey); }
/* Same bullet as the homepage "How we work" dots: one solid #8B2F1D circle */
.sol-feat li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.sol-tpl { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid #ece4dc; display: flex; flex-direction: column; }
.sol-tpl__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; border-bottom: 1px solid #eee; }
.sol-tpl__bar { height: 26px; background: #f1ece7; display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.sol-tpl__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8cfc6; }
.sol-tpl__frame img { position: absolute; top: 26px; left: 0; width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; transition: transform .5s ease; }
.sol-tpl:hover .sol-tpl__frame img { transform: scale(1.03); }
.sol-tpl__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sol-tpl__name { font-family: 'Alexandria', sans-serif; font-weight: 700; font-size: 17px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sol-tag { font-family: 'Gabarito', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: #f1ece7; color: var(--grey); }
.sol-tpl__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: auto; }
/* Same link style and arrow as the homepage "View live" link; 44px tap height */

/* process table */
.sol-tbl-wrap { overflow-x: auto; }
.sol-tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid #ece4dc; }
.sol-tbl th, .sol-tbl td { text-align: left; padding: 18px 22px; border-bottom: 1px solid #f0e9e2; font-size: 15px; vertical-align: top; }
/* Justified text: handled site-wide by /assets/js/justify-text.js (3+ lines
   justified, 1–2 lines left). No text-align rules here on purpose. */
.sol-tbl th { font-family: 'Alexandria', sans-serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; background: var(--panel); color: var(--gold-soft); font-weight: 600; }
.sol-tbl tr:last-child td { border-bottom: 0; }
.sol-tbl td:first-child { font-weight: 700; width: 34%; }
.sol-after { margin-top: 24px; max-width: none; }

/* fit */
.sol-fit { border-radius: 22px; padding: 32px; background: #fff; }
.sol-fit--yes { border: 2px solid var(--gold); }
.sol-fit--no { border: 1px dashed #d4c5b5; }
.sol-fit ul { list-style: none; display: grid; gap: 12px; margin-top: 10px; }
.sol-fit li { padding-left: 32px; position: relative; color: var(--grey); }
.sol-fit--yes li::before { content: "✓"; position: absolute; left: 0; color: var(--dot); font-weight: 900; }
.sol-fit--no li::before { content: "–"; position: absolute; left: 4px; color: var(--dot); font-weight: 900; }
.sol-fit a { color: var(--red); }
.sol-note { margin-top: 30px; font-family: 'Alexandria', sans-serif; font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; }
.sol-inline-cta { margin-top: 28px; }
.sol-faq a { color: var(--red); }

/* faq */
.sol-faq { display: grid; gap: 12px; } /* full content width, same as the process table */
.sol-faq details { background: #fff; border-radius: 18px; border: 1px solid #ece4dc; padding: 0 26px; }
.sol-faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-family: 'Alexandria', sans-serif; font-weight: 600; font-size: 17px; position: relative; }
.sol-faq summary::-webkit-details-marker { display: none; }
.sol-faq summary::after { content: "+"; position: absolute; right: 0; top: 18px; font-size: 26px; color: var(--red); transition: transform .2s; }
.sol-faq details[open] summary::after { transform: rotate(45deg); }
.sol-faq details p { padding: 0 0 22px; color: var(--grey); }

/* end cta */
.sol-cta { background: var(--panel); color: #fff; border-radius: var(--radius); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.sol-cta h2 { color: #fff; }
.sol-cta h2 span { color: var(--gold); }
.sol-cta p { color: #f1e3d6; font-size: 16px; }
/* End CTA: both buttons in one column, same width (the wider label sets it) */
.sol-cta .sol-btns { display: grid; grid-template-columns: max-content; justify-content: end; gap: 14px; }

/* ── Case study: dark panel with text and a screenshot (portfolio "Real work") ── */
.sol-case { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); color: #fff; border-radius: var(--radius); overflow: hidden; }
.sol-case__txt { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.sol-case__txt .sol-kicker { color: var(--gold); }
.sol-case__txt h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; margin-bottom: 14px; color: #fff; }
.sol-case__txt p { color: #f1e3d6; font-size: 16px; }
.sol-case__links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 22px; }
.sol-case__frame { position: relative; min-height: 340px; background: #1a0b04; }
.sol-case__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sol-case + .sol-case { margin-top: 22px; }

/* ── Numbered principle cards (3 columns) ── */
.sol-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sol-grid--4 { grid-template-columns: repeat(4, 1fr); } /* numbered steps */
.sol-steps { list-style: none; }
.sol-more { margin: 24px 0 0; }
.sol-card { background: #fff; border-radius: 22px; padding: 28px; border: 1px solid #efe7e0; }
.sol-card .sol-num { font-size: 40px; margin-bottom: 14px; }
.sol-card h3 { font-size: 19px; }
.sol-card a { color: var(--red); }
.sol-card p { color: var(--grey); font-size: 15px; }

/* "Real client" (red) / "Sample" (grey) label on a template card: plain text, no pill */
.sol-real { font-family: 'Gabarito', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.sol-real--sample { color: var(--grey); }

/* Template group with a single example: text left, card right (no empty half) */
.sol-group--single > .sol-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sol-group--single .sol-group__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 0; }
.sol-group--single .sol-grid--2 { grid-template-columns: 1fr; }
/* Every second case block: image on the left, for rhythm */
.sol-case--flip { grid-template-columns: 1fr 1.1fr; }
.sol-case--flip .sol-case__frame { order: -1; }
/* Links inside card text: underlined, not colour alone (WCAG 1.4.1) */
.sol-card p a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1020px) {
  .sol-group--single > .sol-wrap { grid-template-columns: 1fr; gap: 0; }
  .sol-group--single .sol-group__head { margin-bottom: 30px; }
  .sol-case--flip { grid-template-columns: 1fr; }
  .sol-case--flip .sol-case__frame { order: 0; }
  .sol-case { grid-template-columns: 1fr; }
  .sol-case__frame { min-height: 0; aspect-ratio: 16 / 10; }
  .sol-grid--3 { grid-template-columns: 1fr 1fr; }
  .sol-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sol-grid--3, .sol-grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .sol-hero { grid-template-columns: 1fr; min-height: 0; }
  .sol-hero__main { padding: 64px var(--pad) 56px; }
  /* Stacked layout: the panel would only repeat the ✓ facts, so it is hidden (Cess, 2026-10-21) */
  .sol-hero__panel { display: none; }
  .sol-group__head, .sol-cta { grid-template-columns: 1fr; }
  .sol-cta .sol-btns { justify-content: start; }
}
@media (max-width: 640px) {
  .sol-grid--2 { grid-template-columns: 1fr; }
  /* Phone: facts stacked, left edge kept, framed by two hairlines as one block (designer, 2026-10-21) */
  .sol-checks { flex-direction: column; gap: 8px; margin: 20px 0 24px; padding: 16px 0; border-top: 1px solid rgba(139,47,29,.25); border-bottom: 1px solid rgba(139,47,29,.25); }
  .sol-checks li { line-height: 1.4; }
  .sol-hero .sol-textlink { margin: 4px auto 0; }
  .sol-cta .sol-btns { grid-template-columns: 1fr; }
  .sol-hero__panel .sol-stat { flex: 1 1 40%; }
  .sol-tbl th, .sol-tbl td { padding: 14px; font-size: 14px; }
  .sol-tbl td:first-child { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sol * { transition: none !important; }
}
