/*
Theme Name: Klem Installatietechniek Onepager
Theme URI: https://kleminstallatietechniek.nl/
Author: Codex
Description: Uitnodigende one-page WordPress template voor Klem Installatietechniek.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: klem-onepager
*/

:root {
  --klem-blue: #003da5;
  --klem-blue-dark: #002a72;
  --klem-red: #ed1c24;
  --klem-gray-900: #2f3033;
  --klem-gray-700: #62656a;
  --klem-gray-200: #e7e9ee;
  --klem-gray-100: #f6f7f9;
  --klem-white: #ffffff;
  --shadow-soft: 0 18px 44px rgba(0, 30, 85, 0.12);
  --shadow-card: 0 10px 28px rgba(28, 35, 50, 0.1);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--klem-gray-900);
  background: var(--klem-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.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;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--klem-gray-200);
  backdrop-filter: blur(14px);
}

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

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

.site-logo img {
  width: 220px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--klem-gray-900);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--klem-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--red {
  color: var(--klem-white);
  background: var(--klem-red);
  box-shadow: 0 12px 24px rgba(237, 28, 36, 0.22);
}

.button--blue {
  color: var(--klem-white);
  background: var(--klem-blue);
  box-shadow: 0 12px 24px rgba(0, 61, 165, 0.22);
}

.button--outline {
  color: var(--klem-blue);
  background: var(--klem-white);
  border-color: var(--klem-blue);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--klem-gray-200);
}

.hero__grid {
  display: grid;
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 74px 46px 74px 0;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--klem-gray-900);
  font-size: clamp(3.1rem, 5vw, 4.4rem);
  line-height: 0.98;
  font-weight: 900;
}

.hero h1 span {
  display: block;
}

.hero__lead {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--klem-blue);
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  line-height: 1.22;
  font-weight: 900;
}

.red-rule {
  width: 72px;
  height: 3px;
  margin: 24px 0;
  background: var(--klem-red);
}

.hero__copy {
  max-width: 560px;
  margin: 0;
  color: var(--klem-gray-700);
}

.hero__strong {
  margin: 20px 0 0;
  color: var(--klem-gray-900);
  font-weight: 900;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.trust-row {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0 0;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--klem-gray-700);
  font-size: 0.9rem;
}

.trust-item svg {
  flex: 0 0 30px;
  color: var(--klem-blue);
}

.trust-item strong {
  display: block;
  color: var(--klem-gray-900);
  font-size: 0.92rem;
}

.hero__media {
  position: relative;
  min-height: calc(100vh - 82px);
  align-self: stretch;
}

.hero__media::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  content: "";
  background: linear-gradient(90deg, var(--klem-white) 0%, rgba(255, 255, 255, 0.72) 34%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 82px);
  object-fit: cover;
}

.section {
  padding: 86px 0;
}

.section--soft {
  background: linear-gradient(180deg, var(--klem-white) 0%, var(--klem-gray-100) 100%);
}

.section--blue {
  position: relative;
  overflow: hidden;
  color: var(--klem-white);
  background: var(--klem-blue);
}

.section--blue::before {
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 360px;
  height: 520px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 65%);
  transform: rotate(26deg);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading--left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  color: var(--klem-gray-900);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--klem-gray-700);
  font-size: 1.08rem;
}

.section-heading .red-rule {
  margin-right: auto;
  margin-left: auto;
}

.section-heading--left .red-rule {
  margin-left: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.review-card {
  background: var(--klem-white);
  border: 1px solid var(--klem-gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.service-card {
  min-height: 260px;
  padding: 34px;
}

.service-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--klem-blue);
  border: 2px solid currentColor;
  border-radius: 8px;
}

.service-card:nth-child(2) .service-card__icon {
  color: var(--klem-red);
}

.service-card h3,
.project-card h3,
.review-card h3 {
  margin: 0;
  color: var(--klem-gray-900);
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 900;
}

.service-card p,
.project-card p,
.review-card p {
  margin: 13px 0 0;
  color: var(--klem-gray-700);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--klem-blue);
  font-weight: 900;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  background: var(--klem-white);
  border: 1px solid var(--klem-gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card__body {
  padding: 22px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  padding: 28px;
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  color: var(--klem-red);
  font-size: 1.15rem;
  letter-spacing: 0;
}

.review-card blockquote {
  margin: 0;
  color: var(--klem-gray-900);
  font-size: 1.05rem;
  font-style: italic;
}

.review-card cite {
  display: block;
  margin-top: 20px;
  color: var(--klem-gray-700);
  font-style: normal;
}

.review-card cite strong {
  display: block;
  color: var(--klem-gray-900);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 60px;
  align-items: center;
}

.contact-grid h2 {
  max-width: 560px;
  margin: 0;
  color: var(--klem-white);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
}

.contact-grid p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-actions .button--outline {
  color: var(--klem-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
}

.contact-list {
  display: grid;
  gap: 24px;
  padding-left: 38px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
}

.contact-item__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--klem-blue);
  background: var(--klem-white);
  border-radius: 999px;
}

.contact-item span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.contact-item strong {
  display: block;
  color: var(--klem-white);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.2;
}

.site-footer {
  color: var(--klem-white);
  background: linear-gradient(135deg, #26282b, #3e4146);
}

.site-footer__inner {
  width: calc(100% - 40px);
  max-width: var(--container);
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 28px 0;
}

.site-footer img {
  width: 190px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

@media (max-width: 1020px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero__grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 54px 0;
  }

  .hero__media,
  .hero__media img {
    min-height: 420px;
  }

  .hero__media::before {
    display: none;
  }

  .services,
  .projects-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

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

  .contact-list {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner,
  .section__inner,
  .site-footer__inner {
    width: calc(100% - 28px);
  }

  .site-logo img {
    width: 176px;
  }

  .site-nav {
    gap: 16px;
    justify-content: flex-start;
    overflow-x: auto;
    font-size: 0.9rem;
  }

  .header-actions,
  .hero__actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 340px;
  }

  .button {
    width: 100%;
    flex: none;
    padding: 0 14px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.2rem);
  }

  .hero__lead,
  .hero__copy,
  .hero__strong {
    max-width: 340px;
    overflow-wrap: break-word;
  }

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

  .section {
    padding: 62px 0;
  }

  .service-card,
  .review-card {
    padding: 24px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
