/* ============================================================
   De Kapper Drachten — homepage styling
   Brand: vivid red accent on near-black + clean white surfaces
   ============================================================ */

:root {
  --red:        #E2001A;
  --red-dark:   #B80016;
  --ink:        #111418;
  --ink-soft:   #1B1F24;
  --text:       #15181C;
  --text-2:     #5C636B;
  --text-3:     #8A9098;
  --line:       #E8E9EB;
  --line-2:     #EFEFF1;
  --bg:         #FFFFFF;
  --bg-2:       #F6F6F7;
  --bg-3:       #FAFAFA;
  --on-dark:    #F4F5F6;
  --on-dark-2:  #AEB4BB;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(17,20,24,.05);
  --sh-2: 0 8px 24px rgba(17,20,24,.07);
  --sh-3: 0 18px 50px rgba(17,20,24,.12);
  --sh-red: 0 12px 28px rgba(226,0,26,.28);

  --container: 1180px;
  --pad: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
/* let grid/flex children shrink below their content size (prevents right-edge overflow) */
.hero-copy, .about-copy, .about-media, .team-copy, .team-media,
.service-card, .service-body, .brand-card, .footer-col, .feature { min-width: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* neutral fill while images load — image placeholders also get this tone */
.media-fill { background: var(--bg-2); }

:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.06; color: var(--text); }
h2.section-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
p { margin: 0; }
.lead { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.accent { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 15px 26px;
  transition: background .14s var(--ease), color .14s var(--ease),
              transform .08s var(--ease), border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 78px;
}
.logo {
  display: inline-flex; align-items: stretch;
  border: 1.5px solid var(--text);
  border-radius: 4px; overflow: hidden; line-height: 1;
}
.logo-de {
  display: flex; align-items: center; padding: 0 9px;
  font-weight: 700; font-style: italic; font-size: 22px;
  color: var(--red); border-right: 1.5px solid var(--text);
}
.logo-kapper {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5px 10px; font-weight: 800; font-size: 18px;
  letter-spacing: .04em; color: var(--text);
}
.logo-kapper span { display: block; line-height: .98; }
.logo--light { border-color: #fff; }
.logo--light .logo-de { border-right-color: #fff; }
.logo--light .logo-kapper { color: #fff; }

/* image logo (original brand mark) */
.logo-img { height: 46px; width: auto; display: block; }
.brand-link { display: inline-flex; align-items: center; }
/* footer: brand mark sits on a white chip so it stays legible on the dark footer */
.footer-logo {
  display: inline-flex; align-items: center;
  background: #fff; padding: 9px 14px; border-radius: var(--r-md);
}
.footer-logo .logo-img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  position: relative; font-weight: 600; font-size: 15px;
  color: var(--text); padding: 6px 0; transition: color .14s var(--ease);
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2.5px; background: var(--red); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }
.menu-toggle .ic-close { display: none; }
.nav-open .menu-toggle .ic-open { display: none; }
.nav-open .menu-toggle .ic-close { display: block; }
.nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(17,20,24,.5); }

/* HERO */
.hero { padding: 22px 0 0; }
.hero-card {
  position: relative; display: grid;
  grid-template-columns: 1.02fr 1fr;
  background: var(--ink); border-radius: var(--r-xl);
  overflow: hidden; min-height: 540px;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(28px, 4vw, 64px); z-index: 2;
}
.hero h1 {
  color: #fff; font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.0; letter-spacing: -.03em;
}
.hero p {
  color: var(--on-dark-2); font-size: 16.5px; line-height: 1.65;
  max-width: 430px; margin: 26px 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(17,20,24,0) 24%);
}

/* FEATURES BAR */
.features { position: relative; z-index: 5; margin-top: -34px; }
.features-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 26px 8px;
}
.feature { display: flex; align-items: center; gap: 16px; padding: 6px 26px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature .ic { flex: none; color: var(--red); display: flex; }
.feature .ic svg { width: 30px; height: 30px; }
.feature-title { font-weight: 700; font-size: 15.5px; color: var(--text); }
.feature-sub { font-size: 13.5px; color: var(--text-3); margin-top: 1px; }

/* SECTIONS */
section { scroll-margin-top: 90px; }
.block { padding: 84px 0; }

.about-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about-media img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--r-lg); }
.about-copy h2 { font-size: clamp(28px, 3.2vw, 38px); }
.about-copy .lead { margin-top: 22px; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; margin-top: 56px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden;
  display: grid; grid-template-columns: 1fr 118px; min-height: 188px;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.service-card:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.service-body { padding: 24px 22px; display: flex; flex-direction: column; }
.service-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 19px; }
.service-card p { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.55; }
.service-arrow { color: var(--red); margin-top: auto; padding-top: 14px; display: inline-flex; }
.service-arrow svg { width: 26px; height: 18px; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-grid {
  display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.team-copy h2 { font-size: clamp(28px, 3.2vw, 38px); }
.team-copy .lead { margin: 22px 0 30px; }
.team-media img { width: 100%; height: 380px; object-fit: cover; object-position: center top; border-radius: var(--r-lg); }

.gallery-head {
  display: grid; grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.gallery-head h2 { font-size: clamp(26px, 2.8vw, 34px); max-width: 320px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img { width: 100%; height: 188px; object-fit: cover; border-radius: var(--r-md); }

/* PRODUCTEN / BRANDS */
.products-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.products-head .overline { margin-bottom: 14px; }
.products-head .lead { margin-top: 18px; }
/* brands: logos only, no text */
.brands { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: 22px 24px; height: 168px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.brand-card:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.brand-logo img { max-height: 124px; max-width: 86%; width: auto; object-fit: contain; }

/* reviews — right-to-left auto slider with edge fades */
.reviews-wrap { background: var(--bg-2); }
.reviews-head { text-align: center; margin-bottom: 44px; }
.reviews-slider {
  position: relative; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.reviews-track {
  display: flex; gap: 26px; width: max-content;
  animation: review-scroll 48s linear infinite;
}
.reviews-slider:hover .reviews-track,
.reviews-slider:focus-within .reviews-track { animation-play-state: paused; }
@keyframes review-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 13px)); } /* half of duplicated track + half a gap */
}
.review-card {
  flex: 0 0 360px; max-width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: 30px 28px;
  display: flex; flex-direction: column;
}
.review-mark { color: var(--red); font-size: 40px; line-height: .6; font-family: Georgia, serif; }
.review-card p { font-style: italic; font-weight: 600; font-size: 17px; margin: 16px 0 18px; color: var(--text); flex: 1; }
.stars { color: var(--red); letter-spacing: 3px; font-size: 16px; }
.stars .dim { color: #D8DBDF; }
.review-author { font-size: 13.5px; color: var(--text-3); margin-top: 12px; font-style: normal; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.review-author .gicon { width: 15px; height: 15px; flex: none; }

@media (max-width: 520px) {
  .review-card { flex-basis: 80vw; max-width: 80vw; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; overflow-x: auto; }
  .reviews-slider { overflow-x: auto; }
}

/* FOOTER */
.site-footer { background: var(--ink); color: var(--on-dark); }
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px); padding: 64px 0 52px;
}
.footer-col h3 {
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-size: 18px; margin-bottom: 18px;
}
.footer-col h3 .ic { color: var(--red); display: flex; }
.footer-col h3 .ic svg { width: 22px; height: 22px; }
.footer-col address { font-style: normal; color: var(--on-dark-2); line-height: 1.7; font-size: 15px; }
.footer-link { color: var(--red); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 4px 0; font-size: 14.5px; color: var(--on-dark-2); }
.hours td:first-child { color: var(--on-dark); font-weight: 600; padding-right: 24px; }
.hours tr.closed td { color: var(--text-3); }
.map { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 188px; background: #23282E; }
.map iframe { width: 100%; height: 100%; border: 0; min-height: 188px; filter: grayscale(1) invert(.92) contrast(.9); }
.footer-cta { padding: 0 0 18px; }
.footer-cta .btn { width: 100%; padding: 18px; font-size: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-soft); color: #fff; transition: background .14s var(--ease);
}
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0;
}
.footer-bottom nav { display: flex; gap: 28px; }
.footer-bottom nav a { color: var(--on-dark-2); font-size: 14.5px; font-weight: 600; }
.footer-bottom nav a:hover { color: #fff; }
.footer-legal { font-size: 13px; color: var(--text-3); }
.footer-legal a { color: var(--text-3); }
.footer-legal a:hover { color: var(--on-dark-2); }

/* RESPONSIVE */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }

  /* slide-in mobile nav */
  .nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 0; right: 0; z-index: 45;
    width: min(82vw, 320px); height: 100dvh;
    background: #fff; padding: 92px 24px 24px;
    box-shadow: var(--sh-3);
  }
  .nav-open .main-nav a { font-size: 17px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-open .main-nav a.active::after { display: none; }
  .nav-open .main-nav .nav-cta { margin-top: 20px; border-bottom: none; }
  .nav-open .header-cta .btn.nav-cta { display: inline-flex; }
  .nav-cta { display: inline-flex; }

  .hero-card { grid-template-columns: minmax(0,1fr); }
  .hero-media { min-height: 300px; order: -1; }
  .hero-media::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(17,20,24,0) 55%); }

  .features-card { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 0; }
  .feature:nth-child(2n) { border-left: none; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 18px; }

  .about-grid, .team-grid { grid-template-columns: minmax(0,1fr); }
  .services { grid-template-columns: minmax(0,1fr); }
  .brands { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-top { grid-template-columns: minmax(0,1fr); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* nav-cta only visible inside the open drawer on mobile; hidden on desktop nav (desktop uses header-cta button) */
@media (min-width: 941px) { .nav-cta { display: none; } }

/* TABLET (≤ 768px) */
@media (max-width: 768px) {
  :root { --pad: 22px; }
  .block { padding: 64px 0; }
  .header-inner { height: 70px; }
  .logo-img { height: 40px; }

  .hero { padding: 16px 0 0; }
  .hero-card { min-height: 0; border-radius: var(--r-lg); }
  .hero-copy { padding: 40px 26px 44px; }
  .hero-media { min-height: 240px; }

  .features { margin-top: -28px; }
  .features-card { padding: 14px 6px; }
  .feature { padding: 14px 18px; }

  .brands { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .brand-card { height: 132px; padding: 16px 12px; }
  .brand-logo img { max-height: 88px; max-width: 92%; }

  .about-media img, .team-media img { height: clamp(240px, 56vw, 360px); }

  .footer-top { padding: 52px 0 40px; }
}

/* PHONE (≤ 520px) */
@media (max-width: 520px) {
  :root { --pad: 18px; }
  .block { padding: 52px 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .brands { grid-template-columns: 1fr 1fr; }
  .brand-card:last-child { grid-column: 1 / -1; }
  .reviews-head { margin-bottom: 32px; }

  /* features: icon stacked above text for a cleaner 2x2 quadrant, no floating icons */
  .features { margin-top: -24px; }
  .features-card { padding: 6px 6px; }
  .feature {
    flex-direction: column; align-items: flex-start;
    gap: 11px; padding: 20px 16px;
  }
  .feature .ic svg { width: 27px; height: 27px; }
  .feature-title { font-size: 15px; line-height: 1.25; }
  .feature-sub { font-size: 13px; }
  /* clean cross-dividers for the 2×2 grid */
  .feature:nth-child(2n) { border-left: 1px solid var(--line); }
  .feature:nth-child(n+3) { padding-top: 20px; }

  /* footer: tie the map to the section, give the CTA room to breathe */
  .footer-cta { padding-bottom: 0; }
  .map { margin-top: 20px; min-height: 210px; }
  .map iframe { min-height: 210px; }
}

/* SMALL PHONE (≤ 380px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 36px; }
  .header-cta .btn { padding: 12px 16px; font-size: 14px; }
  .logo-img { height: 34px; }
  .feature { gap: 12px; padding: 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
