/*
Theme Name: VizionZ
Theme URI: https://www.vizionz.nl
Description: Lightweight presentation theme for VizionZ Engineering: offshore engineering services, solutions, news and articles. Content is published by the Python seeder.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: vizionz
*/

:root {
  --plane: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f1a2a;
  --ink-2: #4a5568;
  --muted: #7d8794;
  --line: #dde3ea;
  --navy: #0b4ea2;
  --navy-deep: #0a2f5c;
  --cyan: #00adef;
  --cyan-wash: #e1f4fd;
  --steel: #808285;
  --radius: 10px;
  --max: 1160px;
  --prose: 780px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--ink);
  background: var(--plane);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* full-bleed sections use 100vw, which includes the scrollbar */
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--cyan); }

/* ------------------------------------------------------------ header */
.site-header { background: var(--surface); border-bottom: 3px solid var(--cyan); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 12px rgba(10,47,92,.06); }
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--navy); border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 14px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { color: var(--navy-deep); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 7px 10px; border-radius: 6px; display: block; }
.site-nav a:hover { background: var(--cyan-wash); color: var(--navy); }
.site-nav .current_page_item > a, .site-nav .current_page_ancestor > a, .site-nav .current-menu-item > a { background: var(--navy); color: #fff; }

/* ------------------------------------------------------------ layout */
.site-main { max-width: var(--max); margin: 0 auto; padding: 36px 16px 64px; }
.page-header { max-width: var(--prose); margin: 0 auto 28px; }
.page-header h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.015em; color: var(--navy-deep); }
.page-header .lede { font-size: 19px; color: var(--ink-2); margin: 0; }
.page-header .meta { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.page-header .meta a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.crumbs { max-width: var(--prose); margin: 0 auto 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.entry-content { max-width: var(--prose); margin: 0 auto; }
.entry-content h2 { font-size: 25px; line-height: 1.25; margin: 40px 0 12px; color: var(--navy-deep); }
.entry-content h3 { font-size: 19px; margin: 28px 0 8px; color: var(--navy-deep); }
.entry-content p, .entry-content li { color: #1f2733; }
.entry-content li { margin: 4px 0; }
.entry-content blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--cyan); color: var(--ink-2); }
.vz-lead { font-size: 19px; }
.vz-note { font-size: 14px; color: var(--ink-2); }
.vz-cta { font-size: 18px; font-weight: 700; }
.vz-more { text-align: right; font-weight: 600; }

/* section sub-navigation (Services, Solutions, Data Solutions, ...) */
.with-subnav { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.with-subnav .page-header, .with-subnav .entry-content, .with-subnav .crumbs { margin-left: 0; }
.subnav { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 15px; }
.subnav .title { display: block; font-weight: 700; color: var(--navy-deep); text-decoration: none; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.subnav li a:hover { background: var(--cyan-wash); color: var(--navy); }
.subnav .current_page_item > a { background: var(--cyan-wash); color: var(--navy); font-weight: 700; }

/* ------------------------------------------------------------ figures */
.vz-figure { margin: 24px 0; }
.vz-figure img { display: block; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.vz-figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: center; font-style: italic; }
.vz-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin: 24px 0; }
.vz-split .vz-figure { margin: 0; }
.vz-split h2 { margin-top: 0; }
.vz-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; align-items: start; }
.vz-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.vz-gallery .vz-figure { margin: 0; }
.vz-video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.vz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vz-tweet { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 8px; padding: 10px 18px; }
.vz-tweet p { margin: 6px 0; }

/* ------------------------------------------------------------ components */
.vz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.vz-cards-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vz-card:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,47,92,.08); color: var(--ink); }
.vz-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); margin-bottom: 10px; background: #fff; }
.vz-card img.contain { object-fit: contain; padding: 24px; }
.vz-card .kicker, .vz-card h3, .vz-card p { padding: 0 18px; }
.vz-card .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); font-weight: 700; }
.vz-card h3 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--navy-deep); }
.vz-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

.vz-list { display: grid; gap: 14px; margin: 24px 0; }
.vz-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); }
a.vz-row:hover { border-color: var(--cyan); color: var(--ink); }
.vz-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; border-radius: 6px; }
.vz-row h3 { margin: 2px 0 4px; color: var(--navy-deep); font-size: 19px; }
.vz-row p { margin: 0; color: var(--ink-2); }
.vz-row .kicker { font-size: 13px; font-weight: 800; color: var(--cyan); }

.vz-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.vz-tags li { margin: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.vz-checks { list-style: none; padding: 0; margin: 8px 0 22px; }
.vz-checks li { padding-left: 26px; position: relative; margin: 5px 0; font-size: 15px; }
.vz-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 4px; background: var(--cyan-wash); color: var(--navy); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }
.vz-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.vz-logos img { width: 100%; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.vz-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 8px; }
.vz-module { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.vz-module img { width: 100%; height: 120px; object-fit: contain; }
.vz-module span { color: var(--ink-2); font-size: 14px; }
.vz-download { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 600; text-decoration: none; }
.vz-download::before { content: "PDF"; font-size: 11px; font-weight: 800; color: #fff; background: #c8102e; border-radius: 4px; padding: 2px 6px; }
.vz-download:hover { border-color: var(--cyan); }
.vz-team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.vz-person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.vz-person img { width: 110px; height: 130px; object-fit: cover; border-radius: 8px; }
.vz-person h3 { margin: 0 0 6px; }
.vz-person h3 span { font-weight: 400; color: var(--muted); font-size: 15px; }
.vz-person ul { padding-left: 18px; margin: 0 0 10px; font-size: 15px; }
.vz-person blockquote { font-size: 14px; margin: 10px 0; }
.vz-person p { margin: 0; }
.vz-contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

.vz-btn { display: inline-block; background: var(--cyan); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: 8px; text-decoration: none; margin: 0 10px 10px 0; }
.vz-btn:hover { background: #0096d1; color: #fff; }
.vz-btn.ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.7); }
.vz-btn.ghost:hover { background: rgba(255,255,255,.22); }

.vz-pagination { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; margin-top: 28px; }
.vz-post-nav { max-width: var(--prose); margin: 56px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 15px; }
.vz-post-nav span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vz-post-nav .next { text-align: right; margin-left: auto; }

/* ------------------------------------------------------------ front page */
.home .site-main { padding-top: 0; }
.vz-hero {
  width: 100vw; margin-left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(10,47,92,.88) 0%, rgba(10,47,92,.6) 50%, rgba(10,47,92,.1) 100%), var(--hero-image) center 60% / cover no-repeat, var(--navy-deep);
  color: #fff; padding: 100px 16px 96px;
}
.vz-hero .inner { max-width: var(--max); margin: 0 auto; }
.vz-hero h1 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; color: #fff; max-width: 680px; }
.vz-hero h1 .steel { color: #c9cbcd; }
.vz-hero h1 .air { color: var(--cyan); }
.vz-hero h1 .water { color: #6fa8ef; }
.vz-hero p { font-size: 19px; color: #dbe7f6; margin: 0 0 28px; max-width: 560px; }
.vz-hero .vz-eyebrow { color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 12px; }
.home .entry-content { max-width: var(--max); }
.home .entry-content > h2 { margin-top: 52px; font-size: 28px; }
.vz-intro { max-width: var(--prose); margin: 40px auto 0; font-size: 18px; }
.vz-columns { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 24px; align-items: start; margin-top: 20px; }
.vz-column-title { font-size: 14px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan) !important; margin: 0 0 12px !important; }
.vz-tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--navy-deep); }
.vz-tile:hover { border-color: var(--cyan); color: var(--navy); }
.vz-tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.vz-tile span { display: block; padding: 8px 12px; }
.vz-portal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.vz-portal .vz-figure { margin: 0 0 12px; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy-deep); color: #b9c9de; font-size: 14px; }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 30px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: #fff; }
.site-footer .links a { margin-left: 16px; }
.site-footer .links a:first-child { margin-left: 0; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; margin-left: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .with-subnav { grid-template-columns: 1fr; gap: 0; }
  .subnav { position: static; margin-bottom: 24px; }
  .vz-columns { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .vz-split, .vz-gallery, .vz-gallery-2, .vz-team { grid-template-columns: 1fr; }
  .vz-row { grid-template-columns: 1fr; }
  .vz-person { grid-template-columns: 1fr; }
  .vz-hero { padding: 64px 16px 56px; }
  .brand img { height: 32px; }
}
