/* Custom modern styles and base resets */
@layer base {

  html {
    background-color: #3b5044;
  }

  body {
    background-color: #3b5044;
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: 'Outfit', sans-serif;
  }
}

/* Fix Chromium GPU compositing seam artifacts (hairline white lines) */
footer {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  outline: 1px solid transparent;
}

footer * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

footer .grid {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 80, 68, 0.05);
  padding-top: 1rem !important;
  padding-bottom: 0.5rem !important;
}

.text-gradient {
  background: linear-gradient(135deg, #3b5044 0%, #4C6A57 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Enhanced Button Styles - Converted from @apply */
.btn-primary {
  background-color: #3b5044;
  /* bg-vert-fonce */
  color: white;
  padding: 1rem 2rem;
  /* px-8 py-4 */
  border-radius: 9999px;
  /* rounded-full */
  font-weight: 600;
  /* font-semibold */
  transition: all 300ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(59, 80, 68, 0.2);
}

.btn-primary:hover {
  background-color: #C5A059;
  /* accent-gold */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-0.25rem);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  border: 2px solid #3b5044;
  color: #3b5044;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 300ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: #3b5044;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.btn-secondary:active {
  transform: scale(0.95);
}

/* Form Styles - Converted from @apply */
input,
select,
textarea {
  border: 2px solid transparent;
  background-color: rgba(245, 242, 237, 0.5);
  /* beige-naturel/50 */
  transition: all 300ms;
  border-radius: 0.75rem;
  /* rounded-xl */
}

input:focus,
select:focus,
textarea:focus {
  border-color: #C5A059;
  /* accent-gold */
  outline: none;
  background-color: white;
}

/* Animations and sliders */
.slider-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

/* Carousel fixes */
#hero-carousel button:focus {
  outline: none;
}

/* Testimonial Carousel Scroll Snap */
.testimonial-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-scroll::-webkit-scrollbar {
  display: none;
}

/* Responsiveness Fixes */
@media (max-width: 768px) {

  /* Mobile Typography */
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  /* Experience Section Mobile Spacing */
  .stats-container {
    gap: 3rem !important;
  }

}

@media (max-width: 480px) {
  h1 {
    font-size: 2.25rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }
}

/* ===== Footer Landscape Illustration Animations ===== */

/* Floating clouds */
@keyframes cloudFloat1 {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(30px);
  }
}

@keyframes cloudFloat2 {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-25px);
  }
}

@keyframes cloudFloat3 {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(20px);
  }
}

.footer-cloud-1 {
  animation: cloudFloat1 12s ease-in-out infinite;
}

.footer-cloud-2 {
  animation: cloudFloat2 15s ease-in-out infinite;
}

.footer-cloud-3 {
  animation: cloudFloat3 10s ease-in-out infinite;
}

/* Window glow pulse */
@keyframes windowGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

.footer-window-glow {
  animation: windowGlow 4s ease-in-out infinite;
}

/* Pool shimmer */
@keyframes poolShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.footer-pool-shimmer {
  animation: poolShimmer 6s ease-in-out infinite;
}

/* Pool water ripples */
@keyframes ripple1 {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }

  50% {
    transform: translateY(-2px);
    opacity: 0.4;
  }
}

@keyframes ripple2 {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.2;
  }

  50% {
    transform: translateY(2px);
    opacity: 0.35;
  }
}

.footer-pool-ripple {
  animation: ripple1 3s ease-in-out infinite;
}

.footer-pool-ripple-2 {
  animation: ripple2 4s ease-in-out infinite 0.5s;
}

/* Chimney smoke rising */
@keyframes smokeRise {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }

  33% {
    transform: translateY(-5px) translateX(3px);
    opacity: 0.2;
  }

  66% {
    transform: translateY(-10px) translateX(-2px);
    opacity: 0.15;
  }
}

.footer-smoke {
  animation: smokeRise 5s ease-in-out infinite;
}

/* Sun glow pulse */
@keyframes sunGlowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

.footer-sun-glow {
  animation: sunGlowPulse 8s ease-in-out infinite;
}