/* FD Totaal — concept site
   Palette: navy #0B1F33 · teal #0F766E · off-white #F7F5F2 · ink #1C1917 · muted #57534E
   Cherry #D2042D only as subtle login / check accent (Finance Checked hint)
*/

:root {
  --navy: #0B1F33;
  --navy-deep: #071522;
  --teal: #0F766E;
  --teal-hover: #0D9488;
  --teal-soft: #CCFBF1;
  --off-white: #F7F5F2;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --muted: #57534E;
  --border: #E7E5E4;
  --cherry: #D2042D;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.06), 0 8px 24px rgba(11, 31, 51, 0.06);
  --shadow-hover: 0 2px 4px rgba(11, 31, 51, 0.08), 0 12px 32px rgba(11, 31, 51, 0.1);
  --max: 1120px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 7px;
}

.logo-mark-sm {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #fff;
}

/* Cherry accent — only on Klantlogin (Finance Checked hint) */
.btn-login {
  background: transparent;
  color: var(--navy);
  border-color: var(--cherry);
}

.btn-login:hover {
  background: rgba(210, 4, 45, 0.06);
  color: var(--ochre, var(--cherry));
  border-color: var(--cherry);
}

.btn-login .icon-check {
  color: var(--ochre, var(--cherry));
  flex-shrink: 0;
}

.btn-login-lg {
  padding: 0.8rem 1.4rem;
}

/* —— Hero —— */

.hero {
  padding: 5.5rem 0 5rem;
  background:
    linear-gradient(165deg, #E8EEF2 0%, var(--off-white) 55%, #F0EDE8 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* —— Sections —— */

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 34rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* —— Diensten cards —— */

.diensten {
  background: var(--off-white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.65rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d6d3d1;
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 10px;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.card p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--muted);
}

/* —— Aanpak —— */

.aanpak {
  background: var(--navy);
  color: #E7E5E4;
}

.aanpak .section-header h2 {
  color: #fff;
}

.aanpak .section-header p {
  color: #A8A29E;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--teal);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 650;
  color: #fff;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: #A8A29E;
  line-height: 1.6;
}

/* —— Software strip —— */

.software-strip {
  padding: 1.35rem 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.strip-inner {
  text-align: center;
}

.strip-inner p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.strip-inner strong {
  color: var(--ink);
  font-weight: 650;
}

.strip-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ochre, var(--cherry));
  background: rgba(210, 4, 45, 0.08);
  border-radius: 50%;
  flex-shrink: 0;
}

.strip-inner a {
  color: var(--ochre, var(--cherry));
  font-weight: 550;
}

.strip-inner a:hover {
  color: #a80324;
}

/* —— Contact —— */

.contact {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  color: var(--teal);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #A8A29E;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: #d6d3d1;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.35rem;
}

/* —— Footer —— */

.site-footer {
  padding: 2rem 0;
  background: var(--navy-deep);
  color: #A8A29E;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.footer-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #A8A29E;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-checked {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-checked .icon-check {
  color: var(--ochre, var(--cherry));
}

/* —— Responsive —— */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, var(--max));
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn-login {
    margin-top: 1rem;
    width: 100%;
  }

  .hero {
    padding: 3.5rem 0 3.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Over FD Totaal —— */

.over {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.over-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.over .section-header {
  margin-bottom: 1.5rem;
}

.over-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.over-copy p:last-child {
  margin-bottom: 0;
}

/* —— Contact details (dl) —— */

.contact-details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
}

.contact-field dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.contact-field a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact-field a:hover {
  color: var(--teal);
}

/* —— Legal stubs (privacy / cookies) —— */

.legal-page {
  padding: 3.5rem 0 5rem;
  background: var(--off-white);
  min-height: calc(100vh - var(--header-h) - 6rem);
}

.legal-inner {
  max-width: 40rem;
}

.legal-page h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
}

.legal-notice {
  margin: 0 0 2.25rem;
  padding: 1rem 1.15rem;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--radius-sm);
  color: #78350F;
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.legal-body h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.legal-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.legal-back {
  margin: 2.5rem 0 0;
  font-size: 0.95rem;
}

.legal-back a {
  font-weight: 550;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

.footer-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 550;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--teal);
}

.form-status.is-error {
  color: var(--ochre, var(--cherry));
}
