/* ============================================================
   Matika — Design tokens & global styles (ported from the Nuxt site)
   Brand: Één partner. Alle installaties. Totale controle.
   ============================================================ */

:root {
  --blue: #006ba9;
  --blue-700: #00568a;
  --blue-800: #013a5e;
  --anthracite: #202428;
  --anthracite-900: #16191c;
  --yellow: #fcbb00;
  --orange: #fcac01;
  --orange-600: #e09700;

  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-line: #e6eaee;
  --ink: #202428;
  --ink-soft: #4a525a;
  --ink-mute: #6b747d;
  --on-dark: #eef2f5;
  --on-dark-mute: #9aa6b0;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1920px;
  --gutter: 56px;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 104px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 240ms;

  --shadow-1: 0 1px 2px rgba(16, 24, 32, 0.06), 0 2px 8px rgba(16, 24, 32, 0.05);
  --shadow-2: 0 8px 24px rgba(16, 24, 32, 0.1);
  --shadow-3: 0 18px 48px rgba(16, 24, 32, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --header-h: 76px;
  }
}

.section {
  padding-block: clamp(64px, 8vw, 110px);
}
.section--soft {
  background: var(--bg-soft);
}
.section--dark {
  background: var(--anthracite);
  color: var(--on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--yellow);
}
.section--dark .eyebrow {
  color: var(--yellow);
}
.section--dark .eyebrow::before {
  background: var(--yellow);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.section--dark .lead {
  color: var(--on-dark-mute);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease),
    box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  will-change: transform;
}
.btn svg {
  transition: transform var(--t) var(--ease);
}
.btn:hover {
  background: var(--anthracite);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn:focus-visible {
  outline: 3px solid rgba(0, 107, 169, 0.4);
  outline-offset: 2px;
}
.btn:active {
  transform: translateY(0);
}

.btn--orange {
  --btn-bg: var(--orange);
  --btn-fg: #1a1305;
}
.btn--orange:hover {
  background: var(--orange-600);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--bg-line);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--anthracite);
}
.btn--light:hover {
  background: var(--yellow);
  color: #1a1305;
}
.btn--on-dark.btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--on-dark.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Link with arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}
.link-arrow svg {
  transition: transform var(--t) var(--ease);
}
.link-arrow:hover {
  gap: 12px;
  color: var(--blue-800);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.16s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.24s;
}
.reveal[data-delay='4'] {
  transition-delay: 0.32s;
}

/* ---------- WordPress helpers ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Contact Form 7 — styled to match the native form ---------- */
.wpcf7 .form,
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wpcf7-form label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wpcf7-form input[type='text'],
.wpcf7-form input[type='email'],
.wpcf7-form input[type='tel'],
.wpcf7-form select,
.wpcf7-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.wpcf7-form textarea {
  resize: vertical;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 169, 0.14);
}
.wpcf7-form .wpcf7-submit {
  --btn-bg: var(--orange);
  --btn-fg: #1a1305;
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: #1a1305;
  cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.wpcf7-form .wpcf7-submit:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
}
.wpcf7-form .wpcf7-not-valid-tip {
  color: #d23b3b;
  font-size: 0.82rem;
  font-weight: 500;
}
.wpcf7-form .wpcf7-not-valid {
  border-color: #d23b3b !important;
}
.wpcf7 form .wpcf7-response-output {
  border-radius: var(--radius);
  border-width: 1px;
  margin: 8px 0 0;
  padding: 12px 16px;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
