/* ============================================
   AdFinder Premium Services Theme
   Enhanced UI/UX for Services Marketplace
   ============================================ */

/* ---------- 1. PREMIUM COLOR PALETTE ---------- */
:root {
  /* Premium Navy + Coral palette */
  --premium-navy: #0f172a;
  --premium-navy-light: #1e293b;
  --premium-coral: #f97316;
  --premium-coral-light: #fb923c;
  --premium-sky: #0ea5e9;
  --premium-sky-light: #38bdf8;
  --premium-cream: #fff7ed;
  --premium-success: #10b981;
  --premium-warning: #f59e0b;
  
  /* Enhanced neutrals */
  --premium-ink: #0f172a;
  --premium-ink-muted: #475569;
  --premium-surface: #ffffff;
  --premium-surface-elevated: #f8fafc;
  --premium-border: #e2e8f0;
  
  /* Enhanced shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---------- 2. ENHANCED HERO SECTION ---------- */
.af-services-hero-v2 {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.08) 0%, 
    rgba(248, 250, 252, 0.95) 50%,
    rgba(249, 115, 22, 0.06) 100%);
  border-radius: 24px;
  padding: 40px 32px;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.af-services-hero-v2::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.af-services-hero-v2::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.af-services-hero-v2__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.af-services-hero-v2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--premium-sky);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.af-services-hero-v2__eyebrow i {
  font-size: 0.75rem;
}

.af-services-hero-v2__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--premium-navy);
  margin-bottom: 16px;
}

.af-services-hero-v2__title span {
  background: linear-gradient(135deg, var(--premium-coral) 0%, var(--premium-coral-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.af-services-hero-v2__subtitle {
  font-size: 1.125rem;
  color: var(--premium-ink-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Enhanced Search */
.af-services-search-v2 {
  max-width: 600px;
  margin: 0 auto 20px;
}

.af-services-search-v2 .adfinder-search-group {
  background: var(--premium-surface);
  border: 2px solid var(--premium-border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.af-services-search-v2 .adfinder-search-group:focus-within {
  border-color: var(--premium-sky);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-1px);
}

.af-services-search-v2 .form-select {
  border: none;
  background: transparent;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--premium-navy);
}

.af-services-search-v2 .form-select:focus {
  box-shadow: none;
}

.af-services-search-v2 .btn {
  background: linear-gradient(135deg, var(--premium-coral) 0%, var(--premium-coral-light) 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  color: white;
  transition: var(--transition-base);
}

.af-services-search-v2 .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.af-services-search-v2__hint {
  font-size: 0.875rem;
  color: var(--premium-ink-muted);
  margin-top: 10px;
}

.af-services-search-v2__hint strong {
  color: var(--premium-navy);
  font-weight: 600;
}

/* Hero Actions */
.af-services-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.af-services-hero-v2__actions .btn-primary {
  background: linear-gradient(135deg, var(--premium-coral) 0%, var(--premium-coral-light) 100%);
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
  transition: var(--transition-base);
}

.af-services-hero-v2__actions .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.af-services-hero-v2__actions .btn-outline {
  background: var(--premium-surface);
  border: 2px solid var(--premium-border);
  color: var(--premium-navy);
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 12px;
  transition: var(--transition-base);
}

.af-services-hero-v2__actions .btn-outline:hover {
  border-color: var(--premium-sky);
  color: var(--premium-sky);
  background: rgba(14, 165, 233, 0.05);
}

/* ---------- 3. ENHANCED CATEGORY CARDS ---------- */
.af-category-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .af-category-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .af-category-grid-v2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.af-category-card-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--premium-navy);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.af-category-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0.03) 100%);
  opacity: 0;
  transition: var(--transition-base);
}

.af-category-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: var(--premium-navy);
}

.af-category-card-v2:hover::before {
  opacity: 1;
}

.af-category-card-v2__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-bounce);
}

.af-category-card-v2:hover .af-category-card-v2__icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Category-specific icon colors */
.af-category-card-v2--building .af-category-card-v2__icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.af-category-card-v2--trades .af-category-card-v2__icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.af-category-card-v2--interior .af-category-card-v2__icon {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #db2777;
}

.af-category-card-v2--outdoor .af-category-card-v2__icon {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.af-category-card-v2--cleaning .af-category-card-v2__icon {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
}

.af-category-card-v2--family .af-category-card-v2__icon {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #ea580c;
}

.af-category-card-v2--events .af-category-card-v2__icon {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #9333ea;
}

.af-category-card-v2--home .af-category-card-v2__icon {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #10b981;
}

.af-category-card-v2--plumbing .af-category-card-v2__icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.af-category-card-v2--electrical .af-category-card-v2__icon {
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%);
  color: #ca8a04;
}

.af-category-card-v2--heating .af-category-card-v2__icon {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.af-category-card-v2--painting .af-category-card-v2__icon {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #db2777;
}

.af-category-card-v2__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

/* ---------- 4. ENHANCED PROVIDER CARDS ---------- */
.af-provider-card-v2 {
  display: flex;
  flex-direction: column;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: var(--premium-navy);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.af-provider-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--premium-sky) 0%, var(--premium-coral) 100%);
  opacity: 0;
  transition: var(--transition-base);
}

.af-provider-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: var(--premium-navy);
}

.af-provider-card-v2:hover::before {
  opacity: 1;
}

.af-provider-card-v2__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.af-provider-card-v2__avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--premium-border);
  transition: var(--transition-base);
}

.af-provider-card-v2:hover .af-provider-card-v2__avatar {
  border-color: var(--premium-sky);
  transform: scale(1.05);
}

.af-provider-card-v2__avatar--initial {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--premium-sky) 0%, var(--premium-sky-light) 100%);
  color: white;
  transition: var(--transition-base);
}

.af-provider-card-v2__info {
  flex: 1;
  min-width: 0;
}

.af-provider-card-v2__name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-provider-card-v2__meta {
  font-size: 0.8125rem;
  color: var(--premium-ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.af-provider-card-v2__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--premium-border);
}

.af-provider-card-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--premium-success);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.af-provider-card-v2__badge i {
  font-size: 0.625rem;
}

.af-provider-card-v2__stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--premium-border);
}

.af-provider-card-v2__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.af-provider-card-v2__stat-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--premium-navy);
  line-height: 1;
}

.af-provider-card-v2__stat-label {
  font-size: 0.6875rem;
  color: var(--premium-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.af-provider-card-v2__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.af-provider-card-v2__rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.af-provider-card-v2__rating-stars {
  display: flex;
  gap: 2px;
  color: var(--premium-warning);
}

.af-provider-card-v2__rating-value {
  font-weight: 800;
  font-size: 0.9375rem;
}

.af-provider-card-v2__rating-count {
  font-size: 0.8125rem;
  color: var(--premium-ink-muted);
}

.af-provider-card-v2__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--premium-success);
}

.af-provider-card-v2__tag--new {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
  border-color: rgba(14, 165, 233, 0.25);
  color: var(--premium-sky);
}

/* Provider cards grid */
.af-providers-grid-v2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 576px) {
  .af-providers-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .af-providers-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 5. HOW IT WORKS SECTION ---------- */
.af-how-it-works-v2 {
  background: linear-gradient(135deg, 
    rgba(248, 250, 252, 0.95) 0%, 
    rgba(255, 247, 237, 0.5) 100%);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--premium-border);
}

.af-how-it-works-v2__header {
  text-align: center;
  margin-bottom: 32px;
}

.af-how-it-works-v2__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--premium-navy);
  margin-bottom: 8px;
}

.af-how-it-works-v2__subtitle {
  font-size: 1rem;
  color: var(--premium-ink-muted);
}

.af-how-it-works-v2__steps {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  position: relative;
}

@media (min-width: 768px) {
  .af-how-it-works-v2__steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .af-how-it-works-v2__steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--premium-sky) 0%, var(--premium-coral) 100%);
    opacity: 0.3;
  }
}

.af-step-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.af-step-v2__number {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  transition: var(--transition-bounce);
}

.af-step-v2:hover .af-step-v2__number {
  transform: scale(1.1);
}

.af-step-v2:nth-child(1) .af-step-v2__number {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.af-step-v2:nth-child(2) .af-step-v2__number {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #ea580c;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.2);
}

.af-step-v2:nth-child(3) .af-step-v2__number {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.2);
}

.af-step-v2__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--premium-navy);
  margin-bottom: 8px;
}

.af-step-v2__description {
  font-size: 0.9375rem;
  color: var(--premium-ink-muted);
  line-height: 1.5;
  max-width: 280px;
}

.af-how-it-works-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- 6. ENHANCED TRUST ROW ---------- */
.af-trust-row-v2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .af-trust-row-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.af-trust-item-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  transition: var(--transition-base);
}

.af-trust-item-v2:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.af-trust-item-v2__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.af-trust-item-v2:nth-child(1) .af-trust-item-v2__icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.af-trust-item-v2:nth-child(2) .af-trust-item-v2__icon {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #ea580c;
}

.af-trust-item-v2:nth-child(3) .af-trust-item-v2__icon {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.af-trust-item-v2__content {
  flex: 1;
}

.af-trust-item-v2__title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--premium-navy);
  margin-bottom: 2px;
}

.af-trust-item-v2__description {
  font-size: 0.8125rem;
  color: var(--premium-ink-muted);
}

/* ---------- 7. ENHANCED STATS ---------- */
.af-stats-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.af-stat-v2 {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  min-width: 100px;
  transition: var(--transition-base);
}

.af-stat-v2:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.af-stat-v2__value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--premium-navy);
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--premium-navy) 0%, var(--premium-ink-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.af-stat-v2__label {
  font-size: 0.8125rem;
  color: var(--premium-ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- 8. ENHANCED FOOTER ---------- */
.af-footer-v2 {
  background: linear-gradient(180deg, var(--premium-navy) 0%, var(--premium-navy-light) 100%);
  border-radius: 24px 24px 0 0;
  padding: 48px 32px 24px;
  margin-top: 48px;
  color: white;
}

.af-footer-v2__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .af-footer-v2__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.af-footer-v2__brand {
  max-width: 300px;
}

.af-footer-v2__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.af-footer-v2__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--premium-coral) 0%, var(--premium-coral-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.af-footer-v2__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
}

.af-footer-v2__description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.af-footer-v2__trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.af-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.af-trust-badge i {
  color: var(--premium-success);
}

.af-footer-v2__column-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.af-footer-v2__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-footer-v2__links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.af-footer-v2__links a:hover {
  color: white;
}

.af-footer-v2__links a i {
  font-size: 0.75rem;
  opacity: 0.5;
}

.af-footer-v2__newsletter {
  margin-top: 8px;
}

.af-footer-v2__newsletter-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.af-newsletter-form {
  display: flex;
  gap: 8px;
}

.af-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9375rem;
}

.af-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.af-newsletter-form input:focus {
  outline: none;
  border-color: var(--premium-coral);
  background: rgba(255, 255, 255, 0.15);
}

.af-newsletter-form button {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--premium-coral) 0%, var(--premium-coral-light) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.af-newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.af-footer-v2__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.af-footer-v2__copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.af-footer-v2__social {
  display: flex;
  gap: 8px;
}

.af-footer-v2__social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
}

.af-footer-v2__social a:hover {
  background: var(--premium-coral);
  color: white;
  transform: translateY(-2px);
}

/* ---------- 9. MICRO-INTERACTIONS ---------- */

/* Button scale effect */
.btn-scale {
  transition: var(--transition-base);
}

.btn-scale:hover {
  transform: scale(1.02);
}

.btn-scale:active {
  transform: scale(0.98);
}

/* Card lift effect */
.card-lift {
  transition: var(--transition-base);
}

.card-lift:hover {
  transform: translateY(-4px);
}

/* Pulse animation for CTAs */
@keyframes af-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
  }
}

.af-pulse {
  animation: af-pulse 2s infinite;
}

/* Shimmer loading effect */
@keyframes af-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.af-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: af-shimmer 1.5s infinite;
}

/* Fade in animation */
@keyframes af-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.af-fade-in-up {
  animation: af-fade-in-up 0.5s var(--transition-base) forwards;
}

/* Stagger animation delays */
.af-stagger-1 { animation-delay: 0.1s; }
.af-stagger-2 { animation-delay: 0.2s; }
.af-stagger-3 { animation-delay: 0.3s; }
.af-stagger-4 { animation-delay: 0.4s; }
.af-stagger-5 { animation-delay: 0.5s; }

/* Focus ring enhancement */
.af-focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

/* ---------- 10. SECTION TITLE ENHANCEMENT ---------- */
.af-section-title-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--premium-navy);
  margin-bottom: 16px;
}

.af-section-title-v2__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--premium-sky) 0%, var(--premium-sky-light) 100%);
  color: white;
  font-size: 1rem;
}

.af-section-title-v2__link {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--premium-sky);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.af-section-title-v2__link:hover {
  color: var(--premium-coral);
  gap: 10px;
}

/* ---------- 11. POPULAR TRADES CHIPS ENHANCED ---------- */
.af-chips-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.af-chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--premium-navy);
  text-decoration: none;
  transition: var(--transition-base);
}

.af-chip-v2:hover {
  border-color: var(--premium-sky);
  color: var(--premium-sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.af-chip-v2 i {
  font-size: 0.875rem;
  opacity: 0.7;
}

.af-chip-v2--warm {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}

.af-chip-v2--cool {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.af-chip-v2--mint {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

.af-chip-v2--lilac {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #e9d5ff;
}

/* ---------- 12. RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 767px) {
  .af-services-hero-v2 {
    padding: 28px 20px;
    border-radius: 20px;
  }
  
  .af-services-hero-v2__title {
    font-size: 1.75rem;
  }
  
  .af-services-hero-v2__subtitle {
    font-size: 1rem;
  }
  
  .af-how-it-works-v2 {
    padding: 24px 20px;
  }
  
  .af-footer-v2 {
    padding: 32px 20px 20px;
    border-radius: 20px 20px 0 0;
  }
}

/* ---------- 13. ANIMATIONS ---------- */
.af-hidden-before-animate {
  opacity: 0;
  transform: translateY(20px);
}

@keyframes af-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.af-fade-in-up {
  animation: af-fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger delays */
.af-stagger-1 { animation-delay: 0.1s; }
.af-stagger-2 { animation-delay: 0.2s; }
.af-stagger-3 { animation-delay: 0.3s; }
.af-stagger-4 { animation-delay: 0.4s; }
.af-stagger-5 { animation-delay: 0.5s; }

/* Navbar scrolled state */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15) !important;
}

/* Search focus state */
.adfinder-search-group.is-focused {
  border-color: var(--premium-sky) !important;
  box-shadow: var(--shadow-glow), var(--shadow-md) !important;
}

/* ---------- 14. COMPACT HERO VARIANT ---------- */
.af-services-hero-v2--compact {
  padding: 28px 32px;
}

.af-services-hero-v2--compact .af-services-hero-v2__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.af-services-hero-v2--compact .af-services-hero-v2__subtitle {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ---------- 15. FORM STYLING ---------- */
.af-card input[type="text"],
.af-card input[type="email"],
.af-card input[type="password"],
.af-card input[type="number"],
.af-card input[type="tel"],
.af-card input[type="search"],
.af-card textarea,
.af-card select {
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  background: var(--premium-surface);
  color: var(--premium-navy);
  transition: var(--transition-base);
  width: 100%;
}

.af-card input:focus,
.af-card textarea:focus,
.af-card select:focus {
  outline: none;
  border-color: var(--premium-sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.af-card .form-check-input {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--premium-border);
  cursor: pointer;
}

.af-card .form-check-input:checked {
  background-color: var(--premium-sky);
  border-color: var(--premium-sky);
}

.af-card .form-check-label {
  cursor: pointer;
  margin-left: 8px;
}

/* ---------- 16. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .af-category-card-v2,
  .af-provider-card-v2,
  .af-trust-item-v2 {
    border-width: 2px;
  }
}
