/* ========================================
   James Farm and Flowers — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(131, 20, 67, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #831443 !important;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-link {
    font-family: 'Cormorant Garamond', serif;
}

/* ========================================
   Hero Animations
   ======================================== */
.hero-eyebrow {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subheadline {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Orbs */
.orb-1 {
    animation: float1 8s ease-in-out infinite;
}

.orb-2 {
    animation: float2 10s ease-in-out infinite;
}

.orb-3 {
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.08); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.05); }
}

/* Scroll Line */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .service-reveal,
    .about-reveal,
    .gallery-reveal,
    .quote-reveal,
    .contact-reveal,
    .contact-info-reveal,
    .contact-form-reveal {
        opacity: 1;
        transform: none;
    }

    .service-card {
        opacity: 1;
        transform: none;
    }

    .gallery-item {
        opacity: 1;
        transform: none;
    }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #831443, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(131, 20, 67, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Buttons
   ======================================== */
button, a[href^="tel"] {
    cursor: pointer;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    @media (min-width: 768px) {
        .hero-headline {
            font-size: 3.5rem;
        }
    }

    @media (min-width: 1024px) {
        .hero-headline {
            font-size: 4.5rem;
        }
    }

    @media (min-width: 1280px) {
        .hero-headline {
            font-size: 5.5rem;
        }
    }
}

/* ========================================
   Utility
   ======================================== */
::selection {
    background: rgba(131, 20, 67, 0.15);
    color: #831443;
}
