/* =========================================================
   Damma — Schoonmaak & Onderhoud
   Design tokens & global styles
   ========================================================= */

:root {
  /* Brand blues (from existing logo) */
  --blue-50:  #EAF7FF;
  --blue-100: #CDEEFF;
  --blue-200: #99DCFF;
  --blue-300: #5EC8FF;
  --blue-400: #00CCFF;
  --blue-500: #00B1FF;
  --blue-600: #008AFF;
  --blue-700: #006EFF;
  --blue-800: #0052BF;
  --blue-900: #0B1220;

  /* Neutrals */
  --ink-900:  #0B1220;
  --ink-700:  #1F2A3D;
  --ink-500:  #4B5669;
  --ink-300:  #8993A4;
  --ink-200:  #C8CED8;
  --ink-100:  #E7EBF1;
  --ink-50:   #F6F8FB;
  --white:    #ffffff;

  /* Semantic */
  --bg:            var(--white);
  --bg-soft:       var(--ink-50);
  --surface:       var(--white);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --border:        var(--ink-100);
  --brand:         var(--blue-700);
  --brand-hover:   var(--blue-800);
  --brand-contrast: var(--white);

  /* Layout */
  --container:  1180px;
  --gutter:     24px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 1px rgba(11,18,32,.04);
  --shadow-md: 0 8px 24px rgba(11,18,32,.08);
  --shadow-lg: 0 20px 48px rgba(0,110,255,.18);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-hover); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.25rem, 4.8vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }

/* --------- Layout --------- */
.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--gutter);
  margin: 0 auto;
}

.section {
  padding: clamp(40px, 6vw, 72px) 0;
}
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: linear-gradient(135deg, var(--blue-900) 0%, #0A1F4D 60%, var(--blue-700) 100%);
  color: #DCE6F6;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--blue-400); }

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 58ch; }

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light {
  background: var(--white);
  color: var(--brand);
}
.btn--light:hover { background: var(--blue-50); color: var(--brand-hover); }

/* --------- Header --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.site-logo img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink-700);
  font-size: .96rem;
}
.site-nav a:hover { background: var(--ink-50); color: var(--ink-900); }
.site-nav a.is-active { color: var(--brand); }

.site-header__cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-900);
  position: relative;
  transition: transform .2s, top .2s, background .2s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after  { position: absolute; top:  6px; }

/* --------- Hero --------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(0,204,255,.22), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(0,110,255,.18), transparent 60%),
    linear-gradient(180deg, #F4FAFF 0%, #ffffff 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero__title { margin-bottom: 18px; }
.hero__title .accent {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
  margin-right: -0.08em;
}
.hero__lead { font-size: 1.2rem; color: var(--ink-500); margin-bottom: 28px; max-width: 52ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  max-width: 480px;
}
.hero__stat strong { display: block; font-size: 1.6rem; color: var(--ink-900); }
.hero__stat span  { font-size: .85rem; color: var(--text-muted); }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--blue-500), var(--blue-700) 70%, var(--blue-900));
}
.hero__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 300px at 30% 20%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(500px 400px at 80% 80%, rgba(0,204,255,.35), transparent 60%);
}
.hero__visual .droplet {
  position: absolute; bottom: 8%; right: 10%;
  width: 38%; opacity: .9;
}

/* --------- Cards / services --------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--white);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p  { color: var(--text-muted); margin: 0; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-weight: 600; font-size: .95rem;
}

/* --------- Feature split --------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-700));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 10px 0 10px 36px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-700);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23006EFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center;
}

/* --------- CTA banner --------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: var(--white); margin: 0 0 6px; }
.cta-banner p  { color: #DCE6F6; margin: 0; }

/* --------- Forms --------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-700);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,110,255,.15);
}
.form__note { font-size: .85rem; color: var(--text-muted); }
.form__success {
  display: none;
  padding: 14px 16px;
  background: #E8F8EE;
  border: 1px solid #A7D7B4;
  border-radius: 10px;
  color: #0D5224;
}
.form__success.is-visible { display: block; }

/* --------- Footer --------- */
.site-footer {
  background: var(--blue-900);
  color: #B9C3D6;
  padding: 72px 0 28px;
}
.site-footer a { color: #DDE6F5; }
.site-footer a:hover { color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__brand p { color: #9AA7BD; max-width: 34ch; }
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .88rem;
  color: #8092B0;
}
.footer__credit {
  text-align: center;
  margin-top: 18px;
  font-size: .85rem;
  color: #7A89A6;
}
.footer__credit a {
  color: #BFD0EC;
  font-weight: 600;
  border-bottom: 1px dotted rgba(191,208,236,.4);
}
.footer__credit a:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* --------- Page header (for sub-pages) --------- */
.page-header {
  padding: 56px 0 36px;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(0,204,255,.22), transparent 60%),
    linear-gradient(180deg, #F4FAFF, #ffffff);
  text-align: left;
}
.page-header h1 { margin-bottom: 10px; }
.page-header .lead { font-size: 1.15rem; }

/* --------- Misc --------- */
.badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--brand);
  padding: 5px 12px;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
}
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* --------- Vacancy detail page --------- */
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.back-link:hover { color: var(--brand); }

.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 14px;
  font-size: .95rem;
  color: var(--ink-700);
}
.vacancy-meta__item { display: inline-flex; align-items: center; gap: 6px; }

.vacancy-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
.vacancy-content h2 { margin-top: 0; }
.vacancy-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--ink-900);
}
.vacancy-content p { color: var(--ink-700); }

.vacancy-aside { position: sticky; top: 96px; }
.vacancy-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.vacancy-card { display: block; color: inherit; }
.vacancy-card:hover h3 { color: var(--brand); }

/* --------- Application form additions --------- */
.field__optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: .85rem;
}
.field input[type="file"] {
  padding: 10px 12px;
  background: var(--bg-soft);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--ink-200);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--ink-700);
}
.field input[type="file"]::file-selector-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.address-display {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 12px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink-900);
  animation: fadeIn .25s ease;
}
.address-display[hidden] { display: none; }
.address-display__label {
  font-weight: 600;
  color: var(--brand);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.address-display.is-loading {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text-muted);
}
.address-display.is-error {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------- Bedankt page --------- */
.thanks {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.thanks__icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center;
  margin: 0 auto 24px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.thanks__icon svg { width: 38px; height: 38px; }

/* --------- Responsive --------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; aspect-ratio: 16/10; }
  .split { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .vacancy-layout { grid-template-columns: 1fr; gap: 32px; }
  .vacancy-aside { position: static; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    padding: 12px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }
  .site-header__cta .btn--primary { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
