/* ============================================
   Rankin's Traps and Furs — Custom Styles
   ============================================ */

/* --- Base & Scroll --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar-scrolled #navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #0f172a;
}

.navbar-scrolled .nav-link {
    color: #475569;
}

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

.navbar-scrolled #menu-icon-open,
.navbar-scrolled #menu-icon-close {
    stroke: #0f172a;
}

/* --- Hero --- */
.hero-bg {
    will-change: transform;
}

.hero-content {
    will-change: opacity, transform;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.hero-title {
    animation: heroFadeIn 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    animation: heroFadeIn 0.8s ease-out 0.6s both;
}

.hero-ctas {
    animation: heroFadeIn 0.8s ease-out 0.8s both;
}

.hero-scroll-indicator {
    animation: heroFadeIn 0.8s ease-out 1.2s both;
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: border-color 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    border-left-color: #0d9488;
}

/* --- Product Cards --- */
.product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

/* --- Buttons --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* --- Selection --- */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* --- Form Styles --- */
input:focus,
textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* --- Utility --- */
.text-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Map Container --- */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    pointer-events: none;
}

/* --- Image Hover --- */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* --- Loading States --- */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
