/* ============================================
   VannurVapes — Custom Styles
   Classic & Elegant · Terracotta + Sand
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #b83e1f;
    color: #FAF6F0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
    background: #d4c4b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b83e1f;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-inline {
        opacity: 0;
        transform: translateX(-12px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-inline.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fallback: always visible when reduced motion or no JS */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-inline {
        opacity: 1;
        transform: none;
    }
}

/* --- Card Hover Effect --- */
.card-hover {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px -16px rgba(184, 62, 31, 0.12);
}

/* --- Nav Link Underline --- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b83e1f;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

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

.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #b83e1f;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 60%;
}

/* --- Hamburger Animation --- */
#menuBtn.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
#menuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}
#menuBtn.active .hamburger-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 20px;
}

/* --- Navbar Scrolled State --- */
#navbar.scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

/* --- Button Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #b83e1f;
    outline-offset: 3px;
    border-radius: 4px;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .reveal {
        transform: translateY(24px);
    }
}

/* --- Print Styles --- */
@media print {
    header, footer, .reveal, #mobileMenu {
        display: none !important;
    }
    body {
        color: #1c1917;
        background: white;
    }
    section {
        page-break-inside: avoid;
    }
}
