/* ============================================
   The Smitty Home Group — Custom Styles
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-plum-700: #6b3a5d;
    --color-plum-800: #4a263d;
    --color-plum-900: #2d1825;
    --color-plum-950: #1a0e16;
    --color-amber-400: #ffd166;
    --color-amber-500: #f5a623;
}

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: var(--color-plum-700);
    color: #fff;
}

/* --- Navbar Transition --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 58, 93, 0.08);
}

#navbar.scrolled .nav-link {
    color: var(--color-plum-800) !important;
}

#navbar.scrolled .nav-link:hover {
    color: var(--color-amber-500) !important;
}

#navbar.scrolled .font-serif {
    color: var(--color-plum-800) !important;
}

/* --- Floating Card Animations --- */
.floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(107, 58, 93, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-amber-500);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--color-plum-50);
}

::-webkit-scrollbar-thumb {
    background: var(--color-plum-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-plum-500);
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.2;
    }
}

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