/* ============================================================
   HEALTHY HAPPY COMMUNITY — Components
   Buttons · Cards · Forms · Nav · Footer · Badges
   ============================================================ */

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-forest {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.btn-forest:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--forest-deep);
}

.btn-sm { padding: 10px 20px; font-size: var(--text-sm); }
.btn-lg { padding: 18px 42px; font-size: var(--text-md); }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  padding: 0 var(--sp-8);
}

.site-nav.scrolled {
  background: rgba(28, 75, 46, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--white);
  line-height: 1.1;
}

.nav-logo-text span { display: block; font-size: var(--text-sm); color: var(--gold); font-family: var(--font-sans); font-weight: var(--weight-medium); letter-spacing: 0.08em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(200,151,10,0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: background var(--transition-fast);
}

.nav-cart:hover { background: rgba(255,255,255,0.2); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--forest-deep);
  font-size: 10px;
  font-weight: var(--weight-bold);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  display: none;
}

.cart-badge.visible { display: flex; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--forest-deep);
  padding: var(--sp-6);
  z-index: calc(var(--z-sticky) - 1);
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-xl);
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

@media (max-width: 1024px) {
  .nav-links        { display: none; }
  .nav-hamburger    { display: flex; }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.8);
  padding: var(--sp-16) 0 0;
}

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

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: var(--sp-4) 0 var(--sp-6);
  color: rgba(255,255,255,0.65);
}

.footer-social { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-link:hover { background: var(--gold); color: var(--forest-deep); }

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-5);
}

.footer-col ul li { margin-bottom: var(--sp-3); }

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  padding: var(--sp-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-body { padding: var(--sp-6); }
.card-img   { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card.featured {
  background: var(--forest);
  color: var(--white);
}

.service-card.featured h3,
.service-card.featured p { color: var(--white); }

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--forest-deep);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}

.service-price {
  margin-top: auto;
  padding-top: var(--sp-4);
}

.price-from { font-size: var(--text-xs); color: var(--color-text-muted); }
.price-amount { font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--forest); }
.price-original { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: line-through; }

/* Testimonial Card */
.testimonial-card {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
  border: 1px solid var(--border);
}

.testimonial-card.featured {
  background: var(--forest);
  color: var(--white);
  border-color: transparent;
}

.testimonial-stars { color: var(--gold); font-size: var(--text-md); margin-bottom: var(--sp-4); letter-spacing: 2px; }

.testimonial-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-6);
  font-style: italic;
}

.testimonial-meta { display: flex; align-items: center; gap: var(--sp-4); }

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-name { font-weight: var(--weight-semibold); font-size: var(--text-base); }
.testimonial-detail { font-size: var(--text-sm); color: var(--color-text-muted); }
.testimonial-card.featured .testimonial-detail { color: rgba(255,255,255,0.7); }

/* Team Card */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.team-card.lead-card { border: 2px solid var(--gold); }

.team-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-body { padding: var(--sp-5); }
.team-card-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--forest); margin-bottom: var(--sp-1); }
.team-card-role { font-size: var(--text-sm); color: var(--color-text-muted); }
.team-card-badge { display: inline-block; background: var(--gold-pale); color: var(--gold); font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: var(--sp-2); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--forest);
  margin-bottom: var(--sp-2);
}

.form-label .req { color: var(--color-error); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--forest-light);
  box-shadow: 0 0 0 3px rgba(28,75,46,0.1);
}

.form-control::placeholder { color: var(--color-text-muted); opacity: 0.7; }
.form-control.error { border-color: var(--color-error); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-error { font-size: var(--text-xs); color: var(--color-error); margin-top: var(--sp-1); }
.form-hint  { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--sp-1); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.badge-success  { background: #D4EDDA; color: #155724; }
.badge-error    { background: #F8D7DA; color: #721C24; }
.badge-warning  { background: #FFF3CD; color: #856404; }
.badge-info     { background: #D1ECF1; color: #0C5460; }
.badge-gold     { background: var(--gold-pale); color: var(--gold); }
.badge-forest   { background: rgba(28,75,46,0.1); color: var(--forest); }

/* ── WhatsApp Float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-toast);
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-spring);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition-property: transform, opacity;
  transition-duration: var(--transition-fast);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 2px solid var(--forest);
  border-radius: 50%;
  transition-duration: 100ms;
  opacity: 0.5;
}

@media (hover: none) {
  .cursor-dot, .cursor-outline { display: none; }
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--forest);
  background: var(--white);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-btn:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.page-btn.active { background: var(--forest); color: var(--white); border-color: var(--forest); }
