/*
Theme Name: CatNetting Theme
Description: WordPress theme for cat safety netting business. Minimal, responsive theme with bilingual support (Polish/German). Features include portfolio gallery, contact forms, and blog functionality.
Author: CatNetting
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: catnetting
*/

/* This file serves as the theme identifier for WordPress */
/* Main styles are loaded via functions.php from assets/css/ */

/* Custom styles for Cat-Netting website */

body {
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* Ensure smooth scrolling works on body as well */
body {
  scroll-behavior: smooth;
}

/* Fallback for smooth scrolling */
@media (prefers-reduced-motion: no-preference) {

  html,
  body {
    scroll-behavior: smooth;
  }
}

/* Additional smooth scroll enhancement */
* {
  -webkit-overflow-scrolling: touch;
}
/* HERO SECTION CUSTOM LAYOUT */
.hero-section-bg {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: linear-gradient(135deg, #fdf6e3 0%, #ffe066 100%);
  min-height: 80vh;
  overflow: hidden;
}

.hero-bus {
  position: absolute;
  right: 0;
  top: 3.5rem;
  z-index: 0;
  pointer-events: none;
  object-fit: contain;
  height: 46vh;
  max-height: 560px;
  width: auto;
  animation: driveInRight 1s ease-out forwards;
  animation-delay: 0.15s;
  display: none;
}
@media (min-width: 768px) {
  .hero-bus {
    display: block;
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.hero-content-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .hero-content-grid {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}
.hero-content-text {
  flex: 1 1 0%;
}
.hero-portrait-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.hero-portrait-polaroid {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 1.5px 6px rgba(255, 204, 0, 0.12);
  border: 4px solid #ffe066;
  width: 220px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  overflow: hidden;
}
.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #ff9a00;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e6890a;
}

/* Loading animation for images */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Van drive-in animation from right */
@keyframes driveInRight {
  0% {
    opacity: 0;
    transform: translateX(30%) scale(0.98) rotate(-1deg);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  60% {
    opacity: 1;
    transform: translateX(-2%) scale(1.005) rotate(0.2deg);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
  }
}

.animate-drive-in-right {
  animation: driveInRight 1s ease-out forwards;
}

/* Gallery item hover effects */
.gallery-item {
  transition: all 0.3s ease;
  transform: scale(1);
}

.gallery-item:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Lightbox styles */
#lightbox {
  backdrop-filter: blur(8px);
}

#lightbox-content {
  animation: slideInFromBottom 0.3s ease forwards;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Filter button transitions */
.filter-btn {
  transition: all 0.2s ease;
  transform: scale(1);
  cursor: pointer;
  border: none !important;
  outline: none !important;
  background-color: white !important;
  color: #374151 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Active filter button (orange from palette) */
.filter-btn.bg-yellow,
.filter-btn.bg-yellow:focus,
.filter-btn.bg-yellow:active {
  background: #ff9a00 !important;
  background-color: #ff9a00 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(255, 154, 0, 0.4) !important;
  border: none !important;
  border-color: transparent !important;
}

.filter-btn.bg-yellow:hover {
  background: #e6890a !important;
  background-color: #e6890a !important;
  box-shadow: 0 6px 16px rgba(230, 137, 10, 0.5) !important;
}

/* Force override any conflicting styles */
.filter-btn.bg-yellow span {
  color: white !important;
}

.filter-btn.bg-yellow:before,
.filter-btn.bg-yellow:after {
  display: none !important;
}

/* Highest priority selectors */
button.filter-btn.bg-yellow {
  background: #ff9a00 !important;
  background-color: #ff9a00 !important;
}

button.filter-btn.bg-yellow:hover {
  background: #e6890a !important;
  background-color: #e6890a !important;
}

/* Override gray classes */
.filter-btn.bg-gray-300 {
  background-color: white !important;
  color: #374151 !important;
}

.filter-btn.text-gray-700 {
  color: #374151 !important;
}

/* Smooth transitions for hover effects */
.transition-all {
  transition: all 0.3s ease;
}

/* Modal animations */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ff9a00;
  border-color: transparent;
}

/* Button hover effects */
.btn-primary {
  background-color: #ff9a00;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e6890a;
  transform: translateY(-1px);
}

/* Card hover effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Footer with dark graphite background and net texture */
.footer-background {
  background-color: #222222;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

.footer-background > * {
  position: relative;
  z-index: 1;
}

.footer-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px
    );
  background-size: 40px 40px;
  background-position:
    0 0,
    20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* Process section with dark background and net texture */
.process-background {
  background-color: #222222;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

.process-background > * {
  position: relative;
  z-index: 1;
}

.process-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px
    );
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  background-position:
    0 0,
    20px 20px;
}

/* Language Switcher Styles - Simple buttons with flags */
/* Language flag styling */
.language-switcher img,
.language-switcher-mobile img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Fallback when images fail to load */
.language-switcher img[style*="display: none"] + span,
.language-switcher-mobile img[style*="display: none"] + span {
  margin-left: 0;
}
