:root {
    --color-base-beige: #FAF7F2;
    --color-surface-tan: #EFE9E0;
    --color-coffee-bean-light: #D7C4B7;
    --color-accent-latte: #C4A882;
    --color-text-primary: #2C2624;
    --color-text-body: #4A423F;
    --color-text-secondary: #7A6C65;
    --color-brand-cacao: #4E3E37;

    --font-serif-display: Georgia, 'Times New Roman', serif;
    --font-sans-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-base-beige);
    color: var(--color-text-body);
    font-family: var(--font-sans-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

img, video {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-brand-cacao);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Safari can leave animated hero text invisible when motion is reduced */
    .floating-nav,
    .hero-stage .section-tag,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .hero-visual {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

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

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

.section-wrapper {
    padding: clamp(80px, 10vw, 120px) 24px;
}

.alternate-bg {
    background-color: var(--color-surface-tan);
}

.content-container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent-latte);
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 28px;
}

.section-description,
.about-standalone {
    color: var(--color-text-body);
    font-size: 1.1rem;
}

.about-standalone {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ech-root-bar {
    width: 100%;
    max-width: 920px;
    display: flex;
    justify-content: flex-start;
}

.ech-root-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--color-brand-cacao);
    background: rgba(250, 247, 242, 0.98);
    border: 1px solid var(--color-coffee-bean-light);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(78, 62, 55, 0.06);
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--transition-smooth);
}

.ech-root-link:hover {
    background: #fff;
    border-color: var(--color-accent-latte);
    transform: translateY(-1px);
}

.floating-nav {
    position: relative;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 920px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(78, 62, 55, 0.08);
    box-shadow: 0 10px 40px rgba(78, 62, 55, 0.04);
    animation: navSlideDown 0.8s var(--transition-smooth) both;
}

/* backdrop-filter + fixed header often blanks the page on iOS Safari */
@supports (-webkit-touch-callout: none) {
    .floating-nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: #FAF7F2;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 8px rgba(78, 62, 55, 0.12);
}

.hero-visual {
    position: relative;
    animation: cozyFadeUp 1s var(--transition-smooth) 0.5s both;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-brand-cacao);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-brand-cacao);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ech-site-link {
    align-self: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--color-coffee-bean-light);
    transition: color 0.2s, border-color 0.2s;
}

.ech-site-link:hover {
    color: var(--color-brand-cacao);
    border-color: var(--color-accent-latte);
}

.lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(78, 62, 55, 0.06);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: var(--font-sans-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn.active {
    background: #fff;
    color: var(--color-brand-cacao);
    box-shadow: 0 2px 8px rgba(78, 62, 55, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-brand-cacao);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.floating-nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.floating-nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
    .floating-nav {
        border-radius: 24px;
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s var(--transition-smooth), opacity 0.25s ease, margin 0.35s ease;
    }

    .floating-nav.is-open .nav-right {
        max-height: 280px;
        opacity: 1;
        margin-top: 16px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(78, 62, 55, 0.08);
    }

    .ech-site-link {
        margin-top: 8px;
    }

    .lang-toggle {
        align-self: center;
        margin-top: 12px;
    }
}

/* --- Buttons --- */
.action-btn {
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans-body);
}

.action-btn.primary {
    background-color: var(--color-brand-cacao);
    color: #fff;
}

.action-btn.primary:hover {
    background-color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 62, 55, 0.2);
}

.action-btn.secondary {
    border: 1px solid var(--color-coffee-bean-light);
    color: var(--color-text-primary);
    background-color: transparent;
}

.action-btn.secondary:hover {
    background-color: var(--color-coffee-bean-light);
    transform: translateY(-2px);
}

.large-btn {
    padding: 18px 52px;
    font-size: 0.9rem;
}

/* --- Hero --- */
.hero-stage {
    min-height: 88vh;
    min-height: -webkit-fill-available;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 140px 24px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.hero-body {
    text-align: left;
}

.hero-stage .section-tag {
    animation: cozyFadeUp 0.8s var(--transition-smooth) 0.1s both;
}

.hero-title {
    font-family: var(--font-serif-display);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 24px;
    font-weight: 600;
    animation: cozyFadeUp 0.8s var(--transition-smooth) 0.3s both;
}

.hero-brand {
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 40px;
    color: var(--color-text-secondary);
    font-weight: 400;
    animation: cozyFadeUp 0.8s var(--transition-smooth) 0.5s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: cozyFadeUp 0.8s var(--transition-smooth) 0.7s both;
}

.hero-visual img,
.hero-logo {
    width: 100%;
    height: clamp(320px, 50vh, 520px);
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(78, 62, 55, 0.14);
    border: 6px solid #fff;
    display: block;
    background: #b85a42;
    padding: 1.5rem;
}

@media (min-width: 900px) {
    .hero-stage {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* --- Quote band --- */
.quote-band {
    padding: clamp(60px, 8vw, 100px) 24px;
    text-align: center;
    background: linear-gradient(rgba(78, 62, 55, 0.55), rgba(78, 62, 55, 0.65)),
                url('photo-latte-art.png') center / cover no-repeat;
    color: #fff;
}

.quote-band blockquote {
    font-family: var(--font-serif-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-style: italic;
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.35;
}

.quote-band cite {
    display: block;
    margin-top: 20px;
    font-family: var(--font-sans-body);
    font-style: normal;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.85;
}

/* --- About --- */
.about-layout-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}

.about-header {
    max-width: 800px;
}

.video-showcase-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-showcase {
    width: 100%;
    max-width: 850px;
}

.video-item {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(78, 62, 55, 0.08);
    background-color: #000;
    border: 1px solid rgba(215, 196, 183, 0.2);
}

.video-item video {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Bento gallery */
.gallery-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.gallery-item--product {
    position: relative;
}

.gallery-item-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(transparent, rgba(78, 62, 55, 0.82));
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    border: 5px solid #fff;
    box-shadow: 0 8px 28px rgba(78, 62, 55, 0.06);
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s ease;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(78, 62, 55, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item.featured img {
    height: 100%;
    min-height: 280px;
}

@media (min-width: 600px) {
    .gallery-showcase {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:not(.featured) img {
        height: 100%;
        min-height: 200px;
    }
}

@media (min-width: 900px) {
    .gallery-showcase {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 200px);
    }

    .gallery-item.featured {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }
}

/* --- Menu preview cards --- */
.menu-intro {
    text-align: center;
    margin-bottom: 64px;
}

.menu-intro .section-lead {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    font-family: var(--font-serif-display);
    font-style: italic;
}

.menu-architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.menu-card {
    background: transparent;
    text-align: left;
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

.menu-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 10px 32px rgba(78, 62, 55, 0.08);
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.05);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-serif-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.product-dots {
    flex-grow: 1;
    border-bottom: 1px dashed var(--color-coffee-bean-light);
    margin: 0 10px;
    min-width: 20px;
}

.product-price {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-accent-latte);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.menu-routing-container {
    text-align: center;
    margin-top: 64px;
}

/* --- Footer --- */
.footer-architecture {
    text-align: center;
    background-color: var(--color-surface-tan);
    border-top: 1px solid rgba(74, 59, 50, 0.05);
    padding-top: clamp(64px, 8vw, 96px);
    padding-bottom: clamp(48px, 6vw, 72px);
}

.footer-architecture .section-tag {
    margin-bottom: 40px;
}

.footer-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 36px 40px;
    margin: 0 auto 36px;
    max-width: 960px;
}

.footer-info-block {
    flex: 0 1 200px;
    text-align: center;
}

.footer-info-block a[data-lang="footer-address"] {
    line-height: 1.65;
    display: inline-block;
    max-width: 220px;
}

.footer-info-block h3 {
    font-family: var(--font-serif-display);
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--color-brand-cacao);
}

.footer-info-block p,
.footer-info-block a {
    font-size: 0.95rem;
    color: var(--color-text-body);
    text-decoration: none;
    line-height: 1.85;
}

.footer-info-block a:hover {
    color: var(--color-brand-cacao);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.map-section {
    text-align: center;
    margin-bottom: 8px;
}

.map-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(74, 62, 55, 0.06);
    border: 1px solid rgba(74, 59, 50, 0.1);
}

.map-container--pinned {
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 320px;
    display: block;
    border: 0;
}

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 22px;
    height: 22px;
    margin: -22px 0 0 -11px;
    background: #c0392b;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.map-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 0;
    height: 0;
    margin-left: -7px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #c0392b;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.map-open-btn {
    margin-bottom: 8px;
}

.footer-copy {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(74, 59, 50, 0.08);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* --- Menu page --- */
.menu-page-header {
    text-align: center;
    padding: 160px 24px 48px;
    max-width: 700px;
    margin: 0 auto;
}

.menu-main-title {
    font-family: var(--font-serif-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
}

.menu-main-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.menu-section-block {
    margin-bottom: 72px;
}

.menu-page-category-title {
    font-family: var(--font-serif-display);
    font-size: 1.75rem;
    color: var(--color-brand-cacao);
    border-bottom: 2px solid var(--color-coffee-bean-light);
    padding-bottom: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.menu-list-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(215, 196, 183, 0.35);
    transition: background 0.2s ease;
}

.menu-list-item:hover {
    background: rgba(255, 255, 255, 0.4);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.menu-list-item.featured {
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.menu-list-item.featured .item-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(78, 62, 55, 0.08);
    flex-shrink: 0;
}

.menu-list-item.featured .item-details {
    flex-grow: 1;
}

.menu-list-item .product-name small {
    font-family: var(--font-sans-body);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.menu-milk-note {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    margin-top: 32px;
    font-weight: 600;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed var(--color-coffee-bean-light);
}

@media (min-width: 700px) {
    .menu-items-list.two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
    }
}
