/* ============================================
   Natural Hardwood Floors — Custom Styles
   Classic & Elegant | Teal + Slate Palette
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-teal-900: #0d3b3e;
    --color-teal-800: #173533;
    --color-teal-700: #1f4643;
    --color-teal-600: #2a5c58;
    --color-teal-500: #3d7a76;
    --color-gold-500: #c9a96e;
    --color-gold-400: #d4af6e;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: #1e293b;
    background-color: #fafaf9;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-teal-800 {
    color: #173533 !important;
}

#navbar.scrolled .text-teal-600 {
    color: #2a5c58 !important;
}

#navbar.scrolled .nav-link {
    color: #475569 !important;
}

#navbar.scrolled .nav-link:hover {
    color: #1f4643 !important;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #173533;
    transition: color 0.3s ease;
}

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

/* --- Selection Color --- */
::selection {
    background: #c9a96e;
    color: #0d3b3e;
}

/* --- Smooth Scroll Offset for Anchored Links --- */
section[id] {
    scroll-margin-top: 80px;
}

/* --- Subtle Hover Lift on Cards --- */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* --- Gold Accent Line Animation --- */
@media (prefers-reduced-motion: no-preference) {
    .gold-line {
        position: relative;
    }

    .gold-line::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-gold-500);
        transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .gold-line:hover::after {
        width: 100%;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobileMenu,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
