/* ==========================================================================
   ABece Digital — Agency landing page styles
   Extends the TikTok theme layer for agency-specific components.
   Loaded AFTER tiktok-theme.css.
   ========================================================================== */

/* ==========================================================================
   SERVICES GRID — 3 columns on xl (vs 4 on old layout)
   ========================================================================== */

@media (min-width: 1200px) {
  .services-grid .col .capability {
    border-left: 1px solid var(--tt-gray-line);
    padding-left: clamp(16px, 2vw, 24px);
  }
  .services-grid .col:nth-child(3n+1) .capability {
    border-left: 0;
    padding-left: 0;
  }
  .services-grid .col:nth-child(5) .capability {
    border-left: 1px solid var(--tt-gray-line);
    padding-left: clamp(16px, 2vw, 24px);
  }
}

/* Services icon color variety */
.services-grid .col:nth-child(1) .capability__icon { color: var(--tt-red); }
.services-grid .col:nth-child(2) .capability__icon { color: var(--tt-cyan-ink); }
.services-grid .col:nth-child(3) .capability__icon { color: var(--tt-black); }
.services-grid .col:nth-child(4) .capability__icon { color: var(--tt-cyan-ink); }
.services-grid .col:nth-child(5) .capability__icon { color: var(--tt-red); }
.services-grid .col:nth-child(6) .capability__icon { color: var(--tt-black); }

/* ==========================================================================
   PROCESS LIST — richer layout with headings + body
   ========================================================================== */

.process-list .rule-list__item {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 16px 24px 0;
}

.process-list .rule-list__idx {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.process-list .cohere-feature-heading {
  font-weight: 700;
}

@media (min-width: 768px) {
  .process-list .col:nth-child(even) .rule-list__item {
    border-left: 1px solid var(--tt-gray-line);
    padding-left: clamp(16px, 2vw, 24px);
  }
}

@media (min-width: 992px) {
  .process-list .col .rule-list__item {
    border-left: 1px solid var(--tt-gray-line);
    padding-left: clamp(16px, 2vw, 24px);
  }
  .process-list .col:first-child .rule-list__item {
    border-left: 0;
    padding-left: 0;
  }
}

/* ==========================================================================
   STATS GRID
   ========================================================================== */

.stats-grid {
  margin-bottom: clamp(20px, 3vw, 40px);
}

.stat-card {
  background: var(--tt-gray);
  border: 2px solid var(--tt-black);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 40px) clamp(16px, 2.5vw, 32px);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.15s ease;
}

.stat-card:hover {
  border-color: var(--tt-red);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--cohere-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--tt-black);
}

.stat-label {
  color: var(--tt-black);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}

.stats-grid .col:nth-child(2) .stat-card {
  background: var(--tt-cyan-tint);
}

.stats-grid .col:nth-child(4) .stat-card {
  background: var(--tt-black);
}
.stats-grid .col:nth-child(4) .stat-card .stat-number {
  color: var(--tt-white);
}
.stats-grid .col:nth-child(4) .stat-card .stat-label {
  color: var(--tt-cyan);
}

/* ==========================================================================
   MAX-WIDTH UTILITY
   ========================================================================== */

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HERO — glitch effect for main headline + decor image
   ========================================================================== */

.hero__head {
  position: relative;
}

.hero__text-col {
  position: relative;
  z-index: 2;
}

@media (min-width: 1200px) {
  .hero__text-col {
    max-width: 65%;
    flex: 0 0 65%;
  }
}

.hero__decor {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 1;
  pointer-events: none;
}

.hero__decor-img {
  width: 380px;
  height: auto;
  opacity: 0.1;
  object-fit: contain;
}

@media (min-width: 1400px) {
  .hero__decor-img {
    width: 460px;
  }
}

.hero__title .tt-glitch {
  display: inline-block;
}

/* ==========================================================================
   ANNOUNCEMENT BAR — cyan link color on black
   ========================================================================== */

.bar__text a {
  color: var(--tt-cyan);
}

/* ==========================================================================
   RESPONSIVE TWEAKS
   ========================================================================== */

@media (max-width: 575.98px) {
  .stat-card {
    padding: 20px 16px;
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .process-list .rule-list__item {
    padding: 20px 0;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .services-grid .capability {
    min-height: 200px;
  }
}

/* ==========================================================================
   LANGUAGE TOGGLE BUTTON
   ========================================================================== */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--tt-black);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tt-black);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--cohere-font-body);
}

.lang-toggle:hover {
  background: var(--tt-black);
  color: var(--tt-white);
}

.lang-toggle__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.lang-toggle__label {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin: 0 10px;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .lang-toggle {
    padding: 5px 8px;
  }
  .lang-toggle__icon {
    width: 14px;
    height: 14px;
  }
}
