/* Toshin Group — UI components (Button, Badge, Card, Stat, Form) */

.ts-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--brand-accent, var(--indigo-600));
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.ts-eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.ts-eyebrow--red { color: var(--red-500); }
.ts-eyebrow--inverse { color: var(--red-400); }

.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base), border-color var(--dur-base), transform var(--dur-fast);
  border: 1px solid transparent;
  line-height: 1.2;
}
.ts-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ts-btn--sm { padding: 8px 14px; font-size: 13px; }
.ts-btn--md { padding: 12px 22px; font-size: 14px; }
.ts-btn--lg { padding: 15px 28px; font-size: 16px; }
.ts-btn--block { width: 100%; }
.ts-btn--primary { background: var(--indigo-600); color: #fff; border-color: var(--indigo-600); }
.ts-btn--accent { background: var(--red-500); color: #fff; border-color: var(--red-500); }
.ts-btn--secondary { background: transparent; color: var(--indigo-700); border-color: var(--gray-300); }
.ts-btn--ghost { background: transparent; color: var(--indigo-700); border-color: transparent; }
.ts-btn--white { background: #fff; color: var(--red-600); border-color: #fff; }
.ts-btn--inverse-text { color: #fff; border-color: rgba(255,255,255,0.35); background: transparent; }
.ts-btn__arrow::after { content: "→"; margin-left: 2px; }

.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.ts-badge--neutral { background: var(--gray-100); color: var(--ink-700); }
.ts-badge--indigo { background: var(--indigo-50); color: var(--indigo-700); }
.ts-badge--red { background: var(--red-50); color: var(--red-600); }
.ts-badge--success { background: var(--success-50); color: #147a42; }

.ts-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.ts-card--service { transition: box-shadow var(--dur-base), transform var(--dur-base); }
.ts-card--service:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ts-card--inverse {
  background: var(--indigo-900);
  border-color: var(--indigo-800);
  color: #fff;
}

.ts-stat__value {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: var(--ls-tight);
  line-height: 1;
  color: var(--ink-900);
}
.ts-stat--inverse .ts-stat__value,
.ts-stat--inverse .ts-stat__label { color: #fff; }
.ts-stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 8px;
}

.ts-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ts-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--indigo-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-600);
  margin-bottom: 18px;
}
.ts-icon-box--sm { width: 48px; height: 48px; margin-bottom: 16px; }
.ts-icon-box--lg {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--red-400);
  margin-bottom: 0;
}

.ts-section-head { max-width: 640px; margin-bottom: 44px; }
.ts-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ts-section-head--center .ts-eyebrow { justify-content: center; }
.ts-section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 14px 0 12px;
}
.ts-section-head__lede { color: var(--text-muted); font-size: 17px; margin: 0; }

.ts-form-field { margin-bottom: 16px; }
.ts-form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.ts-form-field input,
.ts-form-field textarea,
.ts-form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  background: #fff;
}
.ts-form-field textarea { min-height: 110px; resize: vertical; }

.ts-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,22,31,0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ts-overlay.is-open { display: flex; }
.ts-modal {
  width: min(560px, 94vw);
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.ts-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1f9d57;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: padding .2s var(--ease-standard);
}
.ts-whatsapp:hover { padding: 14px 20px 14px 16px; color: #fff; text-decoration: none; }
.ts-whatsapp span { font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; display: none; }
.ts-whatsapp:hover span { display: inline; }

.ts-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.ts-site-header.is-scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.ts-site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ts-site-header__nav { display: flex; gap: 22px; align-items: center; }
.ts-site-header__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
}
.ts-site-header__link:hover,
.ts-site-header__link.is-active { color: var(--indigo-700); text-decoration: none; }
.ts-site-header__burger {
  display: none;
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--ink-800);
}
.ts-site-header__mobile {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  padding: 16px;
}
.ts-site-header__mobile.is-open { display: block; }
.ts-site-header__mobile a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--ink-800);
  font-weight: 600;
  font-size: 15px;
}

.ts-site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.ts-site-footer__head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 14px;
}
.ts-site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.ts-site-footer a:hover { color: #fff; }

.ts-faq__item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.ts-faq__item.is-open { box-shadow: var(--shadow-sm); }
.ts-faq__btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
}
.ts-faq__answer { padding: 0 22px 22px; color: var(--text-muted); font-size: 15.5; line-height: 1.65; display: none; }
.ts-faq__item.is-open .ts-faq__answer { display: block; }
.ts-faq__icon { color: var(--red-500); transition: transform .2s; }
.ts-faq__item.is-open .ts-faq__icon { transform: rotate(45deg); }

.ts-hero-home {
  position: relative;
  background: var(--indigo-900);
  color: #fff;
  overflow: hidden;
}
.ts-hero-home__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ts-hero-home__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(28,30,74,0.94) 0%, rgba(28,30,74,0.86) 42%, rgba(28,30,74,0.55) 100%);
}
.ts-hero-home__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 34px 34px;
}
.ts-hero-home__content { position: relative; padding: 104px var(--gutter) 92px; }
.ts-hero-home__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 20px 0 0;
  max-width: 760px;
}
.ts-hero-home__lede { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 620px; margin: 24px 0 36px; }
.ts-hero-home__stats {
  position: relative;
  border-top: 1px solid var(--indigo-800);
  background: rgba(0,0,0,0.18);
  padding: 28px var(--gutter);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.ts-cta-band { background: var(--red-500); color: #fff; }
.ts-cta-band__inner {
  padding: 52px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ts-cta-band__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.ts-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}
.ts-services-grid a { text-decoration: none; color: inherit; }

.ts-value-bar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 34px var(--gutter);
  display: flex;
  gap: 20px;
  align-items: center;
}
.ts-value-bar__accent { width: 4px; align-self: stretch; background: var(--red-500); border-radius: 2px; flex: none; }
.ts-value-bar__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-800);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.ts-process-dark {
  padding: var(--section-y) 0;
  background: var(--indigo-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ts-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
}
.ts-process-grid__item { padding: 0 26px; border-left: 1px solid rgba(255,255,255,0.14); }
.ts-process-grid__item:first-child { border-left: none; }

.ts-industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-800);
}
.ts-industry-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
}

.ts-ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--gray-100) 0 14px, var(--gray-150) 14px 28px);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-end;
}
.ts-ph span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  background: rgba(255,255,255,0.85);
  padding: 5px 9px;
  margin: 10px;
  border-radius: var(--radius-sm);
}
