/* GF Group Custom Styles */

/* ========================================
   Layout & Background
   ======================================== */

/* Wood background for HTML element */
.bg-wood,
html.bg-wood {
  background-image: url(/assets/images/hout_142e2dc8.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ========================================
   Hero Section
   ======================================== */

/* Hero section with dark gradient overlay */
.hero-section {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(33, 37, 41, 0.65) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero content container */
.hero-content {
  padding: 2rem 1rem;
}

/* Hero title with text shadow for maximum readability */
.hero-title {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

/* Hero subtitle */
.hero-subtitle {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  opacity: 0.95;
}

/* Members header box */
.members-header {
  background: rgba(33, 37, 41, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   Typography & Readability
   ======================================== */

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Improved text readability */
.content-text,
.content-box p {
  line-height: 1.7;
  max-width: 75ch; /* Optimal reading width */
}

.content-text h2,
.content-box h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Better text contrast on dark backgrounds - WCAG AA compliance */
.text-white-50 {
  color: rgba(255, 255, 255, 0.75) !important; /* Verhoogd van 0.5 naar 0.75 voor 4.5:1 contrast ratio */
}

/* Link kleuren in dark content boxes - Wit met subtiele underline */
.content-box a,
.bg-dark a:not(.btn):not(.nav-link):not(.navbar-brand):not(.text-decoration-none) {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.content-box a:hover,
.bg-dark a:not(.btn):not(.nav-link):not(.navbar-brand):not(.text-decoration-none):hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.content-box a:focus-visible,
.bg-dark a:not(.btn):not(.nav-link):not(.navbar-brand):not(.text-decoration-none):focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   Components
   ======================================== */

/* Content boxes */
.content-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Member Grid - CSS Grid for predictable responsive layout */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Member Cards */
.member-card {
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
}

.member-card-link {
  color: inherit;
  position: relative;
}

/* Member card images - consistent sizing */
.member-card-image {
  object-fit: cover;
  height: 12.6rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover .member-card-image {
  transform: scale(1.1);
}

/* Member card overlay link effect */
.member-card-overlay-link {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.member-card:hover .member-card-overlay-link {
  opacity: 1;
}

.member-card-overlay-link .btn {
  transform: translateY(10px);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.member-card:hover .member-card-overlay-link .btn {
  transform: translateY(0);
}

/* Lightbox link for image - sits below overlay */
.member-card-img-wrapper .glightbox {
  position: relative;
  z-index: 1;
  cursor: zoom-in;
}

/* Member card body */
.member-card .card-body {
  min-height: 4rem;
  padding: 0.75rem;
  transition: background-color 0.3s ease;
}

/* Card title - truncate long SEO titles */
.member-card .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.4;
}

.member-card:hover .card-body {
  background-color: #1a1d20 !important;
}

/* Glass effect for dark containers */
.glass-effect {
  background: rgba(33, 37, 41, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   Buttons & CTA
   ======================================== */

.btn {
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a01830 0%, #801428 100%);
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: #212529 !important;
  border-color: #ffffff;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ========================================
   Responsive Maps
   ======================================== */

/* Responsive iframe wrapper */
.responsive-map-wrapper {
  position: relative;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  height: 0;
  overflow: hidden;
}

.responsive-map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   Navigation
   ======================================== */

/* Breadcrumbs */
.breadcrumb-nav {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2em;
  padding: 0 0.5rem;
}

.breadcrumb-item a {
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #fff !important;
}

/* Active nav link indicator */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.active {
  font-weight: 600;
}

/* Navbar animation */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hamburger menu animation */
.navbar-toggler {
  transition: opacity 0.3s ease;
}

.navbar-toggler:hover {
  opacity: 0.8;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* ========================================
   Accessibility & UX
   ======================================== */

/* Ensure focus states are visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d6efd;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skip-to-content:focus {
  top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   Loading States & Feedback
   ======================================== */

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Skeleton loading for images */
.skeleton {
  background: linear-gradient(
    90deg,
    #2a2d30 25%,
    #3a3d40 50%,
    #2a2d30 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #fff;
}

.empty-state-icon {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* ========================================
   Performance Optimizations
   ======================================== */

/* Optimize repaints */
.navbar,
.card {
  will-change: auto;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .navbar,
  footer {
    display: none;
  }

  html.bg-wood {
    background: white;
  }

  body {
    background: white;
    color: black;
  }
}

/* ========================================
   Mobile Optimizations
   ======================================== */

@media (max-width: 768px) {
  /* Hero section adjustments */
  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1.25rem !important;
  }

  .hero-content {
    padding: 1.5rem 0.5rem;
  }

  .members-header {
    padding: 1rem !important;
  }

  /* Member grid: 2 columns on tablet-small */
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .member-card-image {
    height: 10rem;
  }

  /* CTA buttons stack on mobile */
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }

  /* Content padding */
  .content-box {
    padding: 1.5rem !important;
  }

  /* Larger touch targets */
  .nav-link {
    padding: 1rem !important;
    min-height: 48px;
    font-size: 1.1rem;
  }

  .footer a {
    padding: 0.75rem 0.5rem;
    min-height: 48px;
    display: inline-block;
  }
}

/* Small mobile: single column cards */
@media (max-width: 480px) {
  .member-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .member-card-image {
    height: 12rem;
  }
}

/* Medium mobile (481-768): 2 columns with better card sizing */
@media (min-width: 481px) and (max-width: 768px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .member-card-image {
    height: 10rem;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
  }
}

/* Tablet: 3 columns when members are full width */
@media (min-width: 769px) and (max-width: 991px) {
  .member-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop sidebar: 2 columns in sidebar */
@media (min-width: 992px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .member-card:hover {
    transform: none;
  }

  /* Hide overlay by default on touch devices - show only on tap */
  .member-card-overlay-link {
    opacity: 0;
  }

  /* Larger tap targets */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar-brand img {
    height: 50px !important;
  }

  .py-4, .py-md-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* ========================================
   Project List Cards
   ======================================== */

/* Project card hover effect */
.project-card {
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 4px;
}

.project-card:hover {
  background-color: #2a2d30 !important;
  transform: translateX(4px);
}

/* ========================================
   Employer Card (werken-bij <-> member-koppeling)
   ======================================== */

.employer-card {
  background: var(--bs-dark);
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.employer-card:hover {
  background-color: #2a2d30;
  transform: translateX(4px);
}

.employer-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
}

.employer-card-logo img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
}

.employer-card .eyebrow,
.vacature-kolommen .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employer-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  /* Expliciete kleur i.p.v. inherit: anders valt dit terug op Bootstrap-linkblauw
     (de omringende <a> zelf heeft geen kleur gezet). Zelfde tint als footer-member-link. */
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.employer-card:hover .employer-card-link {
  color: #ff8fa3;
}

/* ========================================
   Vacature-overzicht (/werken-bij) - kaarten
   Zelfde donkere kaart-stijl als .employer-card, zodat overzicht en
   bedrijfsprofiel-kaarten visueel bij elkaar horen.
   ======================================== */

.vacature-card {
  display: block;
  background: var(--bs-dark);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vacature-card:hover {
  background-color: #2a2d30;
  transform: translateX(4px);
}

.vacature-card .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Samenvattingstekst heeft geen eigen kleurklasse en erft anders
   Bootstrap-linkblauw van de omringende <a class="vacature-card">. */
.vacature-card p {
  color: rgba(255, 255, 255, 0.75);
}

.vacature-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  /* Expliciete kleur i.p.v. inherit: anders valt dit terug op Bootstrap-linkblauw
     (de omringende <a> zelf heeft geen kleur gezet). Zelfde tint als footer-member-link. */
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.vacature-card:hover .vacature-card-link {
  color: #ff8fa3;
}

/* ========================================
   Vacaturepagina - leesbaarheid
   Let op: single.html wikkelt paginacontent in .editable (geen .content-box
   op deze paginasoort), daarom scopen we hier op .editable i.p.v. .content-box.
   ======================================== */

.editable h2 {
  margin-top: 3rem;
}

.editable h2:first-child {
  margin-top: 0;
}

.editable h3 {
  margin-top: 1.5rem;
  font-weight: 600;
}

.editable ul li {
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.vacature-kolommen .eyebrow {
  margin-bottom: 0.5rem;
}

.project-card .card-title {
  font-size: 1rem;
  font-weight: 500;
}

/* ========================================
   Image Dock (Member Detail Pages)
   ======================================== */

/* Dock Container */
.dock-wrapper {
  width: 100%;
  background: #000;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Dock Styling */
.dock {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 10px;
}

/* Dock Images */
.dock img {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.dock img:hover {
  transform: scale(1.3) translateY(-0.75rem);
  filter: brightness(1.15);
  z-index: 10;
}

/* Dock Link Styling */
.dock-image-link {
  display: block;
  line-height: 0;
}

/* Dock Responsive - Tablet */
@media (max-width: 1024px) {
  .dock {
    justify-content: flex-start;
    padding: 8px;
  }

  .dock img {
    width: 120px;
    height: 120px;
  }

  .dock img:hover {
    transform: scale(1.1);
  }
}

/* Dock Responsive - Mobile */
@media (max-width: 576px) {
  .dock img {
    width: 100px;
    height: 100px;
  }

  .dock img:hover {
    transform: scale(1.05);
  }
}

/* Dock - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .dock img {
    transition: none;
  }

  .dock img:hover {
    transform: none;
    filter: none;
  }
}

/* ========================================
   Footer Styling
   ======================================== */

/* Footer Members Section */
.footer-members {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-members-label {
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Footer Members Grid - CSS Grid for clean alignment */
.footer-members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem 1.5rem;
  text-align: center;
}

/* Footer Member Links */
.footer-member-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-member-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-member-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Footer Copyright Section */
.footer-copyright {
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-credit-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit-link:hover {
  color: #ffffff;
}

/* Footer Responsive - Tablet */
@media (max-width: 991px) {
  .footer-members-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem 1rem;
  }

  .footer-member-link {
    font-size: 0.8125rem;
    padding: 0.4rem 0.5rem;
  }
}

/* Footer Responsive - Mobile */
@media (max-width: 575px) {
  .footer-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 0.5rem;
  }

  .footer-member-link {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
    white-space: normal;
    line-height: 1.3;
  }

  .footer-members-label {
    font-size: 0.7rem;
  }
}

/* ========================================
   Site Credit (footer)
   ======================================== */

.site-credit {
  font-size: 0.7rem;
  color: #6b7280;
}

.site-credit a {
  color: inherit;
  text-decoration: none;
}

.site-credit a:hover {
  text-decoration: underline;
  color: #9ca3af;
}
