/* ==========================================================================
   BUTTONS, TAGS, CARDS, BENTO SPLIT, TESTIMONIALS, FAQ ACCORDION, CTA CARD
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:hover { transform: scale(1.03); }

.btn-primary {
  color: #fff;
  background: linear-gradient(to right, var(--red-600), var(--rose-500));
  box-shadow: 0 12px 22px -8px rgba(220, 38, 38, 0.4);
}
.btn-primary:hover { background: linear-gradient(to right, var(--red-700), var(--red-600)); }

.btn-outline {
  color: var(--text);
  background: var(--surface-raised);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--red-500); color: var(--red-600); }

.btn-dark {
  color: #fff;
  background: var(--gray-900);
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: 0 15px 30px -10px rgba(17, 24, 39, 0.4);
}
.btn-dark:hover { background: var(--red-600); }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.btn-icon-circle {
  height: 2.35rem; width: 2.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.btn-dark:hover .btn-icon-circle { transform: translateX(3px); background: var(--red-600); }
.btn-primary .btn-icon-circle, .btn-outline .btn-icon-circle { background: rgba(0,0,0,0.08); color: inherit; }

/* ---- Tags / badges ---- */
.tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--red-600); background: var(--red-50); border: 1px solid rgba(239,68,68,0.15);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
html[data-theme="dark"] .tag { background: rgba(239,68,68,0.12); color: #fca5a5; }
.tag.tag-muted { color: var(--text-muted); background: var(--surface); border-color: var(--border-soft); }
.tag.tag-green { color: var(--green-600); background: var(--green-100); border-color: rgba(34,197,94,0.2); }
html[data-theme="dark"] .tag.tag-green { background: rgba(34,197,94,0.14); color: #86efac; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-3xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(239,68,68,0.25); }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text-strong); margin: 0.9rem 0 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.card-link { margin-top: 1.25rem; font-weight: 700; font-size: 0.875rem; color: var(--red-600); display: inline-flex; align-items: center; gap: 0.35rem; border: none; background: none; }
.card-link:hover { gap: 0.55rem; }

/* Lottie icon frame used inside cards */
.lottie-frame {
  height: 3.75rem; width: 3.75rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, var(--red-50), var(--blue-50));
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem;
  margin-bottom: 0.25rem;
}
html[data-theme="dark"] .lottie-frame { background: linear-gradient(160deg, rgba(239,68,68,0.14), rgba(59,130,246,0.14)); }
.lottie-frame .lottie-anim { width: 100%; height: 100%; }
.lottie-frame img.lottie-fallback { width: 70%; height: 70%; margin: auto; }

/* Service card thumbnail image */
.card-media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .tag { position: absolute; top: 0.75rem; left: 0.75rem; }

/* ---- Services index: showcase section + service cards ---- */
.services-showcase {
  position: relative;
  overflow: hidden;
  padding-top: 10px;
  background: #ffffff;
}
html[data-theme="dark"] .services-showcase { background: var(--surface-raised); }
.services-showcase .container { position: relative; z-index: 1; }

.service-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
  padding: 1.85rem;
  text-align: left;
  border-radius: var(--radius-3xl);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px -14px rgba(17,24,39,0.25);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.16,.84,.44,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
html[data-theme="dark"] .service-card {
  background: rgba(24,24,27,0.55);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px -14px rgba(0,0,0,0.6);
}
.service-card > * { position: relative; z-index: 1; }

/* diagonal glass sheen sweep on hover */
.service-card::before {
  content: '';
  position: absolute; inset: -2px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.4) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.75s ease;
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] .service-card::before {
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.1) 48%, transparent 66%);
}
.service-card:hover::before { transform: translateX(130%); }

.service-card:hover {
  transform: translateY(-9px) scale(1.015);
  box-shadow: 0 26px 48px -16px rgba(220,38,38,0.32);
  border-color: rgba(239,68,68,0.45);
}
.service-card .card-media { border-radius: var(--radius-2xl); overflow: hidden; margin-bottom: 1.1rem; aspect-ratio: 4/3; position: relative; }
.service-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .card-media img { transform: scale(1.08); }
.service-card .card-media .tag { position: absolute; top: 0.75rem; left: 0.75rem; }
.service-card .lottie-frame {
  background: rgba(239,68,68,0.14);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease;
}
html[data-theme="dark"] .service-card .lottie-frame { background: rgba(239,68,68,0.16); }
.service-card:hover .lottie-frame { transform: scale(1.08) rotate(-3deg); }
.service-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text-strong); margin: 0.9rem 0 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.service-card .card-link { margin-top: 1.25rem; font-weight: 700; font-size: 0.875rem; color: var(--red-600); display: inline-flex; align-items: center; gap: 0.35rem; border: none; background: none; transition: gap 0.2s ease; }
.service-card .card-link:hover { gap: 0.55rem; }

@media (prefers-reduced-motion: reduce) {
  .service-card, .service-card::before, .service-card .lottie-frame, .service-card .card-media img { transition: none !important; }
}

/* Bento / feature split section */
.bento {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-3xl);
  padding: 2.25rem;
}
@media (min-width: 640px) { .bento { padding: 3rem; } }
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .bento-grid { grid-template-columns: 5fr 7fr; } }
.bento-grid.reverse { direction: rtl; }
.bento-grid.reverse > * { direction: ltr; }
.bento-copy { text-align: left; }
.bento-copy h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--text-strong); margin: 0.5rem 0 0.85rem; letter-spacing: -0.02em; }
.bento-copy p { color: var(--text-muted); line-height: 1.75; }
.bento-list { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text); display: flex; flex-direction: column; gap: 0.15rem; }
.bento-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; }
.bento-list li .ico { color: var(--green-600); font-weight: 800; }
.bento-tiles { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .bento-tiles { grid-template-columns: 1fr 1fr; } }
.bento-tile { background: var(--surface-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-2xl); padding: 1.5rem; box-shadow: var(--shadow-sm); text-align: left; }
.bento-tile .icon { height: 2.35rem; width: 2.35rem; border-radius: var(--radius-xl); background: var(--red-50); color: var(--red-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; font-size: 1.1rem; }
html[data-theme="dark"] .bento-tile .icon { background: rgba(239,68,68,0.14); }
.bento-tile h3 { font-weight: 800; font-size: 1rem; color: var(--text-strong); margin-bottom: 0.4rem; }
.bento-tile p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* Image collage — "artistic mixed images" block used on About / Industries / Support */
.collage { position: relative; height: 100%; min-height: 22rem; }
.collage img {
  position: absolute; border-radius: var(--radius-2xl); object-fit: cover;
  box-shadow: var(--shadow-lg); border: 4px solid var(--surface-raised);
}
.collage .c1 { width: 62%; height: 65%; top: 0; left: 0; z-index: 2; }
.collage .c2 { width: 48%; height: 42%; bottom: 0; right: 0; z-index: 3; }
.collage .c3 { width: 34%; height: 34%; top: 8%; right: 4%; z-index: 1; }
.collage .blob { position: absolute; inset: -2rem; border-radius: 50%; filter: blur(60px); background: radial-gradient(circle, rgba(239,68,68,0.18), transparent 70%); z-index: 0; }

/* Testimonials */
.testimonial-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: left;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.testimonial-card .stars { color: var(--amber-500); font-size: 0.85rem; letter-spacing: 0.15rem; }
.testimonial-card blockquote { font-size: 0.9rem; color: var(--text-muted); font-style: italic; line-height: 1.7; margin: 0; }
.testimonial-footer { display: flex; align-items: center; gap: 0.85rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); font-size: 0.75rem; }
.testimonial-avatar { height: 2.75rem; width: 2.75rem; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.testimonial-footer .name { font-weight: 800; color: var(--text-strong); }
.testimonial-footer .role { color: var(--text-muted); margin-top: 0.1rem; }

/* CTA card (compact + clean) */
.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--gray-900), #000);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.25rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  text-align: center;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(239,68,68,0.35), transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(59,130,246,0.25), transparent 55%);
}
.cta-card > * { position: relative; z-index: 1; }

/* CTA card hover effects */
.cta-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 48px rgba(220, 38, 38, 0.35),
              0 0 30px rgba(239, 68, 68, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .cta-card, .cta-card::before { transition: none !important; }
}

@media (min-width: 768px) { .cta-card { flex-direction: row; text-align: left; padding: 2.75rem 3.25rem; } }
.cta-card h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .cta-card h2 { font-size: 2rem; } }
.cta-card p { color: #d1d5db; font-size: 0.95rem; line-height: 1.65; max-width: 32rem; }
.cta-card .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }

/* FAQ accordion (used on service, support pages) */
.faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 48rem; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem; background: none; border: none; text-align: left;
  font-weight: 700; font-size: 0.95rem; color: var(--text-strong);
}
.faq-q .car { transition: transform 0.25s ease; color: var(--red-600); flex-shrink: 0; }
.faq-item.open .faq-q .car { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 20rem; }
.faq-a p { padding: 0 1.35rem 1.15rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .stat-strip.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.stat-strip .stat { text-align: center; position: relative; }
.stat-strip strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--text-strong); }
.stat-strip span { font-size: 0.78rem; color: var(--text-muted); }

/* Bordered/background panel wrapper for a stat-strip (used where the stats
   need a proper contained frame instead of floating directly on the page). */
.stat-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-3xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .stat-panel { padding: 2.5rem 2rem; } }
@media (min-width: 640px) {
  .stat-panel .stat-strip .stat:not(:last-child)::after {
    content: ''; position: absolute; top: 10%; right: calc(-0.75rem - 1px);
    width: 1px; height: 80%; background: var(--border-soft);
  }
}

/* 4-step "method" cards (icon badge + large faint step number) */
.method-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .method-grid { grid-template-columns: repeat(4, 1fr); } }
.method-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-2xl);
  padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.method-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.method-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.1rem; }
.method-icon {
  height: 2.75rem; width: 2.75rem; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--red-600), var(--rose-500)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 10px 18px -8px rgba(220,38,38,0.45); flex-shrink: 0;
}
.method-num { font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; color: var(--red-100); line-height: 1; }
html[data-theme="dark"] .method-num { color: rgba(239,68,68,0.16); }
.method-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--text-strong); margin-bottom: 0.5rem; }
.method-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }

/* Bento layout variants: 3-across tiles (charter items), wider tile column */
@media (min-width: 1024px) { .bento-tiles.tiles-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .bento-grid.wide-tiles { grid-template-columns: 4fr 8fr; } }
