/* ==========================================================================
   Huibs Tuinservice — stylesheet
   Apple-inspired refinement: generous whitespace, big typography,
   pill buttons, soft shadows, subtle motion.
   ========================================================================== */

/* Lokale fonts (Fraunces + Inter) — zelf-gehost ivm AVG.
   Beide zijn variabele fonts; één bestand dekt alle gewichten 400-600. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens */
:root {
  --color-primary: #4a5d3a;
  --color-primary-dark: #1d2818;
  --color-primary-light: #8b9969;
  --color-accent: #c9a861;
  --color-cream: #f5f3ec;
  --color-soft: #fafaf7;
  --color-bg: #ffffff;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-text-subtle: #86868b;
  --color-border: #e8e6df;
  --color-border-soft: #f0eee7;
  --color-overlay: rgba(20, 25, 15, 0.5);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 980px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 280ms var(--ease);
  --transition-slow: 600ms var(--ease-out);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* Typography — Apple-style: bold, tight, confident */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: var(--color-text-muted);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-wide {
  max-width: var(--max-width-wide);
}

/* Prose-style lists for content pages (privacy, werkgebied detail) */
.container-narrow ul,
.container-narrow ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}

.container-narrow ul li,
.container-narrow ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--color-text);
}

.container-narrow ul li::marker {
  color: var(--color-primary);
}

.container-narrow strong {
  font-weight: 600;
  color: var(--color-text);
}

section {
  padding: 7rem 0;
  position: relative;
}

section.alt {
  background: var(--color-soft);
}

section.cream {
  background: var(--color-cream);
}

section.dark {
  background: var(--color-primary-dark);
  color: #fff;
}

section.dark h1,
section.dark h2,
section.dark h3 {
  color: #fff;
}

section.dark .eyebrow {
  color: var(--color-accent);
}

section.dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
  section {
    padding: 4.5rem 0;
  }
}

/* Buttons — pill-shaped, refined */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-light:hover {
  background: var(--color-cream);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
}

.btn-link::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* Header — fixed, transparant op hero-pagina's, frosted bij scrollen */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Pagina's met hero: header transparant zolang nog niet gescrold */
body.has-hero:not(.scrolled) .header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

/* Witte tekst wanneer header transparant is (over donkere hero) */
body.has-hero:not(.scrolled) .logo,
body.has-hero:not(.scrolled) .logo:hover {
  color: #fff;
}

body.has-hero:not(.scrolled) .nav a:not(.btn) {
  color: #fff;
}

body.has-hero:not(.scrolled) .nav a:not(.btn):hover {
  color: rgba(255, 255, 255, 0.85);
}

body.has-hero:not(.scrolled) .nav a:not(.btn)::after {
  background: #fff;
}

body.has-hero:not(.scrolled) .nav-toggle {
  color: #fff;
}

body.has-hero:not(.scrolled) .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.logo:hover {
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 450;
  letter-spacing: -0.005em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn).active::after {
  width: 100%;
}

.nav a:not(.btn):hover {
  color: var(--color-primary);
}

.nav .btn {
  padding: 0.55rem 1.25rem !important;
  font-size: 0.9rem !important;
}

.nav .btn-primary {
  color: #fff;
}

.nav .btn-primary:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--color-text);
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--color-border);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a::after {
    display: none;
  }

  .nav .btn {
    margin: 0.75rem 1.5rem 0;
    width: calc(100% - 3rem);
    padding: 0.85rem 1.5rem !important;
  }
}

/* Hero — Apple-style: big, centered, dramatic */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-home.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease-out) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 25, 15, 0.25) 0%, rgba(20, 25, 15, 0.65) 100%),
    linear-gradient(180deg, rgba(20, 25, 15, 0.2) 0%, rgba(20, 25, 15, 0.55) 100%);
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  max-width: 22ch;
  margin: 0 auto 1.75rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: 78vh;
    padding: 5rem 0 3rem;
  }
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
  margin: 0 auto 2.75rem;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .eyebrow {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  padding: 7rem 0 5rem;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 25, 15, 0.4) 0%,
    rgba(20, 25, 15, 0.7) 100%
  );
  z-index: -1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: var(--color-accent);
}

.page-hero.diensten::before {
  background-image: url('../images/hero-diensten.jpg');
}

.page-hero.over::before {
  background-image: url('../images/hero-over.jpg');
}

.page-hero.projecten::before {
  background-image: url('../images/hero-projecten.jpg');
}

.page-hero.werkgebied::before {
  background-image: url('../images/hero-werkgebied.jpg');
}

.page-hero.contact::before {
  background-image: url('../images/hero-contact.jpg');
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4.5rem;
}

.section-header.left {
  text-align: left;
  margin: 0 0 3.5rem;
  max-width: 800px;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-soft);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-border-soft);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.service-card p {
  color: var(--color-text-muted);
  flex: 1;
  font-size: 0.975rem;
  line-height: 1.6;
}

.service-card-link {
  margin-top: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.service-card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.service-card-link:hover::after {
  transform: translateX(4px);
}

/* Detailed service section */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail.reverse .service-detail-image {
  order: 2;
}

.service-detail-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-detail:hover .service-detail-image img {
  transform: scale(1.03);
}

.service-detail ul {
  list-style: none;
  margin-top: 1.5rem;
}

.service-detail ul li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--color-text);
  font-size: 1rem;
}

.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }

  .service-detail.reverse .service-detail-image {
    order: 0;
  }
}

/* USP / features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
}

.feature {
  text-align: center;
  padding: 0.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid rgba(74, 93, 58, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.feature:hover .feature-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 93, 58, 0.16);
  border-color: rgba(74, 93, 58, 0.4);
  background: var(--color-cream);
}

.feature h3 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.feature p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About / two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col.reverse .two-col-image {
  order: 2;
}

.two-col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}

.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .two-col.reverse .two-col-image {
    order: 0;
  }

  .two-col-image {
    aspect-ratio: 4/3;
  }
}

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 153, 105, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 168, 97, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #1d2818 0%, #161e12 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  /* Subtle decorative accent line above the eyebrow */
  content: '';
  position: absolute;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 50%, transparent);
  opacity: 0.7;
}

.cta-banner .container {
  position: relative;
}

.cta-banner .eyebrow {
  color: var(--color-accent);
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.025em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 3.5rem 0 4rem;
  }
  .cta-banner::before {
    top: 3.5rem;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-border-soft);
}

.gallery-item.wide {
  aspect-ratio: 4/3;
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(20, 25, 15, 0.45) 100%
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

/* Area / werkgebied */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.area-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.875rem 1.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: inherit;
  flex: 0 1 215px;
  min-width: 200px;
  position: relative;
}

.area-card:hover {
  border-color: var(--color-primary);
  background: var(--color-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.area-card h3 {
  color: var(--color-text);
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.area-card:hover h3 {
  color: var(--color-primary);
}

.area-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 460px) {
  .area-card {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-item {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-cream) 0%, #fff 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.15rem;
  border: 1px solid var(--color-border-soft);
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 0.25rem;
}

.contact-info-item a,
.contact-info-item p {
  color: var(--color-text);
  font-size: 1.05rem;
  margin: 0;
}

.contact-info-item a:hover {
  color: var(--color-primary);
}

/* Form */
.form {
  background: var(--color-soft);
  padding: 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
}

.form h2 {
  margin-bottom: 0.5rem;
}

.form-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.125rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(74, 93, 58, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 2rem 1.5rem;
  }
}

.form button[type="submit"] {
  width: 100%;
  padding: 1rem 1.75rem;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: #e6efd9;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
}

/* Footer */
.footer {
  background: #0e140a;
  color: rgba(255, 255, 255, 0.7);
  padding: 5.5rem 0 2rem;
  font-size: 0.95rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 520px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 168, 97, 0.5) 50%,
    transparent 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.footer-brand .logo img {
  display: none;
}

.footer-brand .logo::before {
  content: '';
  width: 36px;
  height: 36px;
  display: inline-block;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 340px;
  font-size: 0.925rem;
  line-height: 1.65;
}

.footer h4 {
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.875rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0.7;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.005em;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Testimonials */
.testimonial {
  background: var(--color-soft);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.testimonial blockquote::before {
  content: '“';
  font-size: 3rem;
  color: var(--color-primary);
  line-height: 0.5;
  margin-right: 0.25rem;
  vertical-align: -0.4em;
  opacity: 0.45;
}

.testimonial cite {
  font-style: normal;
  font-weight: 500;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

/* Reveal-on-scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Modern CSS enhancements
   - color-mix() hover variants
   - :focus-visible polish
   - text-wrap: pretty paragraphs
   - scroll-margin-top for anchored headings
   - accent-color for native form controls
   - container queries on service grid
   - :has() parent-state styling
   - logical properties (new rules)
   - multi-layer shadows
   - text-underline-offset on prose links
   - @property animatable custom prop (button hover sweep)
   - prefers-reduced-transparency fallbacks
   - print stylesheet
   - CSS containment on cards
   ========================================================================== */

/* @property — animatable custom property for button gradient sweep */
@property --btn-shine-pos {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

/* Token refinements: multi-layer shadows + native form accent */
:root {
  accent-color: var(--color-primary);

  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.07),
    0 24px 64px rgba(0, 0, 0, 0.09);
  --shadow-xl:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.10),
    0 40px 100px rgba(0, 0, 0, 0.12);
}

/* Better paragraph wrapping — orphans/widows minimised */
p, .lead, blockquote, figcaption {
  text-wrap: pretty;
}

/* Anchor jumps land below the sticky header, not under it */
:is(section, article, h1, h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: 96px;
}

/* Refined keyboard focus rings */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.area-card:focus-visible,
.service-card-link:focus-visible,
.nav a:focus-visible {
  outline-offset: 4px;
}

/* Suppress non-keyboard focus outlines (mouse/touch) */
:focus:not(:focus-visible) {
  outline: none;
}

/* Underlines in prose contexts — with breathing room and faded by default */
.container-narrow a:not(.btn),
.contact-info-item a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--transition);
}

.container-narrow a:not(.btn):hover,
.contact-info-item a:hover {
  text-decoration-color: var(--color-primary);
}

/* color-mix() — subtle tinted hover backgrounds (no extra tokens needed) */
.area-card:hover {
  background: color-mix(in srgb, var(--color-primary) 4%, #fff);
}

/* :has() — dim non-hovered area cards while one is active (focus effect) */
@media (hover: hover) {
  .areas-grid:has(.area-card:hover) .area-card:not(:hover) {
    opacity: 0.6;
    transition: opacity var(--transition);
  }
}

/* :has() — auto-mark required form fields without HTML changes */
.form-group:has(input[required]) label::after,
.form-group:has(textarea[required]) label::after,
.form-group:has(select[required]) label::after {
  content: ' *';
  color: var(--color-primary);
  font-weight: 500;
}

/* @property — subtle gradient sweep on primary button hover (smooth thanks to @property) */
.btn-primary {
  --btn-shine-pos: 100%;
  background-image: linear-gradient(
    100deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) var(--btn-shine-pos),
    var(--color-primary-dark) calc(var(--btn-shine-pos) + 0.1%)
  );
  background-color: var(--color-primary);
  transition:
    --btn-shine-pos 700ms var(--ease-out),
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.btn-primary:hover {
  --btn-shine-pos: 0%;
  background-color: var(--color-primary-dark);
}

/* Logical properties on commonly-touched components (i18n-friendly) */
.btn {
  padding-block: 0.85rem;
  padding-inline: 1.75rem;
}

.nav .btn {
  padding-block: 0.55rem !important;
  padding-inline: 1.25rem !important;
}

.container {
  padding-inline: 1.5rem;
  padding-block: 0;
}

/* CSS containment — isolate hover/animation costs to single cards */
.service-card,
.area-card,
.feature,
.testimonial,
.gallery-item,
.planner-item {
  contain: layout;
}

/* Container queries — service grid responds to its OWN container size,
   so cards work consistently even in narrower contexts */
.services-grid {
  container-type: inline-size;
  container-name: services-grid;
}

@container services-grid (max-width: 360px) {
  .service-card-body {
    padding: 1.25rem 1.25rem 1.4rem;
  }
  .service-card h3 {
    font-size: 1.15rem;
  }
}

/* Prefers-reduced-transparency: replace blur/translucent panels with solids */
@media (prefers-reduced-transparency: reduce) {
  .header,
  .header.scrolled {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .lightbox {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: none;
  }
}

/* Print styles — clean offerte/page printing without dark backgrounds */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .header,
  .footer,
  .nav-toggle,
  .nav,
  .cta-banner,
  .form,
  .planner-section,
  .planner-intro,
  .hero-actions,
  .service-card-link,
  .nav-toggle,
  .reveal {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero,
  .page-hero {
    min-height: auto !important;
    padding-block: 1.5rem !important;
    color: #000 !important;
  }

  .hero h1,
  .hero p,
  .hero .eyebrow,
  .page-hero h1,
  .page-hero p,
  .page-hero .eyebrow {
    color: #000 !important;
    max-width: none !important;
  }

  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after,
  .cta-banner::before {
    display: none !important;
  }

  section {
    padding-block: 1rem !important;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
    color: #000 !important;
  }

  .service-card,
  .area-card,
  .feature {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* Show full URLs for external links */
  a[href^="http"]:not([href*="huibstuinservice.nl"])::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555 !important;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
