/* style.css - Custom extensions over Bootstrap for Actiepoort */

:root {
  --primary: #1a202c;
  --secondary: #2d3748;
  --accent: #c53030;
  --accent-hover: #9b2c2c;
  --light: #f7fafc;
  --dark: #171923;
  --text: #e2e8f0;
  --text-dark: #1a202c;
  --border: #4a5568;
  --shadow: 0 20px 40px rgba(0,0,0,0.3);
  --radius: 16px;
  --accent-light: #e05858;
  --accent-light-hover: #c94f4f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #e2e8f0;
}

p {
  line-height: 1.8;
  color: #cbd5e0;
}

a {
  color: var(--accent);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* Overlay for background images */
.bg-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
}
.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,32,44,0.85) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 0;
}
.bg-overlay > .container {
  position: relative;
  z-index: 1;
}

/* Hero slider */
.hero-slider {
  height: 85vh;
  min-height: 600px;
}
.hero-slider .carousel-item {
  height: 85vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
}
.hero-slider .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 0;
}
.hero-slider .carousel-caption {
  bottom: 15%;
  left: 10%;
  right: 10%;
  text-align: left;
  z-index: 2;
}
.hero-slider .carousel-caption h1 {
  font-size: 4rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-slider .carousel-caption p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Buttons - improved contrast */
.btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline-primary:hover {
  background: var(--accent);
  color: #fff;
}

/* Improved contrast for outline-primary buttons on dark backgrounds */
.bg-dark .btn-outline-primary,
[class*="bg-dark"] .btn-outline-primary,
[style*="background: var(--dark)"] .btn-outline-primary,
.card .btn-outline-primary,
.service-card .btn-outline-primary,
.pricing-card .btn-outline-primary,
.hero .btn-outline-primary,
.bg-overlay .btn-outline-primary {
  border-color: var(--accent-light);
  color: #f7a0a0;
}
.bg-dark .btn-outline-primary:hover,
[class*="bg-dark"] .btn-outline-primary:hover,
[style*="background: var(--dark)"] .btn-outline-primary:hover,
.card .btn-outline-primary:hover,
.service-card .btn-outline-primary:hover,
.pricing-card .btn-outline-primary:hover,
.hero .btn-outline-primary:hover,
.bg-overlay .btn-outline-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

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

/* Cards */
.card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.card-img-top {
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-title {
  color: #e2e8f0;
}

/* Service cards */
.service-card {
  padding: 2rem;
  background: var(--secondary);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: var(--accent);
  background: #2a3248;
}

/* Pricing */
.pricing-card {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
}
.pricing-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.02);
}
.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
}

/* Testimonials */
.testimonial-card {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--accent);
}

/* Form */
.form-control, .form-select {
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
  background: var(--dark);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(229,62,62,0.3);
  color: var(--text);
}

/* Section padding */
section {
  padding: 6rem 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Cookie reject button contrast fix */
#cookie-reject {
  color: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
}
#cookie-reject:hover {
  background: var(--accent-light) !important;
  color: #fff !important;
}

/* Cookie accept button - improved contrast (ratio 4.5+) */
#cookie-accept {
  background: var(--accent);
  border-color: var(--accent);
}
#cookie-accept:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Notification toast */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.toast-notification.show {
  opacity: 1;
}

/* Footer */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
}
footer a {
  color: var(--text);
}
footer a:hover {
  color: var(--accent);
}

/* ===== CONTRAST FIXES ===== */

/* Fix text-muted on dark backgrounds - use a lighter color with sufficient contrast */
.bg-dark .text-muted,
footer .text-muted,
[class*="bg-dark"] .text-muted,
[style*="background: var(--dark)"] .text-muted,
.pricing-card .text-muted,
.service-card .text-muted,
.card .text-muted,
.card-text.text-muted {
  color: #a0aec0 !important;
}

/* Fix footer muted links */
footer .text-muted.small,
footer .small.text-muted,
footer a.text-muted {
  color: #a0aec0 !important;
}

/* Fix text-muted lead paragraphs on dark backgrounds */
.bg-dark .lead.text-muted,
section.hero .lead.text-muted {
  color: #cbd5e0 !important;
}

/* Fix lead text-muted on the dark sections */
section[style*="background: var(--dark)"] .lead.text-muted {
  color: #cbd5e0 !important;
}

/* Fix lead text-muted on regular (non-dark) sections */
section:not(.bg-dark):not([style*="background: var(--dark)"]) .lead.text-muted {
  color: #a0aec0 !important;
}

/* Fix specific contrast for lead text-muted in gallery section */
#gallery .lead.text-muted {
  color: #a0aec0 !important;
}

/* Fix contrast for lead.text-muted in contact section */
#contact .lead.text-muted {
  color: #a0aec0 !important;
}

/* Header padding on mobile to prevent overlap with fixed navbar */
@media (max-width: 768px) {
  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }
  .hero-slider .carousel-item {
    height: 60vh;
  }
  .hero-slider .carousel-caption h1 {
    font-size: 2.5rem;
  }
  section {
    padding: 4rem 0;
  }
}

/* Mobile: Add padding-top to account for sticky/fixed header */
@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
  .hero {
    padding-top: 2rem;
  }
  section:first-of-type {
    margin-top: 0;
  }
}

/* Ensure lead text in hero section has good contrast */
.hero .btn-outline-primary {
  border-color: #f7a0a0;
  color: #f7a0a0;
}
.hero .btn-outline-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

/* Fix accordion text contrast on dark backgrounds */
.accordion-item {
  background: var(--secondary);
  border-color: var(--border);
}
.accordion-button {
  background: var(--secondary);
  color: #e2e8f0;
}
.accordion-button:not(.collapsed) {
  background: var(--secondary);
  color: var(--accent-light);
}
.accordion-body {
  background: var(--secondary);
  color: #cbd5e0;
}
