/* 
 * Nest & Fern PG - Custom Styles
 * Complement to Tailwind CSS
 */

/* Custom Font Definitions */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: #C9A962;
    color: #1B4332;
}

::-moz-selection {
    background-color: #C9A962;
    color: #1B4332;
}

/* Hero section decorative elements */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(27, 67, 50, 0.1) 0%, transparent 50%);
}

/* Animated gradient background */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(270deg, #FFFEF7, #FEF9E7, #E8F5E9, #FFFEF7);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Card hover animations */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: translateX(100%);
}

/* Image placeholder styling */
.img-placeholder {
    background: linear-gradient(135deg, #C9A962 0%, #1B4332 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative leaf pattern for sections */
.leaf-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath fill='%231B4332' fill-opacity='0.03' d='M40 0c2.5 12.5-7.5 22.5-20 25 12.5 2.5 22.5 12.5 20 25 2.5-12.5 12.5-22.5 25-20-12.5-2.5-22.5-12.5-25-30z'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #C9A962;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFFEF7;
}

::-webkit-scrollbar-thumb {
    background: #C9A962;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8944A;
}

/* Fade-in animation for sections */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease forwards;
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

/* Pulse animation for CTA buttons */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(201, 169, 98, 0);
    }
}

.pulse-gold:hover {
    animation: pulse-gold 1.5s infinite;
}

/* Loading spinner */
.spinner {
    border: 3px solid #FEF9E7;
    border-top: 3px solid #C9A962;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    nav,
    .scroll-indicator,
    form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gold-50 {
        background-color: white;
    }
    
    .text-gray-600 {
        color: #1a1a1a;
    }
}
