/* =========================================================
   Wybenga Machines — static site styles
   Edit the CSS variables below to re-theme the whole site.
   ========================================================= */

:root {
  --brand:        #18a3e0;   /* azure blue from the logo */
  --brand-dark:   #0f7fb3;
  --ink:          #14171c;   /* near-black headings/text */
  --ink-soft:     #4a5560;   /* body text */
  --line:         #e4e8ec;   /* borders */
  --bg:           #ffffff;
  --bg-soft:      #f4f6f8;   /* alternating section bg */
  --white:        #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(20, 23, 28, 0.25);
  --shadow-sm: 0 6px 18px -8px rgba(20, 23, 28, 0.18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", var(--font);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--brand-dark);
}
.link-arrow:hover { color: var(--brand); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #c7ced6;
  font-size: 0.86rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}
.topbar a { transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar__sep { margin: 0 10px; opacity: .5; }
.topbar__lang { display: flex; gap: 4px; }
.topbar__lang a {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #c7ced6;
}
.topbar__lang a:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar__lang a[aria-current="page"] { background: var(--brand); color: #fff; }

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

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-soft); color: var(--brand-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 540px;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13,18,26,.86) 0%, rgba(13,18,26,.66) 45%, rgba(13,18,26,.30) 100%);
}
.hero__content { padding-block: 90px; max-width: 720px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero__lead { font-size: 1.18rem; color: #e7ecf1; max-width: 620px; }
.hero__sub { margin-top: 14px; color: #b9c2cc; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Brands ---------- */
.brands {
  border-bottom: 1px solid var(--line);
  padding-block: 38px;
}
.brands__title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.brands__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: stretch;
}
.brand {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  min-height: 86px;
  box-shadow: var(--shadow-sm);
}
.brand img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .2s ease;
}
.brand:hover img { transform: scale(1.05); }
/* Yamato logo file includes a "Solution Provider" tagline; crop it off so only
   the wordmark shows (box ratio 705/147 = wordmark region, top-aligned). */
.brand img[alt="Yamato"] {
  height: 30px;
  width: 144px;
  max-height: none;
  object-fit: cover;
  object-position: top;
}

/* ---------- Services ---------- */
.services { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 64px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(24,163,224,.12);
  color: var(--brand-dark);
  margin-bottom: 16px;
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service p { font-size: .95rem; }

/* ---------- Gordijnmachines ---------- */
.machines { padding-block: 80px; border-bottom: 1px solid var(--line); }
.machines .section-head { margin-bottom: 48px; }
.section-head__lead { margin-top: 16px; font-size: 1.05rem; }

.machines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.machine-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.machine-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.machine-card__media {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 22px;
}
.machine-card__media img { max-height: 100%; width: auto; object-fit: contain; }
.machine-card__body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.machine-card__model {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.machine-card__body p { font-size: .98rem; }
.machine-card__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 8px;
}
.machine-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: .92rem;
  color: var(--ink);
}
.machine-card__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand);
  font-weight: 700;
}
.machines__cta { text-align: center; margin-top: 44px; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head__eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* ---------- Products ---------- */
.products { padding-block: 80px; }
.products .section-head { margin-bottom: 56px; }

.product { padding-block: 32px; }
.product__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.product--reverse .product__media { order: 2; }

.product__media {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.product__media img { margin-inline: auto; max-height: 360px; object-fit: contain; }

.product__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
}
.product__title::before {
  content: "";
  display: block;
  width: 48px; height: 4px;
  border-radius: 4px;
  background: var(--brand);
  margin-bottom: 18px;
}
.product__body p { font-size: 1.05rem; }
.product__list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 10px;
}
.product__list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}
.product__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ---------- CTA strip ---------- */
.cta { background: var(--ink); color: #fff; }
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 640px; }
.cta p { color: #aeb8c2; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: #0f1318; color: #9aa5b1; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 60px;
}
.footer__logo { height: 32px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { max-width: 280px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__col a:hover { color: var(--brand); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: .85rem;
  flex-wrap: wrap;
}

/* ---------- Contact page ---------- */
.section-head--left { text-align: left; margin: 0; max-width: 720px; }
.section-head--left h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-page { padding-block: 64px 80px; }
.contact-page__intro { font-size: 1.1rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}

/* Form */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.field label span { color: var(--brand); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24,163,224,.15);
}
.field textarea { resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: .92rem; margin: 0; min-height: 1.2em; }
.form-note.is-error { color: #c0392b; }
.form-note.is-ok { color: var(--brand-dark); }

/* Locations */
.contact-locations { display: grid; gap: 28px; }
.location {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.location__name { font-size: 1.2rem; margin-bottom: 16px; }
.location__list { list-style: none; padding: 0; display: grid; gap: 14px; }
.location__list li { display: grid; gap: 2px; color: var(--ink); }
.location__label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.location__list a:hover { color: var(--brand-dark); }

/* ---------- Vacancy ---------- */
.vacancy { padding-block: 56px 80px; }
.vacancy__head { max-width: 760px; margin-bottom: 44px; }
.vacancy__head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 12px 0 20px; }
.vacancy__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  color: var(--ink-soft); font-weight: 500;
}

.vacancy-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.vacancy__main h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  margin-top: 40px;
  padding-top: 4px;
}
.vacancy__main > h2:first-child { margin-top: 0; }
.vacancy__main h3 {
  font-size: 1.08rem;
  margin-top: 26px;
  color: var(--brand-dark);
}
.vacancy__main p { margin-top: 14px; }
.vacancy__list {
  list-style: none; padding: 0; margin: 16px 0;
  display: grid; gap: 10px;
}
.vacancy__list li { position: relative; padding-left: 28px; color: var(--ink); }
.vacancy__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}
.vacancy__outro { font-weight: 600; color: var(--ink); }

.vacancy-card {
  position: sticky;
  top: 124px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.vacancy-card__title { font-size: 1.1rem; margin-bottom: 18px; }
.vacancy-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.vacancy-facts li { display: grid; gap: 2px; color: var(--ink); font-size: .96rem; }
.vacancy-facts__label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-soft); font-weight: 600;
}
.vacancy-card__btn { width: 100%; margin-top: 22px; }
.vacancy-contact { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.vacancy-contact__name { font-weight: 600; color: var(--ink); margin-top: 4px; }
.vacancy-contact ul {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 8px; font-size: .92rem;
}
.vacancy-contact a:hover { color: var(--brand-dark); }

/* ---------- Legal pages ---------- */
.legal { padding-block: 52px 80px; }
.legal__container { max-width: 820px; }
.legal__head { margin-bottom: 36px; }
.legal__head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 12px 0 10px; }
.legal__updated { color: var(--ink-soft); font-size: .95rem; }
.legal__body { font-size: 1.02rem; }
.legal__body h2 {
  font-size: 1.25rem;
  margin-top: 34px;
  padding-top: 4px;
}
.legal__body h3 { font-size: 1.05rem; margin-top: 22px; color: var(--brand-dark); }
.legal__body p { margin-top: 14px; }
.legal__body ul { margin: 14px 0; padding-left: 22px; display: grid; gap: 8px; }
.legal__body li { color: var(--ink); }
.legal__body a { color: var(--brand-dark); text-decoration: underline; }
.legal__body a:hover { color: var(--brand); }

/* ---------- Footer legal links ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { color: #9aa5b1; }
.footer__legal a:hover { color: var(--brand); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .machines__grid { grid-template-columns: repeat(2, 1fr); }
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; border-radius: 8px; }

  .product__inner { grid-template-columns: 1fr; gap: 28px; }
  .product--reverse .product__media { order: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .vacancy-grid { grid-template-columns: 1fr; gap: 36px; }
  .vacancy-card { position: static; }

  .topbar__contact { font-size: .8rem; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
  .machines__grid { grid-template-columns: 1fr; }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
}
