/* ===== Custom Styles for Secluded Celebrations ===== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #44403C;
}

#navbar.scrolled .nav-link::after {
    background-color: #C95633;
}

/* Mobile menu active state */
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menuToggle.active .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link:hover {
    letter-spacing: 0.02em;
}

/* ===== Hero ===== */
#hero {
    position: relative;
}

/* ===== Specialty Cards ===== */
.specialty-card {
    transform: translateY(0);
}

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

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Story section */
.story-image {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-image.hidden-reveal {
    opacity: 0;
    transform: translateX(-40px);
}

.story-content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-content.hidden-reveal {
    opacity: 0;
    transform: translateX(40px);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .story-image,
    .story-content {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .gallery-item img,
    .specialty-card > div > img {
        transition: none;
    }
    
    .gallery-item:hover img,
    .specialty-card:hover > div > img {
        transform: none;
    }
}

/* ===== Selection ===== */
::selection {
    background-color: rgba(201, 86, 51, 0.2);
    color: #44403C;
}

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

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

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

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

/* ===== 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='%238B8578' 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;
}

/* ===== Focus Visible ===== */
*:focus-visible {
    outline: 2px solid #C95633;
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}
