/*
Theme Name: Deskpanel
Description: Productsite voor Deskpanel, de startpagina voor terminalservers en werkplekken.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: deskpanel
*/

:root {
  --dp-ink: #0f1d2b;
  --dp-ink-2: #3c4b5c;
  --dp-muted: #66768a;
  --dp-line: #dfe5ec;
  --dp-bg: #ffffff;
  --dp-soft: #f3f6f9;
  --dp-brand: #0a6e5c;
  --dp-brand-dark: #07574a;
  --dp-brand-soft: #e3f3ef;
  --dp-accent: #b45309;
  --dp-blue: #1d5fa8;
  --dp-radius: 14px;
  --dp-shadow: 0 1px 2px rgba(15, 29, 43, .06), 0 8px 24px rgba(15, 29, 43, .08);
  --dp-wrap: 1160px;
  --dp-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--dp-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--dp-ink);
  background: var(--dp-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--dp-brand); }
a:hover { color: var(--dp-brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.dp-wrap { max-width: var(--dp-wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.dp-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; clip: auto; width: auto; height: auto; }

/* ---------- Header ---------- */
.dp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--dp-line);
}
.dp-header .dp-wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.dp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dp-ink); font-weight: 700; font-size: 1.2rem; }
.dp-logo svg { width: 32px; height: 32px; flex: none; }
.dp-logo:hover { color: var(--dp-ink); }
.dp-nav { margin-left: auto; }
.dp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.dp-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--dp-ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; }
.dp-nav a:hover, .dp-nav .current-menu-item > a { color: var(--dp-ink); background: var(--dp-soft); }
.dp-nav .current-menu-item > a[href*="#"]:not(:hover) { background: none; color: var(--dp-ink-2); }
.dp-nav .dp-nav-cta > a { background: var(--dp-brand); color: #fff; margin-left: 8px; }
.dp-nav .dp-nav-cta > a:hover { background: var(--dp-brand-dark); color: #fff; }
.dp-menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--dp-line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

@media (max-width: 880px) {
  .dp-menu-toggle { display: block; }
  .dp-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--dp-line); padding: 12px 24px 20px; }
  .dp-nav.is-open { display: block; }
  .dp-nav ul { flex-direction: column; align-items: stretch; }
  .dp-nav .dp-nav-cta > a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.dp-btn, .wp-block-button__link {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  background: var(--dp-brand); color: #fff; border: 2px solid var(--dp-brand);
  transition: background .15s, border-color .15s, color .15s;
}
.dp-btn:hover, .wp-block-button__link:hover { background: var(--dp-brand-dark); border-color: var(--dp-brand-dark); color: #fff; }
.is-style-outline .wp-block-button__link, .dp-btn-outline { background: transparent; color: var(--dp-brand); }
.is-style-outline .wp-block-button__link:hover, .dp-btn-outline:hover { background: var(--dp-brand-soft); color: var(--dp-brand-dark); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }

/* ---------- Page content (Gutenberg) ---------- */
.dp-main { min-height: 50vh; }
.dp-page-head { background: var(--dp-soft); border-bottom: 1px solid var(--dp-line); padding: 64px 0 48px; }
.dp-page-head p { color: var(--dp-ink-2); font-size: 1.15rem; max-width: 720px; margin: 0; }
.dp-content > * { max-width: var(--dp-wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.dp-content > .dp-narrow, .dp-content > p, .dp-content > ul, .dp-content > ol, .dp-content > h2, .dp-content > h3, .dp-content > .wp-block-table { max-width: 820px; }
.dp-content > .alignfull, .dp-content > .dp-section, .dp-content > .dp-hero { max-width: none; padding-left: 0; padding-right: 0; }
.dp-section.is-soft + .dp-section.is-soft { padding-top: 0; }
.dp-content > *:first-child { margin-top: 0; }

/* Klassiek thema: WordPress zet een extra div in elke groep. Die laten we wegvallen,
   zodat raster- en kaartstijlen direct op de blokken erin werken. */
.wp-block-group__inner-container { display: contents; }

.dp-section { padding: 88px 0; }
.dp-section > *, .dp-section > .wp-block-group__inner-container > * { max-width: var(--dp-wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.dp-section .dp-grid, .dp-section .dp-stats { box-sizing: content-box; max-width: calc(var(--dp-wrap) - 48px); }
.dp-section > .wp-block-group__inner-container > .wp-block-buttons { justify-content: center; }
.dp-section-head .wp-block-buttons { justify-content: center; }
.dp-section.is-soft { background: var(--dp-soft); }
.dp-section.is-dark { background: var(--dp-ink); color: #dfe7ef; }
.dp-section.is-dark h2, .dp-section.is-dark h3 { color: #fff; }
.dp-section.is-brand { background: linear-gradient(135deg, var(--dp-brand) 0%, #0b5f80 100%); color: #e6f4f0; }
.dp-section.is-brand h2 { color: #fff; }
.dp-section.is-brand .wp-block-button__link { background: #fff; color: var(--dp-brand-dark); border-color: #fff; }
.dp-section.is-brand .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.dp-section.is-brand .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.dp-section-head { text-align: center; margin-bottom: 48px !important; }
.dp-section-head p { color: var(--dp-muted); font-size: 1.12rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.is-dark .dp-section-head p { color: #a9b8c7; }
.is-brand .dp-section-head p { color: #d9f0ea; }
.is-dark code { background: #22384d; color: #e3edf6; }
.dp-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-brand); margin-bottom: 10px !important; }
.is-dark .dp-eyebrow { color: #5fd3b8; }

/* Hero */
.dp-hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, #dff2ec 0%, rgba(223,242,236,0) 60%), linear-gradient(#fff, #f7fafc); border-bottom: 1px solid var(--dp-line); }
.dp-hero .wp-block-columns { align-items: center; gap: 56px; }
.dp-hero h1 { margin-bottom: .4em; }
.dp-hero .dp-lead { font-size: 1.2rem; color: var(--dp-ink-2); max-width: 560px; }
.dp-checks { list-style: none; padding: 0 !important; margin: 1.4em 0 0; }
.dp-checks li { position: relative; padding-left: 30px; margin: .45em 0; color: var(--dp-ink-2); }
.dp-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--dp-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a6e5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.is-dark .dp-checks li { color: #dfe7ef; }
.is-dark .dp-checks li::before { background-color: rgba(95, 211, 184, .15); }

/* Columns */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 860px) { .wp-block-columns { flex-direction: column; } .wp-block-column { flex-basis: 100% !important; } }

/* Cards / feature grid */
.dp-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dp-grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.dp-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .dp-grid, .dp-grid.is-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dp-grid, .dp-grid.is-2, .dp-grid.is-4 { grid-template-columns: 1fr; } }
.dp-card { background: #fff; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); padding: 28px; box-shadow: 0 1px 2px rgba(15,29,43,.04); }
.dp-card h3 { margin-top: 0; }
.dp-card p:last-child { margin-bottom: 0; }
.dp-card p { color: var(--dp-ink-2); font-size: .98rem; }
.is-dark .dp-card { background: #172a3c; border-color: #26405a; }
.is-dark .dp-card p { color: #b8c6d4; }
.dp-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: var(--dp-brand-soft); color: var(--dp-brand); font-size: 22px; margin-bottom: 16px !important; line-height: 1; }
.dp-icon.is-blue { background: #e4eefa; color: var(--dp-blue); }
.dp-icon.is-amber { background: #fdf0e1; color: var(--dp-accent); }

/* Steps */
.dp-steps { counter-reset: dp-step; }
.dp-step { position: relative; padding-top: 56px !important; }
.dp-step::before { counter-increment: dp-step; content: counter(dp-step); position: absolute; top: 24px; left: 28px; width: 34px; height: 34px; border-radius: 50%; background: var(--dp-brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dp-step { padding-top: 76px !important; }

/* Code */
.dp-content code, .dp-section code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em; background: var(--dp-soft); padding: .1em .35em; border-radius: 5px; }
.dp-content pre, .wp-block-code { background: var(--dp-ink); color: #d6e2ee; padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.wp-block-code code { background: none; padding: 0; color: inherit; }

/* Table */
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.wp-block-table th, .wp-block-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--dp-line); vertical-align: top; }
.wp-block-table thead th { background: var(--dp-soft); font-weight: 650; }
.wp-block-table { overflow-x: auto; margin: 0 auto 1.5em; }

/* Pricing */
.dp-price { display: flex; flex-direction: column; position: relative; }
.dp-price.is-featured { border: 2px solid var(--dp-brand); box-shadow: var(--dp-shadow); }
.dp-price .dp-badge { position: absolute; top: -13px; left: 28px; background: var(--dp-brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; margin: 0 !important; }
.dp-price .dp-amount { font-size: 2.4rem; font-weight: 750; color: var(--dp-ink); line-height: 1.1; margin: .2em 0 .1em !important; }
.dp-price .dp-amount small { font-size: .95rem; font-weight: 500; color: var(--dp-muted); }
.dp-price .dp-checks { flex: 1; margin-bottom: 1.4em; }
.dp-price .wp-block-buttons { margin-top: auto; }
.dp-price .wp-block-button, .dp-price .wp-block-button__link { width: 100%; text-align: center; }
.dp-note { font-size: .92rem; color: var(--dp-muted); text-align: center; margin-top: 28px !important; }

/* FAQ */
.dp-faq details { border-bottom: 1px solid var(--dp-line); padding: 6px 0; }
.dp-faq summary { cursor: pointer; font-weight: 600; padding: 14px 32px 14px 0; list-style: none; position: relative; font-size: 1.05rem; }
.dp-faq summary::-webkit-details-marker { display: none; }
.dp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--dp-brand); font-weight: 400; }
.dp-faq details[open] summary::after { content: "–"; }
.dp-faq details > :not(summary) { color: var(--dp-ink-2); margin: 0 0 16px; }

/* Stats strip */
.dp-stats { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.dp-stats p { margin: 0; color: var(--dp-muted); font-size: .95rem; }
.dp-stats strong { display: block; font-size: 1.7rem; color: var(--dp-ink); }
@media (max-width: 760px) { .dp-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Mockup of the start page ---------- */
.dp-mock { background: #fff; border: 1px solid #cfd8e2; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(15,29,43,.35), 0 2px 6px rgba(15,29,43,.08); overflow: hidden; font-size: 11px; line-height: 1.35; color: var(--dp-ink); user-select: none; }
.dp-mock-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--dp-brand); color: #fff; }
.dp-mock-bar .lg { width: 16px; height: 16px; border-radius: 4px; background: rgba(255,255,255,.9); }
.dp-mock-bar b { font-size: 12px; }
.dp-mock-bar .sp { flex: 1; }
.dp-mock-bar .pill { background: rgba(255,255,255,.18); padding: 2px 8px; border-radius: 99px; font-size: 10px; }
.dp-mock-body { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; padding: 10px; background: #eef2f6; }
.dp-mock-col { display: flex; flex-direction: column; gap: 8px; }
.dp-mock-box { background: #fff; border: 1px solid #d8e0e8; border-radius: 7px; padding: 7px; }
.dp-mock-box h5 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; color: var(--dp-muted); }
.dp-mock-box.c-amber { border-color: #e9c49b; background: #fffaf3; }
.dp-mock-box.c-amber h5 { color: var(--dp-accent); }
.dp-mock-box.c-blue h5 { color: var(--dp-blue); }
.dp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 5px; }
.dp-tile { display: flex; align-items: center; gap: 5px; background: #f5f7fa; border: 1px solid #e3e8ee; border-radius: 5px; padding: 5px; font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.dp-tile i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.dp-row { display: flex; justify-content: space-between; gap: 6px; padding: 3px 2px; border-bottom: 1px solid #eef1f4; font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.dp-row:last-child { border-bottom: 0; }
.dp-row span:last-child { color: var(--dp-muted); }
.dp-row span:first-child { overflow: hidden; text-overflow: ellipsis; }
.dp-row.f span:first-child::before { content: "▸ "; color: #c49a3a; }
.dp-msg { border-left: 3px solid var(--dp-blue); padding: 3px 6px; margin-bottom: 5px; background: #f3f7fc; font-size: 9.5px; border-radius: 0 4px 4px 0; }
.dp-msg.w { border-color: var(--dp-accent); background: #fdf6ec; }
.dp-msg.ok { border-color: var(--dp-brand); background: #eef8f5; }
.dp-mock-search { width: 70px; height: 13px; border: 1px solid #d8e0e8; border-radius: 4px; background: #fff; }
@media (max-width: 520px) { .dp-mock-body { grid-template-columns: 1fr 1fr; } .dp-mock-col.hide-s { display: none; } }

/* ---------- Form ---------- */
.dp-form { background: #fff; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); padding: 32px; box-shadow: var(--dp-shadow); }
.dp-form .dp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.dp-form .dp-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .dp-form .dp-fields { grid-template-columns: 1fr; } .dp-form { padding: 22px; } }
.dp-form label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.dp-form label .opt { font-weight: 400; color: var(--dp-muted); }
.dp-form input[type=text], .dp-form input[type=email], .dp-form input[type=tel], .dp-form input[type=number], .dp-form select, .dp-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #c9d3de; border-radius: 9px; background: #fff; color: var(--dp-ink);
}
.dp-form input:focus, .dp-form select:focus, .dp-form textarea:focus { outline: 3px solid rgba(10,110,92,.2); border-color: var(--dp-brand); }
.dp-form textarea { min-height: 130px; resize: vertical; }
.dp-form .dp-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.dp-form .dp-check input { margin-top: 5px; }
.dp-form button { font: inherit; cursor: pointer; margin-top: 8px; }
.dp-hp { position: absolute !important; left: -9999px !important; }
.dp-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.dp-alert.ok { background: var(--dp-brand-soft); color: var(--dp-brand-dark); border: 1px solid #b6e0d5; }
.dp-alert.err { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c2c2; }

/* ---------- Footer ---------- */
.dp-footer { background: var(--dp-ink); color: #9fb0c1; padding: 56px 0 28px; font-size: .95rem; }
.dp-footer a { color: #d6e2ee; text-decoration: none; }
.dp-footer a:hover { color: #fff; text-decoration: underline; }
.dp-footer .dp-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .dp-footer .dp-foot-grid { grid-template-columns: 1fr; } }
.dp-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.dp-footer ul { list-style: none; margin: 0; padding: 0; }
.dp-footer li { margin: 6px 0; }
.dp-footer .dp-logo { color: #fff; margin-bottom: 12px; }
.dp-footer .dp-copy { border-top: 1px solid #22384d; margin-top: 40px; padding-top: 20px; font-size: .88rem; }
