/* Footer styles */

/* Base footer */
.site-footer {
  background: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.04) 0%,
          rgba(0, 0, 0, 0.06) 100%
  ),
  linear-gradient(180deg, #48897c 0%, #42786c 100%);
  color: #fff;
  margin-top: auto;
  font-family: var(--font);
  font-size: 14px;
  --footer-lh: 1.6;
  line-height: var(--footer-lh);
  --footer-logo-h: 40px;
  --footer-logo-h-sm: 32px;
  --footer-col-min: 220px;
  --footer-gutter: clamp(24px, 4vw, 48px);
}

/* Grid container */
.site-footer .footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--footer-col-min), 1fr));
  column-gap: var(--footer-gutter);
  row-gap: var(--footer-gutter);
}
/* Desktop layout refinements */
@media (min-width: 1024px) {
  .site-footer { --footer-gutter: 56px; --footer-logo-h: 44px; }
  .site-footer .footer-container {
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, 1fr);
    align-items: start;
  }
  /* Brand row alignment on desktop */
  .site-footer .f-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
  }
  /* Make map span full brand width on desktop */
  .site-footer .f-brand .footer-map { grid-column: 1 / -1; }
  .site-footer .tagline {
    margin: 0;
    max-width: 48ch;
  }
  /* Sharper dividers, consistent rhythm */
  .site-footer .footer-section { border-left-color: rgba(255, 255, 255, 0.12); }
  /* Headings emphasis */
  .site-footer .footer-section h4,
  .site-footer .footer-section h5,
  .site-footer .footer-heading { letter-spacing: 0.01em; font-weight: 700; }
  /* Improve underline legibility without always-on underlines */
  .site-footer a { text-underline-offset: 2px; text-decoration-thickness: 1.25px; }
  /* Desktop: keep accordions open and hide markers */
  .footer-collapsible > summary { pointer-events: none; cursor: default; }
  .footer-collapsible > summary::-webkit-details-marker { display: none; }
  /* Footer bottom tuned for desktop */
  .site-footer .footer-bottom { margin-top: clamp(20px, 4vw, 32px); border-top-color: rgba(255, 255, 255, 0.18); }
  .site-footer .footer-bottom .container { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 1023px) {
  .site-footer .footer-container {
    grid-template-columns: repeat(2, 1fr);
    --footer-gutter: 24px;
  }
}
@media (max-width: 767px) {
  .site-footer {
    padding: 0px !important;
  }
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

/* Section headings */
.site-footer .footer-section h4,
.site-footer .footer-section h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: var(--footer-lh);
}

/* Links & text */
.site-footer .footer-section p,
.site-footer .footer-section li,
.site-footer .footer-section a,
.site-footer .tagline {
  font-size: 14px;
  line-height: var(--footer-lh);
  color: rgba(255, 255, 255, 0.9);
}

/* Small space between accordion summary and list */
.site-footer .footer-collapsible > summary + .footer-list {
  margin-top: 8px; /* slightly padded gap */
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
  color: #fff;
}
.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Brand + tagline */
.site-footer .f-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer .f-brand .custom-logo-link img,
.site-footer .f-brand img.custom-logo {
  height: auto;
  max-height: var(--footer-logo-h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.site-footer .tagline {
  margin-top: 0.5rem;
  max-width: 40ch;
}
@media (max-width: 767px) {
  .site-footer .f-brand {
    align-items: center;
    text-align: center;
    padding: 10px 10px 10px 10px;
  }
  .site-footer .f-brand .custom-logo-link img,
  .site-footer .f-brand img.custom-logo {
    height: auto;
    max-height: var(--footer-logo-h-sm);
  }
  .site-footer .footer-bottom {
    margin: 0px !important;
    padding: 0px;
  }
}

/* Lists (reset + remove arrows) */
.site-footer .footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Column dividers */
.site-footer .footer-section:first-child {
  border-left: none;
  padding-left: 0;
}
@media (max-width: 767px) {
  .site-footer .footer-section {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-footer .footer-section:first-child {
    border-top: none;
  }
}

/* Contact list */
.site-footer .contact-list li {
  display: flex;
  align-items: center;
}
.site-footer .contact-icon {
  width: 16px;
  height: 16px;
  stroke: #fff;
  flex-shrink: 0;
}

/* Footer bottom */
.site-footer .footer-bottom {
  margin-top: clamp(20px, 5vw, 36px);
  padding: clamp(12px, 2.5vw, 18px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer .footer-bottom .copyright {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
@media (min-width: 1024px) {
  .site-footer .footer-bottom {
    min-height: 40px;
    padding: 8px 0;
  }
}
.footer-div {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, 1fr);
  grid-column-gap: 24px;
  width: 1200px;
  justify-content: space-between;
  margin: 0 auto;
}

/* Footer Map (desktop brand section) */
.site-footer .footer-map {
  width: 100%;
  margin-top: 10px;
}
.site-footer .footer-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none; /* avoid accidental zoom/pan while scrolling */
}
.site-footer .footer-map:hover iframe {
  pointer-events: auto; /* enable interactivity on intent */
}
.site-footer .map-btn {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 6px 12px;
  background: #fff;
  color: #333;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.site-footer .map-btn:hover,
.site-footer .map-btn:focus {
  background: #f0f0f0;
  color: #111;
}
@media (max-width: 767px) {
  /* Desktop-only: hide map on small screens */
  .site-footer .footer-map { display: none; }
}
