/* ============================================
   POSITIVITEATX — Custom Styles
   Classic & Elegant · Charcoal + Coral
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-charcoal-900: #1c1c1c;
    --color-charcoal-800: #2b2b2b;
    --color-coral-500: #ff6b35;
    --color-coral-600: #f05018;
    --color-coral-100: #ffe8dc;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', sans-serif;
}

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: var(--color-coral-500);
    color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-coral-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-600);
}

/* --- Section Label --- */
.section-label {
    display: block;
}

/* --- Hero Animations --- */
.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-description {
    animation: heroFadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    animation: heroFadeUp 0.8s ease forwards 0.9s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar --- */
#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #1c1c1c;
}

#navbar.scrolled .menu-line {
    background-color: #1c1c1c;
}

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

#mobile-menu.open .mobile-nav-link {
    animation: mobileLinkFade 0.4s ease forwards;
    opacity: 1;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes mobileLinkFade {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu button active state */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(0.2rem, 0.2rem);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.15rem, -0.15rem);
    width: 1.5rem;
}

/* --- Product Cards --- */
.product-card {
    cursor: pointer;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(2rem);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 2px;
}

/* --- Print --- */
@media print {
    #navbar, #menu-toggle, .hero-cta { display: none; }
    body { color: #000; background: #fff; }
}
