/* ========================================
   Midtown Creamery — Custom Styles
   Classic & Elegant Design System
   ======================================== */

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

/* Custom Properties */
:root {
    --color-navy: #1a2c4e;
    --color-navy-light: #243a63;
    --color-gold: #d4af37;
    --color-gold-light: #e0c060;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-700: #44403c;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

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

/* ========================================
   Animations
   ======================================== */

/* Fade In (for hero elements) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Delay utilities */
.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* Apply animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

/* Scroll Reveal Animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* ========================================
   Navigation
   ======================================== */

#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 44, 78, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Buttons & Interactive Elements
   ======================================== */

button, a {
    transition: all 0.3s ease;
}

/* ========================================
   Cards & Sections
   ======================================== */

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.5s ease;
}

/* ========================================
   Image Hover Effects
   ======================================== */

img {
    transition: transform 0.7s ease;
}

/* ========================================
   Custom Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ========================================
   Mobile Responsiveness
   ======================================== */

@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
}

/* ========================================
   Focus Styles (Accessibility)
   ======================================== */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    #navbar,
    .animate-bounce {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
