/* === Custom Styles for Golden Multi-Services === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
  background: #1B5E20;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #144518;
}

/* Selection color */
::selection {
  background: #1B5E20;
  color: #F5F0E8;
}

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

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

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

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

.card-float-1 {
  animation: float1 4s ease-in-out infinite;
}

.card-float-2 {
  animation: float2 5s ease-in-out infinite 0.5s;
}

.card-float-3 {
  animation: float3 4.5s ease-in-out infinite 1s;
}

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Hero eyebrow animation === */
.hero-eyebrow {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === Header scroll state === */
.header-scrolled {
  background: rgba(253, 252, 250, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 94, 32, 0.08);
}

/* === Mobile menu === */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* === Service cards hover === */
.group:hover .group-hover\:bg-emerald-600 {
  transition: background-color 0.5s ease;
}

/* === Form focus states === */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

/* === Back to top button === */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* === Mobile menu overlay === */
#mobile-menu {
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* === Gold underline animation on hero === */
h1 span.relative {
  position: relative;
  display: inline-block;
}

h1 span.relative::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C49A32, #D4A843);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

h1 span.relative.revealed::after {
  transform: scaleX(1);
}

/* === Decorative line === */
.divider-gold {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #C49A32, transparent);
}

/* === Print styles === */
@media print {
  header, #back-to-top, .reveal {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
