/* ============================================
   Mom's Hometown Bakery — Stylesheet
   Bold editorial · Plum + Amber palette
   ============================================ */

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

:root {
    /* Plum palette */
    --plum-50:  #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    --plum-950: #3b0764;

    /* 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-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --neutral-950: #0c0a09;

    --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-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 33, 168, 0.08);
    transition: background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(250, 250, 249, 0.95);
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--plum-900);
    letter-spacing: -0.02em;
}

.nav__logo-icon {
    color: var(--amber-600);
    display: flex;
    align-items: center;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    letter-spacing: 0.01em;
    transition: color 0.2s var(--ease-smooth);
    position: relative;
}

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

.nav__link:hover {
    color: var(--plum-700);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--plum-700);
    background: var(--plum-50);
    border: 1.5px solid var(--plum-200);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.2s var(--ease-smooth);
}

.nav__cta:hover {
    background: var(--plum-600);
    color: white;
    border-color: var(--plum-600);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--plum-800);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--plum-950) 0%,
        var(--plum-800) 25%,
        var(--plum-700) 45%,
        var(--amber-700) 70%,
        var(--amber-500) 100%
    );
    padding: 120px 24px 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(147, 51, 234, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(245, 158, 11, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(92, 28, 135, 0.2) 0%, transparent 70%);
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: white;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    color: var(--amber-300);
    font-style: italic;
    font-weight: 700;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero__subtitle strong {
    color: white;
    font-weight: 600;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    letter-spacing: 0.01em;
}

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

.btn--light:hover {
    background: var(--amber-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--ghost-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn--plum {
    background: var(--plum-700);
    color: white;
}

.btn--plum:hover {
    background: var(--plum-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 33, 168, 0.3);
}

/* ============================================
   Section Labels & Titles
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--neutral-900);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.text-accent {
    color: var(--plum-700);
    font-style: italic;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--neutral-50);
}

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

.about__image-wrap {
    position: relative;
}

.about__image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(88, 28, 135, 0.12);
}

.about__image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--amber-400);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.6;
}

.about__content {
    padding: 16px 0;
}

.about__content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--neutral-600);
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--neutral-200);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--plum-700);
    line-height: 1;
    margin-bottom: 6px;
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: var(--neutral-200);
    align-self: stretch;
}

/* ============================================
   Menu
   ============================================ */
.menu {
    padding: 120px 0;
    background: var(--plum-950);
    color: white;
}

.menu__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.menu .section-label {
    color: var(--amber-400);
}

.menu .section-title {
    color: white;
}

.menu .text-accent {
    color: var(--amber-400);
}

.menu__subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.menu__categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.menu__category {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-out);
}

.menu__category:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
}

.menu__category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.menu__category-header svg {
    color: var(--amber-400);
    flex-shrink: 0;
}

.menu__category-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.menu__list {
    list-style: none;
}

.menu__list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.menu__item-name {
    display: block;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.menu__item-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.menu__note {
    text-align: center;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
    padding: 120px 0;
    background: var(--neutral-50);
}

.gallery .container {
    max-width: 1200px;
}

.gallery > .container > .section-label,
.gallery > .container > .section-title {
    text-align: center;
    display: block;
    margin-bottom: 0;
}

.gallery > .container > .section-title {
    margin-bottom: 48px;
}

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

.gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery__item--large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 480px;
}

.gallery__item--wide {
    grid-column: span 12;
    min-height: 280px;
}

.gallery__item:not(.gallery__item--large):not(.gallery__item--wide) {
    min-height: 220px;
}

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 7, 100, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-overlay span {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
}

/* ============================================
   Visit
   ============================================ */
.visit {
    padding: 120px 0;
    background: white;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit__info {
    padding: 16px 0;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

.visit__detail {
    display: flex;
    gap: 16px;
}

.visit__detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--plum-50);
    border: 1px solid var(--plum-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-700);
}

.visit__detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-500);
    margin-bottom: 4px;
}

.visit__detail p {
    font-size: 1rem;
    color: var(--neutral-800);
    line-height: 1.6;
}

.visit__detail a {
    color: var(--plum-700);
    transition: color 0.2s;
}

.visit__detail a:hover {
    color: var(--plum-500);
}

.visit__map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(88, 28, 135, 0.1);
    min-height: 420px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--neutral-950);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer__logo svg {
    color: var(--amber-500);
}

.footer__brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer__links strong,
.footer__contact strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer__links a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    transition: color 0.2s;
}

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

.footer__contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer__contact a {
    color: var(--amber-400);
    transition: color 0.2s;
}

.footer__contact a:hover {
    color: var(--amber-300);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(107, 33, 168, 0.1);
    box-shadow: 0 16px 32px rgba(88, 28, 135, 0.08);
}

.nav__links.open .nav__cta {
    justify-content: center;
    width: 100%;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .menu__categories {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery__item--large {
        grid-column: span 12;
        min-height: 360px;
    }

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

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__links.open {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: 100svh;
    }

    .hero__title {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

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

    .hero__meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-wrap img {
        height: 360px;
    }

    .about__stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .menu {
        padding: 80px 0;
    }

    .menu__category {
        padding: 24px;
    }

    .gallery {
        padding: 80px 0;
    }

    .gallery__item--large {
        grid-column: span 12;
        min-height: 280px;
    }

    .gallery__item:not(.gallery__item--large):not(.gallery__item--wide) {
        min-height: 180px;
    }

    .visit {
        padding: 80px 0;
    }

    .visit__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visit__map {
        min-height: 300px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 16px 48px;
    }

    .about {
        padding: 80px 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
