/* ============================================
   Eureka Depot — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: #064e3b;
    color: #fefdf8;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

p, li, a, span, button {
    font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Navbar ---------- */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .navbar-brand {
    color: #fefdf8;
}

/* ---------- Hero Shapes ---------- */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #d97706 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -3s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #6ee7b7 0%, transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- 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-subhead {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    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);
    }
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    display: block;
    letter-spacing: 0.15em;
}

/* ---------- Card Elevated ---------- */
.card-elevated {
    will-change: transform;
}

/* ---------- Reveal Sections (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 1;
        transform: none;
    }
}

/* JS-driven reveal states — only applied when JS is enabled */
.js-enabled .reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled .reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .reveal-section:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal-section:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal-section:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Mobile Menu ---------- */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ---------- Smooth Scroll Offset ---------- */
section[id] {
    scroll-margin-top: 80px;
}

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

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