/* ==========================================================================
   FIXILA - COMPONENTS STYLESHEET (CLEANED)
   Save as: /css/components.css
   Used on: ALL PAGES (shared components)
   
   NOTE: Hero styles moved to /css/hero.css
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: #001833;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: #74C0FC;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #001833;
}

.more-btn {
  background: none;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: .5rem 1rem;
  border-radius: .25rem;
  cursor: pointer;
  transition: all 0.3s;
}

.more-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
  background: #f8fafc;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.trust-bar p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.trust-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2563eb;
  display: block;
}

.stat-label {
  color: #64748b;
  font-size: 0.9rem;
  display: block;
}

/* ==========================================================================
   SERVICES (CARD GRID)
   ========================================================================== */
.services-section {
  padding: 6rem 2rem;
  background: #ffffff;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: #2563eb;
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-link {
  color: #2563eb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.service-link:hover {
  gap: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #64748b;
  border-bottom: 1px solid #e9ecef;
}

.service-features li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   SERVICE TABS (tabbed navigation on service pages)
   ========================================================================== */
#services,
#services-business,
#services-pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.service-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.service-nav li {
  cursor: pointer;
  text-align: center;
  opacity: 0.6;
  width: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.service-nav li.active,
.service-nav li:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.service-nav li svg {
  width: 2rem;
  height: 2rem;
  display: block;
  margin: 0 auto .5rem;
}

.service-panel-wrap {
  position: relative;
}

.service-panel {
  display: none;
  flex-wrap: wrap;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 24px;
}

.service-panel.active {
  display: flex;
}

.panel-image,
.panel-content {
  flex: 1;
}

.panel-image img {
  width: 100%;
  height: auto;
}

.panel-content {
  background: #1e3a8a;
  color: #ffffff;
  padding: 2rem;
  position: relative;
}

.panel-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.panel-content p {
  margin-bottom: 1.25rem;
  color: #ffffff;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: #1e3a8a;
  color: #ffffff;
  padding: 1rem;
  text-align: left;
  font-weight: 700;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}

/* ==========================================================================
   PROCESS (How It Works)
   ========================================================================== */
.process-section {
  padding: 6rem 2rem;
  background: #f8fafc;
}

.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.process-step {
  text-align: center;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
}

.process-step h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.process-step p {
  color: #64748b;
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto;
}

/* ==========================================================================
   CTA (Call to Action Sections)
   ========================================================================== */
.cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #001833 0%, #1e3a8a 50%, #2563eb 100%);
  text-align: center;
  color: #ffffff;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
}

.cta-btn.white {
  background: #ffffff;
  color: #001833;
}

.cta-btn.white:hover {
  background: #74C0FC;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn.outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cta-btn.outline:hover {
  background: #ffffff;
  color: #001833;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   TESTIMONIALS / PROJECTS
   ========================================================================== */
.testimonials,
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1140px;
  padding: 1rem;
}

.testimonials blockquote,
.projects blockquote {
  background: #ffffff;
  border-left: 4px solid #1e3a8a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
}

/* ==========================================================================
   SECTION HEADER (used on many pages)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-panel {
    flex-direction: column;
  }

  .trust-stats {
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary,
  .cta-btn {
    width: 100%;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .cta-section h2 {
    font-size: 1.75rem;
  }
}