/* Pure Maintenance of Alaska - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom fonts and typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Logo styling - Clean Alaska outline, no cropping needed */
img[alt*="Pure Maintenance"] {
  /* Natural logo display - already has perfect Alaska outline */
  object-fit: contain;
  object-position: center;
  padding: 0;
  
  /* Enhanced glow focused on Alaska shape */
  filter: drop-shadow(0 4px 12px rgba(8, 145, 178, 0.4)) 
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3))
          contrast(1.1);
  
  transition: transform 0.3s ease, filter 0.3s ease;
  background: transparent !important;
}

img[alt*="Pure Maintenance"]:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 20px rgba(8, 145, 178, 0.6)) 
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
          brightness(1.1)
          contrast(1.15);
}

/* Navigation logo - extra emphasis on shape */
nav img[alt*="Pure Maintenance"] {
  filter: drop-shadow(0 4px 16px rgba(8, 145, 178, 0.5)) 
          drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2))
          contrast(1.15);
}

/* Footer logo - lighter glow for dark background */
footer img[alt*="Pure Maintenance"] {
  filter: drop-shadow(0 4px 16px rgba(8, 145, 178, 0.6)) 
          drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3))
          brightness(1.08)
          contrast(1.1);
}

/* Stats section logo - centered emphasis with pulse */
section img[alt*="Pure Maintenance"] {
  filter: drop-shadow(0 6px 20px rgba(8, 145, 178, 0.5)) 
          drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2))
          contrast(1.12);
  animation: subtle-pulse 3s ease-in-out infinite;
}

/* Logo watermark effect - beautiful Alaska shape, no cropping */
.opacity-5 img {
  filter: grayscale(20%) brightness(1.3) 
          drop-shadow(0 0 40px rgba(8, 145, 178, 0.3))
          contrast(1.1);
  animation: watermark-float 20s ease-in-out infinite;
}

@keyframes watermark-float {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.05;
  }
  50% {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
    opacity: 0.08;
  }
}

/* Subtle pulse for logos */
@keyframes subtle-pulse {
  0%, 100% {
    filter: drop-shadow(0 6px 20px rgba(8, 145, 178, 0.5)) 
            drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
  }
  50% {
    filter: drop-shadow(0 8px 30px rgba(8, 145, 178, 0.7)) 
            drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
  }
}

/* Alaska-themed gradient backgrounds */
.alaska-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
}

/* Hover effects for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Custom button styles */
.btn-alaska {
  background: linear-gradient(135deg, #0891b2 0%, #1e3a8a 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-alaska:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(8, 145, 178, 0.4);
}

/* Form inputs focus states */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

/* Loading animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Subtle pulse animation for CTAs */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.5);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Hero section enhancement with logo glow */
.hero-enhanced {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 50%, #065f46 100%);
  position: relative;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-pulse 8s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Stats section styling */
.stats-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

/* Print styles */
@media print {
  nav, footer, .no-print {
    display: none !important;
  }
}

/* Mobile menu animation */
@media (max-width: 768px) {
  #mobile-menu {
    animation: slideDown 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility improvements */
a:focus, button:focus {
  outline: 2px solid #0891b2;
  outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0891b2;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* Responsive logo sizing with enhanced visibility */
@media (max-width: 640px) {
  img[alt*="Pure Maintenance"] {
    max-height: 60px;
    filter: drop-shadow(0 3px 10px rgba(8, 145, 178, 0.5)) 
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  img[alt*="Pure Maintenance"] {
    max-height: 80px;
    filter: drop-shadow(0 4px 14px rgba(8, 145, 178, 0.5)) 
            drop-shadow(0 2px 7px rgba(0, 0, 0, 0.3));
  }
}

@media (min-width: 1025px) {
  nav img[alt*="Pure Maintenance"] {
    max-height: 100px;
  }
  
  section img[alt*="Pure Maintenance"] {
    max-height: 96px;
  }
}

/* Background pattern overlay */
.bg-pattern {
  background-image: 
    linear-gradient(30deg, rgba(8, 145, 178, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.05) 87.5%, rgba(8, 145, 178, 0.05)),
    linear-gradient(150deg, rgba(8, 145, 178, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.05) 87.5%, rgba(8, 145, 178, 0.05)),
    linear-gradient(30deg, rgba(8, 145, 178, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.05) 87.5%, rgba(8, 145, 178, 0.05)),
    linear-gradient(150deg, rgba(8, 145, 178, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.05) 87.5%, rgba(8, 145, 178, 0.05));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Hero section with Alaska mountain background */
.hero-alaska-mountains {
  background-image: url('/static/alaska-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

