/**
 * Deferred CSS for Deltadots Services Page
 * Loaded asynchronously after first paint
 * Contains: Services Grid, Process, Support sections
 * Note: Section-specific CSS (cta, testimonials, faq, contact)
 * is loaded dynamically via Fast_Pages::section()
 */

/* =====================
   SERVICES GRID SECTION
   ===================== */
.services-grid-section {
  padding: 100px 0;
  background: var(--color-bg-light);
}

.services-grid-section__header {
  max-width: 600px;
  margin-bottom: 60px;
}

.services-grid-section__subtitle {
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-top: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--color-border);
}

.service-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__features li {
  font-size: 0.875rem;
  color: var(--color-text);
  padding-left: 20px;
  position: relative;
}

.service-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.service-card__link:hover {
  gap: 12px;
}

.service-card__link svg {
  transition: transform 0.3s ease;
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* =====================
   PROCESS SECTION
   ===================== */
.services-process {
  padding: 100px 0;
  background: var(--color-bg);
}

.services-process__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.services-process__label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.services-process__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 16px;
}

.services-process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.services-process__timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-border) 50%,
    var(--color-primary) 100%
  );
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-bg-light);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.process-step__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.process-step__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =====================
   SUPPORT SECTION
   ===================== */
.services-support {
  padding: 100px 0;
  background: var(--color-bg-dark);
}

.services-support__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.services-support__label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.services-support__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.services-support__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.services-support__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.support-feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.support-feature__content {
  flex: 1;
}

.support-feature__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.support-feature__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* =====================
   RESPONSIVE - SERVICES GRID
   ===================== */
@media (max-width: 1024px) {
  .services-grid-section {
    padding: 80px 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  .services-process__timeline::before {
    display: none;
  }
  .services-support__wrapper {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .services-grid-section {
    padding: 60px 0;
  }
  .services-grid-section__header {
    margin-bottom: 40px;
  }
  .services-grid-section__subtitle {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 24px;
  }
  .service-card__title {
    font-size: 1.25rem;
  }
  .service-card__desc {
    font-size: 0.875rem;
  }
  .services-process {
    padding: 60px 0;
  }
  .services-process__header {
    margin-bottom: 40px;
  }
  .services-process__timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-step {
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .process-step__num {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
    margin-bottom: 0;
  }
  .process-step__title {
    margin-bottom: 8px;
    font-size: 1.125rem;
  }
  .process-step__desc {
    font-size: 0.875rem;
  }
  .services-support {
    padding: 60px 0;
  }
  .services-support__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-support__title {
    font-size: 1.75rem;
  }
  .services-support__desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .support-feature__icon {
    width: 44px;
    height: 44px;
  }
  .support-feature__title {
    font-size: 1rem;
  }
  .support-feature__desc {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .services-grid-section__subtitle {
    font-size: 0.9375rem;
  }
  .service-card {
    padding: 20px;
  }
  .service-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }
  .service-card__title {
    font-size: 1.125rem;
  }
  .service-card__features li {
    font-size: 0.8125rem;
  }
  .process-step__num {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  .services-support__features {
    gap: 20px;
  }
}

/* =====================
   SUPPORT & MAINTENANCE SECTION
   ===================== */
.support-maintenance-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0f1a 0%, #0d1117 100%);
  position: relative;
  overflow: hidden;
}

.support-maintenance__content {
  position: relative;
  z-index: 1;
  /* max-width: 900px; */
}

.support-maintenance__label {
  display: inline-block;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
  line-height: 100%;
  text-transform: capitalize;
}

.support-maintenance__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

.support-maintenance__title {
  font-size: 64px;
  font-weight: 300;
  color: #fff;
  line-height: 100%;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.support-maintenance__title--accent {
  background: linear-gradient(90deg, #206dd1 2.5%, #ffffff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.support-maintenance__desc {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  line-height: 32px;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
  max-width: 850px;
}

.support-maintenance__features-label {
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  line-height: 32px;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

/* Feature Cards Grid */
.support-maintenance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1260px;
}

.support-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(8px);
}

.support-feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.support-feature-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.support-feature-card__icon svg {
  width: 40px;
  height: 40px;
}

.support-feature-card__title {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  line-height: 32px;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Fingerprint Pattern */
.support-maintenance__pattern {
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  opacity: 0.15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%234B9FFF' stroke-width='0.5'%3E%3Ccircle cx='100' cy='100' r='20'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3Ccircle cx='100' cy='100' r='50'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='70'/%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='100' cy='100' r='90'/%3E%3Cpath d='M100 10 Q140 50 100 100 Q60 150 100 190'/%3E%3Cpath d='M100 10 Q60 50 100 100 Q140 150 100 190'/%3E%3Cpath d='M30 100 Q70 60 100 100 Q130 140 170 100'/%3E%3Cpath d='M30 100 Q70 140 100 100 Q130 60 170 100'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Responsive - Support & Maintenance */
@media (max-width: 1024px) {
  .support-maintenance__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-maintenance__pattern {
    width: 400px;
    height: 400px;
    bottom: -80px;
    right: -80px;
  }
  .support-maintenance__title {
    font-size: 48px;
  }
  .support-maintenance__label {
    font-size: 20px;
  }
  .support-maintenance__desc {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 768px) {
  .support-maintenance-section {
    padding: 80px 0;
  }
  .support-maintenance__title {
    font-size: 36px;
  }
  .support-maintenance__label {
    font-size: 18px;
  }
  .support-maintenance__desc {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 36px;
  }
  .support-maintenance__features-label {
    font-size: 1.25rem;
    margin-bottom: 24px;
  }
  .support-maintenance__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .support-feature-card {
    padding: 20px;
    gap: 16px;
  }
  .support-feature-card__icon {
    width: 48px;
    height: 48px;
  }
  .support-feature-card__icon svg {
    width: 32px;
    height: 32px;
  }
  .support-feature-card__title {
    font-size: 0.9375rem;
  }
  .support-maintenance__pattern {
    width: 300px;
    height: 300px;
    bottom: -60px;
    right: -60px;
    opacity: 0.1;
  }
}

@media (max-width: 480px) {
  .support-maintenance-section {
    padding: 60px 0;
  }
  .support-maintenance__label {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .support-maintenance__title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .support-maintenance__desc {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 32px;
  }
  .support-maintenance__features-label {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  .support-feature-card {
    padding: 16px;
    gap: 12px;
  }
  .support-feature-card__icon {
    width: 40px;
    height: 40px;
  }
  .support-feature-card__icon svg {
    width: 28px;
    height: 28px;
  }
  .support-feature-card__title {
    font-size: 16px;
    line-height: 24px;
  }
  .support-maintenance__pattern {
    display: none;
  }
}

/* =====================
   TECHNOLOGIES SECTION
   ===================== */
.technologies-section {
  padding: 100px 0;
}

.technologies__header {
  margin-bottom: 60px;
}

.technologies__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.technologies__desc {
  font-size: 1.0625rem;
  color: var(--color-text, #1d1d1f);
  line-height: 1.7;
  max-width: 900px;
}

.technologies__wrapper {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 0;
  min-height: 500px;
}

/* Sidebar Tabs */
.technologies__sidebar {
  background: #1a1a1a;
  border-radius: 20px 0 0 20px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tech-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 1);
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 16px;
  border-radius: 10px;
}

.tech-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tech-tab--active {
  background: #313131;
  color: #fff;
}

.tech-tab__name {
  flex: 1;
}

.tech-tab__arrow {
  width: 20px;
  height: 15px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech-tab--active .tech-tab__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Content Panel */
.technologies__content {
  background: #f5f5f7;
  border-radius: 0 16px 16px 0;
  padding: 48px;
  display: flex;
  align-items: flex-start;
}

.tech-panel {
  display: none;
  width: 100%;
}

.tech-panel--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tech-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-item__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Responsive - Technologies */
@media (max-width: 1100px) {
  .technologies__wrapper {
    grid-template-columns: 320px 1fr;
  }
  .tech-tab {
    padding: 16px 24px;
    font-size: 1rem;
  }
  .tech-tab--active {
    padding: 16px 20px;
    margin: 0 12px;
  }
  .technologies__content {
    padding: 36px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }
}

@media (max-width: 900px) {
  .technologies-section {
    padding: 80px 0;
  }
  .technologies__wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .technologies__sidebar {
    border-radius: 16px 16px 0 0;
    padding: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tech-tab {
    padding: 12px 16px;
    font-size: 0.875rem;
    border-radius: 8px;
    flex: 0 0 auto;
  }
  .tech-tab--active {
    margin: 0;
    padding: 12px 16px;
  }
  .tech-tab__arrow {
    display: none;
  }
  .technologies__content {
    border-radius: 0 0 16px 16px;
    padding: 32px 24px;
  }
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .technologies-section {
    padding: 60px 0;
  }
  .technologies__header {
    margin-bottom: 40px;
  }
  .technologies__title {
    font-size: 1.75rem;
  }
  .technologies__desc {
    font-size: 1rem;
  }
  .technologies__sidebar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .technologies__sidebar::-webkit-scrollbar {
    display: none;
  }
  .tech-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .tech-item {
    gap: 12px;
  }
  .tech-item__icon {
    width: 40px;
    height: 40px;
  }
  .tech-item__name {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .technologies__header {
    margin-bottom: 32px;
  }
  .technologies__title {
    font-size: 1.5rem;
  }
  .technologies__desc {
    font-size: 0.9375rem;
  }
  .technologies__sidebar {
    padding: 12px;
    gap: 6px;
  }
  .tech-tab {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
  .technologies__content {
    padding: 20px 16px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tech-item {
    gap: 10px;
  }
  .tech-item__icon {
    width: 32px;
    height: 32px;
  }
  .tech-item__name {
    font-size: 0.75rem;
  }
}
