/* ============================================
   MUNCHVILLE — Café & Bar, Troy, NY
   Bold Editorial Design · Plum + Amber
   ============================================ */

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

:root {
    /* Plum palette */
    --plum-50: #faf5f7;
    --plum-100: #f5e8ed;
    --plum-200: #ebccd8;
    --plum-300: #d9a3b8;
    --plum-400: #c27a96;
    --plum-500: #a05474;
    --plum-600: #823f5c;
    --plum-700: #67314a;
    --plum-800: #52283b;
    --plum-900: #442131;
    --plum-950: #240f18;

    /* Amber palette */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    /* Neutrals */
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--neutral-900);
    background-color: var(--plum-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Typography ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-700);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--plum-900);
    margin-bottom: 1.5rem;
}

.section-title--center {
    text-align: center;
}

.section-title--accent {
    color: var(--amber-600);
    font-style: italic;
}

.section-title--light {
    color: var(--plum-100);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--plum-700);
    color: #fff;
    border-color: var(--plum-700);
}

.btn--primary:hover {
    background-color: var(--plum-800);
    border-color: var(--plum-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(103, 49, 74, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--plum-700);
    border-color: var(--plum-300);
}

.btn--outline:hover {
    background-color: var(--plum-100);
    border-color: var(--plum-500);
    transform: translateY(-2px);
}

.btn--light {
    background-color: var(--plum-100);
    color: var(--plum-900);
    border-color: var(--plum-100);
}

.btn--light:hover {
    background-color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline-light {
    background-color: transparent;
    color: var(--plum-100);
    border-color: var(--plum-400);
}

.btn--outline-light:hover {
    background-color: var(--plum-800);
    border-color: var(--plum-800);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 245, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--plum-200);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(68, 33, 49, 0.08);
}

.nav__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-800);
    letter-spacing: -0.02em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--plum-700);
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--amber-500);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover::after,
.nav__link:hover {
    color: var(--plum-900);
    width: 100%;
}

.nav__link--cta {
    background-color: var(--plum-700);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.2s;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--plum-800);
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--plum-800);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    margin-top: 72px;
    background-color: var(--plum-50);
}

.hero__split--left {
    display: flex;
    align-items: center;
    padding: 4rem 6rem;
    background-color: var(--plum-50);
}

.hero__content {
    max-width: 520px;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-700);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--plum-950);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

.hero__headline--accent {
    color: var(--amber-600);
    font-style: italic;
    font-weight: 400;
}

.hero__subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--plum-700);
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__split--right {
    overflow: hidden;
}

.hero__image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

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

/* ---------- About ---------- */
.about {
    padding: 8rem 2rem;
    background-color: #fff;
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__content {
    max-width: 480px;
}

.about__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--plum-700);
    margin-bottom: 1.25rem;
}

.about__image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about__image-item {
    overflow: hidden;
    border-radius: 8px;
}

.about__image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5 / 6.2;
    transition: transform 0.6s var(--ease-out);
}

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

/* ---------- Menu ---------- */
.menu {
    padding: 8rem 2rem;
    background-color: var(--plum-950);
}

.menu__container {
    max-width: 1000px;
    margin: 0 auto;
}

.menu .section-eyebrow {
    color: var(--amber-400);
    text-align: center;
}

.menu .section-title {
    color: var(--plum-100);
    text-align: center;
    margin-bottom: 3rem;
}

.menu__tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.menu__tab {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.75rem 2rem;
    border: 1.5px solid var(--plum-700);
    border-radius: 50px;
    background: transparent;
    color: var(--plum-300);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.menu__tab:hover {
    border-color: var(--plum-500);
    color: var(--plum-200);
}

.menu__tab.active {
    background-color: var(--amber-600);
    border-color: var(--amber-600);
    color: var(--neutral-900);
}

.menu__panels {
    position: relative;
}

.menu__panel {
    display: none;
}

.menu__panel.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-out);
}

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

.menu__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.menu__divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--plum-700), transparent);
    margin: 2rem 0;
}

.menu__category {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--amber-400);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--plum-800);
}

.menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu__item-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--plum-100);
    margin-bottom: 0.2rem;
}

.menu__item-desc {
    font-size: 0.875rem;
    color: var(--plum-300);
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 8rem 2rem;
    background-color: var(--plum-100);
}

.gallery__container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery .section-eyebrow {
    text-align: center;
}

.gallery .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.gallery__item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery__item--wide {
    grid-column: span 12;
}

.gallery__item:not(.gallery__item--wide) {
    grid-column: span 6;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery__item--wide img {
    aspect-ratio: 9 / 5;
}

.gallery__item:not(.gallery__item--wide) img {
    aspect-ratio: 1;
}

.gallery__item:hover img {
    transform: scale(1.04);
}

/* ---------- Visit ---------- */
.visit {
    padding: 8rem 2rem;
    background-color: #fff;
}

.visit__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

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

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visit__detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--amber-600);
    margin-top: 2px;
}

.visit__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plum-400);
    margin-bottom: 0.25rem;
}

.visit__value {
    font-size: 1.0625rem;
    color: var(--plum-800);
    line-height: 1.6;
}

.visit__link {
    color: var(--plum-600);
    transition: color 0.2s;
}

.visit__link:hover {
    color: var(--amber-600);
}

.visit__map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 8px 32px rgba(68, 33, 49, 0.12);
}

/* ---------- CTA ---------- */
.cta {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--plum-900) 0%, var(--plum-950) 100%);
    text-align: center;
}

.cta__container {
    max-width: 680px;
    margin: 0 auto;
}

.cta__eyebrow {
    color: var(--amber-400);
    text-align: center;
}

.cta__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--plum-200);
    margin-bottom: 2.5rem;
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--plum-950);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--plum-800);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--plum-800);
    gap: 2rem;
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-100);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--plum-400);
    margin-top: 0.25rem;
}

.footer__nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer__nav a {
    font-size: 0.875rem;
    color: var(--plum-300);
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--amber-400);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.8125rem;
    color: var(--plum-400);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__split--left {
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(250, 245, 247, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--plum-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.4s var(--ease-out);
        pointer-events: none;
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero__split--left {
        padding: 3rem 2rem;
        order: 2;
    }

    .hero__split--right {
        order: 1;
        min-height: 45vh;
    }

    .hero__image-wrapper {
        min-height: 45vh;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__content {
        max-width: 100%;
    }

    .menu__two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .gallery__item--wide,
    .gallery__item:not(.gallery__item--wide) {
        grid-column: span 1;
    }

    .visit__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visit__map {
        min-height: 300px;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta__actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer__top {
        flex-direction: column;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__split--left {
        padding: 2rem 1.25rem;
    }

    .hero__headline {
        font-size: 2.25rem;
    }

    .about, .menu, .gallery, .visit, .cta {
        padding: 5rem 1.25rem;
    }

    .menu__tabs {
        flex-direction: column;
        align-items: center;
    }

    .menu__tab {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .gallery__item img,
    .about__image-item img {
        transition: none;
    }
}
