/* Metis Labs — Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color - uses CSS custom properties set by Tailwind */
::selection {
    background-color: var(--color-sage, #84A59D);
    color: var(--color-bone, #F9F7F2);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Form input focus glow */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(132, 165, 157, 0.1);
}

/* Subtle fade-in for HTMX-loaded content */
.htmx-settling {
    opacity: 0;
}

#inquiry-form > *,
#company-form > * {
    animation: fadeSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* Step dot transitions */
.step-dot {
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.step-dot.bg-sage {
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(132, 165, 157, 0.15);
}

/* Scroll-triggered nav shadow */
nav.scrolled {
    box-shadow: 0 1px 8px rgba(47, 62, 70, 0.06);
}

/* Button press effect */
button:active,
a[class*="bg-slate"]:active,
a[class*="bg-sage"]:active {
    transform: scale(0.97);
}

/* Typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hover lift for cards and interactive elements */
.hover\:-translate-y-0\.5:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(47, 62, 70, 0.04);
}

/* Blockquote styling */
blockquote {
    border-left: 2px solid var(--color-sage, #84A59D);
    padding-left: 1.5rem;
    font-style: italic;
}

/* Gentle page load animation */
main > section {
    animation: sectionFadeIn 0.6s ease forwards;
}

main > section:nth-child(2) { animation-delay: 0.1s; }
main > section:nth-child(3) { animation-delay: 0.2s; }
main > section:nth-child(4) { animation-delay: 0.3s; }

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