/* ============================================
   Site Footer
   ============================================ */

.site-footer {
  background-color: var(--color-navy);
  position: relative;
  padding: 4em 0 0;
}

/* --- Footer Content --- */

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 2em 0;
}

.footer-col {
  padding: 0 1em;
}

.footer-col--contact {
  width: 30%;
  padding-left: 1em;
  padding-right: 3em;
}

.footer-col--brand {
  width: 35%;
  text-align: center;
}

.footer-col--newsletter {
  width: 35%;
  padding-left: 3em;
  padding-right: 1em;
}

.footer-col--links {
  width: 35%;
  padding-left: 3em;
  padding-right: 1em;
}

/* --- Footer Headings --- */

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 16px;
}

/* --- Contact Info (icon-box style) --- */

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.6;
}

.contact-item .icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-pink);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.footer-col address {
  font-style: normal;
}

.contact-item a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Footer Brand --- */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  height: 72px;
  width: auto;
  filter: none;
}

.footer-logo .logo-icon {
  font-size: 32px;
}

.footer-tagline {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 18px;
}

/* --- Social Icons --- */

.social-icons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Hide template-era social networks until real profile URLs are available. */
.social-icon[href="#"] {
  display: none;
}

/* --- Newsletter --- */

.newsletter-text {
  color: var(--color-white);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  background-color: var(--color-white);
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 12px 20px;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: none;
}

/* --- Crawlable service links --- */

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
}

.footer-links a:hover {
  color: var(--color-accent-yellow);
}

/* --- Footer Bottom Bar --- */

.footer-bottom {
  border-top: 1px solid var(--color-white);
  margin-top: 2em;
  padding: 2em 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
  .site-footer {
    padding-top: 3em;
  }

  .footer-col--contact,
  .footer-col--brand,
  .footer-col--newsletter,
  .footer-col--links {
    width: 100%;
    padding: 1em 2em;
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 2.5em;
  }

  .footer-bottom {
    margin-top: 0;
  }

  .footer-bottom p {
    font-size: 11px;
    line-height: 1.4;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input {
    border-radius: var(--border-radius);
  }

  .newsletter-form button {
    border-radius: var(--border-radius);
  }

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