/* ============================================
   SAMPADA AYURVEDIC CENTRE — Components
   ============================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-accent); font-weight: 600; font-size: var(--text-sm);
  padding: 14px 28px; border-radius: var(--radius-md);
  transition: all var(--transition-base); cursor: pointer;
  letter-spacing: 0.3px; white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  color: var(--text-light); box-shadow: var(--shadow-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(46,125,50,0.25); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--text-light); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196,154,60,0.3); }

.btn-outline {
  border: 2px solid var(--primary-700); color: var(--primary-700);
  background: transparent;
}
.btn-outline:hover { background: var(--primary-700); color: var(--text-light); }

.btn-white {
  background: var(--bg-white); color: var(--primary-800);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-whatsapp {
  background: #25D366; color: var(--text-light);
}
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }

.btn-phone {
  background: var(--primary-800); color: var(--text-light);
}
.btn-phone:hover { background: var(--primary-900); transform: translateY(-2px); }

.btn-lg { padding: 16px 36px; font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: var(--text-xs); }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: var(--radius-full); }

/* --- Cards --- */
.card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }

.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--primary-100); color: var(--primary-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5); font-size: 24px;
  transition: all var(--transition-base);
}
.card:hover .card-icon { background: var(--primary-700); color: var(--text-light); transform: scale(1.05); }

.card-title {
  font-family: var(--font-heading); font-size: var(--text-xl);
  font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-3);
}
.card-text { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.7; }

/* Glass Card */
.card-glass {
  background: var(--glass-bg-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: var(--space-8); color: var(--text-light);
  transition: all var(--transition-base);
}
.card-glass:hover { background: rgba(255,255,255,0.25); transform: translateY(-4px); }

/* Treatment Card */
.treatment-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base); text-align: center;
}
.treatment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-300); }
.treatment-card__image {
  height: 180px; background: linear-gradient(135deg, var(--primary-100), var(--bg-cream));
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  color: var(--primary-600); position: relative; overflow: hidden;
}
.treatment-card__image::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(transparent, var(--bg-white));
}
.treatment-card__body { padding: var(--space-6); }
.treatment-card__title { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); color: var(--text-primary); }
.treatment-card__text { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-4); }
.treatment-card__link { font-family: var(--font-accent); font-size: var(--text-sm); font-weight: 600; color: var(--primary-700); display: inline-flex; align-items: center; gap: var(--space-2); transition: gap var(--transition-base); }
.treatment-card:hover .treatment-card__link { gap: var(--space-3); color: var(--primary-800); }

/* Testimonial Card */
.testimonial-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); position: relative;
}
.testimonial-card__stars { color: var(--gold-500); font-size: var(--text-lg); margin-bottom: var(--space-4); display: flex; gap: 2px; }
.testimonial-card__text { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-6); font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-card__avatar { width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--primary-100); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary-700); font-size: var(--text-lg); }
.testimonial-card__name { font-weight: 600; font-size: var(--text-sm); color: var(--text-primary); }
.testimonial-card__treatment { font-size: var(--text-xs); color: var(--text-muted); }
.testimonial-card__quote-icon { position: absolute; top: var(--space-6); right: var(--space-6); font-size: 48px; color: var(--primary-100); font-family: serif; line-height: 1; }

/* Branch Card */
.branch-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.branch-card__map { height: 200px; background: var(--bg-light); }
.branch-card__map iframe { width: 100%; height: 100%; border: 0; }
.branch-card__body { padding: var(--space-6); }
.branch-card__name { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--primary-800); margin-bottom: var(--space-3); }
.branch-card__address { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-4); line-height: 1.7; }
.branch-card__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-2); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md); font-size: var(--text-base);
  color: var(--text-primary); background: var(--bg-white);
  transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(67,160,71,0.12); outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7A7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-error { font-size: var(--text-xs); color: var(--error); margin-top: var(--space-1); }

/* --- Badge --- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-accent); font-size: var(--text-xs); font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}
.badge-green { background: var(--primary-100); color: var(--primary-800); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }

/* --- Accordion / FAQ --- */
.accordion { border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border-light); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  width: 100%; padding: var(--space-5) var(--space-6); display: flex;
  align-items: center; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-heading); font-size: var(--text-base); font-weight: 600;
  color: var(--text-primary); background: var(--bg-white); cursor: pointer;
  transition: all var(--transition-fast); text-align: left;
}
.accordion-header:hover { background: var(--bg-cream); }
.accordion-header.active { color: var(--primary-700); background: var(--primary-50); }
.accordion-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  transition: transform var(--transition-base); color: var(--text-muted);
}
.accordion-header.active .accordion-icon { transform: rotate(180deg); color: var(--primary-700); }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out);
}
.accordion-body.open { max-height: 600px; }
.accordion-content { padding: 0 var(--space-6) var(--space-6); color: var(--text-secondary); line-height: 1.8; font-size: var(--text-sm); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-4) 0; font-size: var(--text-sm); color: var(--text-muted);
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2);
}
.breadcrumbs a { color: var(--primary-700); transition: color var(--transition-fast); }
.breadcrumbs a:hover { color: var(--primary-800); text-decoration: underline; }
.breadcrumbs span { color: var(--text-muted); }

/* --- Floating CTA --- */
.floating-whatsapp {
  position: fixed; bottom: 90px; right: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
}
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.floating-whatsapp svg { width: 32px; height: 32px; fill: currentColor; }

.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--bg-white); border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08); padding: var(--space-3) var(--space-4);
  display: none; /* shown on mobile */
}
@media (max-width: 768px) {
  .sticky-cta-bar { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
  .sticky-cta-bar .btn { flex: 1; padding: 12px; font-size: var(--text-xs); }
}

/* --- Stats Counter --- */
.stat-item { text-align: center; padding: var(--space-6); }
.stat-number { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 800; color: var(--primary-700); line-height: 1; margin-bottom: var(--space-2); }
.section--dark .stat-number, .section--gradient .stat-number { color: var(--gold-400); }
.stat-label { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.section--dark .stat-label, .section--gradient .stat-label { color: rgba(255,255,255,0.8); }

/* --- Symptom Tag --- */
.symptom-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.symptom-tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  background: var(--primary-50); color: var(--primary-800);
  font-size: var(--text-sm); font-weight: 500; border: 1px solid var(--primary-200);
}

/* --- Disease Section (Type A pages) --- */
.disease-section { padding: var(--space-16) 0; border-bottom: 1px solid var(--border-light); }
.disease-section:last-of-type { border-bottom: none; }
.disease-section__title { font-size: var(--text-3xl); color: var(--primary-800); margin-bottom: var(--space-4); padding-left: var(--space-4); border-left: 4px solid var(--gold-500); }
.disease-section__subtitle { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); margin: var(--space-8) 0 var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.disease-section__subtitle svg { color: var(--primary-600); flex-shrink: 0; }
.disease-section__content { color: var(--text-secondary); line-height: 1.8; }

/* --- Process Steps --- */
.process-steps { counter-reset: step; }
.process-step {
  display: flex; gap: var(--space-6); padding: var(--space-6) 0;
  position: relative;
}
.process-step::before {
  counter-increment: step; content: counter(step);
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--primary-700); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg);
  flex-shrink: 0;
}
.process-step__content { flex: 1; }
.process-step__title { font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); font-size: var(--text-lg); }
.process-step__text { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.7; }

/* --- Toast Notification --- */
.toast {
  position: fixed; top: 24px; right: 24px; z-index: 10000;
  padding: var(--space-4) var(--space-6); border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: 500; box-shadow: var(--shadow-lg);
  animation: fadeInDown 0.3s var(--ease-out);
  display: flex; align-items: center; gap: var(--space-3);
}
.toast-success { background: var(--primary-700); color: var(--text-light); }
.toast-error { background: var(--error); color: var(--text-light); }

/* --- Quick Nav (jump links for Type A) --- */
.quick-nav {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: var(--space-6);
  margin-bottom: var(--space-12); position: sticky; top: calc(var(--header-height) + 16px); z-index: 10;
}
.quick-nav__title { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-4); color: var(--primary-800); }
.quick-nav__links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.quick-nav__link {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500; color: var(--primary-700);
  background: var(--primary-50); border: 1px solid var(--primary-200);
  transition: all var(--transition-fast);
}
.quick-nav__link:hover, .quick-nav__link.active { background: var(--primary-700); color: var(--text-light); border-color: var(--primary-700); }

/* --- Loading Spinner --- */
.spinner { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
