/* ============================================================
   WORKSTACK — STYLESHEET
   ============================================================ */

:root {
  --accent:       #E0571F;
  --accent-dark:  #C2481A;
  --bg:           #F5F0E7;
  --dark:         #221B14;
  --body:         #26201A;
  --muted:        #5C5042;
  --subtle:       #9A8C79;
  --border:       #ECE3D5;
  --card-bg:      #FFFCF7;
  --cols:         4;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

@keyframes ws-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-12px); }
}

/* ---- Container ---- */
.ws-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ws-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 12px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
  line-height: 1;
}
.ws-btn--sm { font-size: 15px; padding: 10px 18px; border-radius: 10px; }

.ws-btn--primary { color: #fff; background: var(--accent); }
.ws-btn--primary:hover { background: var(--accent-dark); }

.ws-btn--ghost {
  color: var(--body);
  background: #fff;
  border: 1px solid #E1D8C9;
}
.ws-btn--ghost:hover { border-color: var(--body); }

.ws-btn--white {
  color: var(--accent);
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.ws-btn--white:hover { transform: translateY(-2px); }

/* ============================================================
   LOGO ICON
   ============================================================ */
.ws-logo-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 26px;
  flex: none;
}
.ws-logo-cube {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--accent);
}
.ws-logo-cube--1 { left: 0;   top: 10px; opacity: .28; }
.ws-logo-cube--2 { left: 7px; top: 5px;  opacity: .55; }
.ws-logo-cube--3 { left: 14px; top: 0; }

/* Footer variant — slightly stronger opacity on dark bg */
.ws-footer .ws-logo-cube--1 { opacity: .4; }
.ws-footer .ws-logo-cube--2 { opacity: .7; }

/* ============================================================
   NAV
   ============================================================ */
.ws-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 231, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 32, 26, 0.08);
}
.ws-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.ws-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.ws-nav__logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.ws-nav__tld { color: var(--subtle); font-weight: 600; }

.ws-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ws-nav__link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s ease;
}
.ws-nav__link:hover { color: var(--body); }

/* ============================================================
   HERO
   ============================================================ */
.ws-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 40px;
}

.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}
.ws-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.ws-hero__h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--dark);
  text-wrap: balance;
}
.ws-hero__accent { color: var(--accent); }

.ws-hero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.ws-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* ---- Config panel ---- */
.ws-panel-wrap { display: flex; justify-content: center; }

.ws-panel {
  width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(38, 32, 26, 0.4);
  overflow: hidden;
  animation: ws-float 7s ease-in-out infinite;
}
.ws-panel__header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid #F1EADD;
}
.ws-panel__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}
.ws-panel__sub {
  font-size: 13.5px;
  color: var(--subtle);
  margin-top: 3px;
}
.ws-panel__rows {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
}
.ws-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 8px;
}
.ws-module-row + .ws-module-row { border-top: 1px solid #F4EEE3; }

.ws-module-row__label        { font-size: 15px; font-weight: 600; color: var(--body); }
.ws-module-row__label--muted { color: var(--subtle); }

.ws-toggle {
  width: 42px;
  height: 24px;
  border-radius: 100px;
  position: relative;
  flex: none;
}
.ws-toggle--on  { background: var(--accent); }
.ws-toggle--off { background: #E4DCCD; }

.ws-toggle__thumb {
  position: absolute;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.ws-toggle--on  .ws-toggle__thumb { right: 3px; }
.ws-toggle--off .ws-toggle__thumb { left: 3px; }

.ws-panel__footer {
  padding: 14px 24px;
  background: #FBF7F0;
  border-top: 1px solid #F1EADD;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-panel__count { font-size: 13.5px; color: #766551; font-weight: 600; }
.ws-panel__cta {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

/* ============================================================
   MODULES SECTION
   ============================================================ */
.ws-modules { padding: 72px 0; }

.ws-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.ws-section-header__left { max-width: 600px; }

.ws-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ws-section-h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--dark);
}
.ws-section-p { font-size: 17px; color: var(--muted); margin: 0; }

.ws-legend { display: flex; gap: 18px; font-size: 13px; color: #766551; font-weight: 600; }
.ws-legend__item { display: inline-flex; align-items: center; gap: 7px; }
.ws-legend__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ws-legend__dot--active  { background: var(--accent); }
.ws-legend__dot--planned { background: #C3B49E; }

.ws-module-groups { display: flex; flex-direction: column; gap: 48px; }

.ws-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ws-group-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--dark);
  white-space: nowrap;
}
.ws-group-desc {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 500;
  white-space: nowrap;
}
.ws-group-rule { flex: 1; height: 1px; background: #E6DCCC; min-width: 20px; }

.ws-module-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 18px;
}

.ws-module-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.ws-module-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 44px -28px rgba(38, 32, 26, 0.45);
}
.ws-module-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.ws-module-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0;
  color: var(--dark);
}
.ws-module-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ---- Module icon ---- */
.ws-module-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 24px;
  flex: none;
}
.ws-module-cube {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 5px;
}
.ws-module-cube--1 { left: 0;    top: 8px; }
.ws-module-cube--2 { left: 6px;  top: 4px; }
.ws-module-cube--3 { left: 12px; top: 0;   }

.ws-module-icon--active .ws-module-cube--1  { background: var(--accent); opacity: .28; }
.ws-module-icon--active .ws-module-cube--2  { background: var(--accent); opacity: .55; }
.ws-module-icon--active .ws-module-cube--3  { background: var(--accent); }
.ws-module-icon--planned .ws-module-cube--1 { background: #C3B49E; opacity: .4; }
.ws-module-icon--planned .ws-module-cube--2 { background: #C3B49E; opacity: .7; }
.ws-module-icon--planned .ws-module-cube--3 { background: #C3B49E; }

/* ---- Status badges ---- */
.ws-status-badge { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 4px 9px; white-space: nowrap; }
.ws-status-badge--dev     { color: #A8430F; background: #F7E2D6; }
.ws-status-badge--planned { color: #766551; background: #EBE4D8; }

/* ============================================================
   AANPAK
   ============================================================ */
.ws-aanpak { padding: 24px 0 72px; }

.ws-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ws-pillar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
}
.ws-pillar__num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 14px;
}
.ws-pillar h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--dark);
}
.ws-pillar p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ============================================================
   CTA BAND
   ============================================================ */
.ws-cta { background: var(--accent); }

.ws-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.ws-cta__text { max-width: 620px; }

.ws-cta h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}
.ws-cta p { font-size: 17px; color: rgba(255, 255, 255, 0.9); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.ws-footer { background: #211A13; color: #D8CDBC; }

.ws-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 32px;
}
.ws-footer__brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ws-footer__logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.ws-footer__logo-tld { color: var(--subtle); }

.ws-footer__brand p {
  font-size: 15px;
  color: #A99C89;
  margin: 0;
  max-width: 300px;
  line-height: 1.55;
}
.ws-footer__col-label {
  font-size: 13px;
  font-weight: 700;
  color: #8C7E6B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.ws-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.ws-footer__link { text-decoration: none; color: #D8CDBC; }
.ws-footer__link:hover { color: #fff; }
.ws-footer__link--contact { color: #fff; font-weight: 600; }
.ws-footer__link--contact:hover { color: var(--accent); }
.ws-footer__address { color: #A99C89; font-size: 14.5px; }

.ws-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ws-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #8C7E6B;
  padding-top: 20px;
  padding-bottom: 8px;
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .ws-hero__h1 { font-size: 48px; }
  .ws-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .ws-container { padding-left: 20px; padding-right: 20px; }

  /* Nav: hide text links, keep CTA */
  .ws-nav__textlink { display: none; }

  /* Hero: single column */
  .ws-hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 32px;
    gap: 40px;
  }
  .ws-hero__h1   { font-size: 40px; }
  .ws-hero__lead { font-size: 17px; max-width: 100%; }

  /* Panel stretches full width */
  .ws-panel-wrap { justify-content: stretch; }
  .ws-panel { width: 100%; max-width: 420px; margin: 0 auto; animation: none; }

  /* Modules */
  .ws-modules    { padding: 48px 0; }
  .ws-section-h2 { font-size: 30px; }
  .ws-section-header { flex-direction: column; align-items: flex-start; }
  .ws-group-desc { display: none; }

  /* Aanpak */
  .ws-pillar-grid { grid-template-columns: 1fr; }

  /* CTA */
  .ws-cta__inner { flex-direction: column; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
  .ws-cta h2     { font-size: 28px; }

  /* Footer: 2-column */
  .ws-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .ws-container { padding-left: 16px; padding-right: 16px; }

  .ws-hero__h1  { font-size: 34px; }
  .ws-hero__actions { flex-direction: column; }
  .ws-hero__actions .ws-btn { text-align: center; }

  .ws-module-grid { grid-template-columns: 1fr; }

  .ws-footer__inner { grid-template-columns: 1fr; }
}
