/*
Theme Name: Dienstclip
Theme URI: https://dienstclip.nl
Author: Dienstclip
Description: Webshop-thema in de stijl van dienstclip.nl. Toont alleen de productpagina, de winkelwagen en het afrekenen.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
WC requires at least: 9.0
Text Domain: dienstclip
*/

/* Base: copied from dienstclip.nl (11. website/styles.css) so both sites look the same.
   Change something here? Change it there too. The webshop-specific styling is in assets/css/shop.css. */

:root {
  /* Dark edition: the Lovable system inverted — warm near-black paper, warm off-white ink.
     Token names are kept from the light version: --cream = page ground, --charcoal = ink. */
  --cream: #151514;
  --cream-deep: #1c1b19;           /* the one tinted container (privacy panel) */
  --surface: #191917;              /* cards, a hair above the page */
  --surface-raised: #23221f;       /* icon pills, open FAQ item */
  --charcoal: #f3f0e8;
  --off-white: #fcfbf8;
  --text-strong: rgba(243, 240, 232, 0.86);
  --muted: #a29f97;
  --border: #2b2a27;
  --border-strong: rgba(243, 240, 232, 0.32);
  --tint: rgba(243, 240, 232, 0.06);
  --btn-bg: #f3f0e8;
  --btn-fg: #151514;
  color-scheme: dark;

  --inset: rgba(255, 255, 255, 0.5) 0 0.5px 0 0 inset, rgba(0, 0, 0, 0.35) 0 0 0 0.5px inset, rgba(0, 0, 0, 0.35) 0 1px 2px 0;
  --inset-dark: rgba(255, 255, 255, 0.07) 0 0.5px 0 0 inset, rgba(0, 0, 0, 0.5) 0 0 0 0.5px inset, rgba(0, 0, 0, 0.3) 0 1px 2px 0;
  --focus: rgba(0, 0, 0, 0.5) 0 4px 12px, 0 0 0 2px rgba(96, 165, 250, 0.7);

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;
  --section: 128px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 600; color: var(--charcoal); text-wrap: balance; }
.display { font-size: 60px; line-height: 1.05; letter-spacing: -1.5px; }
.h2 { font-size: 48px; line-height: 1.05; letter-spacing: -1.2px; }
.h3 { font-size: 36px; line-height: 1.1; letter-spacing: -0.9px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--text-strong); }
.muted { color: var(--muted); }
.caption { font-size: 14px; color: var(--muted); }
/* headings written in normal sentence case in the HTML, shown in capitals */
.caps { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;                      /* <button>s (form submit) show the hand too, like links */
  transition: opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:active { opacity: 0.8; transform: translateY(1px) scale(0.98); }   /* pressed */
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--inset); }
.btn-dark:hover { background: #ffffff; }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pill icon container (Lovable's pill / icon button treatment) */
.icon-pill {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--surface-raised);
  box-shadow: var(--inset-dark);
  color: var(--charcoal);
}
.icon-pill svg { width: 20px; height: 20px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.img-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--cream-deep); }

/* ---------- Nav ---------- */
/* Tall at the top of the page, compact (64px) once you scroll (.is-compact, set by script.js).
   Fixed rather than sticky, so the shrink never shifts the page content. */
.nav {
  --nav-h: 92px;
  --logo-h: 56px;
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(21, 21, 20, 0);   /* fully clear over the hero, so the glow runs through */
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.nav.is-compact {
  --nav-h: 64px;
  --logo-h: 42px;
  background: rgba(21, 21, 20, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); transition: height 0.35s cubic-bezier(.2, .8, .2, 1); }
.nav .logo img { height: var(--logo-h); width: auto; transition: height 0.35s cubic-bezier(.2, .8, .2, 1); }
/* the hero reserves room for the tall header, so its glow also shows behind the header */
html { scroll-padding-top: 72px; }
/* Desktop: menu items inline, pushed to the right next to the order button */
.nav .wrap { gap: 8px; }
.nav-main { margin-left: auto; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: block;
  white-space: nowrap;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}
@media (hover: hover) { .nav-menu a:hover { background: var(--tint); } }   /* no sticky hover on touch screens */
.nav-menu a[aria-current="page"] { background: var(--tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { min-height: 38px; padding: 7px 16px; margin-left: 8px; font-size: 15px; }
.nav-panel-extra { display: none; }
/* language menu: a dropdown in the bar (desktop) and a drop-up in the mobile panel, same list */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; user-select: none;
  padding: 7px 8px 7px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--charcoal);
  transition: background-color .15s ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 14px; height: 14px; opacity: .7; transition: transform .2s ease; }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-menu[open] summary, .lang-menu summary:focus-visible { background: var(--tint); outline: none; }
@media (hover: hover) { .lang-menu summary:hover { background: var(--tint); } }
.lang-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 170px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.lang-menu-list a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 6px;
  font-size: 14px; color: var(--charcoal); text-decoration: none;
}
.lang-menu-list .lang-code { width: 22px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.lang-menu-list a[aria-current="true"], .lang-menu-list a[aria-current="true"] .lang-code { color: #CFEA22; }
.lang-menu-list a:focus-visible { background: var(--tint); outline: none; }
@media (hover: hover) { .lang-menu-list a:hover { background: var(--tint); } }
.nav.is-collapsed .lang-menu-bar { display: none; }
/* mobile panel: full-width button with the current language; the list opens upwards over the panel */
.lang-menu-up summary {
  justify-content: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 15px; letter-spacing: 0;
}
.lang-menu-up summary .lang-code { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.lang-menu-up .lang-menu-list { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; min-width: 0; }
.lang-menu-up .lang-menu-list a { padding: 12px 14px; font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hamburger, only when the menu is collapsed */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface-raised);
  box-shadow: var(--inset-dark);
  color: var(--charcoal);
  cursor: pointer;
  place-items: center;
  transition: background-color .3s ease, color .3s ease, transform .15s ease;
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-bars span {
  position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1), top .45s cubic-bezier(.7, 0, .2, 1), width .45s cubic-bezier(.7, 0, .2, 1);
}
.nav-toggle-bars span:first-child { top: 1px; width: 18px; }
.nav-toggle-bars span:last-child { top: 9px; width: 11px; }          /* short second bar: a bit more character */
.nav.is-open .nav-toggle { background: #CFEA22; color: #151514; }
.nav.is-open .nav-toggle-bars span:first-child { top: 5px; width: 18px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars span:last-child { top: 5px; width: 18px; transform: rotate(-45deg); }

/* Collapsed menu (hamburger): set by script.js on small screens AND whenever the menu items
   no longer fit on one line - so new menu items can simply be added to the list. */
.nav.is-collapsed .nav-toggle { display: grid; }
.nav.is-collapsed .nav-cta { margin-left: 0; }
/* full-screen panel below the bar: rolls open from the top (clip-path), soft glow at the bottom;
   any number of items fits (it scrolls) */
.nav.is-collapsed .nav-main {
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  margin: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #121211;
  background-image:
    radial-gradient(70% 45% at 15% 100%, rgba(202, 241, 0, 0.10), transparent 70%),
    radial-gradient(70% 45% at 95% 85%, rgba(137, 97, 254, 0.16), transparent 70%);
  z-index: 2;
  padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .55s;
}
.nav.is-collapsed.is-open .nav-main {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s;
}
.nav.is-collapsed.is-open { background: rgba(18, 18, 17, 0.98); border-bottom-color: transparent; }

.nav.is-collapsed .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
.nav.is-collapsed .nav-menu li { border-bottom: 1px solid var(--border); }
.nav.is-collapsed .nav-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: clamp(24px, 7.2vw, 44px); font-weight: 600; letter-spacing: -1px; line-height: 1.05;   /* fits long words such as GESCHÄFTSKUNDEN on a phone */
  padding: 20px 2px; border-radius: 0;
  white-space: normal;
  transition: color .2s ease, padding-left .3s cubic-bezier(.2, .8, .2, 1);
}
.nav.is-collapsed .nav-menu a::after {                         /* arrow */
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .35;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
/* lime = the page you are on; hover (mouse only, touch screens keep it "stuck") and keyboard focus
   only nudge the item, so a tapped or focused item never looks like the current page */
.nav.is-collapsed .nav-menu a[aria-current="page"] { background: transparent; color: #CFEA22; }
.nav.is-collapsed .nav-menu a[aria-current="page"]::after { opacity: 1; }
.nav.is-collapsed .nav-menu a:focus-visible { background: transparent; padding-left: 8px; outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (hover: hover) {
  .nav.is-collapsed .nav-menu a:hover { background: transparent; padding-left: 8px; }
  .nav.is-collapsed .nav-menu a:hover::after { opacity: 1; transform: translateX(4px); }
}
.nav.is-collapsed .nav-menu a:focus-visible::after { opacity: 1; transform: translateX(4px); }

/* bottom of the panel: order button + contact */
.nav.is-collapsed .nav-panel-extra {
  display: grid; gap: 16px;
  margin-top: auto; padding-top: 40px;
}
.nav-panel-cta { justify-content: center; min-height: 52px; font-size: 16px; }
.nav-panel-contact { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.nav-panel-contact a { text-decoration: none; }
.nav-panel-contact a:hover { color: var(--charcoal); }

/* items rise in one after another once the panel has rolled open (works for any number of items) */
.nav.is-collapsed .nav-menu li, .nav.is-collapsed .nav-panel-extra {
  opacity: 0; transform: translateY(18px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.nav.is-collapsed.is-open .nav-menu li, .nav.is-collapsed.is-open .nav-panel-extra {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 220ms);
}
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .nav.is-collapsed .nav-main { clip-path: none; }
}

/* ---------- Glow spots: the hero's soft colour wash, repeated in a few places ----------
   They fade/drift in when the section scrolls into view (.is-in, set by script.js). */
.has-glow { position: relative; isolation: isolate; overflow-x: clip; }
.scrub-pin { isolation: isolate; }
.glow-spot {
  position: absolute;
  z-index: -1;
  width: min(62vw, 860px);
  aspect-ratio: 5 / 4;
  margin: calc(min(62vw, 860px) * -0.4) calc(min(62vw, 860px) * -0.5);
  border-radius: 50%;
  filter: blur(34px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8vh) scale(0.94);
  transition: opacity 1.8s ease, transform 2.2s cubic-bezier(.16, 1, .3, 1);
}
.glow-spot.is-in { opacity: 1; transform: none; }
.gs-lime   { background: radial-gradient(closest-side, rgba(202, 241, 0, 0.13), transparent); }
.gs-purple { background: radial-gradient(closest-side, rgba(137, 97, 254, 0.2), transparent); }
.gs-pink   { background: radial-gradient(closest-side, rgba(232, 72, 140, 0.15), transparent); }
.gs-blue   { background: radial-gradient(closest-side, rgba(30, 100, 220, 0.22), transparent); }
@media (prefers-reduced-motion: reduce) {
  .glow-spot { transition: none; opacity: 1; transform: none; }
}

.accent { color: #CFEA22; }
.eyebrow-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Features ---------- */
.features-section { padding-block: 32px var(--section); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; gap: 12px; align-content: start; padding: 28px; }
.feature h3 { font-size: 20px; font-weight: 600; line-height: 1.25; margin-top: 8px; }
.feature p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-section { padding-block: var(--section) calc(var(--section) * 1.25); }
.faq-wrap { max-width: 760px; margin: 0 auto; }
.section-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 40px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq details[open] { border-color: #3a3935; background: var(--surface-raised); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); }
.faq summary .icon-pill { width: 32px; height: 32px; flex: none; }
.faq summary .icon-pill svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.faq details[open] summary .icon-pill svg { transform: rotate(45deg); }
.faq details p { padding: 0 72px 22px 24px; color: var(--muted); }

/* ---------- Footer ---------- */
/* Full-width dark footer in the page palette: a hair lighter than the page, a hairline on top
   and a faint glow, so it reads as its own band. */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--charcoal);
  padding-top: 64px;
}
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 0;
  width: min(80vw, 1100px); aspect-ratio: 3 / 1;
  translate: -50% -55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(137, 97, 254, 0.12), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.footer .wrap { max-width: calc(var(--max) + 2 * var(--gutter) - 98px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .logo img { height: 56px; width: auto; }
.footer .slogan { margin-top: 14px; font-size: 16px; color: var(--text-strong); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li { font-size: 14px; color: var(--muted); }
.footer li a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.footer li a:hover { text-decoration-color: currentColor; }
.footer .nav-links li { font-size: 15px; color: var(--charcoal); }
.footer .btn { margin-top: 20px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal-links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.footer-legal-links a:hover { text-decoration-color: currentColor; color: var(--charcoal); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  :root { --section: 96px; }
  .display { font-size: 48px; letter-spacing: -1.2px; }
  .h2 { font-size: 40px; letter-spacing: -1px; }
  .features { grid-template-columns: 1fr 1fr; }
  .features > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  :root { --gutter: 16px; --section: 64px; }
  .display { font-size: 40px; letter-spacing: -1px; }
  .h2 { font-size: 32px; letter-spacing: -0.8px; }
  .h3 { font-size: 26px; letter-spacing: -0.5px; }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 22px; }
  .footer { padding-top: 40px; }
  .footer .logo img { height: 44px; }
  .nav { --nav-h: 76px; --logo-h: 40px; }
  .nav.is-compact { --nav-h: 64px; --logo-h: 32px; }
  .nav-cta { padding: 6px 12px; font-size: 14px; }
  .faq details p { padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
