/*
 * Copyright (c) 2026 Logan Medical Group LLC. All rights reserved.
 *
 * Contributors
 * Tyler Morgan <git@tylerjm.org>
 */

footer {
  background-color: var(--skin-pink-darkest-70);
  border-top: solid 1px var(--skin-pink-lighter-60);
  backdrop-filter: blur(15px);
  color: var(--strawberry-white-lighter);
  width: 100%;
  margin: 30px auto 0px auto;
  box-shadow: 0px 0px 8px var(--skin-pink-light);
}

.inner-footer {
  padding: 20px;
}

footer ul {
  list-style: none;
  height: 100%;
}

footer li {
  padding-top: 3px;
  padding-bottom: 3px;
}

.footer-hours li:first-child {
  padding-top: 0px;
}

.footer-hours li:last-child {
  padding-bottom: 0px;
}

.footer-hours {
  color: var(--strawberry-white-lighter-80) !important;
}

.footer-navigation {
  min-width: 200px;
}

.footer-hours a {
  display: block;
  min-width: 100px;
  max-width: 180px;
}

@media (min-width: 1250px) {
  footer {
    min-height: 140px;
  }
  .footer-sections {
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    column-gap: 20px;
  }
  .footer-hours-container {
    max-width: 160px;
  }
  .footer-logo {
    width: fit-content !important;
    height: fit-content !important;
    border-radius: 25px;
    padding-right: 50px;
    padding-bottom: 50px;
  }
  .disclaimer {
    text-align: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: -10px;
  }

  .disclaimer ul {
    display: flex;
    justify-content: space-around;
    column-gap: 15px;
  }

  .footer-dropdown-content {
    visibility: hidden;
    overflow-y: hidden;
    height: 0;
    font-size: 0.875rem;
    padding: 0 5px;
    transition: all 0.2s ease;
  }

  .footer-dropdown-content.open {
    visibility: visible;
    overflow-y: auto;
    height: fit-content;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .footer-dropdown-content li a {
    color: var(--strawberry-white-lighter-80);
  }

  .footer-dropdown {
    border: solid 1px var(--strawberry-white-lighter-80);
    border-radius: 20px;
    padding: 5px !important;
    margin-bottom: 5px;
    margin-top: 3px;
    margin-left: 0 !important;
    max-width: 180px !important;
  }
}

footer ul a {
  text-decoration: none;
  color: var(--strawberry-white-lighter);
  transition: all 0.2s ease;
}

@media (hover: hover) {
  footer ul a:hover {
    color: var(--ice-black-dark);
  }
}

@media (hover: none) {
  footer ul a:active {
    color: var(--ice-black-dark);
  }
}

@media (max-width: 1250px) and (min-width: 768px) {
  footer {
    min-height: 132px;
  }
  .footer-sections {
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    row-gap: 25px;
    column-gap: 20px;
  }
  .footer-hours-container {
    max-width: 160px;
  }
  .footer-logo {
    width: fit-content !important;
    height: fit-content !important;
    border-radius: 25px;
    padding-right: 50px;
    padding-bottom: 50px;
  }
  .footer-dropdown-content {
    visibility: hidden;
    overflow-y: hidden;
    height: 0;
    font-size: 0.875rem;
    padding: 0 5px !important;
    transition: all 0.2s ease;
  }
  .footer-dropdown-content.open {
    visibility: visible;
    overflow-y: auto;
    height: fit-content;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .footer-dropdown-content li a {
    color: var(--strawberry-white-lighter-80);
  }
  .footer-dropdown {
    border: solid 1px var(--strawberry-white-lighter-80);
    border-radius: 20px;
    padding: 5px !important;
    margin-bottom: 5px;
    margin-top: 3px;
    margin-left: 0 !important;
    max-width: 180px !important;
  }
}

@media (max-width: 768px) and (min-width: 525px) {
  footer {
    min-height: 120px;
  }
  .footer-sections {
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    row-gap: 25px;
    column-gap: 20px;
  }
  .footer-hours-container {
    max-width: 160px;
  }
  .footer-logo {
    width: fit-content !important;
    height: fit-content !important;
    border-radius: 25px;
    padding-right: 50px;
    padding-bottom: 50px;
  }
  .footer-dropdown-content {
    visibility: hidden;
    overflow-y: hidden;
    height: 0;
    font-size: 0.875rem;
    padding: 0 5px !important;
    transition: all 0.2s ease;
  }

  .footer-dropdown-content.open {
    visibility: visible;
    overflow-y: auto;
    height: fit-content;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .footer-dropdown-content li a {
    color: var(--strawberry-white-lighter-80);
  }

  .footer-dropdown {
    border: solid 1px var(--strawberry-white-lighter-80);
    border-radius: 20px;
    padding: 5px !important;
    margin-bottom: 5px;
    margin-top: 3px;
    margin-left: 0 !important;
    max-width: 180px !important;
  }
}

@media (max-width: 524px) {
  footer {
    min-height: 136px;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content !important;
    height: fit-content !important;
    margin: 0 auto;
    padding: 10px;
  }
  footer ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    justify-content: center;
  }
  footer li {
    text-align: center;
  }
  .find-us-on {
    margin-top: 20px;
    text-align: center;
  }
  .remove-top-20-footer {
    margin-top: 0px;
  }

  .footer-start-p {
    text-align: center;
    margin-top: 20px;
  }

  .footer-button {
    display: block;
    margin-right: auto;
    margin-left: auto;
  }

  .footer-p {
    text-align: center;
  }

  .footer-sections nav {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-hours-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 225px;
  }

  .footer-special-hours {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-dropdown-content {
    font-size: 0.875rem;
    margin-left: 0px;
    visibility: hidden;
    overflow-y: hidden;
    transition: all 0.2s ease;
    height: 0;
    margin-top: 0px;
  }

  .footer-dropdown-content.open {
    visibility: visible;
    overflow-y: auto;
    height: fit-content;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .footer-dropdown-content li a {
    color: var(--strawberry-white-lighter-80);
  }

  .footer-dropdown {
    border: solid 1px var(--strawberry-white-lighter-80);
    border-radius: 20px;
    width: 100%;
    padding: 5px !important;
    margin-bottom: 5px;
    margin-top: 3px;
    max-width: 180px !important;
  }
}

.footer-p {
  padding-top: 3px;
  padding-bottom: 3px;
}

.disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.flex {
  display: flex;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.col-gap-10 {
  column-gap: 10px;
}

.white-link {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  border-style: none;
  background-color: transparent;
  color: var(--strawberry-white-lighter);
  text-decoration: none;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .white-link:hover {
    color: var(--ice-black-dark);
  }
}

@media (hover: none) {
  .white-link:active {
    color: var(--ice-black-dark);
  }
}

.find-us-on {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.disclaimer-link {
  font-family: "Jost", sans-serif;
  border-style: none;
  background-color: transparent;
  color: var(--strawberry-white-lighter);
  text-decoration: none;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .disclaimer-link:hover {
    color: var(--ice-black-dark);
  }
}

@media (hover: none) {
  .disclaimer-link:active {
    color: var(--ice-black-dark);
  }
}

@media (hover: hover) {
  .social-media-icon {
    filter: opacity(80%);
    transition: all 0.2s ease;
  }
  .social-media-icon:hover {
    filter: opacity(100%);
    transform: scale(1.1);
  }
}

@media (hover: none) {
  .social-media-icon:active {
    transform: scale(1.1);
  }
}

.lunch-closed {
  margin-top: 5px;
}

@media (min-width: 525px) {
  .footer-nav-list {
    max-height: 340px !important;
    overflow-y: auto;
    justify-content: start;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .footer-nav-no-nest {
    margin-left: 11px !important;
  }
  .footer-dropdown-toggle {
    position: relative;
    font-family: "Jost", sans-serif;
    text-align: left;
    font-weight: normal;
    font-size: 1rem;
    color: var(--strawberry-white-lighter);
    border-radius: 25px;
    width: 100%;
    padding: 0 9px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: transparent;
    cursor: pointer;
    border-style: none;
    text-transform: uppercase;
  }
  .footer-dropdown-x-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    border-radius: 3px;
    background-color: var(--strawberry-white-lighter);
    transition: all 0.2s ease;
  }
  .footer-dropdown.open .footer-dropdown-x-arrow {
    transform: translateY(-50%) rotate(45deg);
  }
  .footer-dropdown.open .footer-dropdown-y-arrow {
    transform: translateY(-50%) rotate(135deg);
  }
  .footer-dropdown-y-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(90deg);
    width: 12px;
    height: 2px;
    border-radius: 3px;
    background-color: var(--strawberry-white-lighter);
    transition: all 0.2s ease;
  }
}

@media (max-width: 524px) {
  .footer-nav-list {
    max-height: 440px !important;
    overflow-y: auto;
    width: calc(100% - 30px);
    max-width: 300px;
    justify-content: start;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .footer-dropdown-toggle {
    position: relative;
    font-family: "Jost", sans-serif;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
    color: var(--strawberry-white-lighter);
    width: 100%;
    border-radius: 25px;
    padding: 0 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: transparent;
    cursor: pointer;
    border-style: none;
    text-transform: uppercase;
  }
  .footer-dropdown-arrow {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
  }
  .footer-dropdown-x-arrow {
    display: inline-block;
    width: 12px;
    height: 2px;
    border-radius: 3px;
    transform: translate(10px, -5px);
    background-color: var(--strawberry-white-lighter);
    transition: all 0.2s ease;
  }
  .footer-dropdown.open .footer-dropdown-x-arrow {
    transform: translate(10px, -5px) rotate(45deg);
  }
  .footer-dropdown.open .footer-dropdown-y-arrow {
    transform: translate(-2px, -5px) rotate(135deg);
  }
  .footer-dropdown-y-arrow {
    display: inline-block;
    transform: translate(-2px, -5px) rotate(90deg);
    width: 12px;
    height: 2px;
    border-radius: 3px;
    background-color: var(--strawberry-white-lighter);
    transition: all 0.2s ease;
  }
}

.footer-dropdown-content li {
  width: 100% !important;
  padding: 0 !important;
}

.footer-dropdown-content a {
  display: block;
  width: 100% !important;
  margin-right: auto;
  padding: 4px 10px !important;
  border-radius: 25px;
}

@media (hover: hover) {
  .footer-dropdown-content a:hover {
    background-color: light-dark(
      var(--strawberry-white-lighter-20),
      var(--ice-black-darker-25)
    );
    color: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .footer-dropdown-content a:active {
    background-color: light-dark(
      var(--strawberry-white-lighter-20),
      var(--ice-black-darker-25)
    );
    color: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

.external-footer-svg {
  margin-left: 2px;
  transform: translateY(2px);
  fill: var(--strawberry-white-lighter-80);
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .footer-dropdown-content a:hover .external-footer-svg {
    fill: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .footer-dropdown-content a:active .external-footer-svg {
    fill: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

.skip-footer {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 10px 20px;
  background-color: var(--skin-pink-darker-65);
  backdrop-filter: blur(5px);
  border: solid 1px var(--strawberry-white-lighter);
  color: var(--strawberry-white-lighter);
  text-decoration: none;
  box-shadow: 0 0 20px var(--ice-black-darker-50);
  opacity: 0;
  text-transform: uppercase;
  border-radius: 25px;
  transition: all 0.2s ease;
}

.skip-footer:focus {
  bottom: 5px;
  opacity: 1;
}

.footer-hours-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-hours-container li {
  display: flex;
  justify-content: space-between !important;
  width: 100%;
  align-items: center;
}

.footer-time {
  text-align: right;
}
