/* Services page styles (scoped with .services-*)
   Uses site variables from style.css and .reveal hooks from main.js
*/

:root {}

/* Enhanced gradient background */
body {
  background: linear-gradient(180deg, #f6fbfc 0%, #fdfeff 50%, #f9fcfd 100%) !important;
  background-image: linear-gradient(180deg, #f6fbfc 0%, #fdfeff 50%, #f9fcfd 100%) !important;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(.2,1,.3,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Hero Section */
.services-hero {
  background: transparent;
  text-align: center;
  padding: 2rem 0 3rem;
}

.services-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.services-hero .kicker {
  align-self: center;
  padding: .375rem .75rem;
  border-radius: 999px;
  font-size: .8125rem;
  background: linear-gradient(135deg, rgba(0,147,202,0.1) 0%, rgba(0,96,131,0.08) 100%);
  color: var(--color-primary-600);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,147,202,0.08);
}

.services-hero__title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.services-hero .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(11,33,48,.85);
  max-width: 70ch;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-header .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(11,33,48,.7);
  max-width: 65ch;
  margin: 0 auto;
}

/* Section Backgrounds */
.section--alt {
  background: rgba(0,147,202,0.02);
}

/* Core Services Section */
#core-services {
  margin-bottom: 4rem;
}

/* Service Tabs Container */
.service-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem;
  background: rgba(0,147,202,0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,147,202,0.08);
  /* Force single line - no wrapping */
  flex-wrap: nowrap;
  /* Enable horizontal scrolling */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,147,202,0.3) rgba(0,147,202,0.05);
  scroll-behavior: smooth;
  white-space: nowrap;
}

/* Webkit scrollbar styling */
.service-tabs::-webkit-scrollbar {
  height: 8px;
}

.service-tabs::-webkit-scrollbar-track {
  background: rgba(0,147,202,0.05);
  border-radius: 4px;
  margin: 0 0.5rem;
}

.service-tabs::-webkit-scrollbar-thumb {
  background: rgba(0,147,202,0.3);
  border-radius: 4px;
}

.service-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(0,147,202,0.5);
}

.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-md);
  color: rgba(11,33,48,0.7);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,1,.3,1);
  position: relative;
  white-space: nowrap;
  /* Prevent tabs from shrinking */
  flex-shrink: 0;
  /* Ensure minimum width */
  min-width: fit-content;
}

.service-tab:hover {
  background: rgba(255,255,255,0.5);
  color: var(--color-primary);
  border-color: rgba(0,147,202,0.1);
}

.service-tab.active {
  background: #fff;
  color: var(--color-primary);
  border-color: rgba(0,147,202,0.15);
  box-shadow: 0 2px 8px rgba(0,147,202,0.1);
  position: relative;
}

/* Progress indicator for auto-rotation */
.service-tab.active.auto-rotating::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-600));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: progressBar 5s linear;
}

@keyframes progressBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.service-tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.service-tab--featured {
  background: linear-gradient(135deg, rgba(0,147,202,0.05) 0%, rgba(0,147,202,0.02) 100%);
}

.service-tab--featured.active {
  background: linear-gradient(135deg, rgba(0,147,202,0.08) 0%, rgba(0,147,202,0.03) 100%);
}

.tab-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

@media (max-width: 640px) {
  .service-tab {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  .service-tabs {
    gap: 0.375rem;
    padding: 0.375rem;
  }
}

/* Service Panels */
.service-panels {
  position: relative;
  min-height: 400px;
  margin-bottom: 3rem;
}

.service-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.service-panel.active {
  display: block;
  animation: panelSlideIn 0.5s cubic-bezier(.2,1,.3,1) forwards;
}

@keyframes panelSlideIn {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-panel {
    transition: none;
  }
  .service-panel.active {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.service-panel__content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(0,147,202,0.1);
  box-shadow: 0 4px 16px rgba(0,147,202,0.08);
}

.service-panel__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,147,202,0.08);
}

.service-panel__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(0,147,202,0.08) 0%, rgba(0,147,202,0.03) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-panel__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.service-panel__subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0;
}

.panel-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.service-panel__description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(11,33,48,0.85);
  margin-bottom: 2rem;
}

.service-panel__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .service-panel__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0,147,202,0.15);
}

.feature-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.feature-col li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(11,33,48,0.85);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-col li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,147,202,0.12) 0%, rgba(0,147,202,0.08) 100%);
  color: var(--color-primary-600);
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,147,202,0.1);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,147,202,0.08);
}

.service-panel__pricing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-label {
  font-size: 0.875rem;
  color: rgba(11,33,48,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.pricing-amount--custom {
  font-size: 1.75rem;
}

.pricing-period {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(11,33,48,0.7);
}

.pricing-note {
  font-size: 0.8125rem;
  color: rgba(11,33,48,0.5);
  font-style: italic;
}

.service-panel__footer .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.service-panel--featured .service-panel__content {
  background: linear-gradient(135deg, rgba(0,147,202,0.02) 0%, rgba(0,147,202,0.01) 100%);
  border-color: rgba(0,147,202,0.2);
  box-shadow: 0 8px 24px rgba(0,147,202,0.12);
}

@media (max-width: 640px) {
  .service-panel__content {
    padding: 1.5rem;
  }

  .service-panel__header {
    flex-direction: column;
    gap: 1rem;
  }

  .service-panel__title {
    font-size: 1.5rem;
  }

  .service-panel__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .service-panel__footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.process-step {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,147,202,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: #fff;
  text-align: center;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,147,202,0.12);
  border-color: rgba(0,147,202,0.15);
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,147,202,0.3);
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.process-step p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(11,33,48,.75);
  margin: 0;
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Package Card */
.package-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0,147,202,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(.2,1,.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
  background: #fff;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,147,202,0.15);
  border-color: rgba(0,147,202,0.2);
}

.package-card__header {
  display: grid;
  gap: .75rem;
  text-align: left;
}

.package-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.package-card__price {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  margin: .5rem 0;
}

.package-card__currency {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.package-card__amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--color-text);
}

.package-card__subtitle {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}

.package-features li {
  display: flex;
  gap: .625rem;
  align-items: center;
  color: rgba(11,33,48,.85);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.package-features li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,147,202,0.12) 0%, rgba(0,147,202,0.08) 100%);
  color: var(--color-primary-600);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 2px 6px rgba(0,147,202,0.1);
  flex-shrink: 0;
}

.package-card__footer {
  margin-top: .5rem;
  display: flex;
}

.package-card__footer .btn {
  width: 100%;
  justify-content: center;
  padding: .875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Featured Package */
.package-card--featured {
  position: relative;
  border-color: rgba(0,147,202,0.25) !important;
  background: linear-gradient(135deg, rgba(0,147,202,0.02) 0%, rgba(0,147,202,0.01) 100%);
  box-shadow: 0 8px 24px rgba(0,147,202,0.12);
}

.package-card--featured:hover {
  box-shadow: 0 16px 40px rgba(0,147,202,0.2);
  transform: translateY(-10px) scale(1.02);
}

.package-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0,147,202,0.3);
  white-space: nowrap;
}

.package-card--featured .package-card__amount {
  color: var(--color-primary);
}

/* Technology Grid */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tech-item {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,147,202,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: #fff;
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,147,202,0.12);
  border-color: rgba(0,147,202,0.15);
}

.tech-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.tech-item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(11,33,48,.75);
  margin: 0;
}

/* CTA Section */
.services-cta {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,147,202,0.03) 0%, rgba(0,147,202,0.01) 100%);
  border: 1px solid rgba(0,147,202,0.12);
  box-shadow: 0 8px 24px rgba(0,147,202,0.08);
  text-align: center;
}

@media (min-width: 768px) {
  .services-cta {
    grid-template-columns: 1fr auto;
    text-align: left;
  }
}

.services-cta__content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.services-cta__content .lead {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(11,33,48,.8);
  margin: 0;
  max-width: 60ch;
}

.services-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .services-cta__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Pricing Notes */
.pricing-notes {
  text-align: center;
  margin-top: 2rem;
  color: rgba(11,33,48,.65);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Button spacing */
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Revolutionary Service Badge */
.service-card { /* ensure badges can position */
  position: relative;
}
.service-card--revolutionary {
  border-color: rgba(255,120,0,0.35);
  box-shadow: 0 8px 30px rgba(255,120,0,0.25), 0 0 0 1px rgba(255,140,0,0.15) inset;
  background: linear-gradient(135deg, rgba(255,240,225,0.6) 0%, rgba(255,250,245,0.9) 60%, #fff 100%);
}
.service-card--revolutionary:hover {
  box-shadow: 0 12px 42px rgba(255,120,0,0.35), 0 0 0 1px rgba(255,140,0,0.25) inset;
}
.service-card__badge {
  position: absolute;
  top: -14px;
  left: 16px;
  background: linear-gradient(135deg, #ff7a18 0%, #ffae00 50%, #ff7a18 100%);
  color: #fff;
  font-weight: 700;
  font-size: .675rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255,120,0,0.4);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  animation: revolutionaryPulse 3.2s ease-in-out infinite;
}
.service-card__badge::before {
  content: '\2728';
  font-size: .85rem;
  line-height: 1;
}
@keyframes revolutionaryPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 14px rgba(255,120,0,0.4); }
  50% { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,120,0,0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .service-card__badge { animation: none; }
}

/* Accessibility: high contrast mode tweaks */
@media (forced-colors: active) {
  .service-card__badge { border: 1px solid currentColor; }
}

