/*
 * Components — Marion Masseur
 */

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container-max);
  margin:    0 auto;
  padding:   0 var(--section-padding-x);
}

.site-main {
  min-height: 60vh;
  padding:    var(--section-padding-y) 0 var(--space-16);
}

.skip-link {
  position: absolute;
  left:     -9999px;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  background-color: var(--color-bg-header);
  border-bottom:    1px solid var(--color-border);
}

.header-inner {
  max-width: var(--container-max);
  margin:    0 auto;
  padding:   28px var(--section-padding-x) 20px;
  display:   flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-branding {
  margin: 0;
}

.site-title {
  font-family:    var(--font-title);
  font-weight:    var(--font-thin);
  font-size:      var(--text-3xl);
  letter-spacing: var(--tracking-widest);
  color:          var(--color-text-light);
  margin:         0;
  line-height:    1;
}

.site-title a {
  color: inherit;
}

.header-right {
  display:     flex;
  align-items: center;
  gap:         var(--space-5);
}

/* Taalswitch */
.lang-switch {
  display:        flex;
  align-items:    center;
  gap:            6px;
  font-family:    var(--font-title);
  font-weight:    var(--font-light);
  font-size:      var(--text-sm);
  letter-spacing: var(--tracking-wider);
  color:          var(--color-text-muted);
  list-style:     none;
  margin:         0;
  padding:        0;
}

.lang-switch li {
  display: inline-flex;
  align-items: center;
}

.lang-switch li + li::before {
  content: '|';
  color:   var(--color-border);
  margin:  0 6px;
}

.lang-switch a,
.lang-switch .current-lang {
  color:      var(--color-text-muted);
  transition: color var(--transition-fast);
}

.lang-switch a:hover,
.lang-switch .current-lang {
  color: var(--color-text-light);
}

/* Social icons */
.social-links {
  display: flex;
  gap:     10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-link {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           28px;
  height:          28px;
  color:           var(--color-text-muted);
  transition:      color var(--transition-fast);
}

.social-link:hover {
  color: var(--color-text-light);
}

.social-link svg {
  width:  15px;
  height: 15px;
  fill:   currentColor;
}

/* ===========================
   NAVIGATIE
   =========================== */
.main-nav {
  background-color: var(--color-bg-header);
  border-top:       1px solid var(--color-border);
}

.nav-list {
  max-width:   var(--container-max);
  margin:      0 auto;
  padding:     0 var(--section-padding-x);
  list-style:  none;
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  height:      var(--nav-height);
  gap:         0;
}

.nav-list li {
  display:     inline-flex;
  align-items: center;
}

.nav-list li + li::before {
  content:     '|';
  color:       var(--color-border);
  font-size:   0.88rem;
  line-height: 1;
  padding:     0 2px;
  user-select: none;
}

.nav-link,
.nav-list a {
  font-family:    var(--font-title);
  font-weight:    var(--font-light);
  font-size:      0.68rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color:          var(--color-nav);
  padding:        4px 7px;
  transition:     color var(--transition-fast);
  white-space:    nowrap;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--color-nav-hover);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--color-nav-active);
}

/* ===========================
   HERO (home + pagina)
   =========================== */
.hero {
  margin-bottom: var(--space-10);
}

.hero-image-wrap {
  position: relative;
  width:    100%;
}

.hero-image {
  width:           100%;
  height:          auto;
  max-height:      460px;
  object-fit:      cover;
  object-position: center center;
  display:         block;
}

.hero-caption {
  position:       absolute;
  bottom:         10px;
  left:           14px;
  font-size:      var(--text-xxs);
  color:          rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  font-family:    var(--font-body);
}

/* ===========================
   BIO (HOME)
   =========================== */
.bio {
  max-width: 720px;
}

.bio-intro {
  font-family:     var(--font-title);
  font-weight:     var(--font-light);
  font-size:       1rem;
  letter-spacing:  var(--tracking-tight);
  color:           var(--color-text-light);
  margin:          0 0 var(--space-6);
  padding-bottom:  var(--space-4);
  border-bottom:   1px solid var(--color-border);
}

.bio-text p {
  font-size:     var(--text-md);
  line-height:   var(--leading-loose);
  color:         var(--color-text);
  margin-bottom: 14px;
}

.bio-text p:first-child {
  color: var(--color-text-light);
}

.bio-text p:last-child {
  margin-bottom: 0;
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
  margin-bottom:  var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom:  1px solid var(--color-border);
}

.page-title {
  font-family:    var(--font-title);
  font-weight:    var(--font-thin);
  font-size:      var(--text-2xl);
  letter-spacing: var(--tracking-normal);
  color:          var(--color-text-light);
  margin:         0;
}

/* ===========================
   GALERIJ
   =========================== */
.gallery-hero {
  position:      relative;
  margin-bottom: 36px;
  text-align:    left;
}

.gallery-hero img {
  width:           100%;
  max-width:       100%;
  height:          360px;
  object-fit:      cover;
  object-position: center;
  display:         block;
}

.gallery-intro {
  margin-bottom: var(--space-8);
  max-width:     680px;
}

.gallery-intro p {
  font-size:   var(--text-base);
  line-height: var(--leading-loose);
  color:       var(--color-text);
}

.gallery-intro p:first-child {
  color: var(--color-text-light);
}

.gallery-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   6px;
}

.gallery-item {
  position:      relative;
  overflow:      hidden;
  aspect-ratio:  1 / 1;
  background:    #111;
  cursor:        pointer;
  border-radius: var(--radius-sm);
  display:       block;
}

.gallery-item img {
  width:       100%;
  height:      100%;
  object-fit:  cover;
  transition:  transform var(--transition-slow),
               opacity var(--transition-base);
  opacity:     0.88;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity:   1;
}

.gallery-item-overlay {
  position:   absolute;
  inset:      0;
  background: rgba(0,0,0,0);
  transition: background var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,0,0,0.15);
}

/* ===========================
   NIEUWS
   =========================== */
.news-list {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-12);
}

.news-item-title {
  font-family:    var(--font-title);
  font-weight:    var(--font-light);
  font-size:      1rem;
  letter-spacing: var(--tracking-tight);
  color:          var(--color-text-light);
  margin:         0 0 6px;
}

.news-item-title a {
  color:      inherit;
  transition: color var(--transition-fast);
}

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

.news-item-excerpt {
  font-size:     var(--text-base);
  color:         var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.news-item-image {
  width:         100%;
  max-width:     580px;
  height:        auto;
  margin-bottom: var(--space-4);
}

.news-item-body p {
  font-size:     var(--text-base);
  line-height:   var(--leading-loose);
  margin-bottom: var(--space-3);
}

.post-nav {
  margin-top:      var(--space-12);
  display:         flex;
  justify-content: space-between;
  gap:             var(--space-4);
  font-size:       var(--text-sm);
  color:           var(--color-text-muted);
}

.post-nav a {
  color:      var(--color-accent);
  transition: color var(--transition-fast);
}

.post-nav a:hover {
  color: var(--color-text-light);
}

.news-item-meta {
  font-size:      var(--text-xs);
  color:          var(--color-text-muted);
  letter-spacing: var(--tracking-tight);
  margin-bottom:  var(--space-2);
}

/* ===========================
   CONTACT
   =========================== */
.contact-block {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-8);
  max-width:      480px;
  padding-top:    var(--space-2);
}

.contact-group {
  display:        flex;
  flex-direction: column;
  gap:            2px;
}

.contact-label {
  font-family:     var(--font-title);
  font-weight:     var(--font-light);
  font-size:       var(--text-sm);
  letter-spacing:  var(--tracking-wider);
  text-transform:  uppercase;
  color:           var(--color-text-muted);
  margin-bottom:   4px;
}

.contact-social {
  display: flex;
  gap:     10px;
}

.contact-social .social-link {
  width:        36px;
  height:       36px;
  border:       1px solid var(--color-border);
  color:        var(--color-text-muted);
  transition:   color var(--transition-fast),
                border-color var(--transition-fast);
}

.contact-social .social-link:hover {
  color:        var(--color-text-light);
  border-color: var(--color-accent);
}

.contact-social .social-link svg {
  width:  16px;
  height: 16px;
}

.contact-details {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  font-size:      var(--text-base);
  line-height:    var(--leading-relaxed);
}

.contact-details a {
  color:               var(--color-accent);
  text-decoration:     underline;
  text-underline-offset: 3px;
  transition:          color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--color-text-light);
}

/* ===========================
   PAGE CONTENT (standaard)
   =========================== */
.page-content {
  max-width: 720px;
}

.page-content p {
  margin-bottom: var(--space-4);
}

.page-content h2,
.page-content h3 {
  font-family:    var(--font-title);
  font-weight:    var(--font-light);
  letter-spacing: var(--tracking-tight);
  color:          var(--color-text-light);
  margin:         var(--space-8) 0 var(--space-4);
}

.page-content a {
  color:               var(--color-accent);
  text-decoration:     underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--color-text-light);
}

.page-content ul,
.page-content ol {
  padding-left:  var(--space-6);
  margin-bottom: var(--space-4);
  list-style:    revert;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background-color: var(--color-bg-footer);
  border-top:       1px solid var(--color-border);
  box-shadow:       0 -1px 0 rgba(255,255,255,0.04);
}

.footer-nav {
  background-color: var(--color-bg-footer);
  padding:          20px 0 16px;
}

.footer-nav .nav-list {
  height:          auto;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             0;
}

.footer-nav .nav-list a {
  font-size: var(--text-xxs);
}

.footer-copy {
  text-align:     center;
  padding:        8px var(--section-padding-x) 4px;
  font-size:      var(--text-sm);
  color:          var(--color-text-muted);
  font-family:    var(--font-title);
  font-weight:    var(--font-light);
  letter-spacing: var(--tracking-tight);
}

.footer-copy p {
  margin: 0;
  font-family: inherit;
  font-size:   inherit;
  color:       inherit;
}

.footer-legal {
  background-color: var(--color-bg-legal);
  padding:          20px var(--section-padding-x);
  margin-top:       12px;
}

.footer-legal p {
  max-width:   var(--container-max);
  margin:      0 auto;
  font-size:   var(--text-xs);
  line-height: 1.7;
  color:       var(--color-text-muted);
  text-align:  center;
}

/* ===========================
   404
   =========================== */
.error-404 {
  text-align: center;
  padding:    var(--space-16) 0;
}

.error-404 h1 {
  font-family:    var(--font-title);
  font-weight:    var(--font-thin);
  font-size:      3rem;
  letter-spacing: var(--tracking-wide);
  margin-bottom:  var(--space-4);
}

.error-404__link {
  display:             inline-block;
  margin-top:          var(--space-4);
  color:               var(--color-accent);
  font-family:         var(--font-title);
  letter-spacing:      var(--tracking-wide);
  text-transform:      uppercase;
  font-size:           var(--text-sm);
  border-bottom:       1px solid currentColor;
  padding-bottom:      2px;
  transition:          color var(--transition-fast);
}

.error-404__link:hover {
  color: var(--color-text-light);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 680px) {
  .site-title  { font-size: 1.5rem; }
  .nav-list a  { font-size: 0.62rem; padding: 4px 6px; }
  .hero-image  { height: 260px; max-height: 260px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-hero img { height: 240px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-list {
    height:  auto;
    padding: 10px var(--space-4);
  }

  .header-inner {
    flex-direction: column;
    align-items:    flex-start;
    gap:            12px;
  }
}

/* ===========================
   FANCYBOX OVERRIDES
   =========================== */
.fancybox__container {
  --fancybox-bg: rgba(28, 30, 32, 0.96);
}

.fancybox__caption {
  font-family:    var(--font-title);
  font-weight:    var(--font-light);
  letter-spacing: var(--tracking-tight);
}
