/* ============================================
   Ada.Lowell Vape — Custom Styles
   Classic & Elegant · Emerald + Cream
   ============================================ */

/* ---- 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;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065F46;
}

/* ---- Selection ---- */
::selection {
    background: rgba(4, 120, 87, 0.2);
    color: #022C20;
}

/* ---- Focus ---- */
:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
}

/* ---- Typography refinements ---- */
h1, h2, h3, h4 {
    font-weight: 500;
}

/* ---- Smooth image loading ---- */
img {
    display: block;
    max-width: 100%;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---- Reveal animations (progressive enhancement) ---- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Navbar transitions ---- */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(2, 44, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(253, 251, 247, 0.08);
}

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

#bar1.open {
    transform: translateY(6px) rotate(45deg);
}
#bar2.open {
    opacity: 0;
}
#bar3.open {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---- Input autofill ---- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #FDFBF7 inset !important;
    -webkit-text-fill-color: #022C20 !important;
}

/* ---- Button hover lift ---- */
button, a {
    cursor: pointer;
    text-decoration: none;
}

/* ---- Form focus states ---- */
input:focus,
textarea:focus {
    outline: none;
}

/* ---- Card hover effects ---- */
.reveal:hover {
    transform: translateY(-4px);
}
