/* Custom Design System for Ned's Ice Cream & Sweet Treats */

/* Color Palette */
:root {
    --navy-900: #0a1628;
    --navy-800: #111d35;
    --navy-700: #1a2744;
    --navy-600: #243456;
    --navy-500: #2d4068;
    --navy-400: #4a6274;
    --navy-300: #6b8296;
    --navy-200: #9bb0be;
    --navy-100: #c8d6df;
    --navy-50: #e8eef2;
    
    --gold-600: #b8860b;
    --gold-500: #c9a84c;
    --gold-400: #d4b965;
    --gold-300: #e0cc8a;
    --gold-200: #ebdfb0;
    --gold-100: #f5f2d4;
    
    --cream-50: #faf8f5;
    --cream-100: #f5f0e8;
    --cream-200: #ebe4d6;
    --cream-300: #e0d6c4;
    --cream-400: #d4c4ad;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--navy-900);
    background-color: var(--cream-50);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

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

::-webkit-scrollbar-track {
    background: var(--cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-600);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(10, 22, 40, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

nav.scrolled .nav-link {
    color: var(--navy-900);
}

/* Mobile Menu */
.mobile-link {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(10px);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 100%);
}

/* Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--navy-200);
}

/* Card Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button Styles */
.btn-primary {
    background: var(--navy-900);
    color: var(--cream-50);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    border: 2px solid var(--navy-900);
    color: var(--navy-900);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--navy-900);
    color: var(--cream-50);
    transform: translateY(-2px);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Image Hover Zoom */
img {
    transition: transform 0.5s ease;
}

/* Custom Selection Color */
::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 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;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    nav,
    .mobile-menu-btn,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900 {
        background: var(--navy-900) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
