.olympus-footer {
  padding: 30px 10px;
}

.olympus-footer.footer-landing-page {
  background-color: var(--wp--preset--color--primary);
}

.olympus-footer.background-color-primary {
  background: var(--wp--preset--color--primary);
}
.olympus-footer.background-color-secondary {
  background: var(--wp--preset--color--secondary);
}
.olympus-footer.background-color-white {
  background: var(--wp--preset--color--base);
}
.olympus-footer.background-color-black {
  background: var(--wp--preset--color--contrast);
}

.olympus-footer.text-color-white {
  color: var(--wp--preset--color--base);
}
.olympus-footer.text-color-black {
  color: var(--wp--preset--color--contrast);
}

.olympus-footer-wrapper {
  margin: auto;
  max-width: var(--wp--style--global--wide-size);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.olympus-footer-col {
  width: 25%;
  padding: 0 10px;
}

.olympus-footer-logo {
  margin: 10px 0 40px;
  display: block;
}

.olympus-footer-logo > img {
  width: 150px;
  object-fit: contain;
  display: block;
}

.olympus-footer-icon-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
  line-height: 1;
  color: inherit;
  margin: 20px 0;
}

.olympus-footer-icon-link:hover {
  color: inherit;
}

.olympus-footer-icon-link .olympus-footer-link-icon svg {
  height: 20px;
  width: auto;
  display: block;
  color: inherit;
}
.olympus-footer-icon-link .olympus-footer-link-icon svg path {
  color: var(--wp--preset--color--primary-contrast);
}
.footer-landing-bottom {
  color: var(--wp--preset--color--primary-contrast);
}
.olympus-footer-socials {
  display: flex;
  column-gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.olympus-footer-link {
  display: block;
  margin: 14px 0;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}

.olympus-footer-link:hover {
  color: inherit;
}

.olympus-footer-link:first-child {
  font-size: 1.1rem;
  margin-top: 30px;
}

@media (max-width: 980px) {
  .olympus-footer-col {
    width: 33%;
  }
}

@media (max-width: 780px) {
  .olympus-footer-col {
    width: 50%;
  }
}

@media (max-width: 500px) {
  .olympus-footer-col {
    width: 100%;
  }
}

/* --- Landing Page Footer Styles --- */

.olympus-footer-landing-wrapper {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Row 1: Top */
.footer-landing-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
}

.footer-landing-logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
}

.footer-landing-contact {
  font-weight: bold;
  font-size: 1.1rem;
}

.footer-phone-link {
  text-decoration: none;
  color: inherit;
}

.footer-landing-cta .wp-block-button__link {
  /* Ensure button inherits theme styles properly */
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--primary);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
}
.footer-landing-top {
  border-bottom: none;
}
/* Row 2: Middle */
.footer-landing-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-landing-row.footer-landing-middle {
  justify-content: start;
}

.footer-landing-services {
  color: var(--wp--preset--color--primary-contrast);
}
.footer-landing-services h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

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

.footer-landing-services ul li {
  margin-bottom: 8px;
}

.footer-landing-services ul li a {
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-landing-services ul li a:hover {
  opacity: 1;
}

/* Row 3: Bottom */
.footer-landing-bottom {
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 20px;
}

.footer-landing-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-landing-bottom a:hover {
  text-decoration: underline;
}

.footer-landing-socials .olympus-footer-icon-link {
  margin: 0;
}
.footer-landing-contact-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}
/* Responsive */
@media (max-width: 768px) {
  .footer-landing-top {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-landing-middle {
    flex-direction: column-reverse; /* Socials below services on mobile usually looks better or keep as is */
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  /* If we want socials on top of services in middle row on mobile: */
  .footer-landing-middle {
    flex-direction: column;
  }

  .footer-landing-bottom {
    text-align: center;
  }

  .footer-landing-logo {
    margin-bottom: 10px;
  }
}
