/* Custom styles for Savannah Pines */

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

/* Navigation */
.nav-fixed {
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #962039, #d97706);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section */
.hero {
    position: relative;
}

.hero-pattern {
    pointer-events: none;
}

.hero-float-1,
.hero-float-2,
.hero-float-3 {
    animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
    animation-delay: -2s;
    animation-duration: 8s;
}

.hero-float-3 {
    animation-delay: -4s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Hero buttons */
.btn-hero-primary {
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
}

.btn-hero-secondary {
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    transform: translateY(-2px);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #962039, #b83250);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c2039, #962039);
    transform: translateY(-1px);
}

/* Form button */
.btn-form {
    background: linear-gradient(135deg, #962039, #b83250);
    transition: all 0.3s ease;
}

.btn-form:hover {
    background: linear-gradient(135deg, #7c2039, #962039);
    transform: translateY(-2px);
}

/* CTA button */
.btn-cta {
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
}

/* Card services */
.card-service {
    transition: all 0.3s ease;
}

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

/* Reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply reveal animations when JS is enabled and reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
    }
    
    .reveal-up {
        transform: translateY(30px);
    }
    
    .reveal-left {
        transform: translateX(-30px);
    }
    
    .reveal-right {
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(150, 32, 57, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #962039, #d97706);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c2039, #b45309);
}

/* Selection color */
::selection {
    background-color: #962039;
    color: white;
}

/* Print styles */
@media print {
    .nav-fixed,
    .mobile-menu,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
}
