/* =========================================
   ĂN CHƠI · Vietnamese Street Food
   Color story:
   - teal/green from logo
   - gold from logo
   - warm burgundy/dark red from menu
   - aged paper cream from menu
   ========================================= */

:root {
    --teal: #1f6e6a;
    --teal-deep: #154e4b;
    --teal-dark: #0e3735;
    --gold: #e9b94a;
    --gold-soft: #f0c969;
    --burgundy: #5a1e1c;
    --burgundy-deep: #3d1413;
    --cream: #f4e4c4;
    --cream-soft: #f9efd4;
    --paper: #e8d3a8;
    --ink: #2a1a14;
    --red-stamp: #b73a2a;
    --green-stamp: #2d6a4f;

    --font-display: 'Bungee', system-ui, sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --max: 1280px;
    --pad: clamp(1.25rem, 4vw, 3rem);

    /* Mobile viewport lock (JS sets --app-height to innerHeight px on small screens) */
    --app-height: 100vh;
    --hero-mobile-extra: 2.5rem; /* tune per design */
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(244, 228, 196, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--teal);
    transition: transform 0.3s ease;
}

.nav__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.6rem var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.nav__brand-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--teal-deep);
    letter-spacing: 0.02em;
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__links a {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--teal-deep);
    position: relative;
    transition: color 0.2s;
}

.nav__links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.nav__links a:hover { color: var(--burgundy); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav__burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--teal-deep);
    border-radius: 2px;
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .nav__brand-text { font-size: 1rem; }
    .nav__logo { width: 40px; height: 40px; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--teal-deep);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(233, 185, 74, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(183, 58, 42, 0.2), transparent 40%);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    padding: 2rem;
}

.mobile-menu.is-open {
    transform: translateY(0);
}

.mobile-menu__close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--gold);
    color: var(--burgundy-deep);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.mobile-menu__close:hover { transform: rotate(90deg); }

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-menu__links a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3rem);
    color: var(--cream);
    transition: color 0.2s;
}

.mobile-menu__links a:hover { color: var(--gold); }

.mobile-menu__footer {
    position: absolute;
    bottom: 2.5rem;
    text-align: center;
    color: var(--cream-soft);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--teal-deep);
    background-image:
        radial-gradient(ellipse at top left, rgba(233, 185, 74, 0.25), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(183, 58, 42, 0.3), transparent 50%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7rem var(--pad) 5.5rem;
}

.hero__paper {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px);
    pointer-events: none;
}

.hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

.hero__stack {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.hero__content {
    color: var(--cream);
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo {
    width: clamp(100px, 18vw, 160px);
    height: clamp(100px, 18vw, 160px);
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 5px rgba(233, 185, 74, 0.2);
    opacity: 0;
    animation: fadeUp 0.8s 0.1s forwards;
}

.hero__title {
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2em 0.35em;
}

.hero__title-word {
    font-size: clamp(3.5rem, 12vw, 7.5rem);
    color: var(--cream);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s 0.25s forwards;
}

.hero__title-word--accent {
    color: var(--gold);
    text-shadow: 3px 3px 0 var(--burgundy-deep);
    animation-delay: 0.4s;
}

.hero__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: var(--cream-soft);
    max-width: 36em;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
    line-height: 1.35;
    opacity: 0;
    animation: fadeUp 0.8s 0.55s forwards;
}

.hero__tagline-line {
    display: block;
}

/* Hero reveal: stack + scroll stay hidden until first hero image + JS mark ready (see noscript in HTML) */
.hero:not(.hero--revealed) .hero__stack,
.hero:not(.hero--revealed) .scroll-indicator {
    opacity: 0;
}

.hero.hero--revealed .hero__stack,
.hero.hero--revealed .scroll-indicator {
    opacity: 1;
    transition: opacity 0.45s ease;
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(var(--app-height) + var(--hero-mobile-extra));
    }
}

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

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    position: absolute;
    bottom: clamp(1.25rem, 4vh, 2.5rem);
    left: 0;
    right: 0;
    margin-inline: auto;
    width: fit-content;
    max-width: calc(100% - 2 * var(--pad));
    z-index: 3;
    color: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.scroll-indicator__bowl {
    width: 64px;
    height: 64px;
    overflow: visible;
}

.scroll-indicator__text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-indicator__arrow {
    animation: bounce 1.6s infinite;
}

.steam {
    opacity: 0.7;
    transform-origin: center bottom;
    animation: steam 2.4s infinite ease-in-out;
}
.steam--1 { animation-delay: 0s; }
.steam--2 { animation-delay: 0.4s; }
.steam--3 { animation-delay: 0.8s; }

@keyframes steam {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.9); }
    40% { opacity: 0.8; }
    80% { opacity: 0.3; transform: translateY(-10px) scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========== SECTION COMMONS ========== */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--burgundy);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-eyebrow--light { color: var(--gold); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1;
    color: var(--teal-deep);
    margin-bottom: 2rem;
}

.section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 900;
    color: var(--burgundy);
}

.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--gold); }

/* ========== ABOUT ========== */
.about {
    background: var(--cream);
    padding: 6rem var(--pad) 4rem;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.3 0 0 0 0 0.1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
    pointer-events: none;
}

.about__container {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}

.about__header {
    text-align: center;
    margin-bottom: 4rem;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__lead {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.about__text p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: rgba(42, 26, 20, 0.85);
}

.about__text strong {
    color: var(--burgundy);
    font-family: var(--font-display);
    font-weight: normal;
}

.about__text em {
    font-style: italic;
    color: var(--teal-deep);
    font-weight: 600;
}

.about__stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.stamp {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 2px dashed var(--green-stamp);
    color: var(--green-stamp);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transform: rotate(-2deg);
    background: rgba(255,255,255,0.4);
}

.stamp--alt {
    border-color: var(--red-stamp);
    color: var(--red-stamp);
    transform: rotate(1.5deg);
}

.stamp:nth-child(3) { transform: rotate(-1deg); }

.about__images {
    position: relative;
    aspect-ratio: 1 / 1.05;
}

.about__img {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 6px solid var(--cream-soft);
}

.about__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__img--1 {
    width: 65%;
    aspect-ratio: 3 / 4;
    top: 0;
    left: 0;
    z-index: 2;
    transform: rotate(-3deg);
}

.about__img--2 {
    width: 60%;
    aspect-ratio: 4 / 3;
    bottom: 0;
    right: 0;
    z-index: 1;
    transform: rotate(2deg);
}

@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    /* In-flow layout: avoids Safari collapsing height when all children are
       position:absolute + aspect-ratio on an empty-looking container. */
    .about__images {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        aspect-ratio: unset;
        min-height: 0;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        position: relative;
    }

    .about__img,
    .about__img--1,
    .about__img--2 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        z-index: auto;
    }

}

/* ========== DIVIDER ========== */
.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 0;
    font-family: var(--font-display);
    color: var(--burgundy);
    letter-spacing: 0.25em;
    font-size: 0.95rem;
    opacity: 0.7;
}

.divider span:first-child,
.divider span:last-child {
    color: var(--gold);
    font-size: 1.2rem;
}

/* ========== MENU ========== */
.menu {
    background: var(--burgundy-deep);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(233, 185, 74, 0.08), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(31, 110, 106, 0.15), transparent 40%);
    color: var(--cream);
    padding: 6rem var(--pad);
    position: relative;
    overflow: hidden;
}

.menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
    pointer-events: none;
}

.menu__container {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}

.menu__header {
    text-align: center;
    margin-bottom: 4rem;
}

.menu__subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--cream-soft);
    margin-top: 1rem;
    opacity: 0.85;
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.menu-card {
    background: linear-gradient(155deg, #6b2422 0%, #4a1816 100%);
    border: 2px solid rgba(233, 185, 74, 0.35);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s, border-color 0.3s;
}

.menu-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(233, 185, 74, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.menu-card--feature {
    background: linear-gradient(155deg, #7a2422 0%, #5a1816 100%);
    border-color: var(--gold);
}

.menu-card--wide { grid-column: 1 / -1; }

.menu-card__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(233, 185, 74, 0.4);
}

.menu-card__head h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    color: var(--gold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.menu-card__head--wide h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.menu-card__sub {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--cream-soft);
    margin-top: 0.3rem;
    opacity: 0.85;
}

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

.menu-card__list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.55rem 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--cream);
}

.menu-card__list li > span:first-child {
    font-weight: 500;
}

.menu-card__list li small {
    grid-column: 1 / -1;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--cream-soft);
    opacity: 0.75;
    margin-top: 0.2rem;
    line-height: 1.4;
    font-style: italic;
}

.menu-card__list .featured-item > span:first-child {
    color: var(--gold);
    font-weight: 700;
}

.dots {
    border-bottom: 2px dotted rgba(233, 185, 74, 0.35);
    align-self: end;
    transform: translateY(-4px);
    min-height: 1px;
}

.price {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    white-space: nowrap;
}

.star { color: var(--gold); margin-left: 0.2rem; }

.menu-card__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 800px) {
    .menu-card--wide .menu-card__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem 2.5rem;
    }
    .menu-card--wide .menu-card__list li {
        align-content: start;
    }
}

@media (max-width: 768px) {
    .menu__grid { grid-template-columns: 1fr; }
    .menu-card { padding: 1.5rem; }
}

/* ========== FIND US ========== */
.find {
    background: var(--cream);
    background-image:
        radial-gradient(circle at 0% 100%, rgba(31, 110, 106, 0.12), transparent 40%);
    padding: 6rem var(--pad) 4rem;
    position: relative;
}

.find__container {
    max-width: var(--max);
    margin: 0 auto;
}

.find__header {
    text-align: center;
    margin-bottom: 4rem;
}

.find__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

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

.info-block h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--burgundy);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.info-block a {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--teal-deep);
    line-height: 1.5;
    transition: color 0.2s;
}

.info-block a:hover { color: var(--gold); }

.hours {
    list-style: none;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(31, 110, 106, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(31, 110, 106, 0.15);
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--ink);
}

.hours li:last-child { border-bottom: none; }

.hours li.closed {
    color: var(--burgundy);
    font-weight: 600;
    font-style: italic;
}

.hours li span:first-child { font-weight: 600; }

.socials {
    display: flex;
    gap: 0.75rem;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--teal-deep);
    color: var(--gold);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.socials a:hover {
    transform: translateY(-3px) rotate(-5deg);
    background: var(--burgundy);
    color: var(--cream);
}

.find__map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 6px solid var(--cream-soft);
    aspect-ratio: 4 / 3;
}

.find__map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .find__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--teal-dark);
    color: var(--cream-soft);
    padding: 3rem var(--pad);
    text-align: center;
}

.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 4px;
    background: var(--cream);
}

.footer__text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer__sub {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

@media (max-width: 860px) {
    .footer {
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 2.75rem);
    }
}

/* ========== ACCESSIBILITY ========== */
@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;
    }

}
