/* ============================================
   Heirloom Pines Farm — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #e8c4c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c49aa0;
}

/* Selection */
::selection {
    background: #7B2D3B;
    color: #fdf8f6;
}

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

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

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

/* Navbar scrolled state */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-scrolled .nav-link {
    color: #6b2230;
}

.nav-scrolled .nav-link::after {
    background: #6b2230;
}

/* Mobile Menu */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    position: relative;
}

/* Hero Image Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* Decorative dot pulse */
@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

.dot-pulse {
    animation: pulse-dot 3s ease-in-out infinite;
}

.dot-pulse-delay {
    animation: pulse-dot 3s ease-in-out infinite 1.5s;
}

/* Menu card hover */
.menu-card-hover {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

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

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 20px 40px -12px rgba(123, 45, 59, 0.25) !important;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #7B2D3B 0%, #c49aa0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image reveal */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fdf9f3;
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-reveal.revealed::after {
    transform: scaleX(0);
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Form styles */
input, textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

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