/*
Theme Name: WensWare
Theme URI: https://wensware.nl
Author: IBMA Solutions
Description: Responsive theme for WensWare Solutions. Custom built by IBMA Solutions.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: wensware
*/

:root {
  --blue: #009ee2;
  --blue-dark: #007eb8;
  --navy: #1a3867;
  --text: #222222;
  --muted: #5c5c5c;
  --gray: #9c9b9b;
  --line: #e2e2e3;
  --bg: #ffffff;
  --soft: #efefef;
  --form: #d9d9d9;
  --header: 88px;
  --wide: 1120px;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img { width: 168px; height: auto; }

.nav-toggle {
  display: none;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .45rem .8rem;
  cursor: pointer;
}

.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: .15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-menu a {
  color: #6d6d6d;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .35rem 0;
  display: inline-block;
}

.menu-icon { display: none; }

@media (min-width: 861px) {
  .primary-menu > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .15rem .1rem;
  }
  .menu-icon {
    display: block;
    width: 34px;
    height: 34px;
    font-size: 34px;
    line-height: 1;
    color: #c8c8c8;
  }
  .primary-menu > li > a:hover .menu-icon,
  .primary-menu .current-menu-item > a .menu-icon,
  .primary-menu .current-menu-ancestor > a .menu-icon,
  .primary-menu .current_page_item > a .menu-icon {
    color: var(--blue);
  }
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_item > a {
  color: var(--blue);
}

.primary-menu li { position: relative; }

.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  padding: .35rem 0;
  z-index: 30;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }

.primary-menu .sub-menu a {
  display: block;
  padding: .45rem 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  background: var(--blue);
  color: #fff;
}

.hero-photo img {
  width: 100%;
  height: auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.hero-copy h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.hero-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.hero-icons img { width: 52px; height: 52px; }

.section { padding: 3rem 1.25rem; }
.section-narrow { max-width: 860px; margin: 0 auto; }
.wrap { max-width: var(--wide); margin: 0 auto; }

.section h2,
.entry h1,
.archive-head h1 {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}

.section-narrow h2 { text-transform: uppercase; font-size: 1.35rem; }

.btn,
button.btn,
input[type="submit"] {
  display: inline-block;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .7rem 1.1rem;
  cursor: pointer;
}

.btn:hover,
input[type="submit"]:hover {
  background: var(--blue);
  color: #fff;
}

.band-blue {
  background: var(--blue);
  padding: 1.35rem 1.25rem;
}
.band-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 1rem;
}
.band-btn {
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .4rem 1.15rem;
}
.band-btn:hover { color: #1d1d1b; }

.band-appointment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #9c9b9b;
  color: #fff;
  text-decoration: none;
  padding: 1.05rem 1.25rem;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 300;
}
.band-appointment:hover { color: #fff; }
.band-appointment img { width: 46px; height: 46px; }

.callout {
  background: #efefef;
  text-align: center;
  max-width: 900px;
  margin: 2.75rem auto 3rem;
  padding: 2.1rem 2.5rem;
}
.callout h2 {
  color: var(--navy);
  margin: 0 0 .7rem;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.callout p {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 .85rem;
  text-transform: uppercase;
}
.callout a {
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}

.testimonials { padding: 1rem 1.25rem 3.5rem; max-width: var(--wide); margin: 0 auto; }
.testimonials h2 {
  color: var(--blue);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.slider { position: relative; }
.slider-window { overflow: hidden; }
.slider-track {
  display: flex;
  transition: transform .45s ease;
}
.slide {
  flex: 0 0 100%;
  padding: .25rem .6rem 1rem;
}
.slide-card {
  background: #fff;
  border-top: 3px solid var(--blue);
  box-shadow: 0 6px 20px rgba(26, 56, 103, .08);
  padding: 1.25rem 1.1rem 1.4rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
}
.slide-logo {
  width: auto;
  max-width: 180px;
  max-height: 88px;
  object-fit: contain;
  margin: 0 auto;
}
.slide-card p { margin: 0; color: #333; }
.slide-card .btn { margin-top: auto; }

.slider-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}
.slider-btn.prev { left: -6px; }
.slider-btn.next { right: -6px; }
.slider-btn:hover { background: var(--navy); }

.page-banner img { width: 100%; max-height: 320px; object-fit: cover; }

.page-main,
.archive-main { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }

.with-sidebar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.75rem 2.5rem;
  align-items: start;
}
.with-sidebar .page-main,
.with-sidebar .archive-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.blog-sidebar { padding-top: 20px; }
.blog-sidebar h2 {
  margin: 0 0 .9rem;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.signup { margin-bottom: 2.25rem; }
.signup-form input[type="text"],
.signup-form input[type="email"] {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 .65rem;
  border: 1px solid #c8c8c8;
  background: #fff;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: .45rem .55rem;
  color: #333;
}
.signup-form .actions { text-align: right; }
.signup-form input[type="submit"] {
  background: var(--blue);
  color: #fff;
  border: 0;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
  padding: .4rem .85rem;
}
.signup-form input[type="submit"]:hover { background: var(--blue-dark); color: #fff; }
.signup .form-note { margin: 0 0 .8rem; }

.latest-news { list-style: none; margin: 0; padding: 0; }
.latest-news li {
  padding: .85rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.latest-news a {
  display: block;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.25;
}
.latest-news a:hover { text-decoration: underline; }
.latest-news time {
  display: block;
  margin: .3rem 0 .15rem;
  color: #222;
  font-weight: 700;
  font-size: .95rem;
}
.latest-news p {
  margin: 0;
  color: #222;
  font-weight: 700;
  line-height: 1.35;
}

.entry-content h2,
.entry-content h3 { color: var(--navy); }
.entry-content ul { padding-left: 1.2rem; }
.entry-content iframe { max-width: 100%; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.post-card {
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem 1.4rem;
  background: #fff;
}
.post-card time { color: var(--gray); font-size: .92rem; }
.post-card h2 { margin: .2rem 0 .5rem; font-size: 1.45rem; }
.post-card h2 a { color: var(--blue); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }

.pagination, .nav-links { display: flex; gap: .75rem; margin-top: 1.5rem; }

.contact-form {
  background: var(--form);
  padding: 1.35rem 1.35rem 1.2rem;
  margin-top: 1.5rem;
}
.contact-form .cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem 1.15rem;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  min-width: 0;
}
.contact-form .field-wide { grid-column: 1 / -1; }
.contact-form .field label,
.contact-form .news-label {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
}
.contact-form .req { color: #b42318; }
.contact-form .cf-required-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .92rem;
}
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: none;
  border: 1px solid #bbb;
  background: #fff;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: .5rem .6rem;
  color: #333;
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form .field-actions {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: .15rem;
}
.contact-form .news {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}
.contact-form .wpcf7-radio { display: flex; gap: 1rem; }
.contact-form .wpcf7-list-item { margin: 0; }
.contact-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 400;
}
.contact-form .wpcf7-submit { margin-left: auto; }
.contact-form .wpcf7-not-valid-tip { display: block; color: #b42318; font-size: .9rem; }
.contact-form .wpcf7-response-output { margin: .9rem 0 0; }
.form-note { background: #e7f6fd; border: 1px solid var(--blue); padding: .8rem 1rem; }
.hp { position: absolute; left: -9999px; }

.site-footer { padding: 0; background: #000; }
.expertise {
  background: #000;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: .2rem 1rem 1rem;
}
.expertise h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: .06em;
}
.expertise h2 span { text-decoration: underline; }
.expertise p { margin: .35rem 0 0; color: #fff; font-size: 1rem; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 0;
  margin: 0;
  align-items: stretch;
}
.footer-contact {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 2.4rem 1.4rem;
}
.footer-contact p { margin: 0; }
.footer-contact strong { font-size: 1.15rem; }
.footer-contact a { color: #fff; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.social {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin: 1rem 0 .9rem;
}
.social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.social a:hover { background: #fff; color: var(--blue); }
.map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

@media (min-width: 800px) {
  .slide { flex-basis: 50%; }
}
@media (min-width: 1100px) {
  .slide { flex-basis: 33.333%; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .primary-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 1rem 1rem;
    gap: 0;
  }
  .nav-open .primary-menu { display: flex; }
  .primary-menu .sub-menu {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 .4rem 1rem;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-photo img { max-height: none; }
  .band-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid,
  .with-sidebar { grid-template-columns: 1fr; }
  .slider-btn.prev { left: 0; }
  .slider-btn.next { right: 0; }
}

@media (max-width: 640px) {
  .contact-form .cf-grid { grid-template-columns: 1fr; }
  .contact-form .field-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-form .wpcf7-submit { margin-left: 0; }
}

@media (max-width: 520px) {
  .band-inner { grid-template-columns: 1fr; }
  .callout { margin-left: 1rem; margin-right: 1rem; }
}
