/* ==========================================================================
   BASE.CSS — OranjeLift.nl
   CSS Custom Properties + Basis Styling
   Kleurenpalet: Oranje + Zwart + Wit
   ========================================================================== */

/* ---------- Skip Link (sr-only + focus styling, never display:none) ---------- */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 10000;
  background: var(--color-secondary, #1C1E21);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body, sans-serif);
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 0;
  left: 16px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  outline: 3px solid var(--color-primary, #ff8000);
  outline-offset: 2px;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primair — Oranje (CTA's, links, accenten) */
  --color-primary: #ff8000;
  --color-primary-dark: #cc6600;
  --color-primary-light: #ff9933;
  --color-primary-bg: #fff2e6;
  --color-primary-text: #994d00;
  --color-primary-shadow: rgba(255, 128, 0, 0.3);

  /* Secundair — Near-black (koppen, header, footer) */
  --color-secondary: #1C1E21;
  --color-secondary-dark: #000000;
  --color-secondary-light: #3A3D42;
  --color-secondary-bg: #F0F0F1;

  /* Accent — Oranje familie (sterren, highlights, badges) */
  --color-accent: #ff8000;
  --color-accent-dark: #cc6600;
  --color-accent-light: #fff2e6;

  /* WhatsApp */
  --color-wa: #25D366;
  --color-wa-hover: #1FAD55;

  /* Sterren */
  --color-stars: #F5A623;

  /* Tekst & achtergrond */
  --color-text: #1C1E21;
  --color-text-muted: #4A4F56;
  --color-text-light: #5C6168;
  --color-border: #E8EAEF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F7F5;

  /* Typografie */
  --font-heading: 'Kanit', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-sticky: 0 -4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-btn-primary: 0 4px 14px rgba(255, 128, 0, 0.35), 0 2px 6px rgba(255, 128, 0, 0.2);
  --shadow-btn-wa: 0 4px 14px rgba(37, 211, 102, 0.3), 0 2px 6px rgba(37, 211, 102, 0.15);

  /* Layout */
  --max-width: 75rem;
  --header-height: 108px;
  --sticky-height: 56px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

button, [role="button"], .btn, a.btn, input, textarea, select {
  min-height: 44px;
}

input, textarea, select {
  font-size: 16px;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.2;
}

h1 { line-height: 1.15; }
h2 { line-height: 1.2; }

h3, h4 { line-height: 1.3; }

h1 {
  font-size: clamp(1.75rem, 5vw + 1rem, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: var(--space-md);
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.25rem);
  letter-spacing: -0.02em;
}

h3 { font-size: clamp(1.25rem, 3vw + 0.5rem, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

p {
  margin-bottom: var(--space-md);
}

main p {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 15px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(145deg, #ff8000 0%, #F07010 100%);
  color: #fff;
  box-shadow: var(--shadow-btn-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #ff9933 0%, #ff8000 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 128, 0, 0.35);
  transform: translateY(-1px);
}

.btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #1FAD55 100%);
  color: #fff;
  box-shadow: var(--shadow-btn-wa);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wa:hover {
  background: linear-gradient(135deg, #2EE076 0%, #25D366 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}

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

.btn-black {
  background-color: #1C1E21;
  color: #fff;
}

.btn-black:hover {
  background-color: #3A3D42;
  color: #fff;
  transform: translateY(-1px);
}

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Section Spacing ---------- */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

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

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

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

/* ---------- FAQ Section ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s ease;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item.open {
  background: var(--color-bg-alt, #fafafa);
  margin-left: calc(var(--space-md) * -1);
  margin-right: calc(var(--space-md) * -1);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  border-radius: var(--radius-md);
  border-color: transparent;
  border-left: 4px solid var(--color-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: left;
  gap: var(--space-md);
  transition: color 0.25s ease;
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--color-text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  padding-bottom: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: var(--space-lg);
}

/* ---------- Content Table ---------- */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0 var(--space-lg);
}

.content-table th,
.content-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.content-table th {
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
}

.content-table td {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-bar-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Content Images ---------- */
.content-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Removed: main img[loading="lazy"] object-fit:cover was cropping portrait images */

/* Achtergrondafbeeldingen in absolute containers niet beperken */
.why-section-bg img,
.hero__bg-img,
[class*="-bg"] img {
  max-height: none !important;
}

/* ---------- Image Grid ---------- */
.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

@media (min-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.image-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* ---------- Content Section ---------- */
.content-section {
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  .content-section {
    padding: 80px 0;
  }
}

.content-section:nth-child(even) {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.content-section h2 {
  margin-bottom: var(--space-lg);
}

.content-section h3 {
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.content-section p,
.content-section li {
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.content-section li {
  margin-bottom: var(--space-sm);
  padding-left: 4px;
}

.content-section blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  font-style: italic;
}

.content-section blockquote p {
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

/* ---------- Accessibility ---------- */

/* Focus-visible: 3px solid, offset 2px per WCAG 2.2 */
:focus-visible {
  outline: 3px solid var(--color-primary, #ff8000);
  outline-offset: 2px;
}

/* Fallback for browsers without :focus-visible support */
@supports not selector(:focus-visible) {
  *:focus {
    outline: 3px solid var(--color-primary, #ff8000);
    outline-offset: 2px;
  }
}

/* Ensure focused elements are not hidden behind sticky header (WCAG 2.4.11) */
:target {
  scroll-margin-top: calc(var(--header-height, 108px) + 16px);
}

*:focus-visible {
  scroll-margin-top: calc(var(--header-height, 108px) + 16px);
  scroll-margin-bottom: calc(var(--sticky-height, 56px) + 16px);
}

/* WCAG 2.5.8: Minimum target size 24x24 CSS pixels for all interactive elements */
a, button, [role="button"] {
  min-width: 24px;
  min-height: 24px;
}

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

@media (pointer: coarse) {
  .btn, a.btn, button { min-height: 48px; padding: 12px 16px; }
}

/* ---------- Mobiel body padding voor sticky CTA ---------- */
@media (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }
}
