/* ==========================================================================
   Mind & Soul Footer
   Premium therapeutic footer / Flexbox only / No clamp / No CSS Grid
   ========================================================================== */

   .footer {
    --ms-primary: #4f9283;
    --ms-primary-dark: #347d68;
    --ms-primary-light: #4f9a82;
    --ms-primary-soft: rgba(79, 146, 131, 0.12);
    --ms-primary-softer: rgba(79, 146, 131, 0.07);
  
    --ms-purple: #6E4FB3;
    --ms-purple-dark: #5A3D96;
    --ms-purple-soft: rgba(110, 79, 179, 0.10);
  
    --ms-text: #243632;
    --ms-muted: #63736f;
    --ms-bg: #f7fbf9;
    --ms-white: #ffffff;
    --ms-line: rgba(79, 146, 131, 0.18);
  
    --ms-radius-small: 12px;
    --ms-radius-medium: 20px;
    --ms-radius-large: 32px;
  
    --ms-transition-fast: 180ms ease;
    --ms-transition: 280ms cubic-bezier(.22, 1, .36, 1);
    --ms-transition-slow: 520ms cubic-bezier(.22, 1, .36, 1);
  
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 96px 0 0;
    color: var(--ms-text);
    background:
      radial-gradient(circle at 12% 18%, rgba(79, 146, 131, 0.14), transparent 31%),
      radial-gradient(circle at 86% 12%, rgba(110, 79, 179, 0.08), transparent 29%),
      radial-gradient(circle at 74% 86%, rgba(79, 154, 130, 0.10), transparent 30%),
      linear-gradient(180deg, #f7fbf9 0%, #ffffff 100%);
  }
  
  .footer::before,
  .footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
  }
  
  .footer::before {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -210px;
    background: rgba(79, 146, 131, 0.08);
    filter: blur(2px);
    animation: msFooterFloat 18s ease-in-out infinite alternate;
  }
  
  .footer::after {
    width: 340px;
    height: 340px;
    right: -150px;
    top: 70px;
    background: rgba(110, 79, 179, 0.055);
    animation: msFooterFloat 22s ease-in-out infinite alternate-reverse;
  }
  
  .footer-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 56px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  .footer-section {
    position: relative;
    min-width: 0;
    animation: msFooterFadeUp 720ms cubic-bezier(.22, 1, .36, 1) both;
  }
  
  .footer-section:nth-child(1) {
    animation-delay: 80ms;
  }
  
  .footer-section:nth-child(2) {
    animation-delay: 150ms;
  }
  
  .footer-section:nth-child(3) {
    animation-delay: 220ms;
  }
  
  .footer-section:nth-child(4) {
    animation-delay: 290ms;
  }
  
  /* About */
  
  .footer-section.about {
    flex: 1 1 360px;
    max-width: 440px;
  }
  
  .footer .logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 180px;
    max-width: 100%;
    margin: 0 0 28px;
    text-decoration: none;
    border-radius: var(--ms-radius-small);
    transition:
      transform var(--ms-transition),
      opacity var(--ms-transition-fast),
      filter var(--ms-transition);
  }
  
  .footer .logo::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -12px;
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 154, 130, 0.55), rgba(110, 79, 179, 0.18), transparent);
    opacity: 0.85;
    transform: scaleX(0.78);
    transform-origin: left center;
    transition:
      transform var(--ms-transition),
      opacity var(--ms-transition);
  }
  
  .footer .logo:hover {
    transform: translateY(-2px);
    opacity: 0.94;
  }
  
  .footer .logo:hover::after {
    transform: scaleX(1);
    opacity: 1;
  }
  
  .footer .logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .footer-section.about .brief-about {
    max-width: 39rem;
    margin: 0;
    color: var(--ms-muted);
    font-size: 1rem;
    line-height: 1.82;
    letter-spacing: 0.005em;
  }
  
  /* Shared headings */
  
  .footer-section h3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--ms-text);
    font-size: 0.86rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.105em;
    text-transform: uppercase;
  }
  
  .footer-section h3::before {
    content: "";
    display: inline-flex;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f9a82 0%, #347d68 100%);
    opacity: 0.9;
  }
  
  /* Contact */
  
  .footer-section.contact-details {
    flex: 0 1 210px;
  }
  
  .footer-section.contact-details p {
    margin: 0 0 13px;
    color: var(--ms-muted);
    font-size: 0.96rem;
    line-height: 1.55;
  }
  
  .footer-section.contact-details p:last-child {
    margin-bottom: 0;
  }
  
  /* Programs */
  
  .footer-section.programs {
    flex: 0 1 275px;
  }
  
  .footer-section.biografiko {
    flex: 0 1 160px;
  }

  .footer-section.programs ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .footer-section.programs li {
    margin: 0;
    padding: 0;
  }

  .footer-section.biografiko ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .footer-section.biografiko li {
    margin: 0;
    padding: 0;
  }
  
  /* Links */
  
  .footer a {
    color: var(--ms-muted);
    text-decoration: none;
    transition:
      transform var(--ms-transition),
      opacity var(--ms-transition-fast),
      color 220ms ease,
      background 280ms ease,
      border-color 220ms ease,
      box-shadow 280ms ease;
  }
  
  .footer-section.contact-details a,
  .footer-section.programs a,
  .footer-section.biografiko a,
  .footer-bottom a {
    position: relative;
    display: inline;
    color: var(--ms-muted);
    background:
      linear-gradient(90deg, rgba(79, 146, 131, 0.34), rgba(110, 79, 179, 0.20))
      left bottom / 0 1px no-repeat;
    font-size: 0.96rem;
    line-height: 1.55;
  }
  
  .footer-section.contact-details a:hover,
  .footer-section.programs a:hover,
  .footer-section.biografiko a:hover,
  .footer-bottom a:hover {
    color: var(--ms-primary-dark);
    background-size: 100% 1px;
  }
  
  .footer-section.contact-details a:focus-visible,
  .footer-section.programs a:focus-visible,
  .footer-section.biografiko a:focus-visible,
  .footer-bottom a:focus-visible,
  .footer .logo:focus-visible,
  .book-appointment .appointment-box h2 a:focus-visible {
    outline: 3px solid rgba(79, 146, 131, 0.35);
    outline-offset: 4px;
    border-radius: 10px;
  }
  
  /* Appointment area */
  
  .footer-section.book-appointment {
    flex: 1 1 285px;
    max-width: 350px;
  }
  
  .book-appointment .appointment-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    padding: 8px 0 0 26px;
    text-align: left;
  }
  
  .book-appointment .appointment-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f9a82 0%, #347d68 100%);
    box-shadow: 0 0 0 7px rgba(79, 146, 131, 0.07);
  }
  
  .book-appointment .appointment-box::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -18px;
    right: -18px;
    top: -18px;
    bottom: -18px;
    border-radius: var(--ms-radius-large);
    background:
      radial-gradient(circle at 0% 10%, rgba(79, 146, 131, 0.12), transparent 34%),
      radial-gradient(circle at 100% 100%, rgba(110, 79, 179, 0.08), transparent 38%);
    opacity: 0.72;
    transition:
      opacity var(--ms-transition),
      transform var(--ms-transition);
  }
  
  .book-appointment .appointment-box:hover::after {
    opacity: 1;
    transform: translateY(-2px);
  }
  
  .book-appointment .appointment-box p {
    margin: 0;
    color: var(--ms-muted);
    font-size: 0.92rem;
    line-height: 1.65;
  }
  
  .book-appointment .appointment-box p:first-of-type {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ms-primary-dark);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  
  .book-appointment .appointment-box p:first-of-type i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ms-purple);
    font-size: 0.95rem;
    transition:
      transform var(--ms-transition),
      color 220ms ease,
      opacity 220ms ease;
  }
  
  .book-appointment .appointment-box:hover p:first-of-type i {
    transform: translateY(-1px) rotate(-5deg);
    color: var(--ms-purple-dark);
  }
  
  .book-appointment .appointment-box h2 {
    margin: 0;
    color: var(--ms-primary-dark);
    font-size: 1.8rem;
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  .book-appointment .appointment-box h2 a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border-radius: 999px;
    background:
      linear-gradient(90deg, rgba(79, 146, 131, 0.24), rgba(110, 79, 179, 0.13))
      left 100% / 0 2px no-repeat;
    transition:
      transform var(--ms-transition),
      color 220ms ease,
      background-size var(--ms-transition),
      opacity 220ms ease;
  }
  
  .book-appointment .appointment-box h2 a:hover {
    color: var(--ms-primary);
    background-size: 100% 2px;
    transform: translateY(-2px);
  }
  
  /* Footer bottom */
  
  .footer-bottom {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 72px auto 0;
    padding: 24px;
    color: rgba(36, 54, 50, 0.62);
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: center;
    letter-spacing: 0.025em;
  }
  
  .footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ms-line), rgba(110, 79, 179, 0.14), transparent);
  }
  
  /* Legacy socials, scoped only inside footer */
  
  .footer .footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  
  .footer .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    color: var(--ms-primary-dark);
    font-size: 1.05rem;
    border-radius: 999px;
    background: rgba(79, 146, 131, 0.08);
  }
  
  .footer .footer-socials a:hover {
    color: var(--ms-white);
    background: linear-gradient(135deg, #4f9a82 0%, #347d68 100%);
    transform: translateY(-2px);
  }
  
  /* Animations */
  
  @keyframes msFooterFadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes msFooterFloat {
    from {
      transform: translate3d(0, 0, 0) scale(1);
    }
  
    to {
      transform: translate3d(18px, -14px, 0) scale(1.04);
    }
  }
  
  /* Responsive */
  
  @media (max-width: 1180px) {
    .footer {
      padding-top: 88px;
    }
  
    .footer-container {
      max-width: 100%;
      gap: 48px;
    }
  
    .footer-section.about {
      flex-basis: 100%;
      max-width: 720px;
    }
  
    .footer-section.contact-details,
    .footer-section.programs {
      flex: 1 1 260px;
    }
  
    .footer-section.book-appointment {
      flex: 1 1 320px;
      max-width: 420px;
    }
  }
  
  @media (max-width: 991px) {
    .footer {
      padding-top: 78px;
    }
  
    .footer-container {
      flex-direction: column;
      align-items: flex-start;
      gap: 42px;
      padding-right: 28px;
      padding-left: 28px;
    }
  
    .footer-section.about,
    .footer-section.contact-details,
    .footer-section.programs,
    .footer-section.book-appointment {
      flex: 1 1 auto;
      width: 100%;
      max-width: 720px;
    }
  
    .footer-section.programs ul {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 11px 24px;
    }
  
    .footer-section.programs li {
      flex: 0 1 auto;
    }
  
    .footer-bottom {
      margin-top: 58px;
      padding-right: 28px;
      padding-left: 28px;
    }
  
    .footer-bottom::before {
      left: 28px;
      right: 28px;
    }
  }
  
  @media (max-width: 767px) {
    .footer {
      padding-top: 68px;
    }
  
    .footer-container {
      gap: 36px;
      padding-right: 22px;
      padding-left: 22px;
    }
  
    .footer .logo {
      width: 158px;
      margin-bottom: 24px;
    }
  
    .footer-section.about .brief-about {
      font-size: 0.96rem;
      line-height: 1.78;
    }
  
    .footer-section h3 {
      margin-bottom: 17px;
      font-size: 0.82rem;
    }
  
    .footer-section h3::before {
      width: 24px;
    }
  
    .footer-section.programs ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .footer-section.contact-details p,
    .footer-section.contact-details a,
    .footer-section.programs a {
      font-size: 0.95rem;
    }
  
    .book-appointment .appointment-box {
      padding-left: 22px;
    }
  
    .book-appointment .appointment-box::after {
      left: -12px;
      right: -12px;
      top: -14px;
      bottom: -14px;
    }
  
    .book-appointment .appointment-box h2 {
      font-size: 1.55rem;
    }
  
    .footer-bottom {
      margin-top: 48px;
      padding: 22px;
      font-size: 0.8rem;
    }
  
    .footer-bottom::before {
      left: 22px;
      right: 22px;
    }
  }
  
  @media (max-width: 480px) {
    .footer {
      padding-top: 58px;
    }
  
    .footer-container {
      gap: 32px;
      padding-right: 18px;
      padding-left: 18px;
    }
  
    .footer .logo {
      width: 148px;
    }
  
    .footer-section.about .brief-about {
      font-size: 0.94rem;
    }
  
    .book-appointment .appointment-box p:first-of-type {
      font-size: 0.74rem;
      letter-spacing: 0.1em;
    }
  
    .book-appointment .appointment-box h2 {
      font-size: 1.42rem;
    }
  
    .book-appointment .appointment-box p {
      font-size: 0.9rem;
    }
  
    .footer-bottom {
      padding-right: 18px;
      padding-left: 18px;
    }
  
    .footer-bottom::before {
      left: 18px;
      right: 18px;
    }
  }
  
  @media (max-width: 380px) {
    .footer {
      padding-top: 52px;
    }
  
    .footer-container {
      gap: 28px;
      padding-right: 16px;
      padding-left: 16px;
    }
  
    .footer-section h3 {
      font-size: 0.78rem;
      letter-spacing: 0.09em;
    }
  
    .footer-section.about .brief-about,
    .footer-section.contact-details p,
    .footer-section.contact-details a,
    .footer-section.programs a {
      font-size: 0.9rem;
    }
  
    .book-appointment .appointment-box {
      padding-left: 18px;
    }
  
    .book-appointment .appointment-box h2 {
      font-size: 1.32rem;
    }
  
    .footer-bottom {
      margin-top: 40px;
      padding-right: 16px;
      padding-left: 16px;
    }
  
    .footer-bottom::before {
      left: 16px;
      right: 16px;
    }
  }
  
  /* Reduced motion */
  
  @media (prefers-reduced-motion: reduce) {
    .footer,
    .footer *,
    .footer *::before,
    .footer *::after {
      animation: none;
      transition: none;
      scroll-behavior: auto;
    }
  }

  /* =========================================================
   Footer Dark Premium Override
   Mind & Soul - black / charcoal therapeutic footer
   Scoped only to .footer
   ========================================================= */

.footer {
  --ms-primary: #5fb3a1;
  --ms-primary-dark: #7fd0be;
  --ms-primary-light: #8fdcc9;
  --ms-primary-soft: rgba(95, 179, 161, 0.16);
  --ms-primary-softer: rgba(95, 179, 161, 0.08);

  --ms-purple: #9c82de;
  --ms-purple-dark: #c1aef2;
  --ms-purple-soft: rgba(156, 130, 222, 0.12);

  --ms-text: #f4f2ee;
  --ms-muted: rgba(244, 242, 238, 0.68);
  --ms-bg: #080c0b;
  --ms-white: #ffffff;
  --ms-line: rgba(255, 255, 255, 0.12);

  color: var(--ms-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(95, 179, 161, 0.16) 0, rgba(95, 179, 161, 0) 330px),
    radial-gradient(circle at 88% 18%, rgba(156, 130, 222, 0.14) 0, rgba(156, 130, 222, 0) 320px),
    radial-gradient(circle at 72% 90%, rgba(95, 179, 161, 0.10) 0, rgba(95, 179, 161, 0) 360px),
    linear-gradient(180deg, #121816 0%, #0b100f 48%, #060807 100%);
}

.footer::before {
  background: rgba(95, 179, 161, 0.12);
  filter: blur(8px);
}

.footer::after {
  background: rgba(156, 130, 222, 0.10);
  filter: blur(10px);
}

.footer-container {
  position: relative;
}

.footer-container::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -38px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(95, 179, 161, 0.34),
    rgba(156, 130, 222, 0.18),
    transparent
  );
  pointer-events: none;
}

.footer-section h3 {
  color: rgba(255, 255, 255, 0.92);
}

.footer-section h3::before {
  background: linear-gradient(135deg, #5fb3a1 0%, #347d68 100%);
  box-shadow: 0 0 18px rgba(95, 179, 161, 0.22);
}

.footer-section.about .brief-about {
  color: rgba(244, 242, 238, 0.68);
}

.footer .logo {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
}

.footer .logo::before {
  content: "";
  position: absolute;
  inset: -18px -22px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 68%);
  opacity: 0.82;
  pointer-events: none;
  transition:
    opacity 280ms cubic-bezier(.22, 1, .36, 1),
    transform 280ms cubic-bezier(.22, 1, .36, 1);
}

.footer .logo:hover::before {
  opacity: 1;
  transform: scale(1.04);
}

.footer .logo::after {
  background: linear-gradient(
    90deg,
    rgba(95, 179, 161, 0.64),
    rgba(156, 130, 222, 0.32),
    transparent
  );
}

.footer-section.contact-details p,
.footer-section.contact-details a,
.footer-section.programs a {
  color: rgba(244, 242, 238, 0.68);
}

.footer-section.contact-details a,
.footer-section.programs a,
.footer-bottom a {
  background:
    linear-gradient(90deg, rgba(95, 179, 161, 0.62), rgba(156, 130, 222, 0.34))
    left bottom / 0 1px no-repeat;
}

.footer-section.contact-details a:hover,
.footer-section.programs a:hover,
.footer-bottom a:hover {
  color: #ffffff;
  background-size: 100% 1px;
}

.footer-section.contact-details a:focus-visible,
.footer-section.programs a:focus-visible,
.footer-bottom a:focus-visible,
.footer .logo:focus-visible,
.book-appointment .appointment-box h2 a:focus-visible {
  outline: 3px solid rgba(95, 179, 161, 0.44);
  outline-offset: 4px;
}

.book-appointment .appointment-box::before {
  background: linear-gradient(180deg, #5fb3a1 0%, #347d68 100%);
  box-shadow:
    0 0 0 7px rgba(95, 179, 161, 0.08),
    0 0 28px rgba(95, 179, 161, 0.18);
}

.book-appointment .appointment-box::after {
  background:
    radial-gradient(circle at 0% 10%, rgba(95, 179, 161, 0.16), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(156, 130, 222, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  opacity: 0.92;
}

.book-appointment .appointment-box:hover::after {
  opacity: 1;
  transform: translateY(-2px);
}

.book-appointment .appointment-box p {
  color: rgba(244, 242, 238, 0.66);
}

.book-appointment .appointment-box p:first-of-type {
  color: #7fd0be;
}

.book-appointment .appointment-box p:first-of-type i {
  color: #c1aef2;
}

.book-appointment .appointment-box:hover p:first-of-type i {
  color: #ffffff;
}

.book-appointment .appointment-box h2 {
  color: #ffffff;
}

.book-appointment .appointment-box h2 a {
  color: inherit;
  background:
    linear-gradient(90deg, rgba(95, 179, 161, 0.72), rgba(156, 130, 222, 0.42))
    left 100% / 0 2px no-repeat;
}

.book-appointment .appointment-box h2 a:hover {
  color: #8fdcc9;
  background-size: 100% 2px;
}

.footer-bottom {
  color: rgba(244, 242, 238, 0.54);
}

.footer-bottom::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(95, 179, 161, 0.24),
    rgba(156, 130, 222, 0.16),
    transparent
  );
}

.footer .footer-socials a {
  color: #8fdcc9;
  background: rgba(255, 255, 255, 0.06);
}

.footer .footer-socials a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #4f9a82 0%, #347d68 100%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

/* Mobile refinement */

@media (max-width: 767px) {
  .footer {
    background:
      radial-gradient(circle at 20% 8%, rgba(95, 179, 161, 0.15) 0, rgba(95, 179, 161, 0) 260px),
      radial-gradient(circle at 90% 30%, rgba(156, 130, 222, 0.12) 0, rgba(156, 130, 222, 0) 260px),
      linear-gradient(180deg, #121816 0%, #0a0f0d 54%, #060807 100%);
  }

  .footer-container::before {
    left: 22px;
    right: 22px;
  }
}

@media (max-width: 380px) {
  .footer-container::before {
    left: 16px;
    right: 16px;
  }
}