/* Custom styles for Summerstone Towns */

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

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

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

::-webkit-scrollbar-thumb {
    background: #f9cfd7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ec7491;
}

/* Selection color */
::selection {
    background: #f9cfd7;
    color: #7B2D3B;
}

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

/* Ensure above-the-fold content is always visible */
#hero,
#hero * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fade-in animations for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        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);
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-up.delay-1 { transition-delay: 0.1s; }
    .fade-up.delay-2 { transition-delay: 0.2s; }
    .fade-up.delay-3 { transition-delay: 0.3s; }
}

/* Reduced motion */
@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;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* Asymmetric hero adjustments */
@media (max-width: 1023px) {
    #hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

/* Image hover effects */
.group:hover img {
    transform: scale(1.05);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(196, 116, 123, 0.15);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Subtle pattern overlay for sections */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Decorative underline animation */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B2D3B, #C4747B);
    transition: width 0.3s ease;
}

.underline-hover:hover::after {
    width: 100%;
}
