/* ArcadiaB Component Styles */
/* Reusable components: buttons, cards, forms, phone mockups, badges */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

/* Primary button - gold gradient */
.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 168, 67, 0.25);
}

.btn-primary .arrow {
  transition: transform var(--transition-base);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* Ghost button - transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Text link with arrow */
.btn-text {
  background: none;
  padding: 0;
  color: var(--gold);
  font-weight: 500;
}

.btn-text:hover {
  color: var(--gold-light);
}

.btn-text .arrow {
  transition: transform var(--transition-fast);
}

.btn-text:hover .arrow {
  transform: translateX(4px);
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Product card with layout */
.card-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .card-product {
    grid-template-columns: 1fr 1fr;
  }
}

.card-product.featured {
  grid-column: 1 / -1;
}

/* Card header with tag */
.card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-bright);
}

.card-copy {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* ========================================
   BADGES & PILLS
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 24px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  color: var(--gold);
  white-space: nowrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-pill::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

/* ========================================
   PHONE MOCKUPS
   ======================================== */

.phone-mockup {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.phone-frame {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(212, 168, 67, 0.08);
  position: relative;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-primary);
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Glow effect behind phone */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-text);
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
}

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

/* Newsletter form (inline) */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ========================================
   CONTENT BRIDGES
   ======================================== */

.content-bridge {
  background: rgba(212, 168, 67, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.bridge-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.bridge-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.bridge-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.bridge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.bridge-link:hover {
  color: var(--gold-light);
}

/* ========================================
   TRUST BAR
   ======================================== */

.trust-bar {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trust-bar span {
  margin: 0 var(--space-md);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-bright);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.testimonial-author strong {
  color: var(--gold);
  font-weight: 600;
}

/* ========================================
   CARD ICON
   ======================================== */

.card-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: var(--space-md);
}
/* Improved 3-Step Process Styling */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #B8941F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

.step-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .process-step {
        gap: 1.5rem;
    }
    
    .step-number-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Step number styling for horizontal steps */
.steps-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #B8941F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
    margin: 0 auto 1.5rem;
}

.step-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    margin-top: 30px;
    position: relative;
}

.step-arrow::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: -10px;
    color: var(--gold);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .steps-horizontal {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        width: 2px;
        height: 40px;
        margin: 0 auto;
        background: linear-gradient(180deg, transparent 0%, var(--gold) 50%, transparent 100%);
    }
    
    .step-arrow::after {
        content: '↓';
        right: -10px;
        top: auto;
        bottom: -15px;
    }
}

/* ========================================
   PROBLEM & STEPS SECTIONS (StoryBrand)
   ======================================== */

/* Primary CTA - Orange highlight for main actions */
.btn-cta-primary {
  background: var(--orange) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 32px rgba(232, 134, 58, 0.25);
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, var(--orange), #D47232) !important;
  box-shadow: 0 12px 40px rgba(232, 134, 58, 0.35);
}

/* Problem Grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.step-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

/* Dark background utility */
.bg-dark {
  background: var(--bg-secondary);
}

/* Utility color classes */
.text-error {
  color: var(--red);
}

.text-warning {
  color: #FFA500;
}

.text-success {
  color: var(--green);
}
