/* =============================================
   GET HEALED WITHIN - Navigation & Footer
   ============================================= */

/* ---- TOP BAR ---- */
.topbar {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  text-align: center;
  position: relative;
  z-index: 1001;
}
.topbar a { color: rgba(255,255,255,0.88); transition: var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,247,242,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(98,25,158,0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(98,25,158,0.1);
  background: rgba(255,247,242,0.99);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 1.5rem;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo img {
  height: 82px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .logo-main {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(98,25,158,0.08);
}
.logo-text .logo-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--purple); background: rgba(98,25,158,0.06); }
.nav-link.active { color: var(--purple); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(98,25,158,0.08);
  padding: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--gray-100); color: var(--purple); }

/* Nav Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-select {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.lang-select:focus { border-color: var(--purple); }

.btn-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--purple);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  transition: var(--transition);
  background: transparent;
}
.btn-login:hover {
  background: var(--purple);
  color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--purple);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 1.2rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  border-radius: 0;
}
.mobile-nav .nav-link:last-child { border-bottom: none; }
.mobile-nav-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer-logo img { height: 44px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-logo .logo-main { color: var(--white); font-size: 1.1rem; }
.footer-logo .logo-sub { color: rgba(176,77,137,0.9); }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.65);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-newsletter p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--purple-light); }
.newsletter-form button {
  padding: 0.7rem 1.1rem;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(98,25,158,0.4);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* =============================================
   WHATSAPP COMMUNITY — Floating Button & Banner
   ============================================= */

/* ---- Floating WhatsApp button (right side, vertically centered) ---- */
.wa-float {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

/* Pill tooltip that slides in from the right of the button */
.wa-float-tooltip {
  background: #fff;
  color: #111;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px 0 0 50px;
  box-shadow: -4px 4px 18px rgba(0,0,0,0.13);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(12px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  border: 1.5px solid #e8fce8;
  border-right: none;
  order: -1;
}
.wa-float-tooltip strong { color: #25d366; }

/* Main circular button — flush to right edge */
.wa-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50% 0 0 50%;
  background: #25d366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: -4px 0 24px rgba(37,211,102,0.38), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  position: relative;
  animation: wa-pulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}
.wa-float-btn:hover {
  transform: scale(1.08) translateX(-3px);
  box-shadow: -6px 0 32px rgba(37,211,102,0.52);
  animation: none;
}
.wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Notification dot */
.wa-float-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #ff3b3b;
  border-radius: 50%;
  border: 2.5px solid #fff;
  animation: wa-dot-blink 1.8s ease-in-out infinite;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: -4px 0 24px rgba(37,211,102,0.38), 0 0 0 0 rgba(37,211,102,0.45); }
  50%       { box-shadow: -4px 0 24px rgba(37,211,102,0.38), -6px 0 0 10px rgba(37,211,102,0); }
}
@keyframes wa-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- WhatsApp Community Banner (inside footer) ---- */
.wa-footer-banner {
  background: linear-gradient(135deg, #1a8c44 0%, #25d366 60%, #128c4a 100%);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.wa-footer-banner::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 130px; height: 130px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.wa-footer-banner::after {
  content: '';
  position: absolute;
  right: 40px; bottom: -40px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.wa-banner-icon {
  font-size: 2.4rem;
  color: #fff;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  line-height: 1;
}
.wa-banner-text { flex: 1; }
.wa-banner-text h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.wa-banner-text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}
.wa-banner-btn {
  background: #fff;
  color: #1a8c44;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  z-index: 1;
}
.wa-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #1a8c44;
}

/* ---- Topbar WhatsApp item ---- */
.topbar-wa-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #afffcc !important;
  font-weight: 600;
  transition: var(--transition);
}
.topbar-wa-link:hover { color: #fff !important; }
.topbar-wa-link i { font-size: 0.95rem; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .wa-float { top: 50%; right: 0; transform: translateY(-50%); }
  .wa-float-btn { width: 48px; height: 48px; font-size: 1.35rem; }
  .wa-footer-banner { flex-direction: column; text-align: center; padding: 1.25rem 1.25rem; }
  .wa-banner-btn { width: 100%; justify-content: center; }
}

/* Responsive Nav */
@media (max-width: 1024px) {
  .navbar-nav { gap: 0; }
  .nav-link { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-actions .btn-login { display: none; }
  .menu-toggle { display: flex; }
  .navbar-inner { height: 72px; }
  .navbar-logo img { height: 64px; }
  .logo-text .logo-main { font-size: 1.3rem; }
  .logo-text .logo-sub { font-size: 0.7rem; }
  .navbar-actions .lang-select { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .topbar-inner { flex-direction: column; gap: 0.25rem; }
}
