/* Custom styles for PhamilyTeaHouse */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefcfb;
}
::-webkit-scrollbar-thumb {
    background: #e8846b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e06b5a;
}

/* Selection color */
::selection {
    background: #fce9e6;
    color: #1a1a1a;
}

/* Navbar transitions */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8846b;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #e8846b;
}

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #1a1a1a;
}

nav.scrolled .nav-link {
    color: #2d2d2d;
}

nav.scrolled .nav-link:hover {
    color: #e8846b;
}

nav.scrolled #mobile-menu-btn {
    border-color: #e5e5e5;
}

nav.scrolled #mobile-menu-btn svg {
    stroke: #2d2d2d;
}

/* Mobile menu */
.mobile-link {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
    color: #e8846b;
    padding-left: 8px;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .group img {
        transition: none;
    }
    
    button, a {
        transition: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-link {
        display: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #e8846b;
    outline-offset: 2px;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
