/* ================================================================
   OZ DESIGN SYSTEM — Unified tokens, reset, and base styles
   Canonical source of truth for all OzTheme styling.
   Loaded on every page before component-specific CSS.
   ================================================================ */

/* ── Design Tokens ── */
:root {
  /* Brand palette */
  --oz-accent: #135350;
  --oz-accent-hover: #0E3E3C;
  --oz-accent-light: #E8F0F0;
  --oz-accent-text: #FFFFFF;
  --oz-cta: #E67C00;
  --oz-cta-hover: #D06E00;
  --oz-cta-text: #FFFFFF;

  /* Text */
  --oz-text-primary: #1A1A1A;
  --oz-text-body: #555555;
  --oz-text-muted: #6B6B6B;
  --oz-text-light: #767676;

  /* Backgrounds */
  --oz-bg-page: #FFFFFF;
  --oz-bg-subtle: #FAFAF9;
  --oz-bg-warm: #F5F4F0;

  /* Borders */
  --oz-border: #E5E5E3;
  --oz-border-light: #F0EFED;

  /* Labels / option buttons (product page) */
  --oz-label-bg: #F7F7F5;
  --oz-label-text: #3D3D3D;
  --oz-label-border: #E0DFDD;
  --oz-label-hover-bg: #E8F0F0;
  --oz-label-hover-border: #135350;

  /* Shadows */
  --oz-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --oz-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --oz-shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);

  /* Layout */
  --oz-max-w: 1100px;
  --oz-max-w-wide: 1400px;
  --oz-gap: 20px;
  --oz-header-height: 60px;
  --oz-header-height-desktop: 76px;
  --oz-radius: 8px;
  --oz-radius-lg: 12px;

  /* Typography — Major Third scale (base 16px, ratio 1.25) */
  --oz-text-xs: 10px;
  --oz-text-sm: 12px;
  --oz-text-base: 16px;
  --oz-text-lg: 20px;
  --oz-text-xl: 25px;
  --oz-text-2xl: 31px;
  --oz-text-3xl: 39px;
  --oz-text-4xl: 49px;

  /* Font families */
  --oz-ff-heading: 'DM Serif Display', Georgia, serif;
  --oz-ff-body: 'Raleway', system-ui, sans-serif;

  /* Transitions */
  --oz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --oz-transition: .3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Error */
  --oz-error: #E53E3E;
  --oz-success: #38A169;
}

/* ── Modern CSS Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--oz-ff-body);
  font-size: var(--oz-text-base);
  line-height: 1.6;
  color: var(--oz-text-body);
  background: var(--oz-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--oz-ff-heading);
  color: var(--oz-text-primary);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: var(--oz-text-3xl); }
h2 { font-size: var(--oz-text-2xl); }
h3 { font-size: var(--oz-text-xl); }
h4 { font-size: var(--oz-text-lg); }
h5 { font-size: var(--oz-text-base); font-weight: 600; font-family: var(--oz-ff-body); }
h6 { font-size: var(--oz-text-sm); font-weight: 600; font-family: var(--oz-ff-body); text-transform: uppercase; letter-spacing: 1px; }

p {
  margin-bottom: 1em;
}

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

strong, b {
  font-weight: 600;
}

/* ── Links ── */
.oz-content a,
.oz-page a,
.oz-article a {
  color: var(--oz-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--oz-transition);
}

.oz-content a:hover,
.oz-page a:hover,
.oz-article a:hover {
  color: var(--oz-accent-hover);
}

/* ── Buttons ── */
.oz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--oz-radius);
  font-family: var(--oz-ff-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--oz-transition);
  white-space: nowrap;
}

.oz-btn--primary {
  background: var(--oz-accent);
  color: var(--oz-accent-text);
  border-color: var(--oz-accent);
}

.oz-btn--primary:hover {
  background: var(--oz-accent-hover);
  border-color: var(--oz-accent-hover);
}

.oz-btn--cta {
  background: var(--oz-cta);
  color: var(--oz-cta-text);
  border-color: var(--oz-cta);
}

.oz-btn--cta:hover {
  background: var(--oz-cta-hover);
  border-color: var(--oz-cta-hover);
}

.oz-btn--outline {
  background: transparent;
  color: var(--oz-text-primary);
  border-color: var(--oz-border);
}

.oz-btn--outline:hover {
  border-color: var(--oz-accent);
  color: var(--oz-accent);
}

.oz-btn--white {
  background: rgba(255,255,255,.15);
  color: #FFF;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}

.oz-btn--white:hover {
  background: rgba(255,255,255,.25);
}

.oz-btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

.oz-btn--lg {
  padding: 16px 36px;
  font-size: 15px;
}

/* ── Form Elements ── */
.oz-input,
.oz-select,
.oz-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--oz-border);
  border-radius: var(--oz-radius);
  font-family: var(--oz-ff-body);
  font-size: var(--oz-text-base);
  color: var(--oz-text-primary);
  background: var(--oz-bg-page);
  transition: border-color var(--oz-transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.oz-input:focus,
.oz-select:focus,
.oz-textarea:focus {
  outline: none;
  border-color: var(--oz-accent);
  box-shadow: 0 0 0 3px var(--oz-accent-light);
}

.oz-input::placeholder {
  color: var(--oz-text-muted);
}

.oz-textarea {
  min-height: 120px;
  resize: vertical;
}

.oz-label {
  display: block;
  font-size: var(--oz-text-sm);
  font-weight: 600;
  color: var(--oz-text-primary);
  margin-bottom: 6px;
}

/* ── Layout Utilities ── */
.oz-container {
  max-width: var(--oz-max-w);
  margin: 0 auto;
  padding: 0 var(--oz-gap);
}

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

.oz-grid {
  display: grid;
  gap: var(--oz-gap);
}

.oz-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;
}

/* ── Sections ── */
.oz-section {
  padding: 80px 0;
}

.oz-section--warm { background: var(--oz-bg-warm); }
.oz-section--subtle { background: var(--oz-bg-subtle); }
.oz-section--dark { background: var(--oz-text-primary); color: #FFF; }
.oz-section--teal { background: var(--oz-accent); color: #FFF; }
.oz-section--accent-light { background: var(--oz-accent-light); }

/* ── Eyebrow (small label above headings) ── */
.oz-eyebrow {
  font-family: var(--oz-ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--oz-accent);
  margin-bottom: 12px;
  display: inline-block;
}

.oz-eyebrow.has-text-align-center {
  display: block;
}

/* ── Cards ── */
.oz-card {
  background: var(--oz-bg-page);
  border: 1px solid var(--oz-border-light);
  border-radius: var(--oz-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--oz-transition);
}

.oz-card:hover {
  box-shadow: var(--oz-shadow-md);
}

.oz-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.oz-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--oz-transition);
}

.oz-card:hover .oz-card__image img {
  transform: scale(1.03);
}

.oz-card__body {
  padding: 20px;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  :root {
    --oz-gap: 24px;
    --oz-header-height: var(--oz-header-height-desktop);
  }
  h1 { font-size: var(--oz-text-4xl); }
}

@media (max-width: 767px) {
  .oz-section { padding: 48px 0; }
}

/* 2026-06-09 hide broken kleurpakketten section (links naar 404) */
.oz-rp2-kpkt-track, section:has(.oz-rp2-kpkt-track), .wp-block-group:has(.oz-rp2-kpkt-track), .oz-hp-section:has(.oz-rp2-kpkt-track) { display: none !important; }
.oz-hp-section-header:has(+ p + .oz-rp2-kpkt-track), .wp-block-group__inner-container:has(> .oz-hp-section-header + p + .oz-rp2-kpkt-track) { display: none !important; }






body[class*="betonstuc"] .oz-rp2-hero .oz-rp2-hero-card,
body[class*="betonlook"] .oz-rp2-hero .oz-rp2-hero-card,
body[class*="betonstuc"] .oz-rp2-hero .oz-rp2-hero-card--compact,
body[class*="betonlook"] .oz-rp2-hero .oz-rp2-hero-card--compact {
  position: absolute !important;
  right: max(24px, 4vw) !important;
  bottom: 32px !important;
  max-width: 360px !important;
  width: auto !important;
  margin: 0 !important;
  z-index: 10 !important;
}






body[class*="betonstuc"] .oz-hp-hero .oz-hp-hero-bg,
body[class*="betonlook"] .oz-hp-hero .oz-hp-hero-bg {
  max-width: 45vw !important;
  max-height: 52vh !important;
  justify-self: end !important;
  margin-right: 360px !important;
}
body[class*="betonstuc"] .oz-rp2-hero-card,
body[class*="betonlook"] .oz-rp2-hero-card,
body[class*="betonstuc"] .oz-rp2-hero-card--compact,
body[class*="betonlook"] .oz-rp2-hero-card--compact {
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;
  max-width: 320px !important;
  width: 320px !important;
  margin: 0 !important;
  z-index: 10 !important;
}


body[class*="betonstuc"] .oz-hp-hero .oz-hp-hero-bg,
body[class*="betonlook"] .oz-hp-hero .oz-hp-hero-bg {
  max-width: 540px !important;
  width: 540px !important;
  max-height: 460px !important;
  height: auto !important;
}
body[class*="betonstuc"] .oz-rp2-hero-card,
body[class*="betonlook"] .oz-rp2-hero-card,
body[class*="betonstuc"] .oz-rp2-hero-card--compact,
body[class*="betonlook"] .oz-rp2-hero-card--compact {
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 320px !important;
  max-width: 320px !important;
  margin: 0 !important;
  z-index: 10 !important;
}


/* 2026-06-09 v5: glass-card naast foto op stucsoorten-posts (juiste selectors) */
body.postid-23466 .oz-hp-hero, body.postid-23471 .oz-hp-hero, body.postid-20586 .oz-hp-hero,
body.postid-20688 .oz-hp-hero, body.postid-20561 .oz-hp-hero, body.postid-20564 .oz-hp-hero {
  position: relative !important;
  padding-right: 360px !important;
}
body.postid-23466 .oz-hp-hero-bg, body.postid-23471 .oz-hp-hero-bg, body.postid-20586 .oz-hp-hero-bg,
body.postid-20688 .oz-hp-hero-bg, body.postid-20561 .oz-hp-hero-bg, body.postid-20564 .oz-hp-hero-bg {
  max-width: 540px !important;
  max-height: 460px !important;
}
body.postid-23466 .oz-hp-hero-glass, body.postid-23471 .oz-hp-hero-glass, body.postid-20586 .oz-hp-hero-glass,
body.postid-20688 .oz-hp-hero-glass, body.postid-20561 .oz-hp-hero-glass, body.postid-20564 .oz-hp-hero-glass {
  position: absolute !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 320px !important;
  max-width: 320px !important;
  margin: 0 !important;
  z-index: 10 !important;
}

