/* =====================================================
   FOOTER — FINAL ENTERPRISE VERSION
   ===================================================== */

:root {
  --brand-ral5009: #1c5769;
}

.footer {
  background-color: var(--brand-ral5009);
  color: #ffffff;
  font-family: var(--font-main);
  padding-top: 2.5rem;
}

/* =====================================================
   INNER CONTAINER
   ===================================================== */

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* =====================================================
   AUTHORITY STRIP
   ===================================================== */

.footer-authority {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-authority p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #dce6ee;
  margin: 0;
}

/* =====================================================
   TOP ROW — ADDRESS + SOCIAL
   ===================================================== */

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: center;
}

.footer-address h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-address p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.15rem 0;
  color: #e4ebf1;
}

/* =====================================================
   SOCIAL ICONS — FIXED COLORS
   ===================================================== */

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* FORCE LinkedIn + Facebook to white */
.footer-social a[aria-label="LinkedIn"] svg path,
.footer-social a[aria-label="Facebook"] svg path {
  fill: #ffffff !important;
}

/* Keep Instagram stroke correct */
.footer-social a[aria-label="Instagram"] svg path {
  stroke: #ffffff;
}

.footer-social a:hover {
  opacity: 0.75;
}

/* =====================================================
   DIVIDER
   ===================================================== */

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 2rem;
}

/* =====================================================
   GRID
   ===================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
}

.footer-grid h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.4px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  font-size: 0.9rem;
  color: #d5e0e8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-grid a:hover {
  color: #ffffff;
}

/* =====================================================
   UTILITY ROW — FIXED PROPERLY
   ===================================================== */

.footer-utility {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-utility-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* FIX BLUE LINKS */
.footer-utility a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 2rem;
  transition: opacity 0.2s ease;
}

.footer-utility a:last-child {
  margin-right: 0;
}

.footer-utility a:hover {
  opacity: 0.7;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.footer-phone svg {
  width: 16px;
  height: 16px;
}

/* =====================================================
   LEGAL STRIP
   ===================================================== */

.footer-legal {
  background: rgba(0,0,0,0.25);
  padding: 1.1rem 0;
}

.footer-legal-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal p {
  font-size: 0.85rem;
  margin: 0;
  color: #e4ebf1;
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.footer-legal-links a {
  color: #e4ebf1;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
  opacity: 0.75;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-utility-inner,
  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 500px) {

  .footer-grid {
    grid-template-columns: 1fr;
  }

}
