/* ============================================
   Smoke Shop & Vape — Custom Styles
   ============================================ */

:root {
    --tc-50: #fdf0eb;
    --tc-100: #fce4d8;
    --tc-200: #f8c4a8;
    --tc-300: #f3a076;
    --tc-400: #ec7e4e;
    --tc-500: #c4785a;
    --tc-600: #a86040;
    --tc-700: #8b4a30;
    --sand-300: #f5d9a0;
    --sand-600: #c88a35;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: var(--tc-200);
    color: var(--tc-800);
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* ============================================
   Typography
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tc-500);
    background: var(--tc-100);
    padding: 0.4em 1em;
    border-radius: 100px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--warm-900);
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--warm-500);
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-images {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.floating-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover .rounded-2xl {
    box-shadow: 0 20px 60px rgba(196, 120, 90, 0.15);
}

.product-card .rounded-2xl {
    transition: box-shadow 0.4s ease;
}

/* ============================================
   About Images
   ============================================ */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Why Us Cards
   ============================================ */
#why-us .text-center > div,
#why-us .text-center > h2,
#why-us .text-center > p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#why-us .text-center > div.visible,
#why-us .text-center > h2.visible,
#why-us .text-center > p.visible {
    opacity: 1;
    transform: translateY(0);
}

#why-us .grid > div {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#why-us .grid > div.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Location Section
   ============================================ */
#location > div > div:first-of-type > div {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#location > div > div:first-of-type > div.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Contact Section
   ============================================ */
#contact > div > div:first-child > div {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#contact > div > div:first-child > div.visible {
    opacity: 1;
    transform: translateX(0);
}

#contact .bg-white {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#contact .bg-white.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Back to Top
   ============================================ */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(196, 120, 90, 0.4);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tc-500);
    transition: width 0.3s ease;
}

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

/* ============================================
   Form Styles
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-images {
        margin-top: 2rem;
    }
}

/* ============================================
   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;
    }
    .hero-content,
    .hero-images,
    .floating-card,
    .product-card,
    .about-images,
    .about-content {
        opacity: 1;
        transform: none;
    }
}
