/* ===== CUSTOM STYLES ===== */

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

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

.nav-link {
    position: relative;
}

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

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

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

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

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

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-reveal[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }

    img, .group img {
        transition: none;
    }

    .group:hover img {
        transform: none;
    }

    a:hover, button:hover {
        transform: none;
    }
}

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #f7c4b0;
    color: #3a120b;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 82, 42, 0.15);
}

/* Button focus visible */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4522a;
    outline-offset: 2px;
}

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

/* Gallery hover overlay */
.gallery-item-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rounded-2xl.overflow-hidden.group:hover .gallery-item-overlay {
    opacity: 1;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

/* Print styles */
@media print {
    nav, .scroll-reveal, #contact-form, iframe {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }
}
