/* =============================================
   NathoAsto — Services Page Styles
   ============================================= */

/* ── Services Hero ── */
.services-hero {
  text-align: center;
  min-height: 45vh;
}
.services-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

/* ── Page layout ── */
.services-layout-section { padding-top: 0; }

/* ── Sidebar ── */
.services-sidebar {
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

.sidebar-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-sub);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}
.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: var(--grad-primary);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s ease;
}
.sidebar-link:hover, .sidebar-link.active {
  color: var(--clr-primary);
  background: rgba(var(--clr-primary-rgb), 0.06);
}
.sidebar-link.active::before, .sidebar-link:hover::before {
  height: 70%;
}
.sidebar-link-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.sidebar-link.active .sidebar-link-icon,
.sidebar-link:hover .sidebar-link-icon {
  background: rgba(var(--clr-primary-rgb), 0.12);
  color: var(--clr-primary);
}

/* ── Service Sections ── */
.service-section { margin-bottom: 1rem; scroll-margin-top: 100px; }

.service-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.service-section-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(var(--s-color, 198,166,100), 0.1);
  border: 1px solid rgba(var(--s-color, 198,166,100), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--s-color);
  flex-shrink: 0;
}
.service-section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.25rem;
}

/* ── Service Cards ── */
.service-card {
  padding: 2rem;
  height: 100%;
  border-radius: var(--radius-lg) !important;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-card-border);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }

.service-card-orb {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  filter: blur(60px);
  background: var(--orb-color, rgba(198,166,100,0.1));
  top: -80px; right: -80px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover .service-card-orb { opacity: 1; }

.service-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.service-card h5 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.service-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: auto;
}
.metric-val {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--clr-primary);
  white-space: nowrap;
}
.service-metric span:last-child {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: 1.4;
}

.service-card-wide { padding: 2rem; }

/* Influencer visual */
.influencer-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.inf-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--c);
  background: rgba(var(--c), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c);
  position: relative;
}
.inf-circle::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: var(--c);
  border-radius: 50%;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--c);
}

/* ── Scroll progress indicator ── */
.services-progress {
  position: fixed;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--glass-border);
  z-index: var(--z-elevated);
}
.services-progress-fill {
  width: 100%;
  background: var(--grad-primary);
  border-radius: 0 0 2px 0;
  transition: height 0.1s ease;
}

@media (max-width: 991px) {
  .sticky-sidebar { position: relative; top: 0; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .sidebar-link {
    flex: 1 1 auto;
    min-width: 110px;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.6rem 0.75rem;
  }
  .sidebar-link::before { display: none; }
  .service-section-header { flex-direction: column; gap: 1rem; }
  .service-section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
  .influencer-visual { flex-direction: row; justify-content: center; }
  .services-layout-section { padding-top: 0; }
}

@media (max-width: 768px) {
  .service-card { padding: 1.5rem; }
  .service-section-header { margin-bottom: 1.5rem; padding-bottom: 1rem; }
  .services-sidebar { margin-bottom: 1.5rem; padding: 1rem; }
  .sidebar-link { min-width: 90px; font-size: 0.72rem; }
  .sidebar-link-icon { width: 28px; height: 28px; font-size: 0.8rem; }
  .sidebar-cta { display: none; }
  .metric-val { font-size: 1.25rem; }
  .service-metric { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  .services-sidebar { padding: 0.75rem; }
  .sidebar-nav { gap: 0.35rem; }
  .sidebar-link { min-width: 80px; font-size: 0.7rem; padding: 0.5rem 0.5rem; }
  .sidebar-link-icon { display: none; }
  .service-card { padding: 1.25rem; border-radius: 16px; }
  .service-card h5 { font-size: 0.95rem; }
  .service-card p { font-size: 0.82rem; }
  .service-card-icon { width: 44px; height: 44px; font-size: 1rem; border-radius: 12px; margin-bottom: 1rem; }
  .service-section-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
  .inf-circle { width: 60px; height: 60px; font-size: 0.65rem; }
  .services-progress { width: 2px; }
}
