/* ============================================
   Isane Farms Inc — Custom Styles
   Clean Minimalist · Navy & Gold
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-navy-900: #0a1628;
    --color-navy-800: #112240;
    --color-gold-500: #c9982e;
    --color-gold-400: #d4a843;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-navy-900);
    background-color: #ffffff;
    overflow-x: hidden;
}

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

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f8f8f8;
}
::-webkit-scrollbar-thumb {
    background: var(--color-navy-900/20);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-navy-900/40);
}

/* --- Selection --- */
::selection {
    background: var(--color-gold-500);
    color: var(--color-navy-900);
}

/* --- Navigation --- */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-500);
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

#menu-toggle.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active #line2 {
    opacity: 0;
}

#menu-toggle.active #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

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

.hero-title {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.25s;
    opacity: 0;
}

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

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

.hero-stats {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

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

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

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

/* --- CTA Buttons --- */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    position: relative;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    transition: background-color 0.5s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
}

/* --- Process Steps --- */
.process-step {
    position: relative;
    transition: border-color 0.5s ease;
}

.process-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-500);
    transition: width 0.5s ease;
}

.process-step:hover::after {
    width: 100%;
}

/* --- Contact Items --- */
.contact-item {
    position: relative;
    padding-left: 16px;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--color-gold-500);
    transform: rotate(45deg);
}

/* --- Form Inputs --- */
input:focus,
textarea:focus {
    border-bottom-color: var(--color-gold-500) !important;
}

input:focus + label,
textarea:focus + label {
    color: var(--color-gold-500);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }

/* --- Image Hover --- */
img {
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats > div:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(10, 22, 40, 0.08);
        padding-bottom: 1rem;
    }
    
    .floating-card {
        position: relative;
        margin-top: 1rem;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* --- Print --- */
@media print {
    #navbar,
    .scroll-indicator,
    .cta-primary,
    .cta-secondary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
