html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}


::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}



hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}


audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}



fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}


textarea {
  resize: vertical;
}


.hidden,
[hidden] {
  display: none !important;
}



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



.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}



.invisible {
  visibility: hidden;
}



.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   REXEM Custom Styles
   ========================================================================== */

/* Variables and Reset */
:root {
  --primary-color: #1a4d2e;
  --secondary-color: #4f8a3d;
  --accent-color: #ffa500;
  --text-dark: #222;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), url('../img/sven-mieke-unsplash.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  border-radius: 3px;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-menu li a:hover {
  color: var(--accent-color);
  background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 6rem 0;
  padding-top: 8rem;
  text-align: center;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 4rem 0;
  padding-top: 6rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background: #ff8c00;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Sections */
.section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.65);
}

.section:nth-child(even) {
  background: rgba(245, 245, 245, 0.65);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-weight: 700;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s;
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
}

/* History Section */
.history-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.intro h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 120px;
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 1;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.timeline-content h4 {
  color: var(--secondary-color);
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
}

.timeline-content ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.timeline-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Company Info */
.company-info {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.company-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Expertise Section */
.expertise {
  background: var(--bg-light);
}

.expertise-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.expertise-item {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.expertise-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.expertise-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.partner-group h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.partner-group ul {
  list-style: none;
}

.partner-group li {
  padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid #eee;
}

.signature {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--bg-light);
  text-align: right;
  color: var(--text-light);
}

/* References Section */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.reference-item {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
}

.reference-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.reference-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.reference-item:hover img {
  transform: scale(1.05);
}

.reference-caption {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
  font-weight: 500;
  text-align: center;
  border-top: 3px solid var(--primary-color);
}

.reference-placeholder {
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 600;
}

.note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
  font-style: italic;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.contact-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.contact-item a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: 5px;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--primary-color);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.map-placeholder {
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--text-light);
  font-size: 3rem;
}

.map-placeholder .note {
  font-size: 1rem;
  margin-top: 1rem;
}

.contact-map {
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
}

.footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer p {
  margin: 0.5rem 0;
  opacity: 0.9;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.95);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {transform: scale(0.8)}
  to {transform: scale(1)}
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-color);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--white);
  padding: 20px 0;
  font-size: 1.2rem;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: var(--white);
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  border-radius: 3px;
  user-select: none;
  background-color: rgba(0,0,0,0.5);
  border: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0,0,0,0.8);
  color: var(--accent-color);
}

.reference-item {
  cursor: pointer;
}

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    max-height: 400px;
    padding: 1rem 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    padding-left: 90px;
  }

  .timeline-year {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
    padding-top: 6rem;
  }

  .page-header {
    padding: 2rem 0;
    padding-top: 5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.cookie-policy-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-policy-link:hover {
  color: var(--secondary-color);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner-buttons button {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.cookie-banner-buttons .btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.cookie-banner-buttons .btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.cookie-banner-buttons .btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid #ddd;
}

.cookie-banner-buttons .btn-secondary:hover {
  background: #e0e0e0;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner-buttons button {
    width: 100%;
  }
}

.cookie-settings-link {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  z-index: 1000;
}

.cookie-settings-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cookie-settings-link {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

