/*
Theme Name: IBTH Modern
Theme URI: https://www.ibth.nl/
Author: Codex
Description: Modern maatwerkthema voor Ingenieursbureau ter Horst.
Version: 1.0.0
Text Domain: ibth-modern
*/

:root {
  --ibth-blue: #2356a6;
  --ibth-blue-dark: #16386d;
  --ink: #172033;
  --muted: #647086;
  --line: #d9e1ec;
  --surface: #f5f8fb;
  --white: #fff;
  --green: #2d7c67;
  --amber: #c77732;
  --shadow: 0 20px 55px rgba(18, 35, 63, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
}

.wp-site-blocks > *,
.wp-block-group {
  margin-block-start: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ibth-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ibth-blue-dark);
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 225, 236, 0.9);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand img {
  width: 142px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a {
  color: var(--ibth-blue);
  background: #eef4ff;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--ibth-blue);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-contact:hover,
.header-contact:focus {
  color: var(--white);
  background: var(--ibth-blue-dark);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 25, 45, 0.86) 0%, rgba(12, 25, 45, 0.64) 42%, rgba(12, 25, 45, 0.12) 100%),
    var(--hero-image, url("assets/images/ibth-office-hero.jpg")) center / cover no-repeat;
}

.hero__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #b8d6ff;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #edf5ff;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ibth-blue);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: var(--ibth-blue-dark);
  color: var(--white);
  text-decoration: none;
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.button--light:hover,
.button--light:focus {
  background: #edf3fb;
  color: var(--ink);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button--ghost:hover,
.button--ghost:focus {
  background: rgba(255, 255, 255, 0.18);
}

.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ibth-blue);
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
  background: var(--ibth-blue-dark);
  color: var(--white);
  text-decoration: none;
}

.wp-block-button.button--light .wp-block-button__link {
  background: var(--white);
  color: var(--ink);
}

.wp-block-button.button--light .wp-block-button__link:hover,
.wp-block-button.button--light .wp-block-button__link:focus {
  background: #edf3fb;
  color: var(--ink);
}

.wp-block-button.button--ghost .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.wp-block-button.button--ghost .wp-block-button__link:hover,
.wp-block-button.button--ghost .wp-block-button__link:focus {
  background: rgba(255, 255, 255, 0.18);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 46px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.25);
}

.hero__fact {
  min-height: 96px;
  padding: 18px;
  background: rgba(7, 18, 35, 0.52);
}

.hero__fact strong {
  display: block;
  font-size: 1.35rem;
}

.hero__fact span {
  display: block;
  color: #d9e8fb;
  font-size: 0.9rem;
}

.section {
  padding: 82px 0;
}

.section--soft {
  background: var(--surface);
}

.section--dark {
  background: #132235;
  color: var(--white);
}

.section--dark .section-title p,
.section--dark .muted {
  color: #c8d4e4;
}

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title h2,
.page-hero h1,
.entry-content h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-title p,
.page-hero p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.case-card,
.process-step,
.contact-panel,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(16, 34, 58, 0.04);
}

.service-card {
  display: grid;
  grid-template-rows: 210px 1fr;
}

.wp-block-group.service-card > .wp-block-group__inner-container,
.wp-block-group.case-card > .wp-block-group__inner-container,
.wp-block-group.hero__facts > .wp-block-group__inner-container,
.wp-block-group.hero__actions > .wp-block-group__inner-container {
  display: contents;
}

.service-card::before {
  display: block;
  min-height: 210px;
  background: center / cover no-repeat;
  content: "";
}

.service-card--materiaal::before {
  background-image: url("assets/images/microscope.jpg");
}

.service-card--optiek::before {
  background-image: url("assets/images/optiek.jpg");
}

.service-card--lucht::before {
  background-image: url("assets/images/lucht-ozon.jpg");
}

.service-card img,
.case-card img,
.page-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body,
.case-card__body,
.process-step,
.content-card {
  padding: 24px;
}

.wp-block-group.service-card__body,
.wp-block-group.case-card__body {
  padding: 24px;
}

.service-card h3,
.case-card h3,
.process-step h3,
.content-card h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.service-card p,
.case-card p,
.process-step p,
.content-card p {
  margin: 0;
  color: var(--muted);
}

.service-card ul,
.entry-content ul,
.content-card ul {
  padding-left: 20px;
  margin: 16px 0 0;
}

.service-card li,
.entry-content li,
.content-card li {
  margin: 7px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.split__media {
  min-height: 420px;
  border-radius: var(--radius);
  background: center / cover no-repeat;
  box-shadow: var(--shadow);
}

.split__media--lab {
  background-image: url("assets/images/technical-lab-stock.jpg");
}

.quote {
  margin: 0;
  padding: 28px;
  border-left: 5px solid var(--green);
  background: #eff8f5;
  border-radius: var(--radius);
  color: #18352d;
  font-size: 1.16rem;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.check-list li::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3ee;
  color: var(--green);
  content: "\2713";
  font-weight: 900;
}

.process {
  counter-reset: process;
}

.process-step {
  position: relative;
}

.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #eaf1fb;
  color: var(--ibth-blue);
  font-weight: 900;
}

.case-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 170px;
}

.case-card::before {
  display: block;
  min-height: 170px;
  background: center / cover no-repeat;
  content: "";
}

.case-card--ozon::before {
  background-image: url("assets/images/ozon-generator.jpg");
}

.case-card--fresholair::before {
  background-image: url("assets/images/fresholair.jpg");
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.logo-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.logo-strip img {
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.76;
}

.cta-band {
  padding: 38px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ibth-blue), #2b7b6d);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.cta-band p {
  margin: 10px 0 0;
  color: #e8f3ff;
}

.page-hero {
  padding: 76px 0 42px;
  background: var(--surface);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
  padding: 60px 0 84px;
}

.entry-content {
  max-width: 820px;
}

body.home .wp-block-post-content.entry-content {
  max-width: none;
}

.entry-content h2 {
  margin-top: 42px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.entry-content h3 {
  margin-top: 30px;
  font-size: 1.34rem;
}

.entry-content p {
  margin: 0 0 18px;
}

.entry-content .lead {
  color: var(--ink);
  font-size: 1.18rem;
}

.page-feature {
  height: 260px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.contact-panel {
  padding: 24px;
}

.contact-panel h2,
.contact-panel h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.contact-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.contact-panel a {
  font-weight: 800;
}

.form-wrap {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.wpcf7-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-row--numbers {
  max-width: 520px;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #c8d2e0;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  width: auto;
  min-width: 160px;
  border-color: var(--ibth-blue);
  background: var(--ibth-blue);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  background: #111b2a;
  color: #dce6f2;
}

.site-footer__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  margin: 0 0 8px;
  color: #b8c6d7;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: #f2f7ff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebdce;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

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

  .site-nav ul {
    display: grid;
    gap: 6px;
    width: min(var(--max), 100%);
    margin: 0 auto;
  }

  .hero {
    min-height: auto;
  }

  .grid--3,
  .grid--2,
  .split,
  .page-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .logo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .section__inner,
  .hero__inner,
  .site-footer__inner {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 112px;
  }

  .site-header__inner {
    gap: 10px;
  }

  .header-contact {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 0.9rem;
  }

  .hero__inner {
    padding: 70px 0 54px;
  }

  .hero__facts,
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 0;
  }

  .case-card img {
    min-height: 190px;
  }

  .section {
    padding: 60px 0;
  }

  .service-card {
    grid-template-rows: 190px 1fr;
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    padding: 26px;
  }

  .footer-bottom {
    display: grid;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
