/*
Theme Name: Boekhoudhulp
Description: Vernieuwde website voor CL Boekhoudhulp met bewerkbare WordPress-pagina's.
Author: Boog-IT
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: boekhoudhulp
*/

:root {
  --ink: #252751;
  --green: #166454;
  --accent: #2daa74;
  --paper: #fff;
  --wash: #edf5f1;
  --text: #374652;
  --line: #dce8e2;
  --width: 1176px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #087d5c; outline-offset: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.13; letter-spacing: -.035em; margin: 0 0 .65em; }
h1 { font-size: clamp(2.55rem, 5.6vw, 5.45rem); font-weight: 760; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3.15rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.35em; }
li + li { margin-top: .35em; }
.wrap { width: min(calc(100% - 72px), var(--width)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 100; background: #fff; padding: .8rem; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 83px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 15px; }
.brand { flex: 0 0 auto; width: clamp(160px, 20vw, 226px); }
.brand img { display: block; width: 100%; }
.site-navigation { margin-left: auto; }
.site-navigation ul, .footer-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.site-navigation li, .footer-nav li { margin: 0; }
.site-navigation a, .mobile-navigation a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 650; }
.site-navigation a:hover, .site-navigation a[aria-current], .mobile-navigation a[aria-current] { text-decoration: underline; }
.mobile-navigation { display: none; }
.button, .wp-block-button__link, .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 6px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
  font-size: .94rem; line-height: 1.35; cursor: pointer;
}
.button:hover, .wp-block-button__link:hover, .wpcf7-submit:hover { background: var(--green); color: #fff; }
.is-style-outline > .wp-block-button__link { border: 1px solid var(--green); color: var(--green); background: transparent; }
.is-style-outline > .wp-block-button__link:hover { background: var(--wash); color: var(--ink); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }
.home-content > .wp-block-group > .wp-block-group__inner-container,
.home-content > .wp-block-group > .wrap { width: min(calc(100% - 72px), var(--width)); margin-inline: auto; }
.bhh-hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.bhh-hero > .wp-block-group { padding-block: clamp(3rem, 7.2vw, 7rem); }
.bhh-hero-grid, .bhh-about-grid { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: clamp(2rem, 5.4vw, 5.3rem); }
.bhh-hero-grid h1 { max-width: 14ch; }
.bhh-lead { font-size: clamp(1.07rem, 1.55vw, 1.25rem); max-width: 48ch; line-height: 1.55; margin-bottom: 1.6em; }
.bhh-location { margin-bottom: 1.2rem; font-size: .91rem; font-weight: 700; color: var(--green); }
.bhh-location::before { content: ""; display: inline-block; margin-right: .55rem; width: .52rem; height: .52rem; background: var(--accent); border-radius: 100%; vertical-align: .05em; }
.bhh-hero-photo img { width: 100%; aspect-ratio: 1.06; object-fit: cover; border-radius: 8px; }
.bhh-panel { padding-block: clamp(3rem, 6.7vw, 5.5rem); }
.bhh-section-intro { max-width: 65ch; margin-bottom: 2rem; }
.bhh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bhh-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; }
.bhh-card p:last-child { margin-top: auto; margin-bottom: 0; }
.bhh-card a, .bhh-about a { font-weight: 700; }
.bhh-about { background: var(--wash); }
.bhh-about-grid { grid-template-columns: .76fr 1.24fr; }
.bhh-portrait img { width: 100%; max-height: 400px; object-fit: cover; object-position: 50% 45%; border-radius: 8px; }
.bhh-band { background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem,4vw,2.5rem); margin-top: 2.5rem; }
.bhh-band h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.bhh-band p { max-width: 68ch; }
.page-heading { background: var(--wash); padding-block: clamp(2.75rem, 6.5vw, 5rem); border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; font-size: clamp(2.3rem, 5.2vw, 4.5rem); overflow-wrap: anywhere; }
.page-content { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.page-content > * { max-width: 74ch; }
.page-content .bhh-article-intro { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); margin-bottom: 1.6em; }
.page-content h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-top: 1.35em; }
.page-content .bhh-band h2, .page-content .bhh-contact h2 { margin-top: 0; }
.page-content .bhh-article-image { max-width: 74ch; margin: 1.6rem 0; }
.bhh-article-image img { border-radius: 7px; width: 100%; max-height: 350px; object-fit: cover; }
.page-content .bhh-contact { max-width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.bhh-contact-info { background: var(--wash); border-radius: 7px; padding: 1.6rem; align-self: start; }
.bhh-contact-info p:last-child { margin-bottom: 0; }
.wpcf7 input:not([type=submit]):not([type=hidden]), .wpcf7 textarea {
  display: block; width: 100%; max-width: 100%; min-height: 46px; border: 1px solid #839a90;
  background: white; color: var(--ink); padding: .65rem .75rem; border-radius: 5px; font: inherit;
}
.wpcf7 textarea { min-height: 115px; resize: vertical; }
.site-footer { border-top: 1px solid var(--line); padding: 2.75rem 0 1.5rem; background: #f7faf8; font-size: .92rem; }
.footer-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2rem; }
.footer-row p { margin-bottom: .45rem; }
.footer-row strong { color: var(--ink); }
.footer-row .brand { display: block; margin-bottom: .85rem; width: 170px; }
.footer-nav { flex-wrap: wrap; gap: .65rem 1.15rem; }
.footer-bottom { padding-top: 1.2rem; margin-top: 1.55rem; border-top: 1px solid var(--line); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1100px) {
  .site-navigation ul { gap: 15px; }
  .header-row { gap: 17px; }
}
@media (max-width: 940px) {
  .site-navigation, .header-cta { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary { color: var(--ink); font-weight: 700; min-height: 44px; cursor: pointer; padding: .55rem .3rem; }
  .mobile-navigation ul { padding: .6rem 1rem; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; list-style: none; position: absolute; right: 24px; z-index: 10; min-width: 225px; }
  .mobile-navigation li a { display: block; padding: .5rem; }
}
@media (max-width: 680px) {
  .wrap, .home-content > .wp-block-group > .wp-block-group__inner-container, .home-content > .wp-block-group > .wrap { width: min(calc(100% - 40px), var(--width)); }
  .site-header { min-height: 62px; }
  .header-row { padding-block: 8px; }
  .bhh-hero-grid, .bhh-about-grid, .bhh-cards, .page-content .bhh-contact, .footer-row { grid-template-columns: 1fr; }
  .bhh-hero-grid { gap: 1.6rem; }
  .bhh-hero-photo img { aspect-ratio: 1.8; }
  .bhh-about-grid > .bhh-portrait { order: 2; }
  .bhh-portrait img { max-height: 330px; }
  .mobile-navigation ul { right: 16px; }
  .footer-row { gap: 1.25rem; }
}

.bhh-reference-panel { border-bottom: 1px solid var(--line); }
.bhh-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.bhh-reference-grid h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.bhh-reference-logos { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; }
.bhh-reference-logo a { display: grid; align-items: center; min-height: 55px; }
.bhh-reference-logo img { width: 100px; height: 48px; object-fit: contain; object-position: left center; }
@media (max-width: 680px) {
  .bhh-reference-grid { grid-template-columns: 1fr; }
}

/* Homepage. Deep navy and green are taken from the original brand. */
.bhh-hero-modern {
  background: #252751;
  color: #e8eaf1;
  border-bottom: 0;
  overflow: hidden;
}
.bhh-hero-modern > .bhh-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.8rem, 5.6vw, 5.7rem);
}
.bhh-hero-modern h1 {
  font-size: clamp(3.35rem, 7.6vw, 7.1rem);
  max-width: 8.5ch;
  line-height: .92;
  letter-spacing: -.069em;
  color: #fff;
  margin-bottom: .34em;
}
.bhh-hero-modern .bhh-location {
  color: #a3e9c7;
  margin-bottom: 1.45rem;
}
.bhh-hero-modern .bhh-lead {
  color: #edf0f5;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  max-width: 39ch;
  line-height: 1.56;
  margin-bottom: 1.85rem;
}
.bhh-hero-modern .bhh-hero-photo {
  position: relative;
  isolation: isolate;
  margin-right: .65rem;
  margin-bottom: .65rem;
}
.bhh-hero-modern .bhh-hero-photo::after {
  content: "";
  position: absolute;
  inset: .65rem -.65rem -.65rem .65rem;
  border: 1px solid #91d8bd;
  border-radius: 12px;
  z-index: -1;
}
.bhh-hero-modern .bhh-hero-photo img {
  aspect-ratio: 1.04;
  object-position: center 58%;
  border-radius: 12px;
}
.bhh-hero-modern .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: #a3e9c7;
  color: var(--ink);
}
.bhh-hero-modern .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: #d6f6e7;
}
.bhh-hero-modern .is-style-outline .wp-block-button__link {
  color: #fff;
  border-color: #a8adca;
  background: transparent;
}
.bhh-hero-modern .is-style-outline .wp-block-button__link:hover {
  background: #3b406d;
}
.bhh-hero-modern :focus-visible, .bhh-closing :focus-visible {
  outline-color: #a3e9c7;
}
.bhh-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 3rem;
  margin-bottom: 1.9rem;
}
.bhh-section-head > * { margin: 0; }
.bhh-section-head .bhh-section-intro { max-width: 35ch; }
.bhh-services .bhh-cards { gap: 20px; }
.bhh-services .bhh-card {
  min-height: 252px;
  padding: clamp(1.25rem, 2.6vw, 2.2rem);
  border: 1px solid #d6e4de;
  border-radius: 13px;
  background: #f6faf8;
}
.bhh-services .bhh-card-interim { background: #f4f5fa; border-color: #dce0ee; }
.bhh-services .bhh-card-project { background: #eff7f4; border-color: #d3e6dd; }
.bhh-services .bhh-card h3 { font-size: clamp(1.27rem, 1.92vw, 1.64rem); }
.bhh-services .bhh-card p:last-child { padding-top: .45rem; }
.bhh-services .bhh-card a, .bhh-about-modern a { text-decoration: none; }
.bhh-services .bhh-card a:hover, .bhh-about-modern a:hover { text-decoration: underline; }
.bhh-services .bhh-card a span, .bhh-about-modern a span { margin-left: .25em; }
.bhh-service-icon {
  position: relative;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  color: #125b4a;
  background: #ddf0e7;
  margin-bottom: 1.15rem;
}
.bhh-card-interim .bhh-service-icon { background: #e5e8f4; color: #353d70; }
.bhh-service-icon::before, .bhh-service-icon::after {
  content: "";
  position: absolute;
  display: block;
}
.bhh-card-finance .bhh-service-icon::before {
  width: 17px; height: 21px; top: 10px; left: 13px;
  border: 2px solid currentColor; border-radius: 3px;
}
.bhh-card-finance .bhh-service-icon::after {
  left: 17px; top: 17px; width: 9px; height: 2px;
  background: currentColor; box-shadow: 0 5px currentColor;
}
.bhh-card-interim .bhh-service-icon::before {
  width: 21px; height: 21px; top: 11px; left: 11px;
  border: 2px solid currentColor; border-radius: 50%;
}
.bhh-card-interim .bhh-service-icon::after {
  left: 20px; top: 15px; width: 6px; height: 8px;
  border: solid currentColor; border-width: 0 0 2px 2px;
}
.bhh-card-project .bhh-service-icon::before {
  left: 11px; bottom: 11px; width: 22px; height: 21px;
  border: solid currentColor; border-width: 0 0 2px 2px;
}
.bhh-card-project .bhh-service-icon::after {
  left: 16px; bottom: 16px; width: 3px; height: 8px;
  background: currentColor; box-shadow: 5px -4px currentColor, 10px -8px currentColor;
}
.bhh-about-modern {
  background: #eaf4ef;
  border-block: 1px solid #dceae3;
}
.bhh-about-modern .bhh-about-grid {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}
.bhh-about-modern .bhh-portrait {
  background: #dbece3;
  border-radius: 12px;
  overflow: hidden;
}
.bhh-about-modern .bhh-portrait img {
  height: clamp(260px, 31vw, 375px);
  object-position: 50% 35%;
  border-radius: 0;
}
.bhh-about-modern .bhh-about-copy > p:not(.bhh-location) { max-width: 49ch; }
.bhh-reference-panel { border-bottom: 0; }
.bhh-closing { padding-top: 0; }
.home-content > .bhh-closing > .bhh-closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(1.65rem, 4.5vw, 3.4rem);
  border-radius: 13px;
  background: #166454;
  color: white;
}
.bhh-closing h2 { color: white; margin-bottom: .35em; }
.bhh-closing p { margin-bottom: 0; max-width: 51ch; }
.bhh-closing .wp-block-button__link {
  background: white; color: var(--green); white-space: nowrap;
}
.bhh-closing .wp-block-button__link:hover { background: #d6f6e7; }
@media (max-width: 780px) {
  .bhh-section-head { display: block; }
  .bhh-section-head h2 { margin-bottom: .45em; }
  .bhh-section-head .bhh-section-intro { max-width: none; }
}
@media (max-width: 680px) {
  .bhh-hero-modern > .bhh-hero-grid,
  .bhh-about-modern .bhh-about-grid { grid-template-columns: 1fr; }
  .bhh-hero-modern > .bhh-hero-grid { gap: 1.9rem; padding-block: 2.4rem 2.1rem; }
  .bhh-hero-modern h1 { font-size: clamp(3.05rem, 11.5vw, 4.55rem); }
  .bhh-hero-modern .bhh-hero-photo img { aspect-ratio: 1.65; }
  .bhh-services .bhh-card { min-height: 0; }
  .home-content > .bhh-closing > .bhh-closing-inner { display: block; }
  .bhh-closing .wp-block-buttons { margin-top: 1.35rem; }
}
