/* ============================================
   Snoqueen Snocones — Custom Styles
   Bold Editorial • Charcoal + Coral
   ============================================ */

/* Custom Tailwind Config */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Color Tokens */
:root {
    --color-coral: #FF6B5E;
    --color-coral-hover: #FF857A;
    --color-charcoal: #1C1C1E;
    --color-stone-50: #FAFAF9;
    --color-stone-900: #1C1C1E;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--color-stone-50);
    color: var(--color-charcoal);
}

/* ============================================
   Typography
   ============================================ */
.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Space Grotesk', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--color-stone-50);
}

::-webkit-scrollbar-thumb {
    background: var(--color-coral);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-hover);
}

/* ============================================
   Coral Color Utilities
   ============================================ */
.text-coral {
    color: var(--color-coral);
}

.bg-coral {
    background-color: var(--color-coral);
}

.bg-coral-hover {
    background-color: var(--color-coral-hover);
}

.border-coral {
    border-color: var(--color-coral);
}

.hover\:text-coral:hover {
    color: var(--color-coral);
}

.hover\:border-coral:hover {
    border-color: var(--color-coral);
}

.hover\:shadow-coral\/20:hover {
    box-shadow: 0 20px 40px rgba(255, 107, 94, 0.2);
}

/* ============================================
   Hero Animations
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ============================================
   Marquee Animation
   ============================================ */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   Only applied when JS runs AND user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered reveal delays */
    .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; }
}

/* Default state: always visible (no JS fallback) */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: color 0.2s ease;
}

/* ============================================
   Card Hover Effects
   ============================================ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Image aspect ratios
   ============================================ */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (min-width: 768px) {
    .md\:hover\:shadow-xl:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    header,
    .animate-marquee,
    #menuBtn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
