/* Custom Styles for Fresko Elektro Theme */

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

/* Custom Logo Styling */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  max-height: 60px;
  width: auto;
}

/* Navigation Active State */
.current-menu-item > a {
  color: #eab308 !important;
}

/* Button Animations */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* Service Card Hover Effect */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Hero Lightning Animation */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.1;
  }
}

.hero-lightning {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: max-height 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.active {
  max-height: 500px;
}

/* Map Hover Effect */
.map-container iframe {
  transition: filter 0.5s ease;
}

.map-container:hover iframe {
  filter: grayscale(0);
}

/* Stats Counter Animation */
@keyframes count-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: count-up 0.6s ease-out forwards;
}

/* Form Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

/* WordPress Block Styles */
.wp-block-button__link {
  background-color: #eab308;
  color: #1f2937;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.wp-block-button__link:hover {
  background-color: #ca8a04;
}

/* Pagination Styling */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: white;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s;
}

.page-numbers:hover {
  background: #fef3c7;
  color: #eab308;
}

.page-numbers.current {
  background: #eab308;
  color: #1f2937;
}

/* Widget Styling */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: #4b5563;
  transition: color 0.2s;
}

.widget ul li a:hover {
  color: #eab308;
}

/* Comment Form */
.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.comment-form .submit {
  background-color: #eab308;
  color: #1f2937;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.comment-form .submit:hover {
  background-color: #ca8a04;
}

/* Footer Widgets */
.footer-widgets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widgets ul li {
  margin-bottom: 0.5rem;
}

.footer-widgets ul li a {
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-widgets ul li a:hover {
  color: #eab308;
}

/* Accessibility */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #eab308;
  outline-offset: 2px;
}

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

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}
