/* 
   The Moon Coffee Garden - Moonlight Oasis Theme
   Colors:
   --moon-dark: #0A0F0C (Midnight Black)
   --moon-forest: #101F18 (Lunar Forest)
   --moon-glow: #00D2FF (Neon Blue Glow)
   --accent-sage: #84A98C (Sage)
   --accent-terracotta: #A44A3F (Terracotta)
   --bg-cream: #FEF9F3 (Rich Cream)
*/

:root {
    --primary-dark: #101F18;
    --primary-base: #0A0F0C;
    --accent-glow: #00D2FF;
    --accent-sage: #84A98C;
    --accent-terracotta: #A44A3F;
    --bg-cream: #FEF9F3;
    --surface-light: #F8F3ED;
    --text-main: #1D1B18;
    --text-muted: #5C5852;
    --glass-bg: rgba(254, 249, 243, 0.85);
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Japanese Design Tokens */
    --jp-washi: #fdfcf0;
    --jp-ink: #1a1a1a;
    --jp-red: #bc002d;
    --jp-gold: #d4af37;
    --zalo-blue: #0068ff;
}

/* Fluid Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Fluid Typography */
.display {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.display span {
    font-style: italic;
    opacity: 0.9;
    color: var(--accent-glow);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: -0.02em;
}

.subheadline {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-glow);
    margin-bottom: 1rem;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-large { max-width: 1400px; }
.container-medium { max-width: 800px; }
.container-full { width: 100%; padding: 0; }

.section {
    padding: clamp(4rem, 10vw, 10rem) 0;
}

.bg-subtle { background-color: var(--surface-light); }
.bg-dark { background-color: var(--primary-base); color: white; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

.logo span { color: var(--accent-glow); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.nav-link:hover { color: var(--accent-glow); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-glow);
    color: var(--primary-base);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    border-color: var(--accent-glow);
    color: var(--accent-glow);
}

.btn-minimal {
    padding: 1rem 0;
    background: none;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 15, 12, 0.2), rgba(10, 15, 12, 0.7));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 4rem;
}

.hero-text {
    max-width: 800px;
    color: white;
}

.lead {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Editorial Gallery Grid */
.editorial-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-item-large, .gallery-item-small, .gallery-item-full {
    overflow: hidden;
    position: relative;
    background: var(--surface-light);
}

.gallery-item-large { flex: 1.5; }
.gallery-item-small { flex: 1; }
.gallery-item-full { height: 100%; }

.editorial-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.editorial-gallery img:hover {
    transform: scale(1.05);
}

/* Menu Grid */
.menu-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-dark);
}

.menu-list {
    list-style: none;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    transition: var(--transition);
}

.menu-list li:hover {
    padding-left: 10px;
    color: var(--accent-terracotta);
}

.menu-list .special {
    color: var(--accent-glow);
    font-weight: 600;
}

.highlight-list li {
    background: rgba(132, 169, 140, 0.05);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: none;
}

/* --- Japanese Menu Enhancements --- */
.menu-japanese {
    background-color: var(--jp-washi);
    background-image: radial-gradient(var(--jp-ink) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-attachment: fixed;
    border: 2px solid var(--jp-ink);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.menu-japanese::before {
    content: "メニュー"; /* "Menu" in Katakana */
    position: absolute;
    writing-mode: vertical-rl;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    opacity: 0.03;
    font-family: 'Playfair Display', serif;
    pointer-events: none;
}

.category-card-jp {
    background: white;
    padding: 2.5rem;
    border: 1px solid rgba(26, 26, 26, 0.1);
    position: relative;
    transition: var(--transition);
}

.category-card-jp:hover {
    border-color: var(--jp-red);
    box-shadow: 15px 15px 0px var(--jp-ink);
    transform: translate(-5px, -5px);
}

.category-title-jp {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.category-title-jp .icon {
    font-size: 1.5rem;
    color: var(--jp-red);
}

.category-title-jp h3 {
    font-size: 1.75rem;
    color: var(--jp-ink);
    border-bottom: 3px solid var(--jp-red);
}

.menu-list-jp li {
    list-style: none;
    display: flex;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.05);
    font-family: 'Manrope', sans-serif;
    position: relative;
    overflow: hidden;
}

.menu-list-jp li span:first-child {
    z-index: 1;
    background: white;
    padding-right: 10px;
    position: relative;
}

.menu-list-jp .price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--jp-red);
    flex-shrink: 0;
    z-index: 1;
    background: white;
    padding-left: 10px;
    margin-left: auto;
}

.menu-list-jp li::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.35rem;
    border-bottom: 2px dotted rgba(26, 26, 26, 0.1);
    z-index: 0;
}

.highlight-card .menu-list-jp .price,
.highlight-card .menu-list-jp li span:first-child {
    background: #fff;
}

/* --- Zalo Floating Plugin --- */
.zalo-plugin {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.zalo-button {
    width: 60px;
    height: 60px;
    background: var(--zalo-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 104, 255, 0.4);
    pointer-events: auto;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.zalo-button:hover {
    transform: scale(1.1) rotate(5deg);
}

.zalo-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Pulsing effect */
.zalo-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--zalo-blue);
    border-radius: 50%;
    z-index: -1;
    animation: zalo-pulse 2s infinite;
}

@keyframes zalo-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

.zalo-tooltip {
    background: white;
    color: var(--jp-ink);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    pointer-events: none;
}

.zalo-plugin:hover .zalo-tooltip {
    opacity: 1;
    transform: translateX(0);
}


/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.overlapping-layout {
    position: relative;
}

.img-large {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.img-small {
    position: absolute;
    width: 45%;
    bottom: -20%;
    right: -10%;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 5px solid white;
}

/* Reservation Frame */
.reserve-frame {
    background: white;
    padding: 5rem;
    box-shadow: 0 40px 120px rgba(0,0,0,0.3);
    color: var(--text-main);
}

.text-accent {
    color: var(--accent-glow);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 1rem;
}

.map-container {
    margin: 2.5rem 0;
    border: 1px solid rgba(26, 26, 26, 0.1);
    box-shadow: 10px 10px 0px var(--primary-base);
    transition: var(--transition);
    overflow: hidden;
}

.map-container:hover {
    transform: translate(-3px, -3px);
    box-shadow: 13px 13px 0px var(--jp-red);
}

.map-container iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.1);
}

.reservation-form {
    margin-top: 3rem;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-glow);
}

/* Footer */
.footer {
    padding: 8rem 0 0;
    background-color: var(--primary-base);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-brand-header {
    margin-bottom: 5rem;
}

.logo-large {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    font-style: italic;
}

.logo-large span:first-child {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.5em;
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-glow);
}

.logo-large span:last-child {
    color: var(--accent-glow);
    font-style: normal;
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.footer-info-row {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-bottom: 6rem;
    flex-wrap: wrap;
}

.footer-label {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-label::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    border-bottom: 2px solid var(--accent-glow);
}

.footer-item p {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: var(--accent-glow);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    opacity: 0;
    transform: translateY(50px);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.5s ease, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-content { padding: 0 2rem; }
    .editorial-gallery { grid-template-columns: 1fr 1fr; }
    .gallery-column:last-child { grid-column: span 2; height: 400px; }
    .reserve-frame { padding: 3rem; }
}

@media (max-width: 768px) {
    .editorial-gallery { grid-template-columns: 1fr; }
    .gallery-column:last-child { grid-column: span 1; }
    .display { font-size: 3.5rem; }
    .menu-tabs { grid-template-columns: 1fr; gap: 2rem; }
    .category-card-jp { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .menu-tabs { gap: 1.5rem; }
    .category-card-jp { padding: 1rem; border-radius: 4px; }
    .category-title-jp h3 { font-size: 1.5rem; }
    .menu-list-jp li { 
        padding: 0.85rem 0;
        font-size: 0.9375rem; 
    }
    .menu-list-jp li span:first-child {
        max-width: 75%;
        overflow-wrap: break-word;
    }
    .display { font-size: 2.8rem; }
    .logo { font-size: 1.35rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.8rem; }
    .reserve-frame { padding: 2rem 1rem; }
    .map-container { margin: 1.5rem 0; }
    .map-container iframe { height: 250px; }
    .footer-info-row { gap: 3rem; }
    .logo-large { font-size: 3rem; }
}
