/* ============================================
   Schelling Farms & Country Boutique
   Custom Styles — Bold Editorial Design
   Deep Navy + Warm Gold Palette
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #d9a41e;
    color: #102a43;
}

/* Smooth focus */
:focus-visible {
    outline: 2px solid #d9a41e;
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #d9a41e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #eab82b;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #d9a41e, #eab82b);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Scroll reveal (progressive enhancement — only if JS runs) */
@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-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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .font-sans {
    color: #ffffff !important;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d9a41e;
    transition: width 0.3s ease, left 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
    left: 0;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Form inputs */
input, select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #d9a41e !important;
    box-shadow: 0 0 0 3px rgba(217, 164, 30, 0.15) !important;
}

/* Gold gradient text */
.gold-gradient {
    background: linear-gradient(135deg, #d9a41e, #eab82b, #f5d67a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative divider */
.divider-gold {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-gold::before,
.divider-gold::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d9a41e, transparent);
}

/* Mobile menu button animation */
#bar1 {
    transform-origin: center;
}

#bar2 {
    transform-origin: center;
}

#bar3 {
    transform-origin: center;
}

body.menu-open #bar1 {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open #bar2 {
    opacity: 0;
}

body.menu-open #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    header, footer, #contactForm, #menuBtn, .service-card::before {
        display: none !important;
    }

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

    a {
        color: #000;
        text-decoration: underline;
    }
}
