/* ============================================
   Beatty Farms — Custom Styles
   Bold editorial design | Deep navy + warm gold
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #d49a1a;
    color: #0d1c38;
}

/* ---- Navbar ---- */
.nav-fixed {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(9, 18, 38, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 154, 26, 0.1);
}

.nav-text {
    transition: color 0.3s ease;
}

.nav-subtext {
    transition: color 0.3s ease;
}

.nav-fixed.scrolled .nav-text {
    color: #ffffff;
}

.nav-fixed.scrolled .nav-subtext {
    color: #8da2cf;
}

.nav-link {
    position: relative;
}

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

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

.nav-fixed.scrolled .nav-link {
    color: #d9e0ef;
}

.nav-fixed.scrolled .nav-link:hover {
    color: #f0ce64;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

.mobile-menu-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.mobile-menu-link:hover {
    padding-left: 12px;
}

/* ---- Hero Animations ---- */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-anim:nth-child(2) { transition-delay: 0.25s; }
.hero-anim:nth-child(3) { transition-delay: 0.4s; }
.hero-anim:nth-child(4) { transition-delay: 0.55s; }
.hero-anim:nth-child(5) { transition-delay: 0.7s; }

/* ---- Scroll Indicator ---- */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    50% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ---- Hero Image Container ---- */
.hero-image-container {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* ---- Story Section ---- */
.story-images {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* ---- Product Cards ---- */
.product-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-card:hover img {
    transform: scale(1.05);
}

/* ---- Visit Cards ---- */
.visit-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ---- Community Section ---- */
.community-content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-image {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* ---- Scroll Reveal (below fold only) ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .hero-image-container {
        margin-top: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image-container {
        margin-top: 0;
    }
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d49a1a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Print ---- */
@media print {
    .nav-fixed,
    #hero .absolute,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
