/* ============================================
   YEN CAFE — Custom Styles
   Classic & Elegant · Terracotta + Sand
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta-50: #FBF3F0;
    --color-terracotta-100: #F5E0D8;
    --color-terracotta-500: #B8583A;
    --color-terracotta-600: #A04A30;
    --color-sand-50: #FDF9F5;
    --color-sand-100: #F9F0E6;
    --color-sand-500: #D4A56A;
    --color-sand-600: #C48F52;
    --color-stone-800: #292524;
    --color-stone-900: #1C1917;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-stone-800);
    background-color: var(--color-sand-50);
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-sand-100);
}
::-webkit-scrollbar-thumb {
    background: var(--color-terracotta-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-terracotta-500);
}

/* --- Selection --- */
::selection {
    background: var(--color-terracotta-200);
    color: var(--color-stone-900);
}

/* --- Navigation --- */
#navbar {
    background: rgba(253, 249, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 234, 220, 0.5);
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(253, 249, 245, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.mobile-nav-link:hover {
    border-bottom-color: var(--color-terracotta-200);
}

/* --- Hero Section --- */
.hero-content {
    opacity: 1;
    animation: fadeUp 0.8s ease forwards;
}

.hero-image-container {
    opacity: 1;
    animation: fadeScale 1s ease 0.2s forwards;
}

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

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- About Section --- */
.about-content {
    opacity: 1;
}

/* --- Specialty Cards --- */
.specialty-card {
    opacity: 1;
}

.specialty-card:hover .specialty-card-inner {
    transform: translateY(-8px);
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(184, 88, 58, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(184, 88, 58, 0.1);
}

/* --- Visit Section --- */
.visit-content {
    opacity: 1;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Decorative Divider --- */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-terracotta-500), var(--color-sand-500));
    border-radius: 2px;
}

/* --- Button Hover Effects --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* --- Input Focus States --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 88, 58, 0.15);
}

/* --- Image Hover --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
    }
    
    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 768px) {
    .lg\:hover\:lg\:translate-x-2:hover {
        transform: translateX(0.5rem);
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .gallery-item {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
