/* Premium Services Page Styles */
/* Focuses on Apple-level simplicity + Deloitte-level trust */

:root {
  --premium-bg: #0f172a;
  --premium-surface: #1e293b;
  --premium-surface-hover: #334155;
  --premium-border: rgba(255, 255, 255, 0.1);
  --premium-text: #f8fafc;
  --premium-text-muted: #94a3b8;
  --premium-accent: #3b82f6;
  --premium-success: #10b981;
}

/* Base resets for premium sections */
.premium-section {
  padding: 5rem 0;
  background-color: var(--premium-bg);
  color: var(--premium-text);
  border-bottom: 1px solid var(--premium-border);
}

.premium-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.premium-subheading {
  color: var(--premium-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

/* Premium Card - No heavy glass, clean borders */
.premium-card {
  background-color: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animated Vertical Roadmap (Hero) */
.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 2rem;
}

.roadmap-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--premium-accent), rgba(59, 130, 246, 0.1));
}

.roadmap-step {
  position: relative;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(20px);
  animation: slideInRight 0.5s forwards ease;
  text-align: left; /* Keep left aligned for vertical timeline even in text-center parent */
}

.roadmap-step::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--premium-accent);
  border: 3px solid var(--premium-bg);
}

/* Animations */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 0.9s; }

/* Interactive Cards (Which ISO) */
.interactive-card {
  display: flex;
  flex-direction: column;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.interactive-card:hover {
  border-color: var(--premium-accent);
}

.interactive-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--premium-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Comparison Table */
.premium-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--premium-border);
}

.premium-table th,
.premium-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--premium-border);
  text-align: left;
}

.premium-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--premium-text-muted);
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Problem -> Solution */
.solution-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.solution-row:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
}

.solution-problem {
  flex: 1;
  color: var(--premium-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.solution-arrow {
  color: var(--premium-border);
}

.solution-fix {
  flex: 1;
  font-weight: 600;
  color: var(--premium-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Cost Cards */
.cost-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  height: 100%;
}

.cost-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--premium-accent);
  margin: 1.5rem 0;
}

/* Timeline */
.timeline-horizontal {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  scrollbar-width: thin;
}

.timeline-horizontal::-webkit-scrollbar {
  height: 6px;
}
.timeline-horizontal::-webkit-scrollbar-thumb {
  background: var(--premium-border);
  border-radius: 4px;
}

.timeline-item {
  flex: 0 0 250px;
  position: relative;
  padding-top: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: -2rem;
  height: 2px;
  background: var(--premium-border);
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--premium-accent);
}

/* Industry Tabs */
.industry-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.industry-btn {
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  color: var(--premium-text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.industry-btn:hover, .industry-btn.active {
  background: var(--premium-accent);
  color: #fff;
  border-color: var(--premium-accent);
}

.industry-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.industry-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Before vs After */
.bna-container {
  display: flex;
  flex-direction: column;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bna-container {
    flex-direction: row;
    gap: 2rem;
  }
}

.bna-side {
  flex: 1;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .bna-side {
    padding: 3rem;
  }
}

.bna-before {
  background: rgba(239, 68, 68, 0.05);
}

.bna-after {
  background: rgba(16, 185, 129, 0.05);
}

.bna-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bna-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Restyled ISO Cards (Clean look) */
.clean-iso-card {
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clean-iso-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.clean-iso-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.clean-iso-subtitle {
  color: var(--premium-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.clean-iso-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.clean-iso-meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.clean-iso-meta-label {
  color: var(--premium-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.clean-iso-meta-value {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}

.clean-iso-btn {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.clean-iso-btn:hover {
  background: var(--premium-accent);
  color: #fff;
}

/* Connected Timeline for Lifecycle */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: var(--premium-border);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 60px;
  padding-bottom: 1rem;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--premium-surface);
  border: 2px solid var(--premium-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--premium-accent);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-container {
    flex-direction: row;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
  }
  .timeline-container::before {
    top: 20px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 2px;
  }
  .timeline-step {
    padding-left: 0;
    padding-top: 60px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding-bottom: 0;
  }
  .timeline-number {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Horizontal Roadmap variant for Hero */
@media (min-width: 992px) {
  .roadmap-horizontal {
    flex-direction: row;
    justify-content: center;
    padding-left: 0;
    padding-top: 3rem;
  }
  .roadmap-horizontal::before {
    top: 0;
    left: 2rem;
    right: 2rem;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), var(--premium-accent), rgba(59, 130, 246, 0.1));
  }
  .roadmap-horizontal .roadmap-step {
    flex: 1;
    margin-top: 1rem;
    transform: translateY(20px);
    animation: slideInUpRoadmap 0.5s forwards ease;
    text-align: center;
    background: transparent;
    border: none;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .roadmap-horizontal .roadmap-step:hover {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
  }
  .roadmap-horizontal .roadmap-step::before {
    left: 50%;
    top: -3.5rem;
    transform: translateX(-50%);
  }
}

@keyframes slideInUpRoadmap {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   MOBILE RESPONSIVENESS OVERRIDES
   ============================================================ */
@media (max-width: 767.98px) {
  /* Hero Section */
  .premium-section {
    padding: 3rem 0 !important;
  }
  .premium-section:first-of-type {
    padding-top: 7rem !important; /* Push below fixed navbar */
  }
  .premium-heading {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }
  .premium-subheading {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Roadmap Section */
  .roadmap-container {
    padding-left: 1.25rem !important;
    gap: 0.75rem !important;
  }
  .roadmap-step {
    padding: 0.5rem 0.75rem !important;
  }
  .roadmap-step h5 {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }
  .roadmap-step p {
    font-size: 0.85rem !important;
  }
  .roadmap-step::before {
    left: -1.75rem !important;
    width: 10px !important;
    height: 10px !important;
  }

  /* Interactive Cards (Which ISO) */
  .interactive-card {
    padding: 1rem !important;
  }
  .interactive-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  .interactive-card p {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
  }
  .interactive-card h6 {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
  }
  .interactive-card li {
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }
  .interactive-card .interactive-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* Search Bar */
  .iso-search-container input {
    font-size: 0.9rem !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }

  /* Industry Navigation Tabs */
  .industry-nav {
    gap: 0.25rem !important;
    margin-bottom: 1.5rem !important;
  }
  .industry-btn {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.6rem !important;
  }

  /* Clean ISO Cards Grid */
  .clean-iso-card {
    padding: 1rem !important;
  }
  .clean-iso-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.25rem !important;
  }
  .clean-iso-subtitle {
    font-size: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  .clean-iso-meta {
    gap: 0.35rem !important;
    margin-bottom: 0.75rem !important;
  }
  .clean-iso-meta-item {
    padding-bottom: 0.35rem !important;
  }
  .clean-iso-meta-label {
    font-size: 0.7rem !important;
  }
  .clean-iso-meta-value {
    font-size: 0.85rem !important;
  }
  .clean-iso-btn {
    font-size: 0.9rem !important;
    padding: 0.5rem !important;
  }
  
  /* Before vs After */
  .bna-side {
    padding: 1.25rem 1rem !important;
  }
  .bna-list li {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Timeline Lifecycle Section */
  .timeline-container {
    gap: 1rem !important;
  }
  .timeline-container::before {
    left: 15px !important;
  }
  .timeline-step {
    padding-left: 45px !important;
    padding-bottom: 0.5rem !important;
  }
  .timeline-number {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }
  .timeline-step h5 {
    font-size: 1rem !important;
  }
  .timeline-step p {
    font-size: 0.85rem !important;
  }

  /* Pricing Section Mobile Overrides */
  #pricing h2.display-6 {
    font-size: 1.5rem !important;
  }
  #pricing .interactive-card {
    padding: 1.25rem 1rem !important;
  }
  #pricing .interactive-card h4 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  #pricing .interactive-card p.mb-4 {
    margin-bottom: 0.75rem !important;
    font-size: 0.85rem !important;
  }
  #pricing .interactive-card h2[style] {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  #pricing .interactive-card ul {
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  #pricing .interactive-card li {
    font-size: 0.85rem !important;
  }
}

