/* BASE */

*,
::before,
::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style:
}

/* reset text line height */

  h1, h2, h3, h4, h5, p, a, div, ul, ul li, ol, ol li {
    line-height: normal!important;
  }

  #inicio h1 {
    line-height: 1!important;
  }

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */
*,
::after,
::before {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb
}

::after,
::before {
  --tw-content: ''
}

:host,
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: Inter, system-ui, sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent
}

body {
  margin: 0;
  line-height: inherit
}

/* Custom CSS for Iracema Theme */

html,
body {
  overflow-x: hidden;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced glass effect */
.glass-strong {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Focus styles for accessibility */
.focus-ring:focus {
  outline: 2px solid #54723c;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Improved button styles */
.btn-primary {
  background: linear-gradient(135deg, #54723c, #2dd4bf);
  background-size: 200% 200%;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(84, 114, 60, 0.3);
  filter: saturate(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(84, 114, 60, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(84, 114, 60, 0.4);
  transform: translateY(-2px);
}

/* Card hover effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: #fff;
}

/* Z-INDEX HIERARCHY - WordPress Best Practices */
.z-header {
  z-index: 999;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #54723c, #2dd4bf);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #445a31, #14b8a6);
}

/* Scroll progress indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #54723c, #2dd4bf);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 99999;
  transition: transform 0.1s ease;
}

h1 {color: #222;}

/* Mobile Layout Improvements */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Mobile header fixed positioning */
  header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  /* Hero section mobile optimizations */
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-subtitle {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem;
  }

  /* Mobile button improvements */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 1rem 1.5rem !important;
    font-size: 1.125rem !important;
    margin-bottom: 1rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile spacing improvements */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Performance optimizations */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

/* Ensure desktop navigation doesn't interfere on mobile */
@media (max-width: 1023px) {
  .hidden.lg\\:flex {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ===== GALLERY SECTION STYLES - ORIGINAL DESIGN ===== */

/* Gallery Swiper Container */
.gallerySwiper {
  width: 100%;
  padding: 20px 0 60px 0;
  overflow: visible;
}

.gallerySwiper.swiper-loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Gallery Card - Original Design with Rounded Corners */
.gallery-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

/* Gallery Image */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-image.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.gallery-image.image-error {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image.image-error::after {
  content: "📷";
  font-size: 3rem;
  opacity: 0.3;
}

/* Overlay - Original Green Gradient */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(22, 101, 52, 0.95) 0%, rgba(22, 101, 52, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s ease;
  width: 100%;
}

.gallery-card:hover .gallery-overlay-content {
  transform: translateY(0);
}

/* Video Play Button */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery-card:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Social Links */
.gallery-social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 18px;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  color: white;
}

/* Lightbox Button */
.gallery-lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #166534;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-lightbox-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation Buttons */
.gallery-nav-btn {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin-top: -25px;
}

.gallery-nav-btn:after {
  font-size: 20px;
  font-weight: bold;
  color: #166534;
}

.gallery-nav-btn:hover {
  background: #166534;
  transform: scale(1.1);
}

.gallery-nav-btn:hover:after {
  color: white;
}

.gallery-nav-btn:focus {
  outline: 2px solid #166534;
  outline-offset: 2px;
}

/* Pagination */
.gallerySwiper .swiper-pagination {
  bottom: 20px !important;
  position: relative;
  margin-top: 30px;
}

.gallerySwiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #d1d5db;
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.gallerySwiper .swiper-pagination-bullet-active {
  background: #166534;
  width: 32px;
  border-radius: 6px;
}

.gallerySwiper .swiper-pagination-bullet:hover {
  background: #9ca3af;
  transform: scale(1.1);
}

.gallerySwiper .swiper-pagination-bullet:focus {
  outline: 2px solid #166534;
  outline-offset: 2px;
}

/* Loading state */
.gallerySwiper:not(.swiper-loaded) {
  opacity: 0;
}

.gallerySwiper:not(.swiper-loaded) .gallery-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .gallery-image-wrapper {
    height: 300px;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  
  .gallery-nav-btn:after {
    font-size: 16px;
  }
  
  .gallery-overlay {
    padding: 20px;
  }
  
  .gallerySwiper {
    padding: 10px 0 50px 0;
  }
  
  .gallery-social-links {
    gap: 8px;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .gallery-lightbox-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-image-wrapper {
    height: 250px;
  }
  
  .gallery-overlay {
    padding: 15px;
  }
  
  .gallery-overlay-content h3 {
    font-size: 1.125rem;
  }
  
  .gallery-overlay-content p {
    font-size: 0.875rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-image,
  .gallery-overlay,
  .gallery-overlay-content,
  .gallery-nav-btn,
  .video-play-button,
  .social-link,
  .gallery-lightbox-btn {
    transition: none;
  }
  
  .gallery-card:hover .gallery-image {
    transform: none;
  }
  
  .gallerySwiper .swiper-pagination-bullet,
  .gallery-nav-btn:hover,
  .video-play-button:hover,
  .gallery-card:hover .video-play-button {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gallery-card {
    border: 2px solid #000;
  }
  
  .gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  }
  
  .gallery-nav-btn {
    border: 2px solid #000;
  }
  
  .gallerySwiper .swiper-pagination-bullet {
    border: 1px solid #000;
  }
}

/* Print styles */
@media print {
  .gallerySwiper .swiper-button-next,
  .gallerySwiper .swiper-button-prev,
  .gallerySwiper .swiper-pagination {
    display: none;
  }
  
  .gallery-overlay {
    position: static;
    background: none;
    opacity: 1;
    padding: 10px 0;
  }
  
  .gallery-overlay-content {
    transform: none;
    color: #000;
  }
  
  .gallery-social-links {
    display: block;
    margin-top: 10px;
  }
  
  .social-link {
    display: inline-block;
    margin-right: 10px;
    background: none;
    color: #000;
    border: 1px solid #000;
  }
}