/* ============================================
   The Nest — Custom Styles
   Classic & Elegant Retail Boutique
   ============================================ */

/* --- Base & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', Georgia, serif;
    color: #522837;
    background-color: #faf5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- Selection --- */
::selection {
    background-color: #d9aebd;
    color: #2d131c;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(118, 53, 75, 0.08);
}

/* --- Mobile Menu Transitions --- */
#mobile-menu {
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* --- Hover Underline Effect for Links --- */
a {
    text-decoration: none;
}

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

/* --- Image Loading --- */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

/* --- Card Hover Effects --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Form Input Transitions --- */
input,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: #d9aebd;
    box-shadow: 0 0 0 3px rgba(217, 174, 189, 0.3);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* --- Tablet --- */
@media (min-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* --- Large Screens --- */
@media (min-width: 1024px) {
    .lg\:hover\:bg-plum-800:hover {
        background-color: #76354b;
    }
}

/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}
