/* ═══════════════════════════════════════════════
   MUCHYI AI — COMPONENTS
   components.css
═══════════════════════════════════════════════ */

/* ══════════════
   BUTTONS
══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  border-radius: var(--r2);
  cursor: pointer; border: none;
  transition: all var(--t);
  letter-spacing: .03em;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  color: #000;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-lt)); box-shadow: var(--shadow-gold); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-ring);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold-pale); border-color: var(--gold); }

.btn-ghost {
  background: var(--ink2);
  border: 1px solid var(--border);
  color: var(--text2);
}
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: #16a34a; box-shadow: 0 8px 24px rgba(34,197,94,.3); }

.btn-wa {
  background: #25D366;
  color: #fff;
}
.btn-wa:hover { background: #1da851; }

.btn-sm { padding: 7px 16px; font-size: .78rem; }
.btn-lg { padding: 14px 32px; font-size: .95rem; }
.btn-full { width: 100%; }

/* ══════════════
   BADGES
══════════════ */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: .6rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase;
}
.badge-gold   { background: rgba(201,168,76,.12); color: var(--gold); border: 1px solid var(--gold-ring); }
.badge-green  { background: rgba(34,197,94,.1); color: var(--green-lt); border: 1px solid rgba(34,197,94,.2); }
.badge-blue   { background: rgba(96,165,250,.1); color: #93c5fd; border: 1px solid rgba(96,165,250,.2); }
.badge-orange { background: rgba(251,146,60,.1); color: var(--orange); border: 1px solid rgba(251,146,60,.2); }
.badge-purple { background: rgba(167,139,250,.1); color: var(--purple); border: 1px solid rgba(167,139,250,.2); }
.badge-red    { background: rgba(248,113,113,.1); color: var(--red); border: 1px solid rgba(248,113,113,.2); }

/* ══════════════
   EYEBROW
══════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .62rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 28px; height: 1px;
  background: var(--gold); opacity: .5; display: block;
}

/* ══════════════
   SECTION HEADERS
══════════════ */
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .eyebrow { justify-content: center; }
.section-h2 {
  font-family: var(--font-head); font-weight: 900;
  line-height: 1.15; margin-bottom: 12px;
  color: var(--text);
}
.section-h2 em { color: var(--gold); font-style: italic; }
.section-sub {
  color: var(--text3); line-height: 1.8;
  max-width: 52ch;
}
.section-header.centered .section-sub { margin-inline: auto; }

/* ══════════════
   CARDS
══════════════ */
.card {
  background: var(--ink1);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t2), box-shadow var(--t);
}
.card:hover {
  border-color: var(--gold-ring);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-body { padding: 24px; }

/* ══════════════
   DIVIDER
══════════════ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.divider-gold { border-top-color: var(--gold-ring); }

/* ══════════════
   QUOTE BLOCK
══════════════ */
.quote-block {
  background: var(--ink2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r3) var(--r3) 0;
  padding: 28px 32px;
}
.quote-block p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text2);
  line-height: 1.85;
}
.quote-attribution {
  font-size: .75rem; color: var(--text4);
  margin-top: 12px; font-style: normal;
}

/* ══════════════
   ALERT/INFO BOX
══════════════ */
.info-box {
  background: var(--gold-pale);
  border: 1px solid var(--gold-ring);
  border-radius: var(--r2);
  padding: 18px 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.info-box .icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.info-box p { font-size: .83rem; color: var(--text3); line-height: 1.7; margin: 0; }
.info-box.green { background: var(--green-bg); border-color: rgba(34,197,94,.2); }

/* ══════════════
   TAGS
══════════════ */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .65rem; font-weight: 600;
  padding: 4px 10px; border-radius: 4px;
  background: var(--ink3); color: var(--text4);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.tag:hover { border-color: var(--gold-ring); color: var(--gold); }

/* ══════════════
   SOCIAL ROW
══════════════ */
.social-row { display: flex; gap: 8px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--text4);
  transition: all var(--t); cursor: pointer;
}
.social-icon:hover { border-color: var(--gold-ring); color: var(--gold); background: var(--gold-pale); }

/* ══════════════
   PROGRESS BAR
══════════════ */
.progress-bar {
  background: var(--ink3);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold));
  border-radius: 4px;
  transition: width .8s ease;
}
.progress-fill.green { background: linear-gradient(90deg, var(--green), var(--green-lt)); }

/* ══════════════
   MODAL
══════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--ink1);
  border: 1px solid var(--border2);
  border-radius: var(--r4);
  width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(24px) scale(.97);
  transition: transform .35s var(--t2);
  position: relative;
}
.modal-overlay.open .modal-box { transform: none; }
.modal-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--ink2);
  border-radius: 0 0 var(--r4) var(--r4);
  display: flex; gap: 10px; align-items: center; justify-content: flex-end;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink3); border: 1px solid var(--border);
  color: var(--text4); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); cursor: pointer;
}
.modal-close:hover { border-color: var(--gold-ring); color: var(--gold); }

/* ══════════════
   FORM ELEMENTS
══════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .74rem; font-weight: 600;
  color: var(--text3); margin-bottom: 7px;
  letter-spacing: .03em;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 11px 14px;
  background: var(--ink2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  font-family: var(--font-body); font-size: .85rem;
  color: var(--text); outline: none;
  transition: border-color var(--t), background var(--t);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-ring);
  background: var(--ink3);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text5); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
.form-error { font-size: .72rem; color: var(--red); margin-top: 5px; }
.form-input.error { border-color: var(--red); }

/* ══════════════
   STAT BOX
══════════════ */
.stat-box {
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px;
  text-align: center;
  transition: border-color var(--t);
}
.stat-box:hover { border-color: var(--gold-ring); }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 900;
  color: var(--gold); line-height: 1;
  display: block; margin-bottom: 6px;
}
.stat-label {
  font-size: .68rem; color: var(--text5);
  text-transform: uppercase; letter-spacing: .1em;
}

/* ══════════════
   FAQ
══════════════ */
.faq-item {
  background: var(--ink1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 6px;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; gap: 14px;
  font-weight: 600; font-size: .88rem; color: var(--text2);
  cursor: pointer; transition: color var(--t); user-select: none;
}
.faq-q:hover { color: var(--text); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--text4);
  transition: all var(--t);
}
.faq-item.open .faq-icon { background: var(--gold-pale); border-color: var(--gold-ring); color: var(--gold); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  font-size: .83rem; color: var(--text3); line-height: 1.8;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ══════════════
   PULSE INDICATOR
══════════════ */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.pulse-dot.green { background: var(--green); }
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.75)} }

/* ══════════════
   TESTIMONIAL CARD
══════════════ */
.testi-card {
  background: var(--ink1);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 24px;
  transition: border-color var(--t);
}
.testi-card:hover { border-color: var(--gold-ring); }
.testi-stars { color: var(--gold); font-size: .82rem; margin-bottom: 12px; letter-spacing: -1px; }
.testi-text {
  font-family: var(--font-quote); font-style: italic;
  font-size: .95rem; color: var(--text2);
  line-height: 1.78; margin-bottom: 18px;
  quotes: "\201C" "\201D";
}
.testi-text::before { content: open-quote; color: var(--gold); font-size: 1.5rem; line-height: 0; vertical-align: -.3em; margin-right: 2px; }
.testi-text::after  { content: close-quote; color: var(--gold); font-size: 1.5rem; line-height: 0; vertical-align: -.3em; margin-left: 2px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ink3), var(--ink4));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: var(--text3);
}
.testi-name { font-weight: 700; font-size: .84rem; color: var(--text); }
.testi-meta { font-size: .72rem; color: var(--text4); margin-top: 1px; }
