﻿/* Footer */
.site-footer {
  position: relative;
  background-color: var(--pw-deep-ocean);
  background-image:
    linear-gradient(
      180deg,
      rgba(13, 74, 110, 0.88) 0%,
      rgba(26, 54, 93, 0.9) 45%,
      rgba(15, 36, 56, 0.94) 100%
    ),
    url("../assets/images/textures/water-look.webp");
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: rgba(255, 255, 255, 0.9);
  padding-block: var(--pw-space-3xl) 0;
}

.site-footer > .container {
  position: relative;
}

.footer-grid {
  display: grid;
  gap: var(--pw-space-2xl);
  margin-bottom: 0;
}

.footer-brand img,
.footer-brand svg {
  height: 40px;
  margin-bottom: var(--pw-space-md);
}

.footer-brand img {
  width: auto;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.footer-col h4,
.footer-accordion__summary span {
  color: var(--pw-pure-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col h4 {
  margin-bottom: var(--pw-space-md);
}

.footer-col a,
.footer-col p,
.footer-accordion__body a,
.footer-accordion__body p {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  margin-bottom: var(--pw-space-sm);
}

.footer-col a:hover,
.footer-accordion__body a:hover {
  color: var(--pw-fresh-aqua);
}

.footer-accordion {
  border: 0;
}

.footer-accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pw-space-md);
  cursor: pointer;
  user-select: none;
}

.footer-accordion__summary::-webkit-details-marker {
  display: none;
}

.footer-accordion__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.65);
  transition: transform var(--pw-transition);
}

.footer-accordion[open] .footer-accordion__icon {
  transform: rotate(180deg);
}

.footer-wa-secondary {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  margin-bottom: var(--pw-space-sm);
}

.footer-bottom {
  margin-top: var(--pw-space-2xl);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: var(--pw-space-lg) max(1rem, calc((100vw - var(--pw-container)) / 2 + 1rem))
    var(--pw-space-xl);
  background: rgba(6, 16, 30, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--pw-space-md);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pw-space-md);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--pw-transition);
}

.footer-legal a:hover {
  color: var(--pw-fresh-aqua);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-accordion__summary {
    pointer-events: none;
    cursor: default;
    padding: 0;
    margin-bottom: var(--pw-space-md);
  }

  .footer-accordion__icon {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-block: var(--pw-space-2xl) 0;
    background-image: linear-gradient(
      180deg,
      rgba(13, 74, 110, 0.95) 0%,
      rgba(26, 54, 93, 0.96) 50%,
      rgba(15, 36, 56, 0.98) 100%
    );
  }

  .footer-grid {
    gap: 0;
  }

  .footer-brand {
    padding-bottom: var(--pw-space-md);
    margin-bottom: var(--pw-space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .footer-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-accordion__summary {
    padding: var(--pw-space-md) 0;
  }

  .footer-accordion__body {
    padding-bottom: var(--pw-space-md);
  }

  .footer-accordion__body a:last-child,
  .footer-accordion__body p:last-child {
    margin-bottom: 0;
  }

  .footer-bottom {
    margin-top: var(--pw-space-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--pw-space-sm);
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--pw-space-sm);
  }
}
