/* ==========================================================================
   SARANS HOSPITALS - UNIVERSAL MODERN FOOTER STYLESHEET
   Clean BEM Semantic Architecture - No Elementor Wrapper Bloat
   Universal Screen Ratio Support (360px - 2560px+)
   Interactive Micro-Animations
   ========================================================================== */

:root {
  --footer-lime: #a4d553;
  --footer-lime-dark: #8cb83a;
  --footer-lime-light: #c2ea7e;
  --footer-lime-subtle: #f4faeb;
  --footer-teal-dark: #097066;
  --footer-teal: #0BA89C;
  --footer-teal-light: #10705c;
  --footer-teal-subtle: rgba(11, 168, 156, 0.15);
  --footer-surface: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.18);
  --footer-text-light: #ffffff;
  --footer-text-muted: rgba(255, 255, 255, 0.9);
  --footer-text-dark: #2d3748;
}

/* Base resets for modern footer */
.sarans-footer-wrapper {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.sarans-footer-wrapper * {
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TIER 1: LIME GREEN QUICK-CONNECT RIBBON
   ========================================================================== */
.sarans-footer-ribbon {
  background: linear-gradient(135deg, #9fd34c 0%, #a4d553 50%, #b4e063 100%);
  color: #0b2e29;
  padding: 18px 0;
  border-bottom: 2px solid rgba(0, 77, 70, 0.08);
}

.sarans-footer-ribbon__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sarans-footer-ribbon__info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sarans-footer-ribbon__icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 12px rgba(0, 77, 70, 0.12);
  flex-shrink: 0;
}

.sarans-footer-ribbon__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #082924;
  margin: 0;
  line-height: 1.25;
}

.sarans-footer-ribbon__desc {
  font-size: 0.84rem;
  color: rgba(8, 41, 36, 0.85);
  margin: 2px 0 0;
  font-weight: 500;
}

/* Actions in Ribbon */
.sarans-footer-ribbon__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* WhatsApp CTA Button with Breathing Radar Pulse */
@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 168, 156, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(11, 168, 156, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 168, 156, 0);
  }
}

.sarans-footer-ribbon__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0BA89C;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
  animation: ctaPulse 2.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.sarans-footer-ribbon__btn:hover {
  background: #088c81;
  transform: translateY(-2px);
  color: #ffffff;
}

.sarans-footer-ribbon__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #082924;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sarans-footer-ribbon__phone:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   TIER 2: PRIMARY BRAND TEAL MAIN HOSPITAL DIRECTORY
   ========================================================================== */
.sarans-footer-main {
  background: linear-gradient(145deg, rgba(11, 168, 156, 0.94) 0%, rgba(13, 146, 134, 0.93) 45%, rgba(16, 112, 92, 0.96) 100%),
              url('/assets/images/portrait-of-multi-cultural-surgical-team-standing.jpg') center/cover no-repeat;
  color: var(--footer-text-light);
  padding: 65px 0 55px;
  position: relative;
}

.sarans-footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 213, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sarans-footer-main__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
  gap: 36px;
  position: relative;
  z-index: 2;
}

/* Column Headings */
.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.2px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--footer-lime);
  border-radius: 2px;
}

/* Col 1: Identity & Opening Hours */
.footer-brand-summary {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--footer-text-muted);
  margin-bottom: 20px;
}

.footer-hours-card {
  background: rgba(8, 86, 78, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(4, 52, 47, 0.28);
}

.footer-hours-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--footer-lime);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer-hours-label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.footer-hours-val {
  font-weight: 700;
  color: #ffffff;
}

.footer-hours-val.highlight,
.footer-hours-badge {
  background: rgba(164, 213, 83, 0.18);
  color: #c2ea7e;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  border: 1px solid rgba(164, 213, 83, 0.35);
  font-weight: 600;
}

.footer-hours-badge--muted {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* Col 2: Hospital Branches */
.footer-branches-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.footer-branch-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.22s ease, color 0.22s ease;
  text-decoration: none;
}

.footer-branch-item:hover {
  transform: translateX(5px);
  color: var(--footer-lime);
}

.footer-branch-item i {
  color: var(--footer-lime);
  font-size: 0.82rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-branch-item strong {
  display: block;
  font-weight: 600;
  color: #ffffff;
}

.footer-branch-item span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Col 3: Quick Navigation Links */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.22s ease, color 0.22s ease;
}

.footer-nav-link:hover {
  transform: translateX(5px);
  color: var(--footer-lime);
}

.footer-nav-link i {
  font-size: 0.7rem;
  color: var(--footer-lime);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-nav-link:hover i {
  opacity: 1;
}

/* Col 4: Contact & Social */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.footer-contact-item i {
  color: var(--footer-lime);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--footer-lime);
}

/* Social Media Circles (Interactive Float & Scale) */
.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, color 0.25s ease;
}

.footer-social-btn:hover {
  transform: translateY(-4px) scale(1.12);
  background: var(--footer-lime);
  color: #082924;
  border-color: var(--footer-lime);
  box-shadow: 0 6px 16px rgba(164, 213, 83, 0.35);
}

/* ==========================================================================
   TIER 3: CRISP WHITE SUBFOOTER BAR
   ========================================================================== */
.sarans-footer-bottom {
  background: #ffffff;
  border-top: 1px solid rgba(0, 122, 112, 0.12);
  padding: 18px 0;
  color: var(--footer-text-dark);
}

.sarans-footer-bottom__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Left: Brand Logo */
.footer-bottom-brand {
  display: flex;
  align-items: center;
}

.footer-bottom-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Center: Copyright & Legal Disclaimer */
.footer-bottom-center {
  font-size: 0.84rem;
  color: #5a6a68;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-bottom-center a,
.footer-bottom-center button,
.footer-disclaimer-trigger {
  color: var(--footer-teal-light);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.2s ease;
}

.footer-bottom-center a:hover,
.footer-bottom-center button:hover,
.footer-disclaimer-trigger:hover {
  color: var(--footer-teal-dark);
  text-decoration: underline;
}

.footer-divider-dot {
  color: #cbd5e1;
}

/* Right: Developed by: Madox Labs (with subtle metallic shimmer) */
@keyframes madoxShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.footer-developer-credit {
  font-size: 0.84rem;
  color: #5a6a68;
  font-weight: 500;
}

.footer-developer-credit strong,
.developer-brand {
  background: linear-gradient(90deg, #007a70 0%, #7db926 50%, #007a70 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.2px;
  animation: madoxShimmer 5s infinite linear;
  display: inline-block;
}

/* ==========================================================================
   MULTI-SCREEN RATIO RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large Tablets & Medium Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .sarans-footer-main__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .sarans-footer-ribbon {
    padding: 16px 0;
  }

  .sarans-footer-ribbon__layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .sarans-footer-ribbon__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sarans-footer-main {
    padding: 45px 0 40px;
  }

  .sarans-footer-main__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sarans-footer-bottom__layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .footer-container {
    padding: 0 16px;
  }

  .sarans-footer-ribbon__btn,
  .sarans-footer-ribbon__phone {
    width: 100%;
    justify-content: center;
  }

  .footer-hours-card {
    padding: 14px;
  }

  .footer-bottom-logo {
    height: 32px;
  }
}
