/* --- Visual Identity System --- */
:root {
    --color-bg: #F4F1EA;          
    --color-text: #1E1C1A;        
    --color-text-muted: #655E58;  
    --color-accent: #4A5D4E;      
    --color-accent-light: #E5EADF;
    --color-white: #FFFFFF;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Layout System --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section {
    padding: 140px 0;
}

.text-center { text-align: center; }

/* --- Typography Hierarchy --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 24px; }
h3 { font-size: 1.6rem; font-weight: 600; }

p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.lead-text {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-subtitle {
    max-width: 500px;
    margin: 0 auto 60px auto;
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 0px; 
    transition: var(--transition-smooth);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-text);
}

/* --- Navigation Fixes --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 24px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(244, 241, 234, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1240px; /* Aligns with global layout bounds */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--color-text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.75rem;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    background: transparent;
}

.btn-nav:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
}

/* --- Hero Layout Alignment --- */
.hero {
    height: 100vh;
    position: relative;
    background: url('./images/cafe.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-container-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    max-width: 650px;
    color: var(--color-white);
}

.hero-sub {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    font-weight: 500;
    display: block;
    margin-bottom: 20px;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    color: var(--color-white);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.3);
}

/* --- Editorial Split Layout (About Alignment) --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-image-wrapper {
    position: relative;
    width: 100%;
}

.split-image-wrapper img {
    width: 100%;
    height: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.image-accent-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    height: 50%;
    background-color: var(--color-accent-light);
    z-index: -1;
}

.split-text-content {
    padding-left: 20px;
}

.signature {
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.signature-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.signature-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-accent);
}

/* --- Menu Uniform Heights & Grid Alignment --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.menu-item-card {
    background-color: var(--color-white);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%; /* Keeps cards visually matching even with differing text lengths */
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Matches image ratios perfectly across the card track */
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item-card:hover .card-img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-white);
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 15px;
}

.card-header-row h3 {
    font-size: 1.4rem;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* --- Mosaic Gallery Alignment Correction --- */
.gallery-section {
    overflow: hidden;
}

/* --- Gallery Marquee Centering Fix --- */
.gallery-marquee {
    background-color: var(--color-accent);
    color: var(--color-accent-light);
    padding: 24px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    justify-content: center; /* Centers the text horizontally */
    align-items: center;     /* Centers the text vertically */
    width: 100%;
}

.marquee-inner {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    width: 100%;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
    filter: grayscale(15%);
}

.mosaic-item img:hover {
    filter: grayscale(0%);
}

.mosaic-item.tall { grid-row: span 2; }
.mosaic-item.wide { grid-column: span 2; }

/* --- Contact & Location Grid Alignment --- */
.grid-split-visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visit-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.info-block-group {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-block h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--color-accent);
}

.info-block p span {
    font-weight: 500;
    color: var(--color-text);
    display: inline-block;
    width: 100px;
}

.info-block a {
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.map-card {
    position: relative;
    width: 100%;
}

.map-img {
    width: 100%;
    height: auto;
    box-shadow: 0 40px 80px rgba(0,0,0,0.06);
}

.map-card-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px; /* Safe bounds alignment inside parent element container */
    background-color: var(--color-white);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.map-card-badge h5 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.map-card-badge p {
    font-size: 0.8rem;
}

/* --- Footer Alignment --- */
.site-footer {
    background-color: #171514;
    color: #A39E99;
    padding: 80px 0 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer-brand h3 {
    color: var(--color-white);
    letter-spacing: 0.2em;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    font-size: 0.8rem;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials a {
    color: #A39E99;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-socials a:hover { color: var(--color-white); }

/* --- Mobile Responsiveness Adjustments --- */
@media (max-width: 1024px) {
    .split-layout, .grid-split-visit {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .split-text-content {
        padding-left: 0;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }
    
    .mosaic-item.tall, .mosaic-item.wide {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .section { padding: 80px 0; }
    
    .menu-grid { grid-template-columns: 1fr; }
    
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        transition: var(--transition-smooth);
        gap: 24px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .image-accent-box {
        right: -15px;
    }
}