/* Custom styles for Country Charm & Country Charm II at Polk Place */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fafaf9;
}
::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(120, 28, 33, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-transparent {
    background: transparent;
}

/* Mobile menu link hover */
.mobile-menu-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}
.mobile-menu-link:hover {
    padding-left: 12px;
}
.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #f9a8d4;
    transition: width 0.2s ease;
}
.mobile-menu-link:hover::before {
    width: 6px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Hero text animation */
.hero-title {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1s ease forwards;
}
.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s ease 0.2s forwards;
}
.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease 0.4s forwards;
}
.hero-trust {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease 0.6s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image parallax on scroll */
.hero-bg {
    will-change: transform;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #781c21;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #f9cfd6;
    color: #781c21;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-trust {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
