/* ============ RED CARPET SHOES & CLOTHING ============ */
/* Custom styles to complement Tailwind CSS */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection color */
::selection {
    background: #d94f2e;
    color: #fff;
}

/* Smooth focus for accessibility */
:focus-visible {
    outline: 2px solid #d94f2e;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift on images */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* ============ NAVBAR SCROLL EFFECT ============ */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

#navbar.scrolled .font-display.font-bold.text-lg.text-stone-900 {
    color: #292524;
}

/* ============ MOBILE MENU ANIMATIONS ============ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.closed .mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

/* ============ BUTTON HOVER EFFECTS ============ */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

/* ============ CARD TRANSITIONS ============ */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(217, 79, 46, 0.12);
}

/* ============ IMAGE ZOOM ON HOVER ============ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============ GEOMETRIC SHAPES ============ */
.geo-shape {
    will-change: transform;
}

/* ============ MARQUEE ============ */
.marquee-track {
    will-change: transform;
}

/* ============ FORM INPUTS ============ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(217, 79, 46, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #a8a29e;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c73a1e;
}

/* ============ PRINT STYLES ============ */
@media print {
    #navbar,
    .marquee-track,
    .geo-shape {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card-hover,
    .btn-primary {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* ============ 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;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* ============ HIGH CONTRAST ============ */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid currentColor;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* ============ LARGE SCREENS ============ */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* ============ TINY SCREENS ============ */
@media (max-width: 360px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}
