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

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

body {
    overflow-x: hidden;
}

/* ─── Hero Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Scroll Reveal ─── */
.reveal-on-scroll {
    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-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden by default for progressive enhancement */
.reveal-on-scroll:not(.revealed) {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(2rem);
    }
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Section Eyebrow ─── */
.section-eyebrow {
    letter-spacing: 0.3em;
}

/* ─── Navigation ─── */
.nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.nav-link:hover {
    color: #ffffff;
}

nav.scrolled .nav-link {
    color: rgba(30, 41, 59, 0.6);
}

nav.scrolled .nav-link:hover {
    color: #0d9488;
}

nav.scrolled .logo-icon,
nav.scrolled .logo-text {
    color: #1e293b;
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

.menu-line {
    background-color: rgba(255, 255, 255, 0.8);
}

nav.scrolled .menu-line {
    background-color: #1e293b;
}

/* ─── Product Card Lines ─── */
/* Grid gap is 0, bg-slate-100 creates the lines */

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ─── Selection ─── */
::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #134e4a;
}

/* ─── Input Focus ─── */
input:focus,
textarea:focus {
    outline: none;
}

/* ─── Vertical Writing (scroll indicator) ─── */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
