/*
 * assets/jt.css
 * Custom component classes for JavaTop.
 * Tailwind utility classes are handled by Tailwind CDN (see head.php).
 * These classes supplement Tailwind — do not duplicate utilities here.
 */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #111418; color: #fff; font-family: 'DM Sans', sans-serif; }

/* ── PROSE MEASURE ── */
.prose-jt { max-width: 68ch; }

/* ── NAV ── */
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: #2EE8A5;
}
.nav-logo-text span { color: #fff; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A8F9A;
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: #2EE8A5;
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2EE8A5;
  color: #111418;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: #52edba; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2E3440;
  color: #e8e4dc;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: #2EE8A5; color: #2EE8A5; }

/* ── HERO ── */
.hero-display {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-display em {
  font-style: italic;
  color: #2EE8A5;
}

/* ── SECTION HEADING ── */
.section-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2EE8A5;
  margin-bottom: 12px;
  display: block;
}
.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}
.section-h2 em { font-style: italic; color: #2EE8A5; }

/* ── TEAL RULE ── */
.teal-rule {
  width: 48px;
  height: 3px;
  background: #2EE8A5;
  margin-bottom: 24px;
  border: none;
}

/* ── TRACK CARD ── */
.track-card {
  background: #1B1F26;
  border: 1px solid #2E3440;
  border-radius: 3px;
  padding: 36px 32px;
  transition: border-color 0.25s;
}
.track-card:hover { border-color: rgba(46,232,165,0.4); }
.track-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #2EE8A5;
  line-height: 1;
  margin-bottom: 16px;
}
.track-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.track-body {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 24px;
}
.track-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.track-list li {
  font-size: 0.85rem;
  color: #e8e4dc;
  padding: 7px 0;
  border-bottom: 1px solid #2E3440;
  display: flex;
  align-items: center;
  gap: 10px;
}
.track-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: #2EE8A5;
  border-radius: 50%;
}
.track-list li:last-child { border-bottom: none; }

/* ── SERVICE ROW ── */
.service-item {
  padding: 24px 0;
  border-bottom: 1px solid #2E3440;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}
.service-item:last-child { border-bottom: none; }
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.service-desc {
  font-size: 0.85rem;
  color: #8A8F9A;
  line-height: 1.6;
  max-width: 52ch;
}
.service-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2EE8A5;
  border: 1px solid rgba(46,232,165,0.3);
  border-radius: 2px;
  padding: 3px 9px;
  white-space: nowrap;
  margin-top: 4px;
}

/* ── PROOF STRIP ── */
.proof-strip {
  border-top: 1px solid #2E3440;
  border-bottom: 1px solid #2E3440;
  background: #111418;
}
.proof-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #2EE8A5;
  line-height: 1;
  margin-bottom: 4px;
}
.proof-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #8A8F9A;
  letter-spacing: 0.04em;
}

/* ── FOUNDER SECTION ── */
.founder-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  color: #fff;
}
.founder-quote span { color: #2EE8A5; }

/* ── CASE STUDY CARD ── */
.cs-card {
  background: #1B1F26;
  border: 1px solid #2E3440;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.cs-card:hover { border-color: rgba(46,232,165,0.4); transform: translateY(-2px); }
.cs-era {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2EE8A5;
}
.cs-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 10px;
  line-height: 1.3;
}
.cs-excerpt {
  font-size: 0.84rem;
  color: #8A8F9A;
  line-height: 1.6;
}
.cs-result {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #2E3440;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2EE8A5;
  letter-spacing: 0.04em;
}
.cs-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: #8A8F9A;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}
.cs-link-disabled {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4B5563;
  cursor: default;
  letter-spacing: 0.04em;
}

/* ── FOOTER ── */
.footer-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A8F9A;
  margin-bottom: 14px;
  display: block;
}
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: #8A8F9A;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-link:hover { color: #2EE8A5; }

/* ── FORM ELEMENTS ── */
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A8F9A;
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #1B1F26;
  border: 1px solid #2E3440;
  border-radius: 2px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: #2EE8A5; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* ── TOUCH ── */
/* Prevents accidental double-tap zoom on interactive elements without
   blocking pinch-to-zoom on page content. Accessibility-safe. */
.nav-link,
.nav-link-mobile,
.btn-primary,
.btn-ghost {
  touch-action: manipulation;
}

/* ── MOBILE NAV ── */
.nav-link-mobile {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8A8F9A;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid #2E3440;
  transition: color 0.2s;
}
.nav-link-mobile:last-of-type { border-bottom: none; }
.nav-link-mobile:hover,
.nav-link-mobile.active { color: #2EE8A5; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .service-item { grid-template-columns: 1fr; }
}
