/**
 * Shalom Hospital Theme — Footer
 * FILE: footer.css
 */

/* ============================================================
   FOOTER WRAPPER
============================================================ */
.sh-footer {
  background-color: #111827;
  color: var(--sh-white);
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient accent */
.sh-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sh-gradient-primary);
}

/* Background pattern */
.sh-footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 20%, rgba(15, 118, 110, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   FOOTER TOP (main grid section)
============================================================ */
.sh-footer__top {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 640px) {
  .sh-footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .sh-footer__top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem 3rem;
  }
}

/* ============================================================
   FOOTER BRAND COL
============================================================ */
.sh-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sh-footer__logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.sh-footer__logo img {
  max-height: 2.75rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.sh-footer__site-name {
  font-family: var(--sh-font-heading);
  font-weight: var(--sh-font-extrabold);
  font-size: 1.375rem;
  color: var(--sh-white);
  line-height: 1;
  margin-bottom: 0.25rem;
  text-decoration: none;
  display: inline-block;
}

.sh-footer__site-tagline-sm {
  font-size: var(--sh-text-xs);
  color: var(--sh-secondary);
  font-weight: var(--sh-font-semibold);
  letter-spacing: var(--sh-tracking-wider);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.sh-footer__tagline {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--sh-text-sm);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 320px;
}

/* Accreditation badges */
.sh-footer__accreditations {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.sh-footer__accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--sh-radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: var(--sh-font-semibold);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Social icons */
.sh-footer__social {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.sh-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background-color var(--sh-transition-base), color var(--sh-transition-base), border-color var(--sh-transition-base), transform var(--sh-transition-base);
  font-size: 0;
}

.sh-footer__social a svg {
  width: 1rem;
  height: 1rem;
}

.sh-footer__social a:hover {
  background-color: var(--sh-primary);
  color: var(--sh-white);
  border-color: var(--sh-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   FOOTER COLUMNS (links)
============================================================ */
.sh-footer__col {
  display: flex;
  flex-direction: column;
}

.sh-footer__col-title {
  font-family: var(--sh-font-heading);
  font-weight: var(--sh-font-semibold);
  font-size: 0.8125rem;
  color: var(--sh-white);
  text-transform: uppercase;
  letter-spacing: var(--sh-tracking-widest);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.sh-footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--sh-gradient-primary);
  border-radius: var(--sh-radius-full);
}

.sh-footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sh-footer__col-list li {
  line-height: 1.3;
}

.sh-footer__col-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--sh-text-sm);
  text-decoration: none;
  transition: color var(--sh-transition-fast), gap var(--sh-transition-fast);
}

.sh-footer__col-list a::before {
  content: '→';
  font-size: 0.6875rem;
  color: var(--sh-primary-400);
  transition: color var(--sh-transition-fast), transform var(--sh-transition-fast);
  display: inline-block;
}

.sh-footer__col-list a:hover {
  color: var(--sh-white);
  gap: 0.75rem;
  text-decoration: none;
}

.sh-footer__col-list a:hover::before {
  color: var(--sh-secondary);
  transform: translateX(2px);
}

/* ============================================================
   FOOTER CONTACT COL
============================================================ */
.sh-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sh-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
}

.sh-footer__contact-item:last-child {
  margin-bottom: 0;
}

.sh-footer__contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--sh-radius-md);
  background: var(--sh-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-white);
  flex-shrink: 0;
  font-size: 0.9375rem;
}

.sh-footer__contact-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.sh-footer__contact-body {
  display: flex;
  flex-direction: column;
}

.sh-footer__contact-label {
  font-size: 0.6875rem;
  font-weight: var(--sh-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--sh-tracking-wider);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.125rem;
}

.sh-footer__contact-value {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--sh-text-sm);
  font-weight: var(--sh-font-medium);
  line-height: 1.4;
}

.sh-footer__contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--sh-transition-fast);
}

.sh-footer__contact-value a:hover {
  color: var(--sh-secondary);
  text-decoration: none;
}

/* Hours badge */
.sh-footer__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--sh-radius-full);
  padding: 0.375rem 0.875rem;
  font-size: var(--sh-text-xs);
  font-weight: var(--sh-font-semibold);
  color: #4ade80;
  margin-top: 0.25rem;
}

.sh-footer__hours::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #4ade80;
  border-radius: 50%;
  animation: sh-pulse 2s ease-in-out infinite;
}

/* ============================================================
   FOOTER NEWSLETTER
============================================================ */
.sh-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sh-footer__newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--sh-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sh-footer__newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.07);
  border: none;
  padding: 0.75rem 1rem;
  color: var(--sh-white);
  font-size: var(--sh-text-sm);
  font-family: var(--sh-font-body);
  outline: none;
  min-width: 0;
}

.sh-footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.sh-footer__newsletter-input:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.sh-footer__newsletter-btn {
  background: var(--sh-gradient-primary);
  color: var(--sh-white);
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--sh-font-heading);
  font-weight: var(--sh-font-semibold);
  font-size: var(--sh-text-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--sh-transition-fast);
}

.sh-footer__newsletter-btn:hover {
  opacity: 0.88;
}

.sh-footer__newsletter-note {
  font-size: var(--sh-text-xs);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}

/* ============================================================
   FOOTER DIVIDER
============================================================ */
.sh-footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER BOTTOM
============================================================ */
.sh-footer__bottom {
  position: relative;
  z-index: 1;
  padding: 1.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .sh-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem;
  }
}

.sh-footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.sh-footer__copyright a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--sh-transition-fast);
}

.sh-footer__copyright a:hover {
  color: var(--sh-secondary);
  text-decoration: none;
}

.sh-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sh-footer__legal-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--sh-transition-fast);
  white-space: nowrap;
}

.sh-footer__legal-links a:hover {
  color: var(--sh-white);
  text-decoration: none;
}

.sh-footer__legal-links span {
  color: rgba(255, 255, 255, 0.15);
}

/* Back to top in footer bottom */
.sh-footer__back-to-top {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sh-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-white);
  border: none;
  cursor: pointer;
  transition: transform var(--sh-transition-base), box-shadow var(--sh-transition-base);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.40);
}

.sh-footer__back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.50);
}

.sh-footer__back-to-top svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ============================================================
   FOOTER MAP STRIP (optional)
============================================================ */
.sh-footer__map-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.sh-footer__map-strip iframe {
  width: 100%;
  height: 240px;
  display: block;
  filter: invert(90%) hue-rotate(180deg);
  opacity: 0.8;
  border: none;
}

/* ============================================================
   SPECIALITY QUICK LINKS STRIP (between main and bottom)
============================================================ */
.sh-footer__specialities-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  position: relative;
  z-index: 1;
}

.sh-footer__specialities-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sh-footer__specialities-strip-label {
  font-size: var(--sh-text-xs);
  font-weight: var(--sh-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--sh-tracking-wider);
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  margin-right: 0.5rem;
}

.sh-footer__speciality-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--sh-radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--sh-text-xs);
  font-weight: var(--sh-font-medium);
  text-decoration: none;
  transition: all var(--sh-transition-fast);
  white-space: nowrap;
}

.sh-footer__speciality-link:hover {
  background-color: var(--sh-primary);
  border-color: var(--sh-primary);
  color: var(--sh-white);
  text-decoration: none;
}
