/**
 * WordPress FSE Block Theme - Bulletproof CSS
 * ============================================
 * This CSS file provides rock-solid styling for WordPress Full Site Editing themes.
 * It works WITH WordPress's native block styling, not against it.
 *
 * IMPORTANT: This file is designed to be used across ALL client sites.
 * Client-specific colors come from theme.json, not this file.
 *
 * !IMPORTANT POLICY: Every !important in this file is a WordPress block override.
 * WP outputs inline styles and uses block-level class specificity that cannot
 * be overridden without !important. Do NOT remove these without testing in WP editor.
 * Tag new ones with: /* !important: WP block override * /
 *
 * @version 2.0.0
 * @author Sherlock SEO Agency
 */

/* ============================================
   FIX: Hide stray WordPress breadcrumbs/home link on homepage
   WordPress/Yoast sometimes renders a breadcrumb outside the header
   ============================================ */

/* Hide breadcrumb navigation on homepage (before header) */
body>nav[aria-label="Breadcrumb"]:first-of-type,
.wp-site-blocks>nav[aria-label="Breadcrumb"]:first-of-type,
body>.breadcrumbs:first-of-type,
.wp-site-blocks>.breadcrumbs:first-of-type,
.home nav[aria-label="Breadcrumb"],
.front-page nav[aria-label="Breadcrumb"] {
  display: none !important;
}

/* Also hide skip link until focused */
.skip-link,
a[href="#main"] {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 1rem;
  background: var(--wp--preset--color--accent, #ff9800);
  color: var(--wp--preset--color--base, #fff);
  text-decoration: none;
}

.skip-link:focus,
a[href="#main"]:focus {
  left: 0;
  top: 0;
}

/* Hide any stray links/text before header */
body>a:first-child,
.wp-site-blocks>a:first-child,
body>.home-link,
.wp-site-blocks>.home-link {
  display: none !important;
}

/* ============================================
   Werkgebied links
   ============================================ */

.yc-werkgebied-list {
  margin: 0;
}

.yc-werkgebied-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.yc-werkgebied-list__card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  min-height: 100%;
  border: 1px solid rgba(13, 71, 161, 0.1);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 71, 161, 0.05);
  color: var(--wp--preset--color--contrast, #1a1a1a);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yc-werkgebied-list__card:hover,
.yc-werkgebied-list__card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(13, 71, 161, 0.2);
  box-shadow: 0 18px 36px rgba(13, 71, 161, 0.12);
}

.yc-werkgebied-list__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.yc-werkgebied-list__cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #1565c0);
}

.yc-werkgebied-list--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.yc-werkgebied-list__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(13, 71, 161, 0.07);
  color: var(--wp--preset--color--primary, #1565c0);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.yc-werkgebied-list__chip:hover,
.yc-werkgebied-list__chip:focus-visible {
  background: rgba(13, 71, 161, 0.12);
}

.yc-werkgebied-list--footer {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yc-werkgebied-list--footer li {
  margin: 0;
  break-inside: avoid;
}

.yc-werkgebied-list--footer a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 599px) {
  .yc-werkgebied-list--grid {
    grid-template-columns: 1fr;
  }

  .yc-werkgebied-list__card {
    padding: 0.95rem 1rem;
  }

  .yc-werkgebied-list__chip {
    width: 100%;
  }
}

@media (max-width: 781px) {
  .yc-werkgebied-list--footer {
    columns: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 768px) {
  .wp-block-group.has-background .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .wp-block-group.has-background .wp-block-buttons > .wp-block-button,
  .wp-block-group.has-background .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    width: 100%;
  }

  .wp-block-group.has-background .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    justify-content: center;
  }
}

/* Also hide any unstyled "Home" text that appears before the header */
body>p:first-child:not([class]),
.wp-site-blocks>p:first-child:not([class]) {
  display: none !important;
}

/* ============================================
   FIX: Remove all gaps/margins between sections
   Ensures seamless flow between hero, trust bar, services, etc.
   ============================================ */

.wp-site-blocks>* {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wp-site-blocks>header,
.wp-site-blocks>footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove WordPress default block gap */
.wp-site-blocks>.wp-block-group,
.wp-site-blocks>.wp-block-cover {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* ============================================
   0. CSS RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--wp--preset--color--base, #faf9f6);
  /* Warm white base */
  color: var(--wp--preset--color--contrast, #1a1a1a);
}

/* Background Utility Classes */
.has-base-background-color {
  background-color: var(--wp--preset--color--base, #faf9f6);
}

.has-secondary-background-color {
  background-color: #f7f6f4;
  /* Licht beige */
}

.has-tertiary-background-color {
  background-color: #0d1b2a;
  /* Donker blauw accent */
  color: #fff;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Remove default list styling for nav */
nav ul,
nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   0. HEADER & NAVIGATION
   ============================================ */

/* Topbar: slim info bar */
.bouw-topbar {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Header: logo left, nav+CTA right */
.bouw-header .bouw-nav-logo {
  flex-shrink: 0;
}
.bouw-header .bouw-nav-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Nav group right-aligns via flex */
.bouw-nav-right {
  flex: 1 1 auto;
}

/* Nav links: remove WP default spacing oddities */
.bouw-main-nav .wp-block-navigation__container {
  gap: 1.5rem;
}

/* Mobile-first: nav overlay full width on mobile */
.bouw-header .bouw-nav-right {
  flex-basis: 100%;
}

/* Desktop: nav right auto width */
@media (min-width: 782px) {
  .bouw-header .bouw-nav-right {
    flex-basis: auto;
  }
}

/* ============================================
   1. WORDPRESS BLOCK FOUNDATIONS
   ============================================ */

/* Fix WordPress block alignment issues */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wp-site-blocks>* {
  max-width: 100%;
}

/* Constrained layout fix — apply content width to direct children */
.wp-block-group.is-layout-constrained>* {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero inner already handles its own max-width — children should fill it, not re-constrain */
.bouw-hero-inner.is-layout-constrained>* {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/*
 * CRITICAL: WP is-layout-flow on columns adds margin:auto to ALL block children,
 * centering headings/paragraphs inside the column. In the hero this causes the
 * h2 to indent 88px. Override for ALL hero content.
 */
.yc-hero .wp-block-column.is-layout-flow > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

:root {
  --yc-content-gutter: clamp(1rem, 4vw, 2.5rem);
}

/* Add consistent side gutters so text never touches the viewport edge */
.wp-block-group.is-layout-constrained,
.wp-block-group.wp-block-group-is-layout-constrained,
.wp-block-post-content.is-layout-constrained,
.wp-block-post-content.wp-block-post-content-is-layout-constrained,
.wp-block-query.is-layout-constrained,
.wp-block-query.wp-block-query-is-layout-constrained {
  padding-inline: var(--yc-content-gutter);
}

/* Allow specific full-bleed sections to opt out */
.wp-block-group.yc-edge-to-edge,
.wp-block-group.yc-edge-to-edge.is-layout-constrained,
.wp-block-group.yc-edge-to-edge.wp-block-group-is-layout-constrained {
  padding-inline: 0;
}

/* Wide alignment */
.alignwide {
  max-width: var(--wp--style--global--wide-size, 1400px);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* ============================================
   2. COLUMNS - THE HERO FIX (60/40 SPLIT)
   ============================================ */

/* Base columns styling */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--40, 1.5rem);
}

.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  /* Prevent overflow */
}

/* Respect flex-basis percentages on desktop */
@media (min-width: 782px) {
  .wp-block-columns {
    flex-wrap: nowrap;
  }

  .wp-block-column[style*="flex-basis"] {
    flex-grow: 0;
    flex-shrink: 0;
  }
}

/* Mobile: Stack columns */
@media (max-width: 781px) {
  .wp-block-columns {
    flex-direction: column;
  }

  .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }
}

/* Vertical alignment */
.wp-block-columns.are-vertically-aligned-center {
  align-items: center;
}

.wp-block-columns.are-vertically-aligned-top {
  align-items: flex-start;
}

.wp-block-columns.are-vertically-aligned-bottom {
  align-items: flex-end;
}

.wp-block-column.is-vertically-aligned-center {
  align-self: center;
}

/* ============================================
   3. COVER BLOCK (HERO SECTIONS)
   ============================================ */

.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.wp-block-cover__background,
.wp-block-cover__gradient-background,
.bouw-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.bouw-hero-form--image .bouw-hero-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%) !important;
  opacity: 1 !important;
  /* override inline opacity */
}

/* Glass effect form */
.is-style-glass-form .bouw-hero-form-wrapper {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.is-style-glass-form .bouw-form-title,
.is-style-glass-form .bouw-form-label,
.is-style-glass-form .bouw-form-subtitle {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.is-style-glass-form .wpcf7-form input[type="text"],
.is-style-glass-form .wpcf7-form input[type="email"],
.is-style-glass-form .wpcf7-form input[type="tel"],
.is-style-glass-form .wpcf7-form textarea,
.is-style-glass-form .wpcf7-form select,
.is-style-glass-form .bouw-form-input,
.is-style-glass-form .bouw-form-select,
.is-style-glass-form .bouw-form-textarea {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Default cover inner container: centered, constrained */
.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wp--style--global--content-size, 1200px);
  margin: 0 auto;
}

/* Hero cover: inner container must be full-width — bouw-hero-inner handles centering */
.yc-hero .wp-block-cover__inner-container {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ============================================
   4. BUTTONS - PREMIUM STYLING
   ============================================ */

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.wp-block-button {
  display: inline-block;
}

.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-weight: 600;
  min-height: 44px;
}

/* Hover effects */
.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

.wp-block-button__link:active,
.wp-element-button:active {
  transform: translateY(0);
}

/* Focus state for accessibility */
*:focus-visible,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent, #ff9800);
  outline-offset: 2px;
}

/* ============================================
   5. GROUPS - FLEXIBLE CONTAINERS
   ============================================ */



/* Flex layouts */
.wp-block-group.is-layout-flex {
  display: flex;
  gap: var(--wp--preset--spacing--20, 0.5rem);
}

.wp-block-group.is-layout-flex.is-nowrap {
  flex-wrap: nowrap;
}

/* Grid layouts */
.wp-block-group.is-layout-grid {
  display: grid;
  gap: var(--wp--preset--spacing--40, 1.5rem);
}

/* ============================================
   6. SERVICE CARDS - PREMIUM HOVER & EQUAL HEIGHT
   ============================================ */

/* Service cards equal height with flexbox */
.yc-services-section .wp-block-columns {
  display: flex;
  align-items: stretch;
}

.yc-services-section .wp-block-column {
  display: flex;
  flex-direction: column;
}

/* Target service cards by class */
.yc-service-card,
.wp-block-group[class*="service-card"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.yc-service-card:hover,
.wp-block-group[class*="service-card"]:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Card icons */
.yc-service-card>p:first-of-type,
.wp-block-group[class*="service-card"]>p:first-of-type {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0;
}

/* Card description grows to fill space */
.yc-service-card>p:not(:first-of-type),
.yc-service-card .has-text-align-center:not(h3) {
  flex-grow: 1;
}

/* Buttons stick to bottom */
.yc-service-card .wp-block-buttons {
  margin-top: auto;
  padding-top: 1rem;
}

/* Service grid on desktop */
@media (min-width: 782px) {
  .yc-services-section .wp-block-columns {
    gap: 2rem;
  }

  .yc-services-section .wp-block-column {
    flex: 1 1 0;
  }
}

/* ============================================
   HEADER: STICKY NAVIGATION
   ============================================ */
/* Target the WordPress template part wrapper directly */
header,
.wp-block-template-part[tagName="header"] {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0;
  z-index: 9999;
}

.yc-header {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* Slight shadow to separate from content below */
}

/* ============================================
   7. HERO & TRUST BAR - Moved to css/blocks/hero.css
   ============================================ */
/* All hero, hero-form, and trust-overlay styles consolidated in css/blocks/hero.css */

/* Compatibility aliases only (no styles) */
.yc-hero {
  /* Alias for backward compatibility */
}

/* Moved to css/blocks/hero.css */
.yc-trust-overlay {
  /* Alias for backward compatibility */
}

.yc-hero-form {
  /* Alias for backward compatibility */
}

/* All hero styles moved to css/blocks/hero.css */

/* ============================================
   9. CTA SECTIONS
   ============================================ */

.yc-cta-section {
  position: relative;
  overflow: hidden;
}

/* CTA background pattern (subtle) */
.yc-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* CTA buttons larger on this section */
.yc-cta-section .wp-block-button__link {
  font-size: 1.125rem;
}

/* ============================================
   10. ABOUT SECTION
   ============================================ */

.yc-about-section ul {
  padding-left: 0;
  list-style: none;
}

.yc-about-section li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.yc-about-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--success, #4caf50);
  font-weight: bold;
}

/* About image */
.yc-about-section .wp-block-image img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   11. PARTNERS SECTION
   ============================================ */

.yc-partners-section {
  text-align: center;
}

.yc-partners-section h2 {
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Partner logos/text */
.yc-partners-section .wp-block-group p {
  letter-spacing: 0.15em;
}

/* ============================================
   12. NAVIGATION
   ============================================ */

.wp-block-navigation {
  --navigation-layout-justify: flex-start;
  --navigation-layout-direction: row;
  --navigation-layout-wrap: wrap;
}

.wp-block-navigation__container {
  display: flex;
  flex-wrap: var(--navigation-layout-wrap);
  gap: 1.5rem;
  align-items: center;
}

.wp-block-navigation-item__content {
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

/* Mobile navigation */
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 2rem;
}

/* ============================================
   13. HEADER SPECIFIC
   ============================================ */

/* Topbar */
.yc-topbar {
  font-size: 0.875rem;
}

.yc-topbar a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.yc-topbar a:hover {
  opacity: 0.8;
}

/* Main header */
.yc-header {
  position: relative;
  z-index: 100;
}

/* Sticky header support */
.yc-header.is-sticky {
  position: sticky;
  top: 0;
  background: var(--wp--preset--color--base, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   14. FOOTER SPECIFIC
   ============================================ */

.yc-footer {
  margin-top: auto;
  /* Push footer to bottom */
}

.yc-footer h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.yc-footer a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.yc-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.yc-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yc-footer li {
  margin-bottom: 0.75rem;
}

/* Footer columns responsive */
@media (max-width: 781px) {
  .yc-footer .wp-block-columns {
    gap: 2rem;
  }
}

/* ============================================
   15. FORMS - CONTACT FORM 7 COMPATIBLE
   ============================================ */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--wp--preset--color--gray-300, #e0e0e0);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--wp--preset--color--base, #fff);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary, #1565c0);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: var(--wp--preset--color--accent, #ff9800);
  color: var(--wp--preset--color--base, #fff);
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

/* Form spacing */
.wpcf7-form p {
  margin-bottom: 1rem;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--wp--preset--color--contrast, #1a1a1a);
}

/* ============================================
   16. IMAGES & MEDIA
   ============================================ */

.wp-block-image {
  margin-bottom: 0;
}

.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

.wp-block-image.is-style-rounded img {
  border-radius: 1rem;
}

/* Image hover effect */
.wp-block-image figure {
  overflow: hidden;
}

.wp-block-image img {
  transition: transform 0.3s ease;
}

.wp-block-image:hover img {
  transform: scale(1.02);
}

/* Media-text blocks — constrain height on service pages.
   imageFill:true makes WP set the image as a background that stretches
   to match the text column height. On short text that's fine, but on
   service pages the photo column can become enormous. Cap it. */
.wp-block-media-text {
  max-width: 1100px;
  margin-inline: auto;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media {
  min-height: 280px;
  max-height: 420px;
}

/* Boxed content images — service/diensten pages
   Constrains tall photos to a viewport-friendly band.
   object-position: center 30% keeps the "interesting middle" visible,
   not just the roofline. border-radius from design tokens. */
.wp-block-image.bouw-content-image {
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--card-radius, 0.75rem);
  overflow: hidden;
}

.wp-block-image.bouw-content-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 30%;
}

.wp-block-image.bouw-content-image--contain img {
  object-fit: contain;
  max-height: 480px;
  background: var(--surface-subtle, #f8f8f8);
}

.wp-block-image.bouw-content-image figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-secondary, #666);
  background: var(--surface-subtle, #f8f8f8);
}

/* ============================================
   17. LISTS
   ============================================ */

.wp-block-list {
  padding-left: 1.25rem;
}

.wp-block-list li {
  margin-bottom: 0.5rem;
}

.wp-block-list li::marker {
  color: var(--wp--preset--color--primary, #1565c0);
}

/* ============================================
   18. QUOTES & TESTIMONIALS
   ============================================ */

.wp-block-quote {
  border-left: 4px solid var(--wp--preset--color--primary, #1565c0);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.wp-block-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--wp--preset--color--gray-600, #757575);
}

/* ============================================
   19. UTILITIES
   ============================================ */

/* Hide on mobile */
@media (max-width: 781px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 782px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   20. ANIMATIONS
   ============================================ */

/* Fade in on scroll - use with intersection observer */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse animation for CTAs */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ============================================
   21. PRINT STYLES
   ============================================ */

@media print {

  .yc-topbar,
  .wp-block-navigation,
  .wp-block-buttons,
  .wpcf7-form {
    display: none !important;
  }

  .wp-block-cover {
    min-height: auto !important;
    padding: 2rem !important;
  }

  * {
    box-shadow: none !important;
  }
}

/* ============================================
   22. ACCESSIBILITY
   ============================================ */

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary, #1565c0);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .wp-block-button__link {
    border: 2px solid currentColor;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.bouw-footer .bouw-footer-links {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}

.bouw-footer .bouw-footer-links li {
  padding: 0;
}

.bouw-footer .bouw-footer-links a:hover,
.bouw-footer a:hover {
  opacity: 0.8;
  text-decoration: underline !important;
}

.bouw-footer .bouw-footer-logo {
  background: #ffffff;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin: 0 0 0.5rem 0;
}

.bouw-footer .bouw-footer-logo img {
  filter: none;
  opacity: 1;
  display: block;
}

.bouw-footer h4 {
  margin-bottom: 0.75rem;
}

/* Footer responsive: stack on mobile */
@media (max-width: 781px) {
  .bouw-footer .wp-block-columns {
    gap: 2rem !important;
  }
}

/* ============================================
   REALISATIES DETAIL
   ============================================ */

.bouw-project-summary,
.bouw-project-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.bouw-project-summary__row,
.bouw-project-details__row {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bouw-project-summary__row:first-child,
.bouw-project-details__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.bouw-project-summary__row:last-child,
.bouw-project-details__row:last-child {
  padding-bottom: 0;
}

.bouw-project-summary dt,
.bouw-project-details dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.bouw-project-summary dd,
.bouw-project-details dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}

.bouw-project-link {
  color: var(--wp--preset--color--primary, #1565c0);
  text-decoration: none;
}

.bouw-project-link:hover,
.bouw-project-link:focus-visible {
  text-decoration: underline;
}

.bouw-project-details__empty {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.bouw-project-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.bouw-project-timeline__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 1rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.bouw-project-timeline__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.bouw-project-timeline__item:last-child {
  padding-bottom: 0;
}

.bouw-project-timeline__label {
  font-weight: 600;
  line-height: 1.45;
}

.bouw-project-timeline__value {
  color: #475569;
  line-height: 1.5;
  text-align: right;
}

.bouw-realization-proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bouw-realization-proofs__card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.bouw-realization-proofs__card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.bouw-realization-proofs__card p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
}

.bouw-realization-proofs__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

.bouw-realization-proofs__tags li {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.08);
  color: #0f3f8c;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 781px) {
  .bouw-project-summary__row,
  .bouw-project-details__row,
  .bouw-project-timeline__item {
    grid-template-columns: 1fr;
  }

  .bouw-project-timeline__value {
    text-align: left;
  }

  .bouw-realization-proofs {
    grid-template-columns: 1fr;
  }
}
