/*
Theme Name: Erik Baar Stukadoor Pro
Theme URI: https://www.erikbaarstukadoor.nl/
Author: Relies Computers
Author URI: https://relies.nl/
Description: Strak WordPress thema voor Erik Baar Stukadoor & Badkamerrenovatie met beheerbare diensten, projecten, teksten en contactgegevens.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: erik-baar-stukadoor
*/

:root {
  --bg: #f7f3ed;
  --text: #1e1b18;
  --muted: #69615a;
  --card: #ffffff;
  --dark: #171411;
  --dark-soft: #26211d;
  --accent: #b8874a;
  --accent-dark: #8f6534;
  --border: rgba(30, 27, 24, .12);
  --shadow: 0 24px 60px rgba(30, 27, 24, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 237, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  min-height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 13px; }
.logo-mark {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 16px; background: var(--dark); color: #fff;
  font-weight: 800; letter-spacing: .04em;
}
.logo strong, .logo small { display: block; line-height: 1.15; }
.logo small { color: var(--muted); font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.main-nav a { color: var(--muted); font-weight: 700; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--dark); color: #fff !important;
  padding: 12px 16px; border-radius: 999px;
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: var(--dark);
  border-radius: 12px; padding: 11px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: white; }

.hero { padding: 86px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center;
}
.eyebrow {
  margin: 0 0 13px; color: var(--accent-dark);
  text-transform: uppercase; font-size: 13px; font-weight: 800; letter-spacing: .12em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: .96; letter-spacing: -.055em; margin-bottom: 24px; }
h2 { font-size: clamp(31px, 4.3vw, 52px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 20px; }
h3 { font-size: 23px; line-height: 1.15; margin-bottom: 10px; }
.hero-text { color: var(--muted); max-width: 640px; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 15px 22px; font-weight: 800;
  border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(184, 135, 74, .25); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { border-color: var(--border); background: rgba(255,255,255,.5); }
.hero-card { position: relative; }
.hero-image {
  min-height: 520px; border-radius: 34px;
  background: linear-gradient(135deg, rgba(23,20,17,.1), rgba(23,20,17,.45)),
              radial-gradient(circle at 25% 20%, #e7d3bc, transparent 32%),
              linear-gradient(135deg, #b8874a, #2b251f);
  box-shadow: var(--shadow); padding: 30px;
  display: flex; align-content: flex-end; justify-content: flex-start; gap: 10px; flex-wrap: wrap;
  overflow: hidden;
}
.hero-image.has-photo { background-size: cover; background-position: center; }
.hero-image.has-photo:after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
}
.hero-image span {
  position: relative; z-index: 2; align-self: flex-end; display: inline-block; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  padding: 10px 13px; border-radius: 999px; backdrop-filter: blur(10px); font-weight: 800;
}
.rating-card {
  position: absolute; left: -30px; bottom: 35px; max-width: 260px;
  background: white; border-radius: 22px; padding: 20px; box-shadow: var(--shadow);
}
.rating-card p { margin: 5px 0 0; color: var(--muted); }

.section, .split-section, .contact-section { padding: 86px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 26px; padding: 28px; box-shadow: 0 14px 36px rgba(30, 27, 24, .06);
}
.card p { color: var(--muted); margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 15px; background: #efe3d4;
  color: var(--accent-dark); display: grid; place-items: center; font-weight: 900; margin-bottom: 22px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); font-size: 17px; }
.alt { background: #fffaf3; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-weight: 700; }
.check-list li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; }
.visual-panel {
  min-height: 430px; border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.18)),
              repeating-linear-gradient(90deg, #eee3d7 0 12px, #f8f1e8 12px 24px);
  border: 1px solid var(--border); box-shadow: var(--shadow); padding: 28px; overflow: hidden;
}
.visual-panel.has-photo { background-size: cover; background-position: center; position: relative; }
.visual-panel.has-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
.before-after {
  height: 100%; border-radius: 24px;
  background: linear-gradient(90deg, #c9b7a2 0 50%, #fff 50% 100%);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.before-after span { display: grid; place-items: end start; padding: 24px; font-weight: 900; color: #fff; }
.before-after span:last-child { color: var(--text); }
.bathroom { background: radial-gradient(circle at 70% 20%, rgba(184,135,74,.28), transparent 28%),
                         linear-gradient(135deg, #2b251f, #514435); }
.tile-grid {
  height: 100%; border-radius: 24px;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 54px 54px;
}

.dark { background: var(--dark); color: #fff; }
.dark .eyebrow { color: #dcb47f; }
.dark .section-head p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  min-height: 250px; border-radius: 24px; display: flex; align-items: end;
  padding: 22px; font-weight: 900; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)), linear-gradient(135deg, #9f7442, #352d25);
}
.gallery-item.has-photo { background-size: cover; background-position: center; }
.gallery-item.has-photo:before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.64)); }
.gallery-item span { position: relative; z-index: 1; }
.gallery-item:nth-child(2) { background: linear-gradient(180deg, transparent, rgba(0,0,0,.45)), linear-gradient(135deg, #d8cec1, #776858); }
.gallery-item:nth-child(3) { background: linear-gradient(180deg, transparent, rgba(0,0,0,.5)), linear-gradient(135deg, #756b60, #1d1915); }
.gallery-item:nth-child(4) { background: linear-gradient(180deg, transparent, rgba(0,0,0,.52)), linear-gradient(135deg, #bc8d55, #5b4127); }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.about > p { color: var(--muted); font-size: 19px; }

.contact-section { background: #fffaf3; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid p { color: var(--muted); }
.contact-info { display: grid; gap: 12px; margin-top: 26px; }
.contact-info a { font-weight: 900; color: var(--accent-dark); }
.contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: 28px;
  padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.contact-form label { display: grid; gap: 7px; font-weight: 800; }
input, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 15px; font: inherit; background: #fbfaf8;
}
textarea { resize: vertical; }
.contact-form small { color: var(--muted); }
.form-message { padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.form-message.success { background: #e7f8ec; color: #1b6a34; }
.form-message.error { background: #fff1f1; color: #9b1c1c; }

.site-footer { background: var(--dark); color: #fff; padding: 32px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-grid p { margin: 5px 0 0; color: rgba(255,255,255,.68); }
.footer-grid a { color: #dcb47f; font-weight: 800; }

.page-content { padding: 70px 0; }
.wp-block-image img { border-radius: 20px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 82px; left: 20px; right: 20px;
    display: none; flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--border); border-radius: 24px;
    padding: 18px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 8px; }
  .hero-grid, .split, .contact-grid, .about { grid-template-columns: 1fr; }
  .reverse .visual-panel { order: 2; }
  .cards, .gallery { grid-template-columns: 1fr 1fr; }
  .rating-card { left: 20px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 54px; }
  .hero-image { min-height: 380px; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .btn { width: 100%; }
}


/* Definitieve extra's */
.custom-logo {
  max-height: 58px;
  width: auto;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0,0,0,.26);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 620px) {
  .whatsapp-float {
    left: 14px;
    right: 14px;
    justify-content: center;
    bottom: 14px;
  }
}


/* Fix hero overlap / cards over tekst */
.hero-grid > * {
  min-width: 0;
}

.hero-content,
.hero-card {
  min-width: 0;
}

.hero-card {
  width: 100%;
  max-width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  min-height: 520px;
}

.rating-card {
  left: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  z-index: 3;
}

.hero-image span {
  position: relative;
  z-index: 3;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-card {
    max-width: 760px;
  }

  .rating-card {
    left: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 620px) {
  .hero-image {
    min-height: 380px;
  }

  .rating-card {
    position: relative;
    left: 0;
    bottom: auto;
    margin-top: -70px;
    margin-left: 14px;
    margin-right: 14px;
    max-width: calc(100% - 28px);
  }

  .hero-image span {
    font-size: 14px;
    padding: 10px 12px;
  }
}


/* Dienstblokken 01 / 02 / 03 met foto's terugzetten */
.service-photo-card {
  overflow: hidden;
  padding: 0;
}

.service-photo-card h3,
.service-photo-card p {
  padding-left: 28px;
  padding-right: 28px;
}

.service-photo-card h3 {
  margin-top: 22px;
}

.service-photo-card p {
  padding-bottom: 28px;
}

.service-photo {
  min-height: 210px;
  border-radius: 26px 26px 0 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.service-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45));
}

.service-photo span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--accent-dark);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

@media (max-width: 620px) {
  .service-photo {
    min-height: 190px;
  }
}


/* 01 / 02 / 03 badges verwijderen uit dienstenfoto's */
.service-photo span {
  display: none !important;
}
