/* ============================================
   components.css — Shared Components
   JDV Labs | jdvlabs.tech
   Built: July 2026
   Shared across JDV Labs pages (blue palette)
   BGE pages include bge-main.css instead
   ============================================ */

/* ----------------------------------------
   CTA BUTTONS — JDV Labs (Blue)
   ---------------------------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--jdv-cta-bg);
  color: var(--jdv-cta-text);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
  line-height: 1;
}

.cta-button:hover {
  background: var(--jdv-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  color: var(--jdv-cta-text);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Gold CTA variant — for BGE showcase section on JDV homepage */
.cta-button--gold {
  background: var(--bge-gold);
  color: #0D1B3E;
}

.cta-button--gold:hover {
  background: #D4A93A;
  box-shadow: 0 4px 12px rgba(200, 154, 42, 0.35);
  color: #0D1B3E;
}

/* Outline variant */
.cta-button--outline {
  background: transparent;
  color: var(--jdv-accent);
  border: 1px solid var(--jdv-accent);
}

.cta-button--outline:hover {
  background: var(--jdv-accent-soft);
  color: var(--jdv-text-primary);
}

/* Ghost text link variant */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--jdv-accent);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.cta-link:hover {
  gap: 10px;
  color: var(--jdv-text-primary);
}

.cta-link--gold {
  color: var(--bge-gold);
}

.cta-link--gold:hover {
  color: #D4A93A;
}

/* Full-width on mobile */
@media (max-width: 768px) {
  .cta-button {
    display: flex;
    width: 100%;
    min-height: 56px;
  }
}

/* ----------------------------------------
   CARDS — JDV Labs (Blue accent)
   ---------------------------------------- */
.card {
  background: var(--jdv-bg-secondary);
  border: 1px solid var(--jdv-border);
  border-top: 2px solid var(--jdv-accent);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-top-color: var(--jdv-accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

/* Gold-accented card variant — BGE showcase */
.card--gold {
  background: #0D1B3E;
  border: 1px solid var(--bge-gold-30);
  border-top: 2px solid var(--bge-gold);
  box-shadow: 0 0 24px rgba(200, 154, 42, 0.08);
}

.card--gold:hover {
  box-shadow: 0 0 36px rgba(200, 154, 42, 0.15);
  border-color: var(--bge-gold);
}

/* Coming soon card — blurred/teaser */
.card--coming-soon {
  position: relative;
  overflow: hidden;
  opacity: 0.55;
  filter: blur(0.5px);
  user-select: none;
}

.card--coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jdv-text-secondary);
  background: rgba(8, 14, 28, 0.8);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--jdv-border);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ----------------------------------------
   CARD GRID LAYOUTS
   ---------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.card-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid,
  .card-grid--2col {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   PROOF BAR — JDV Labs
   ---------------------------------------- */
.proof-bar {
  border-top: 1px solid var(--jdv-accent-30);
  border-bottom: 1px solid var(--jdv-accent-30);
  background: var(--jdv-bg-secondary);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.proof-divider {
  color: var(--jdv-accent-30);
  font-weight: 300;
}

/* ----------------------------------------
   BADGE
   ---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--live {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge--soon {
  background: rgba(148, 163, 184, 0.1);
  color: var(--jdv-text-secondary);
  border: 1px solid var(--jdv-border);
}

/* ----------------------------------------
   TESTIMONIAL CARDS
   ---------------------------------------- */
.testimonial-card {
  background: var(--jdv-bg-secondary);
  border: 1px solid var(--jdv-border);
  border-left: 4px solid var(--jdv-accent);
  border-radius: var(--radius-card);
  padding: var(--space-md);
}

.testimonial-card blockquote {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--jdv-text-primary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: var(--space-sm);
  border: none;
  padding: 0;
}

.testimonial-attribution {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--jdv-text-secondary);
}

/* ----------------------------------------
   EMAIL CAPTURE FORM
   ---------------------------------------- */
.email-capture {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
  margin: var(--space-md) auto 0;
}

.email-capture input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  background: var(--jdv-bg-secondary);
  border: 1px solid var(--jdv-border);
  border-radius: var(--radius-button);
  color: var(--jdv-text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.email-capture input[type="email"]::placeholder {
  color: var(--jdv-text-secondary);
}

.email-capture input[type="email"]:focus {
  border-color: var(--jdv-accent);
}

.email-capture button {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .email-capture {
    flex-direction: column;
  }
}

/* ----------------------------------------
   PRICING TABLES
   ---------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}

.pricing-table th {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jdv-text-secondary);
  padding: var(--space-sm) var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--jdv-border);
}

.pricing-table td {
  padding: var(--space-sm) var(--space-sm);
  color: var(--jdv-text-primary);
  font-size: 15px;
  border-bottom: 1px solid var(--jdv-border);
  vertical-align: middle;
}

.pricing-table tr.featured {
  background: rgba(59, 130, 246, 0.06);
}

.pricing-table tr.featured td:first-child {
  border-left: 2px solid var(--jdv-accent);
}

/* ----------------------------------------
   SPLIT LAYOUTS
   ---------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-lg);
  align-items: center;
}

.split-layout--reverse {
  grid-template-columns: 40% 60%;
}

@media (max-width: 768px) {
  .split-layout,
  .split-layout--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ----------------------------------------
   STEP NUMBERS
   ---------------------------------------- */
.step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--jdv-border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  color: rgba(59, 130, 246, 0.12);
  line-height: 1;
  user-select: none;
  font-weight: 400;
}

.step-content h3 {
  margin-bottom: var(--space-xs);
}

@media (max-width: 600px) {
  .step-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
  .step-number {
    font-size: 36px;
    color: rgba(59, 130, 246, 0.2);
  }
}

/* ----------------------------------------
   ANNOUNCEMENT BAR (Section Label)
   ---------------------------------------- */
.section-label-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.section-label-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jdv-accent);
  flex-shrink: 0;
}

.section-label-bar .dot--gold {
  background: var(--bge-gold);
}

/* ----------------------------------------
   FORM STYLES (Contact, Email Capture)
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--jdv-text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--jdv-bg-secondary);
  border: 1px solid var(--jdv-border);
  border-radius: var(--radius-button);
  color: var(--jdv-text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--jdv-text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--jdv-accent);
}

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

.form-errors {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-button);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ef4444;
  display: none;
}

.form-errors.is-visible {
  display: block;
}
