/* Footer styles — extracted from the inline <style> block in base.html (PR 2).
   Behaviour unchanged; this is a move, not a rewrite. */

html { scroll-behavior: smooth; }
:root {
  --nav-height: 72px;
  --anchor-offset: calc(var(--nav-height) + 1rem);
  --footer-bg-start: #fafafa;
  --footer-bg-end: #f0f0f0;
  --brand-red: #af2d2c;
}
[id] { scroll-margin-top: var(--anchor-offset); }

/* ========================================
   FOOTER - Elegant Premium Design
   ======================================== */
.footer {
  font-family: 'Montserrat', sans-serif;
  position: relative;
  background: linear-gradient(180deg,
    var(--footer-bg-start) 0%,
    #f8f8f8 100%
  );
}

/* Wave Transition - Clean separator */
.footer-wave-transition {
  position: relative;
  height: 60px;
  margin-top: -60px;
}

.footer-wave-transition svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
}

/* Footer Content - 3-Column Grid */
.footer-content {
  padding: 5rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  text-align: center;
}

/* Column Headers - Bold anchors */
.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  margin: 0 0 1.25rem 0;
}

/* Contact Column */
.footer-contact .footer-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.75rem 0;
}

.footer-contact p {
  margin: 0.35rem 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact .footer-address {
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.footer-contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--brand-red);
}

/* Navigation Columns */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin: 0.6rem 0;
}

/* Links with underline hover effect */
.footer-column ul a {
  min-height: 44px;
  align-items: center;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
  display: inline-flex;
}

.footer-column ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand-red);
  transition: width 0.25s ease;
}

.footer-column ul a:hover {
  color: var(--brand-red);
}

.footer-column ul a:hover::after {
  width: 100%;
}

/* Trust Bar - Above Copyright */
.footer-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid #e8e8e8;
}

.footer-trust-bar img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-trust-bar img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Footer Bottom - Copyright */
.footer-bottom {
  text-align: center;
  padding: 1rem 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.02);
}

.footer-bottom p {
  margin: 0;
  color: #6D635E;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.footer-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #6D635E;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--brand-red);
}

.footer-staff-access {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 1rem 1.5rem;
  }

  .footer-column h4 {
    margin-bottom: 0.75rem;
  }

  .footer-column li {
    margin: 0.4rem 0;
  }

  .footer-trust-bar {
    gap: 1.25rem;
    padding: 1rem;
  }

  .footer-trust-bar img {
    height: 30px;
  }

  .footer-bottom {
    padding: 0.75rem 1rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  .footer-staff-access {
    display: flex;
    justify-content: center;
    margin: 0.45rem 0 0;
  }

  .footer-staff-access a {
    min-height: 44px;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
  }

  .footer-staff-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 2.5rem 1rem 1rem;
    gap: 1.25rem;
  }

  .footer-column h4 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .footer-contact .footer-brand-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-contact p {
    font-size: 0.85rem;
    margin: 0.25rem 0;
  }

  .footer-column li {
    margin: 0.3rem 0;
  }

  .footer-column ul a {
    font-size: 0.85rem;
  }

  .footer-trust-bar {
    gap: 1rem;
    padding: 0.75rem;
  }

  .footer-trust-bar img {
    height: 24px;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
}
