/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Hero Animations ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-headline {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-sub {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-btn1 {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

.hero-btn2 {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.hero-trust {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

/* ===== Floating Card Animation ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hidden state for reduced motion - content is always visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(44, 62, 38, 0.08);
}

.nav-text {
    color: #2c3e26;
}

#navbar.scrolled .nav-text {
    color: #2c3e26;
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f3ed;
}

::-webkit-scrollbar-thumb {
    background: #c7d4c0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3b696;
}

/* ===== Selection ===== */
::selection {
    background: #c7d4c0;
    color: #12190e;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5a7a4e;
    outline-offset: 2px;
}

/* ===== Image aspect ratios ===== */
img {
    display: block;
}

/* ===== Smooth image loading ===== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== Print Styles ===== */
@media print {
    #navbar,
    #mobileMenu,
    .reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
