/* Home4Everyone – Andrzej Sygieniewicz
   Carpenter / ZZP freelancer site */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f5f5f5;
  --color-bg-grey: #e8e8e8;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-red: #ff0000;
  --color-red-hover: #cc0000;
  --color-white: #ffffff;
  --max-width: 1100px;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

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

html {
  /* Same layout width on long pages (index) and short pages — avoids header size drift */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4; /* ~40% tighter text spacing overall */
  color: var(--color-text);
  /* Wood texture, heavily lightened so content stays readable */
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    url("images/Wood.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

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

/* ——— Header ——— */

.site-header {
  margin: 0;
}

/* Top bar: fixed height on every page (−15% vs previous) */
.top-bar {
  height: 2.125rem; /* 2.5 × 0.85 */
  background-color: var(--color-text);
  color: #d0d0d0;
  box-sizing: border-box;
}

.top-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 1.25rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 75px 0 1.25rem; /* ~75px from the right edge */
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 700px) {
  .top-bar-inner {
    justify-content: center;
    padding: 0 1rem;
    gap: 0.4rem 0.85rem;
  }
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.765rem; /* 0.9 × 0.85 */
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.top-bar-link:hover,
.top-bar-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

.top-bar-icon {
  flex-shrink: 0;
  width: 0.9rem; /* 1.05 × 0.85 */
  height: 0.9rem;
  fill: currentColor;
}

/* Logo bar: fixed geometry so height is identical on every page */
.logo-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  background-color: var(--color-red);
  padding: 0.5rem 1.25rem calc(0.425rem + 10px);
  position: relative;
  box-sizing: border-box;
}

.logo-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--max-width);
  height: 5.5rem; /* fixed — same on index and subpages */
  min-height: 5.5rem;
  position: relative;
  box-sizing: border-box;
}

.logo-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  flex: 1;
  min-width: 0;
  height: 100%;
}

/* Fixed logo size (no fluid shrink from scrollbar / viewport) */
.logo-img {
  width: 294px;
  max-width: 294px;
  height: 4.75rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.header-text {
  text-align: left;
  max-width: 22rem;
  min-width: 0;
}

.site-name {
  margin: 0 0 0.2rem;
  font-size: 1.15rem; /* fixed rem — no vw clamp drift between pages */
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-caption {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-white);
}

/* Hamburger button (mobile only) */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-white);
  border-radius: 4px;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu (−25% from previous enlarged size) — fixed row height */
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.7rem;
  width: 100%;
  height: 2.36rem;
  min-height: 2.36rem;
  max-height: 2.36rem;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.1rem;
  padding: 0 1.16rem;
  font-size: 0.945rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-white);
  text-decoration: none;
  background-color: var(--color-red);
  border: 1px solid var(--color-white);
  box-sizing: border-box;
  /* Slanted sides (not vertical); top & bottom stay horizontal */
  transform: skewX(-18deg);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-btn span {
  display: inline-block;
  transform: skewX(18deg); /* keep label upright */
  font-weight: inherit;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background-color: var(--color-white);
  color: var(--color-red);
  outline: none;
}

.nav-btn[aria-current="page"] {
  background-color: var(--color-white);
  color: var(--color-red);
  box-shadow: 0 0 0 1px var(--color-white);
}

.nav-btn[aria-current="page"]:hover,
.nav-btn[aria-current="page"]:focus-visible {
  background-color: var(--color-white);
  color: var(--color-red);
}

/* Mobile: fixed logo row; open menu may expand below */
@media (max-width: 768px) {
  .top-bar {
    height: 2.125rem;
  }

  .logo-bar {
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem calc(0.325rem + 10px);
  }

  .logo-bar-row {
    justify-content: space-between;
    max-width: none;
    height: 4.75rem;
    min-height: 4.75rem;
  }

  .logo-bar-inner {
    justify-content: flex-start;
    flex: 1;
  }

  .logo-img {
    width: 200px;
    max-width: 200px;
    height: 3.75rem;
  }

  .header-text {
    text-align: left;
    max-width: 14rem;
  }

  .site-name {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0.7rem 0 0.15rem;
    overflow: visible;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-btn {
    width: 100%;
    max-width: 100%;
    height: 2.5rem;
    transform: none;
    padding: 0 1rem;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.86rem;
  }

  .site-nav .nav-btn span {
    transform: none;
  }
}

/* Phone: shrink logo + name/caption so they stay inside the red bar */
@media (max-width: 560px) {
  .logo-bar {
    padding: 0.4rem 0.65rem calc(0.3rem + 10px);
  }

  .logo-bar-row {
    height: auto;
    min-height: 3.75rem;
    gap: 0.4rem;
  }

  .logo-bar-inner {
    gap: 0.45rem;
    min-width: 0;
  }

  .header-text {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-img {
    width: 7.25rem;
    max-width: 32vw;
    height: 2.65rem;
  }

  .site-name {
    font-size: 0.78rem;
    line-height: 1.15;
    white-space: normal; /* allow wrap instead of overflowing */
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 0.1rem;
  }

  .site-caption {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .nav-toggle {
    width: 2.35rem;
    height: 2.35rem;
  }

  .top-bar-link {
    font-size: 0.72rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .logo-img {
    width: 5.75rem;
    max-width: 28vw;
    height: 2.25rem;
  }

  .site-name {
    font-size: 0.7rem;
  }

  .site-caption {
    font-size: 0.55rem;
    line-height: 1.15;
  }

  .logo-bar-row {
    min-height: 3.4rem;
  }
}

/* ——— Hero (Welkom / index) ——— */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem 0.9rem;
  gap: 1.5rem;
  align-items: center;
}

.hero--text-only {
  max-width: 42rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
}

.hero-headline {
  margin: 0 0 0.33rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.hero-body {
  margin: 0 0 0.7rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .hero {
    padding: 1.05rem 1.5rem 1.2rem;
  }
}

/* ——— Testimonials carousel ——— */

.testimonials {
  background-color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.5rem;
}

.testimonials-header {
  margin: 0 0 1rem;
  text-align: center;
}

.testimonials-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
}

.testimonials-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}

.testimonials-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.testimonials-google-link {
  color: var(--color-text);
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

.testimonials-google-link:hover,
.testimonials-google-link:focus-visible {
  color: var(--color-red);
  outline: none;
}

.testimonials-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "prev viewport next"
    "dots dots dots";
  align-items: center;
  gap: 0.5rem 0.35rem;
}

.testimonials-viewport {
  grid-area: viewport;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.testimonials-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

a.testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--color-white);
  border: 1px solid #eee;
  border-top: 3px solid var(--color-red);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.1rem 1.2rem 1.15rem;
  min-height: 12rem;
  max-height: 16.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a.testimonial-card:hover,
a.testimonial-card:focus-visible {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
  outline: none;
  transform: translateY(-1px);
}

.testimonial-stars {
  margin: 0 0 0.55rem;
  color: #f5b400;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
}

.testimonial-text {
  margin: 0 0 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text);
  font-style: italic;
}

.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0;
}

.testimonial-author {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-source {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.testimonials-nav {
  grid-area: prev;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.testimonials-nav--next {
  grid-area: next;
}

.testimonials-nav:hover,
.testimonials-nav:focus-visible {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  outline: none;
}

.testimonials-dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

.testimonials-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: #ccc;
  cursor: pointer;
}

.testimonials-dot.is-active {
  background: var(--color-red);
}

@media (min-width: 700px) {
  .testimonials-inner {
    padding: 1.6rem 1.5rem 1.75rem;
  }

  a.testimonial-card {
    flex: 0 0 calc((100% - 1rem) / 2); /* 2 cards visible */
  }
}

@media (min-width: 1000px) {
  a.testimonial-card {
    flex: 0 0 calc((100% - 2rem) / 3); /* 3 cards visible */
  }
}

/* ——— Project showcase (Projects.png layout) ——— */

.project-showcase {
  background-color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-showcase-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* space between stacked projects */
}

/* One full project block — white bg flush with content, 10px outer corners */
.project-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0; /* same size as content — no extra frame */
  margin: 0;
  background-color: var(--color-white); /* same as the white lines */
  border-radius: 10px;
  overflow: hidden; /* clips children to the rounded outer corners */
  box-sizing: border-box;
}

/* Red title bar — top-left & top-right */
.project-block-title {
  margin: 0;
  background-color: var(--color-red);
  border: 2px solid var(--color-white);
  border-radius: 10px 10px 0 0;
  padding: 0.75rem 1rem;
  text-align: center;
}

.project-block-title h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

/*
  Projects.png layout — three equal columns on desktop:
  Voor | Na | Omschrijving  (same width, same height, no overlap)
*/
.project-block-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
}

.project-photo {
  position: relative;
  margin: 0;
  padding: 0;
  border: 2px solid var(--color-white);
  border-radius: 0;
  overflow: hidden;
  background: #e8e8e8;
  min-width: 0; /* prevent grid blowout / overlap */
  width: 100%;
  max-width: 100%;
  height: 280px;
  box-sizing: border-box;
}

/* Bottom-left of first image = bottom-left of whole project (rounds white border too) */
.project-block-body > .project-photo:first-child {
  border-bottom-left-radius: 10px;
  overflow: hidden;
}

.project-photo-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.75rem;
  background: #1a1a1a;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #00e000;
}

.project-photo-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* Omschrijving — same column size as photos; bottom-right outer corner */
.project-block-info {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--color-white);
  border-radius: 0;
  border-bottom-right-radius: 10px; /* rounds the white border, not only the red bar */
  overflow: hidden;
  background: #d0d0d0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 280px;
  box-sizing: border-box;
}

.project-info-header {
  flex-shrink: 0;
  background: #1a1a1a;
  color: var(--color-white);
  padding: 0.45rem 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-info-body {
  flex: 1 1 auto;
  padding: 0.85rem 1rem;
  background: #d0d0d0;
  overflow: auto;
  min-height: 0;
}

.project-info-body ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.project-info-body li {
  margin: 0 0 0.35rem;
}

.project-info-body li:last-child {
  margin-bottom: 0;
}

.project-info-price {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  border-bottom-right-radius: 10px;
}

.project-info-price strong {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Tablet: Voor | Na, omschrijving full width under */
@media (min-width: 700px) and (max-width: 899px) {
  .project-block-body {
    grid-template-columns: 1fr 1fr;
  }

  .project-block-info {
    grid-column: 1 / -1;
    height: auto;
    min-height: 200px;
  }

  .project-photo {
    height: 300px;
  }

  /* Outer bottom corners on full-width price row */
  .project-block-body > .project-photo:first-child {
    border-bottom-left-radius: 0;
  }

  .project-block-body > .project-photo:nth-child(1) {
    border-bottom-left-radius: 0;
  }

  .project-block-info {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .project-info-price {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}

/* Mobile: stack — outer corners on title top + price bottom */
@media (max-width: 699px) {
  .project-block-body > .project-photo:first-child {
    border-bottom-left-radius: 0;
  }

  .project-block-info {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .project-info-price {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}

/* Desktop: three equal columns side by side */
@media (min-width: 900px) {
  .project-showcase-inner {
    padding: 1.5rem 1.5rem 2rem;
  }

  .project-block-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
  }

  .project-photo,
  .project-block-info {
    height: 360px;
  }

  .project-block-body > .project-photo:first-child {
    border-bottom-left-radius: 10px;
  }

  .project-block-info {
    border-bottom-right-radius: 10px;
  }
}

/* ——— About (Over mij) ——— */

.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.05rem 1.25rem 1.35rem;
}

/* White panel like contact form / price cards */
.about-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
  background: var(--color-white);
  border: 1px solid #eee;
  border-top: 3px solid var(--color-red);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 1.15rem 1.25rem 1.25rem;
  box-sizing: border-box;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-grey);
  aspect-ratio: 4 / 5;
  max-height: 420px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

.about-content .page-title {
  margin-top: 0;
  margin-bottom: 0.39rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .about {
    padding: 1.35rem 1.5rem 1.65rem;
  }

  .about-panel {
    grid-template-columns: minmax(240px, 0.85fr) 1.15fr;
    gap: 1.75rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
  }

  .about-media {
    aspect-ratio: 3 / 4;
    max-height: 440px;
  }
}

/* ——— Services ——— */

.services {
  /* Slightly stronger white wash so cards still pop over wood */
  background-color: rgba(245, 245, 245, 0.72);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.services-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.service-card {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.35rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
}

.service-accent {
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 4px;
  border-radius: 0 2px 2px 0;
  background-color: var(--color-red);
}

.service-title {
  margin: 0 0 0.24rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@media (min-width: 700px) {
  .services-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 2.5rem 1.5rem;
  }
}

/* ——— Pricing (Tarieven) ——— */

.pricing {
  background-color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.5rem;
}

.pricing-header {
  max-width: 42rem;
  margin: 0 0 1.05rem;
}

.pricing-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
}

.pricing-title {
  margin: 0 0 0.39rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}

.pricing-subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.price-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 0.85rem 1.25rem 0.9rem; /* +20% vertical vs site-wide tight */
  border-top: 3px solid var(--color-red);
}

/* Image first: full card width, half height (2:1 crop) */
.price-card--thumb {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.price-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1; /* e.g. 100×50 — full width, half height */
  height: auto;
  object-fit: cover;
  object-position: center center; /* crop top & bottom evenly */
  border-radius: 0;
  box-shadow: none;
}

/* Bottom cards: 20% taller images (height 1 → 1.2) */
.price-card--thumb-tall .price-card-thumb {
  aspect-ratio: 2 / 1.2;
}

/* +20% text spacing under image / in price cards */
.price-card--thumb .price-card-title {
  margin: 0.7rem 1.15rem 0.4rem; /* more air under the image */
}

.price-card--thumb .price-list {
  margin: 0 1.15rem 0.7rem;
}

.price-card--thumb .price-list li {
  gap: 0.28rem;
  padding: 0.28rem 0;
}

.price-card--thumb .price-item,
.price-card--thumb .price-value,
.price-card--thumb .price-note {
  line-height: 1.25;
}

.price-card--thumb .price-note {
  margin-top: 0;
}

.price-card-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem; /* space between item / price / note */
  padding: 0.55rem 0;
  border-top: 1px solid #f0f0f0;
}

.price-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.price-list li:last-child {
  padding-bottom: 0;
}

.price-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.price-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-red);
}

.price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.25;
}

.pricing-disclaimer {
  margin-top: 0.9rem;
  padding: 0.6rem 1.15rem;
  background: rgba(255, 255, 255, 0.85);
  border-left: 4px solid var(--color-red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pricing-disclaimer p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.pricing-disclaimer strong {
  color: var(--color-text);
}

@media (min-width: 700px) {
  .pricing-inner {
    padding: 1.65rem 1.5rem 1.8rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

/* ——— Advantages (Waarom Home4Everyone) ——— */

.advantages {
  background-color: transparent;
}

.advantages-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 0.9rem;
}

.advantages-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem); /* match .pricing-title */
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.advantages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.advantages-list li {
  position: relative;
  margin: 0;
  padding: 0.6rem 1.15rem 0.6rem 1.35rem;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--color-red);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.advantages-list strong {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--color-text);
  font-weight: 700;
}

@media (min-width: 700px) {
  .advantages-inner {
    padding: 1.5rem 1.5rem 1.05rem;
  }

  .advantages-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

/* ——— CTA band ——— */

.cta-band {
  background-color: transparent;
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.5rem;
}

.cta-band-title {
  margin: 0 0 0.24rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.cta-band-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

@media (min-width: 700px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.65rem 1.5rem 1.8rem;
  }

  .cta-band-text {
    flex: 1;
  }
}

/* ——— Inner pages ——— */

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.05rem 1.25rem 1.35rem; /* match Welkom .projects-inner */
}

.page-title {
  margin: 0 0 0.39rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem); /* match Welkom .pricing-title / .projects-title */
  font-weight: 700;
  line-height: 1.2;
}

.page-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.page-body {
  max-width: 42rem;
}

.page-body p {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.page-body p:last-child {
  margin-bottom: 0;
}

/* ——— Mijn diensten page ——— */

.services-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.05rem 1.25rem 1.35rem;
}

.services-page .page-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.2;
}

.service-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-group {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  border-top: 3px solid var(--color-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 0.85rem 1.25rem 0.9rem; /* match price-card padding */
  box-sizing: border-box;
}

.service-group .service-detail-list {
  flex: 1;
}

.service-group-title {
  margin: 0 0 1rem; /* more space before the list */
  font-size: 1.05rem; /* match price-card-title */
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.service-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-detail-list li {
  margin: 0;
  padding: 0.45rem 0;
  border-top: 1px solid #f0f0f0;
}

.service-detail-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.service-detail-list li:last-child {
  padding-bottom: 0;
}

.service-detail-list strong {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.service-detail-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

@media (min-width: 800px) {
  .services-page {
    padding: 1.35rem 1.5rem 1.65rem;
  }

  .service-groups {
    grid-template-columns: 1fr 1fr; /* equal width */
    gap: 1.25rem;
    align-items: stretch; /* equal height */
  }
}

/* ——— Gallery (Mijn diensten) ——— */

.gallery {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--color-white);
  border: 1px solid #eee;
  border-top: 3px solid var(--color-red);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.gallery-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
}

.gallery-intro {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #eee;
  background: var(--color-bg-grey);
  aspect-ratio: 4 / 3;
  text-decoration: none;
  cursor: zoom-in;
}

.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.gallery-item:hover .gallery-img,
.gallery-item:focus-visible .gallery-img {
  transform: scale(1.04);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--color-red);
  outline: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav--prev {
  left: 0.75rem;
}

.lightbox-nav--next {
  right: 0.75rem;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--color-red);
  outline: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* ——— Contact ——— */

/* Wide hero: crop top & bottom of Pergola */
.contact-hero {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  background: var(--color-bg-grey);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-hero-img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center center; /* crop top & bottom evenly → wider look */
}

@media (min-width: 900px) {
  .contact-hero {
    max-height: 380px; /* slightly taller on large screens → more of the photo */
  }

  .contact-hero-img {
    height: 380px;
    object-position: center 40%; /* show a bit more of the upper part */
  }
}

.contact {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.05rem 1.25rem 1.75rem;
}

.contact-inner {
  max-width: 58rem;
  margin: 0 auto; /* center column — same width as the two divs */
  width: 100%;
}

.contact .page-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.2;
  text-align: left; /* left-aligned within the centered column */
}

.contact-subtitle {
  margin: 0 0 1rem;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: left;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  max-width: 56rem;
  width: 100%;
  margin: 0 auto; /* center both divs */
  text-align: left; /* form/details stay left-aligned inside */
}

@media (min-width: 800px) {
  .contact-layout {
    max-width: 58rem;
    gap: 1.35rem;
  }
}

.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  border-top: 3px solid var(--color-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 1.15rem 1.25rem 1.25rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-text);
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
  background: var(--color-white);
}

.form-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact-submit {
  margin-top: 0.25rem;
  width: 100%;
  border: none;
  cursor: pointer;
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-form-status {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-form-status.is-error {
  color: var(--color-red);
}

.contact-success {
  padding: 0.5rem 0;
}

.contact-success p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--color-text);
}

.contact-details {
  margin: 0;
  padding: 0;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  border-top: 3px solid var(--color-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.5rem 1.15rem;
  border-top: 1px solid #f0f0f0;
}

.contact-row:first-child {
  border-top: none;
}

.contact-row dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-row dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text); /* same as body text / name */
  text-decoration: underline;
  font-weight: 600;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
  outline: none;
}

.contact-link-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.contact-sep {
  margin: 0 0.15rem;
  color: #bbb;
  font-weight: 400;
}

@media (min-width: 560px) {
  .contact {
    padding: 1.35rem 1.5rem 1.65rem;
  }

  .contact-row {
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

/* ——— Footer ——— */

.site-footer {
  background-color: var(--color-text);
  color: #d0d0d0;
  text-align: center;
  padding: 0.9rem 1.25rem;
}

.footer-brand {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: #a8a8a8;
}

/* ——— Buttons ——— */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-red-hover);
  outline: none;
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* ——— Small screens ——— */

@media (max-width: 480px) {
  .about-media {
    max-height: 380px;
  }
}
