/* 
 * ============================================
 * AIG PROPRIETARY ICON SYSTEM - STYLESHEET 2026
 * ============================================
 * Created exclusively for Accurate Information Group
 * Based on official brand guidelines
 * 
 * Brand Colors:
 * - AIG Orange: #f26100 (Primary)
 * - AIG Dark Blue: #140a59 (Secondary)
 * - AIG Indigo: #364081 (Tertiary)
 * - AIG Light Blue: #0082ca (Accent)
 * - Background Off-White: #f9f9f8
 * 
 * Usage: <svg class="aig-icon aig-icon-primary"><use href="images/svg-icons.svg#icon-name"></use></svg>
 * ============================================
 */

/* ============ BASE ICON STYLES ============ */
.aig-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: currentColor;
}

/* ============ ICON SIZES ============ */
.aig-icon-sm {
  width: 24px;
  height: 24px;
}

/* Bullet list icons - smaller for inline text */
.aig-icon-xs {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.aig-icon-md {
  width: 36px;
  height: 36px;
}

.aig-icon-lg {
  width: 64px;
  height: 64px;
}

.aig-icon-xl {
  width: 96px;
  height: 96px;
}

/* ============ SERVICE CARD ICONS ============ */
.service-icon .aig-icon {
  width: 64px;
  height: 64px;
}

/* Allow size modifiers to override service-icon default */
.service-icon .aig-icon-sm {
  width: 24px;
  height: 24px;
}

.service-icon .aig-icon-md {
  width: 36px;
  height: 36px;
}

.service-icon .aig-icon-lg {
  width: 64px;
  height: 64px;
}

.service-icon .aig-icon-xl {
  width: 96px;
  height: 96px;
}

/* ============ FEATURE ICONS ============ */
.feature-icon .aig-icon {
  width: 56px;
  height: 56px;
}

/* Allow size modifiers to override feature-icon default */
.feature-icon .aig-icon-sm {
  width: 24px;
  height: 24px;
}

.feature-icon .aig-icon-md {
  width: 36px;
  height: 36px;
}

.feature-icon .aig-icon-lg {
  width: 64px;
  height: 64px;
}

.feature-icon .aig-icon-xl {
  width: 96px;
  height: 96px;
}

/* ============ BRAND COLOR VARIANTS ============ */

/* Primary - AIG Orange */
.aig-icon-primary {
  color: #f26100;
}

.aig-icon-primary svg {
  fill: none;
  stroke: #f26100;
}

/* Secondary - AIG Dark Blue */
.aig-icon-secondary {
  color: #140a59;
}

.aig-icon-secondary svg {
  fill: none;
  stroke: #140a59;
}

/* Tertiary - AIG Indigo */
.aig-icon-tertiary {
  color: #364081;
}

.aig-icon-tertiary svg {
  fill: none;
  stroke: #364081;
}

/* Accent - AIG Light Blue */
.aig-icon-accent {
  color: #0082ca;
}

.aig-icon-accent svg {
  fill: none;
  stroke: #0082ca;
}

/* White - For dark backgrounds */
.aig-icon-white {
  color: #ffffff;
}

.aig-icon-white svg {
  fill: none;
  stroke: #ffffff;
}

/* ============ ICON STYLES ============ */

/* Stroked Icons (Outline) - Default */
.aig-icon-stroked svg {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Combined Stroked + Color Classes (Most Common Usage) */
.aig-icon-stroked-primary svg {
  fill: none;
  stroke: #f26100;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aig-icon-stroked-secondary svg {
  fill: none;
  stroke: #140a59;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aig-icon-stroked-tertiary svg {
  fill: none;
  stroke: #364081;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aig-icon-stroked-accent svg {
  fill: none;
  stroke: #0082ca;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aig-icon-stroked-white svg {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Filled Icons */
.aig-icon-filled svg {
  fill: currentColor;
  stroke: none;
}

.aig-icon-filled.aig-icon-primary svg {
  fill: #f26100;
}

.aig-icon-filled.aig-icon-secondary svg {
  fill: #140a59;
}

.aig-icon-filled.aig-icon-tertiary svg {
  fill: #364081;
}

/* Gradient Icons */
.aig-icon-gradient svg {
  fill: url(#aig-gradient);
  stroke: none;
}

/* ============ HOVER EFFECTS ============ */
.aig-icon-hover-primary:hover {
  color: #f26100;
  transform: scale(1.1);
}

.aig-icon-hover-primary:hover svg {
  stroke: #f26100;
}

.aig-icon-hover-secondary:hover {
  color: #140a59;
  transform: scale(1.1);
}

.aig-icon-hover-secondary:hover svg {
  stroke: #140a59;
}

/* Service Card Hover */
.service-card:hover .service-icon .aig-icon {
  transform: scale(1.15) translateY(-4px);
}

/* Feature Card Hover */
.feature-card:hover .feature-icon .aig-icon {
  transform: scale(1.12);
}

/* ============ ANIMATIONS ============ */

/* Pulse Animation */
@keyframes aig-icon-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

.aig-icon-animate-pulse {
  animation: aig-icon-pulse 2s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes aig-icon-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.aig-icon-animate-rotate {
  animation: aig-icon-rotate 20s linear infinite;
}

/* Bounce Animation */
@keyframes aig-icon-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.aig-icon-animate-bounce {
  animation: aig-icon-bounce 1.5s ease-in-out infinite;
}

/* Glow Animation */
@keyframes aig-icon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(242, 97, 0, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(242, 97, 0, 0.8));
  }
}

.aig-icon-animate-glow {
  animation: aig-icon-glow 2s ease-in-out infinite;
}

/* ============ ICON WITH BACKGROUND ============ */
.aig-icon-bg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
}

.aig-icon-bg-primary {
  background: rgba(242, 97, 0, 0.1);
}

.aig-icon-bg-secondary {
  background: rgba(20, 10, 89, 0.1);
}

.aig-icon-bg-tertiary {
  background: rgba(54, 64, 129, 0.1);
}

.aig-icon-bg-light {
  background: rgba(249, 249, 248, 0.8);
}

/* ============ RESPONSIVE SIZING ============ */
@media (max-width: 1024px) {
  .aig-icon {
    width: 44px;
    height: 44px;
  }
  
  .service-icon .aig-icon {
    width: 56px;
    height: 56px;
  }
  
  .feature-icon .aig-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  .aig-icon {
    width: 40px;
    height: 40px;
  }
  
  .aig-icon-sm {
    width: 20px;
    height: 20px;
  }
  
  .aig-icon-md {
    width: 32px;
    height: 32px;
  }
  
  .aig-icon-lg {
    width: 56px;
    height: 56px;
  }
  
  .aig-icon-xl {
    width: 72px;
    height: 72px;
  }
  
  .service-icon .aig-icon {
    width: 56px;
    height: 56px;
  }
  
  .feature-icon .aig-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .aig-icon {
    width: 36px;
    height: 36px;
  }
  
  .aig-icon-sm {
    width: 18px;
    height: 18px;
  }
  
  .aig-icon-md {
    width: 28px;
    height: 28px;
  }
  
  .aig-icon-lg {
    width: 48px;
    height: 48px;
  }
  
  .aig-icon-xl {
    width: 64px;
    height: 64px;
  }
  
  .service-icon .aig-icon {
    width: 48px;
    height: 48px;
  }
  
  .feature-icon .aig-icon {
    width: 42px;
    height: 42px;
  }
}

/* ============ ACCESSIBILITY ============ */
.aig-icon[aria-hidden="true"] {
  pointer-events: none;
}

.aig-icon:focus {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .aig-icon,
  .aig-icon svg,
  .aig-icon-animate-pulse,
  .aig-icon-animate-rotate,
  .aig-icon-animate-bounce,
  .aig-icon-animate-glow {
    animation: none !important;
    transition: none !important;
  }
}

/* ============ ICON GRID LAYOUT ============ */
.aig-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 24px;
  padding: 24px;
}

.aig-icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #f9f9f8;
  transition: all 0.3s ease;
}

.aig-icon-grid-item:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 10, 89, 0.1);
  transform: translateY(-4px);
}

.aig-icon-grid-label {
  font-size: 12px;
  font-weight: 500;
  color: #414042;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============ DARK MODE SUPPORT ============ */
@media (prefers-color-scheme: dark) {
  .aig-icon-bg-light {
    background: rgba(20, 10, 89, 0.2);
  }
  
  .aig-icon-grid-item {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .aig-icon-grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  
  .aig-icon-grid-label {
    color: #e8e8e6;
  }
}

/* ============ PRINT STYLES ============ */
@media print {
  .aig-icon {
    transition: none;
    animation: none;
  }
  
  .aig-icon-animated {
    animation: none !important;
  }
}
