/* =============================================
   FOOTER — CSS
============================================= */

.site-footer {
  background-color: var(--color-charcoal);
  border-top: 1px solid rgba(214, 168, 75, 0.5);
  padding: 90px 0 40px;
  position: relative;
  overflow: hidden;
}

.site-footer__texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 6px
  );
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

/* ---------- SCROLL-REVEAL ANIMATION ---------- */
.fade-up-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.site-footer.is-visible .fade-up-footer {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up-footer {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   FOOTER GRID — DESKTOP (1200px+)
============================================= */
.footer__grid {
  display: grid;
  grid-template-columns: 24% 16% 17% 17% 26%;
  gap: 24px;
  margin-bottom: 56px;
}

.footer-col {
  min-width: 0;
}

/* ---------- BRAND COLUMN ---------- */
.footer-brand {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.footer-brand__desc {
  color: #D0CCC4;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 20px;
}

.footer-brand__line {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
  margin-bottom: 24px;
}

.footer-social__label {
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 9px;
  border: 1px solid rgba(214, 168, 75, 0.7);
  background-color: transparent;
  color: var(--color-gold);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer-social__btn:hover {
  background-color: var(--color-gold);
  color: #111111;
  transform: translateY(-2px);
}

/* ---------- COLUMN HEADINGS ---------- */
.footer-col__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: default;
}

.footer-col__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-gold);
}

.footer-accordion-icon {
  display: none;
}

/* ---------- LINK LISTS ---------- */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link {
  display: inline-block;
  color: var(--color-offwhite);
  font-size: 14.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links li:last-child .footer-link {
  border-bottom: none;
}

.footer-link:hover {
  color: var(--color-gold);
  transform: translateX(3px);
}

/* ---------- CONTACT COLUMN ---------- */
.footer-col__heading--static {
  cursor: default;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(214, 168, 75, 0.18);
  color: inherit;
}

.footer-contact-list .footer-contact-row:first-child {
  padding-top: 0;
}

.footer-contact-list .footer-contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

a.footer-contact-row {
  transition: transform var(--transition-fast);
}

a.footer-contact-row:hover {
  transform: translateX(3px);
}

.footer-contact-row__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(214, 168, 75, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.footer-contact-row__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-contact-row__main {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-white);
}

.footer-contact-row__secondary {
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  height: 56px;
  border-radius: 9px;
  background-color: var(--color-gold);
  color: #111111;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-cta:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* =============================================
   BOTTOM BAR
============================================= */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 40px;
  margin-top: 0;
  border-top: 1px solid rgba(214, 168, 75, 0.3);
}

.footer-bottom__copyright,
.footer-bottom__legal {
  color: #AAA69F;
  font-size: 13.5px;
}

.footer-bottom__sep {
  margin: 0 8px;
  color: rgba(214, 168, 75, 0.4);
}

.footer-bottom__legal-link {
  color: #AAA69F;
  transition: color var(--transition-fast);
}

.footer-bottom__legal-link:hover {
  color: var(--color-gold);
}

/* =============================================
   TABLET (768px – 1199px)
============================================= */
@media (max-width: 1199px) {
  .site-footer {
    padding: 80px 0 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

/* =============================================
   MOBILE (below 768px)
============================================= */
@media (max-width: 767px) {
  .site-footer {
    padding: 60px 0 32px;
  }

  .footer__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
  }

  /* Reorder per spec:
     1. logo/brand, 2. description, 3. social,
     4. contact, 5. navigatie, 6. diensten, 7. informatie */
  .footer-col--brand {
    order: 1;
    margin-bottom: 36px;
  }

  .footer-col--contact {
    order: 2;
    margin-bottom: 8px;
  }

  .footer-col:nth-of-type(2) {
    order: 3;
  }

  .footer-col:nth-of-type(3) {
    order: 4;
  }

  .footer-col:nth-of-type(4) {
    order: 5;
  }

  .footer-brand__desc {
    max-width: 100%;
  }

  /* ---------- ACCORDIONS for Navigatie / Diensten / Informatie ---------- */
  .footer-col:not(.footer-col--brand):not(.footer-col--contact) {
    border-bottom: 1px solid rgba(214, 168, 75, 0.18);
    padding-bottom: 4px;
  }

  .footer-accordion-btn {
    cursor: pointer;
    border-bottom: none;
    margin-bottom: 0;
    padding: 16px 0;
  }

  .footer-accordion-btn::after {
    display: none;
  }

  .footer-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
  }

  .footer-accordion-icon::before,
  .footer-accordion-icon::after {
    content: "";
    position: absolute;
    background-color: var(--color-gold);
    transition: transform var(--transition-fast);
  }

  .footer-accordion-icon::before {
    width: 12px;
    height: 1.5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .footer-accordion-icon::after {
    width: 1.5px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .footer-accordion-btn[aria-expanded="true"] .footer-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
  }

  .footer-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding-bottom 0.35s ease;
    gap: 0;
  }

  .footer-links.is-open {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 18px;
  }

  .footer-link {
    padding: 9px 0;
  }

  .footer-cta {
    max-width: 100%;
  }
}

/* =============================================
   SMALL MOBILE (below 480px)
============================================= */
@media (max-width: 479px) {
  .footer-col__heading {
    font-size: 14px;
  }

  .footer-link {
    font-size: 14.5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
