/* Shared polish: motion, chatbot, carousel, call CTA — calm clinic palette */
:root {
  --sva-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-call {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  min-height: 44px;
  white-space: nowrap;
}
.nav-call:hover {
  background: rgba(255,255,255,0.12) !important;
  color: var(--saffron, #f4b41a) !important;
}

.hero-enter { animation: svaHeroIn 0.9s var(--sva-ease) both; }
.hero-enter-delay { animation: svaHeroIn 0.9s var(--sva-ease) 0.12s both; }

@keyframes svaHeroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--sva-ease), transform 0.7s var(--sva-ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.btn-primary, .nav-book-btn, .nav-book, .submit-btn, .slide-btn {
  transition: transform 0.25s var(--sva-ease), box-shadow 0.25s var(--sva-ease), background 0.25s ease !important;
}
.btn-primary:hover, .nav-book-btn:hover, .nav-book:hover, .submit-btn:hover {
  transform: translateY(-2px) scale(1.02);
}
.btn-primary:active, .nav-book-btn:active, .submit-btn:active {
  transform: scale(0.98);
}

.service-card, .testi-card, .pcard, .consult-card, .hb-type-card, .condition-card {
  transition: transform 0.3s var(--sva-ease), box-shadow 0.3s var(--sva-ease) !important;
}
.service-card:hover, .testi-card:hover, .pcard:hover, .consult-card:hover {
  transform: translateY(-6px);
}

.service-card .service-pills .service-pill,
.service-content h3 {
  display: inline-block;
}
.service-card:hover .service-pills .service-pill {
  animation: svaIconFloat 1.6s ease-in-out infinite;
}
@keyframes svaIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.herb-leaf { animation: none !important; opacity: 0.18 !important; }

.sva-skel {
  background: linear-gradient(90deg, #e8efe8 25%, #f4f7f3 50%, #e8efe8 75%);
  background-size: 200% 100%;
  animation: svaShimmer 1.2s ease infinite;
  border-radius: 8px;
}
@keyframes svaShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.call-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9997;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--herb-dark, #164a41);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(22,74,65,0.35);
  font-size: 20px;
}
.call-float:hover { transform: scale(1.06); color: var(--saffron, #f4b41a); }
@media (max-width: 768px) {
  .call-float { display: flex; bottom: 88px; }
  .back-to-top { left: 24px; bottom: 24px; }
}

/* Contact carousel */
.sva-carousel {
  position: relative;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 240px;
  overflow: hidden;
  background: #0d261f;
  margin-top: 0;
}
.sva-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.sva-carousel-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.sva-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sva-carousel-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(13,38,31,0.55) 0%, rgba(22,74,65,0.35) 45%, rgba(13,38,31,0.72) 100%);
  pointer-events: none;
}
.sva-carousel-copy {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: clamp(24px, 6vw, 56px) clamp(16px, 5vw, 48px) 52px;
  color: #fff;
  max-width: 920px;
}
.sva-carousel-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  margin: 0 0 10px;
  line-height: 1.2;
}
.sva-carousel-copy p { margin: 0; font-size: clamp(14px, 2vw, 16px); color: rgba(255,255,255,0.88); max-width: 560px; }
.sva-carousel-dots {
  position: absolute;
  z-index: 4;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.sva-carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  min-width: 44px; min-height: 44px;
  background-clip: content-box;
  padding: 17px;
}
.sva-carousel-dots button.is-on { background-color: #f4b41a; }
.sva-carousel-bar {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,0.15);
}
.sva-carousel-bar > span {
  display: block; height: 100%; width: 0;
  background: #f4b41a;
  transform-origin: left;
}
.sva-carousel.is-paused .sva-carousel-bar > span { animation-play-state: paused; }
@keyframes svaBar { from { width: 0; } to { width: 100%; } }
.sva-carousel-bar.is-run > span { animation: svaBar 3.5s linear forwards; }

/* Counter + arrow indicator (used when slides > 6) */
.sva-carousel-counter {
  position: absolute;
  z-index: 4;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 10px;
}
.sva-car-count {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  min-width: 42px;
  text-align: center;
  letter-spacing: 0.5px;
}
.sva-car-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 50%;
  width: 30px; height: 30px;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background .2s;
  padding: 0;
}
.sva-car-arrow:hover { background: rgba(255,255,255,0.2); }

/* Chatbot */
.sva-chat-root { font-family: 'Poppins', sans-serif; }

/* FAB button */
.sva-chat-fab {
  position: fixed; right: 24px; bottom: 92px; z-index: 10050;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(145deg, #2b7a4b, #164a41);
  color: #fff; font-size: 22px;
  box-shadow: 0 8px 28px rgba(22,74,65,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.sva-chat-fab:hover { transform: scale(1.07); }
.sva-fab-badge {
  position: absolute; top: -2px; right: -2px;
  background: #f4b41a; color: #164a41;
  font-size: 11px; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* Chat panel */
.sva-chat-panel {
  position: fixed; right: 16px; bottom: 164px; z-index: 10051;
  width: min(390px, calc(100vw - 20px));
  height: min(580px, calc(100dvh - 184px));
  background: #fffaf1; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(22,74,65,0.3);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid #c6e3c2;
}
.sva-chat-panel.open { display: flex; }

/* Header */
.sva-chat-head {
  background: linear-gradient(90deg, #164a41, #2b7a4b);
  color: #fff; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; gap: 8px;
}
.sva-head-left { display: flex; align-items: center; gap: 10px; }
.sva-head-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.sva-chat-head strong { display: block; font-size: 13px; line-height: 1.3; }
.sva-chat-head span { font-size: 10px; opacity: 0.8; }
.sva-head-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sva-allq-btn {
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; border-radius: 8px; padding: 5px 9px; cursor: pointer;
  font-size: 11px; font-weight: 600; font-family: 'Poppins',sans-serif;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: background .2s; min-height: 34px;
}
.sva-allq-btn:hover { background: rgba(255,255,255,0.28); }
.sva-close-btn {
  background: none; border: 0; color: #fff; font-size: 18px;
  cursor: pointer; min-width: 34px; min-height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background .2s;
}
.sva-close-btn:hover { background: rgba(255,255,255,0.18); }

/* Message log */
.sva-chat-log {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(circle at top, #eef6ee 0%, #fffaf1 70%);
}
.sva-bubble {
  max-width: 90%; padding: 10px 13px;
  border-radius: 16px; font-size: 13px; line-height: 1.6;
  word-break: break-word;
}
.sva-bubble.bot {
  background: #fff; border: 1px solid #d0e9cc;
  color: #183039; align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.sva-bubble.user {
  background: #164a41; color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.sva-bubble a { color: #2b7a4b; font-weight: 600; }

/* Call button inside bubble */
.sva-call-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px; background: #f4b41a; color: #164a41 !important;
  text-decoration: none; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
  font-size: 12.5px; min-height: 44px;
  transition: background .2s;
}
.sva-call-btn:hover { background: #e0a010; }

/* Contact suffix */
.sva-suffix {
  margin-top: 10px; padding-top: 9px;
  border-top: 1px solid #dceeda;
  font-size: 11.5px; color: #6a7e72;
  display: flex; flex-direction: column; gap: 4px;
}

/* Skeleton */
.sva-skel {
  background: linear-gradient(90deg, #e8ede8 25%, #d4e4d4 50%, #e8ede8 75%);
  background-size: 200% 100%;
  animation: skel-shine 1.4s infinite;
  border-radius: 6px;
}
@keyframes skel-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Quick chips */
.sva-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0; }
.sva-suggest button {
  border: 1px solid #b8d9b4; background: #f0faf0; color: #164a41;
  border-radius: 999px; padding: 7px 12px; font-size: 11.5px;
  cursor: pointer; min-height: 38px; font-family: 'Poppins', sans-serif;
  transition: background .15s, border-color .15s;
}
.sva-suggest button:hover { background: #ddf0dc; border-color: #164a41; }

/* Disclaimer */
.sva-chat-disc {
  font-size: 10px; color: #999; text-align: center;
  padding: 4px 12px 6px; flex-shrink: 0; margin: 0;
}

/* Input form */
.sva-chat-form {
  display: flex; gap: 8px; padding: 10px 10px 12px;
  border-top: 1px solid #ddeedd; background: #fff; flex-shrink: 0;
}
.sva-chat-form input {
  flex: 1; border: 1.5px solid #b8d9b4; border-radius: 12px;
  padding: 11px 14px; font-size: 14px; font-family: inherit;
  min-height: 44px; outline: none; color: #183039;
  transition: border-color .2s;
}
.sva-chat-form input:focus { border-color: #2b7a4b; }
.sva-send-btn {
  background: #164a41; color: #fff; border: 0; border-radius: 12px;
  padding: 0 16px; cursor: pointer; min-width: 46px; min-height: 44px;
  font-size: 15px; transition: background .2s;
}
.sva-send-btn:hover { background: #2b7a4b; }

/* ─── All Questions Panel ─── */
.sva-allq-panel {
  position: absolute; inset: 0; z-index: 20;
  background: #fffaf1; border-radius: 20px;
  display: none; flex-direction: column; overflow: hidden;
}
.sva-allq-panel.open { display: flex; }

.sva-allq-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: linear-gradient(90deg, #164a41, #2b7a4b);
  color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.sva-allq-hdr button {
  background: none; border: 0; color: #fff; font-size: 18px;
  cursor: pointer; min-width: 36px; min-height: 36px;
  border-radius: 6px; transition: background .2s;
}
.sva-allq-hdr button:hover { background: rgba(255,255,255,0.18); }

.sva-allq-search {
  position: relative; padding: 10px 12px;
  border-bottom: 1px solid #ddeedd; flex-shrink: 0; background: #fff;
}
.sva-allq-search i {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: #6a9e78; font-size: 13px;
}
.sva-allq-search input {
  width: 100%; border: 1.5px solid #c6e3c2; border-radius: 10px;
  padding: 9px 12px 9px 34px; font-size: 13px; font-family: inherit;
  outline: none; color: #183039;
}
.sva-allq-search input:focus { border-color: #2b7a4b; }

.sva-allq-body { flex: 1; overflow-y: auto; }

.sva-allq-section { border-bottom: 1px solid #edf4ed; }
.sva-allq-group {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 11px 16px; font-size: 12.5px; font-weight: 700; color: #164a41;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-family: 'Poppins', sans-serif; transition: background .15s;
}
.sva-allq-group:hover { background: #f0f8f0; }
.sva-allq-count {
  margin-left: auto; margin-right: 6px;
  background: #e0f0dc; color: #2b7a4b;
  font-size: 10px; font-weight: 700; border-radius: 999px;
  padding: 1px 7px; min-width: 22px; text-align: center;
}
.sva-allq-chev { font-size: 10px; color: #6a9e78; transition: transform .2s; margin-left: 0; }

.sva-allq-list { display: none; flex-direction: column; }
.sva-allq-list.open { display: flex; }

.sva-allq-item {
  text-align: left; background: none; border: 0;
  border-top: 1px solid #f0f6f0;
  padding: 10px 16px 10px 26px;
  font-size: 12.5px; color: #2b4a3a; cursor: pointer;
  font-family: 'Poppins', sans-serif; line-height: 1.45;
  min-height: 44px; transition: background .15s;
}
.sva-allq-item:hover { background: #edfbee; color: #164a41; }

/* Mobile */
@media (max-width: 480px) {
  .sva-chat-fab  { right: 14px; bottom: 84px; }
  .sva-chat-panel { right: 6px; left: 6px; width: auto; bottom: 148px; }
  .nav-call span.nav-call-num { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sva-carousel-slide { transition: none; }
}
