/* Mia102 — Fresh Press direction
   Tokens, layout, and components for the public site. */

:root {
    --green: #1B5E3F;
    --green-dark: #0E3D27;
    --green-light: #E8F0EA;
    --yellow: #F4C430;
    --cream: #FAF6EE;
    --ink: #1A1F1B;
    --muted: #6E7A6F;

    --shadow-sm: 0 4px 12px rgba(14, 61, 39, 0.06);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.20);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.30);
    --shadow-hero: 0 30px 60px rgba(14, 61, 39, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
    font-size: 16px;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

.serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }
.italic { font-style: italic; }

.eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--green);
}

.section { padding: 80px 40px; }
.container { max-width: 1240px; margin: 0 auto; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 246, 238, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 94, 63, 0.15);
    padding: 14px 40px;
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark .name { font-family: 'Fraunces', serif; font-size: 22px; color: var(--green); font-weight: 600; }
.brand .wordmark .sub { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink); transition: color .2s ease; }
.nav a:hover { color: var(--green); }

.actions { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 10px 20px; font-size: 13px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; border: 1px solid rgba(27, 94, 63, 0.3); color: var(--green); padding: 8px 14px; font-size: 13px; }
.btn-ghost:hover { background: var(--green-light); }
.btn-yellow { background: var(--yellow); color: var(--ink); font-weight: 700; }
.btn-yellow:hover { background: #e3b51e; }
.btn-outline-cream { background: transparent; color: var(--cream); border: 1px solid rgba(250,246,238,0.4); }
.btn-outline-cream:hover { background: rgba(250,246,238,0.1); }

.lang-toggle a { font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang-toggle a.active { background: var(--green); color: var(--cream); }

/* ---------------- Hero ---------------- */
.hero { padding: 80px 40px 60px; background: var(--cream); }
.hero .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 1240px; margin: 0 auto; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-light); color: var(--green);
    border-radius: 999px; padding: 6px 12px;
    font-size: 11px; font-weight: 600; letter-spacing: .5px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
    font-family: 'Fraunces', serif; font-size: 88px; font-weight: 600;
    line-height: 0.95; letter-spacing: -3px; color: var(--ink);
    margin: 24px 0 20px;
}
.hero h1 em { color: var(--green); font-style: italic; }
.hero .vi-sub { font-family: 'Fraunces', serif; font-style: italic; font-size: 17px; color: var(--muted); max-width: 540px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(27, 94, 63, 0.15); }
.hero .stat .num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: var(--green-dark); }
.hero .stat .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 4px; }

.hero-cover { position: relative; height: 620px; }
.hero-cover .photo { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; background: #000; box-shadow: var(--shadow-hero); }
.hero-cover .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-cover .photo::after {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 30% 30%, rgba(244, 196, 48, 0.18) 0%, transparent 50%),
      linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}
.hero-cover .badge {
    position: absolute; top: 20px; left: 20px;
    background: var(--cream); color: var(--green-dark);
    padding: 8px 14px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
    z-index: 2;
}
.hero-cover .caption-card {
    position: absolute; left: 20px; right: 20px; bottom: 20px;
    background: var(--cream); padding: 16px 20px; border-radius: 16px;
    display: flex; justify-content: space-between; align-items: center; z-index: 2;
}
.hero-cover .caption-card .name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--ink); }
.hero-cover .caption-card .sub { font-family: 'Fraunces', serif; font-style: italic; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero-cover .caption-card .price { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--green-dark); }
.hero-cover .polaroid {
    position: absolute; right: -24px; top: 8%;
    width: 140px; height: 140px;
    background: #000; border: 4px solid var(--cream); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-md); transform: rotate(6deg);
    z-index: 3;
}
.hero-cover .polaroid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Marquee ---------------- */
.marquee { background: var(--green-dark); color: var(--cream); padding: 14px 0; border-top: 1px solid rgba(27, 94, 63, 0.6); border-bottom: 1px solid rgba(27, 94, 63, 0.6); overflow: hidden; }
.marquee .track { display: flex; gap: 24px; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee .item { font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.marquee .star { color: var(--yellow); margin: 0 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ---------------- Best Sellers ---------------- */
.section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; gap: 24px; }
.section-header h2 { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 600; color: var(--green-dark); letter-spacing: -1.5px; line-height: 1.05; margin-top: 8px; }
.section-header h2 em { font-style: italic; color: var(--green); }
.section-header a { font-size: 13px; font-weight: 600; color: var(--green); border-bottom: 1px solid var(--green); padding-bottom: 2px; }

.best-sellers .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
    background: var(--cream); border: 1px solid rgba(27, 94, 63, 0.2);
    border-radius: 24px; padding: 20px 20px 24px;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 61, 39, 0.12); }
.product-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.product-card .tag { display: inline-block; background: var(--green-dark); color: var(--cream); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.product-card .price { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; color: var(--green-dark); }
.product-card .photo {
    aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: #000;
    box-shadow: inset 0 0 0 1px rgba(250,246,238,0.08);
}
.product-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card .name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.1; padding-top: 16px; }
.product-card .vi { font-family: 'Fraunces', serif; font-style: italic; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------------- About / Story ---------------- */
.about { background: var(--green-dark); color: var(--cream); position: relative; overflow: hidden; }
.about .quote-mark { position: absolute; top: 40px; left: 40px; font-family: 'Fraunces', serif; font-size: 200px; color: rgba(244, 196, 48, 0.15); line-height: 0.8; font-weight: 600; user-select: none; }
.about .grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.about .eyebrow { color: var(--yellow); }
.about h2 { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 500; color: var(--cream); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 24px; }
.about h2 em { font-style: italic; color: var(--yellow); }
.about p { font-size: 16px; line-height: 1.7; color: rgba(250, 246, 238, 0.8); margin-bottom: 16px; }
.about .vi-italic { font-family: 'Fraunces', serif; font-style: italic; font-size: 14px; color: rgba(250, 246, 238, 0.7); margin-bottom: 32px; }
.about .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 24px; border-top: 1px solid rgba(250,246,238,0.2); }
.about .stat .num { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; color: var(--yellow); }
.about .stat .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(250, 246, 238, 0.6); margin-top: 4px; }

.about-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 520px; }
.about-tile { background: #000; border-radius: 16px; border: 8px solid var(--cream); box-shadow: var(--shadow-lg); overflow: hidden; }
.about-tile img { width: 100%; height: 100%; object-fit: cover; }
.about-tile-stack { display: flex; flex-direction: column; gap: 16px; }
.about-tile-info { background: rgba(250,246,238,0.1); padding: 20px; border-radius: 16px; flex: 1; display: flex; flex-direction: column; justify-content: end; }
.about-tile-info .est { color: var(--yellow); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.about-tile-info .year { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 600; color: var(--cream); line-height: 1; margin: 4px 0; }
.about-tile-info .city { font-size: 12px; color: rgba(250,246,238,0.7); }
.about-tile-stack .about-tile { flex: 1.2; }

/* ---------------- Full Menu ---------------- */
.menu-section { background: var(--cream); }
.menu-header { text-align: center; margin-bottom: 48px; }
.menu-header h2 { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 600; color: var(--green-dark); letter-spacing: -1.5px; line-height: 1.05; margin: 8px 0; }
.menu-header h2 em { font-style: italic; color: var(--green); }
.menu-header .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }

.menu-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.menu-tabs a, .menu-tabs button {
    padding: 10px 20px; border-radius: 999px;
    background: transparent; border: 1px solid rgba(27, 94, 63, 0.3);
    color: var(--ink); font-size: 13px; font-weight: 600;
    transition: all .2s ease; cursor: pointer;
}
.menu-tabs a:hover { background: var(--green-light); }
.menu-tabs a.active, .menu-tabs button.active { background: var(--green-dark); color: var(--cream); border-color: var(--green-dark); }

.menu-panel { max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid rgba(27, 94, 63, 0.15); border-radius: 32px; padding: 40px; }
.menu-panel-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(27, 94, 63, 0.2); gap: 16px; flex-wrap: wrap; }
.menu-panel-head .title { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 600; color: var(--green-dark); }
.menu-panel-head .vi { font-family: 'Fraunces', serif; font-style: italic; font-size: 18px; color: var(--muted); margin-top: 4px; }
.menu-panel-head .meta { text-align: right; font-size: 12px; color: var(--muted); }
.menu-panel-head .meta b { color: var(--green-dark); }

.menu-panel-note { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 16px; }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.menu-row { display: flex; align-items: baseline; gap: 8px; }
.menu-row .code { font-size: 10px; font-weight: 700; color: var(--green); background: var(--green-light); padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.menu-row .name { font-size: 15px; font-weight: 600; color: var(--ink); }
.menu-row .vi { font-family: 'Fraunces', serif; font-style: italic; font-size: 13px; color: var(--muted); }
.menu-row .featured { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); background: var(--ink); padding: 2px 6px; border-radius: 4px; }
.menu-row .leader { flex: 1; border-bottom: 1px dotted rgba(27, 94, 63, 0.3); margin: 0 4px; transform: translateY(-3px); }
.menu-row .price { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: var(--green-dark); flex-shrink: 0; }

/* ---------------- Reviews ---------------- */
.reviews { background: var(--cream); }
.reviews-header { text-align: center; margin-bottom: 48px; }
.reviews-header h2 { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 600; color: var(--green-dark); letter-spacing: -1.5px; margin-top: 8px; }
.reviews-header h2 em { font-style: italic; color: var(--green); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.review-card { background: #fff; border: 1px solid rgba(27, 94, 63, 0.15); border-radius: 20px; padding: 28px; }
.review-stars { color: var(--yellow); font-size: 16px; margin-bottom: 16px; letter-spacing: 1px; }
.review-quote { font-family: 'Fraunces', serif; font-size: 17px; line-height: 1.5; color: var(--ink); margin-bottom: 24px; }
.review-foot { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.review-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.review-source { font-size: 11px; font-style: italic; color: var(--muted); margin-top: 2px; }

/* ---------------- Visit ---------------- */
.visit { background: var(--ink); color: var(--cream); }
.visit .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1240px; margin: 0 auto; }
.visit .eyebrow { color: var(--yellow); }
.visit h2 { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 500; line-height: 1.05; letter-spacing: -1.5px; margin: 12px 0 32px; }
.visit h2 em { font-style: italic; color: var(--yellow); }
.visit .info-row { padding: 16px 0; border-top: 1px solid rgba(250,246,238,0.15); }
.visit .info-row:last-of-type { border-bottom: 1px solid rgba(250,246,238,0.15); }
.visit .info-row .lbl { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(250,246,238,0.7); margin-bottom: 4px; }
.visit .info-row .val { font-size: 15px; }
.visit .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.map-card { position: relative; min-height: 400px; border: 1px solid rgba(250,246,238,0.2); border-radius: 24px; overflow: hidden; background: var(--green-dark); }
.map-card iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }
.map-info {
    position: absolute; left: 16px; bottom: 16px; right: 16px;
    background: rgba(26, 31, 27, 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding: 14px 18px; border-radius: 12px;
}
.map-info .name { font-size: 14px; font-weight: 700; }
.map-info .meta { font-size: 11px; color: rgba(250,246,238,0.85); margin-top: 4px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-dark); color: var(--cream); padding: 48px 40px 24px; }
.site-footer .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(250,246,238,0.2); max-width: 1240px; margin: 0 auto; }
.site-footer .wordmark { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.site-footer p { font-size: 13px; color: rgba(250,246,238,0.8); line-height: 1.6; max-width: 280px; }
.site-footer h4 { color: var(--yellow); font-size: 11px; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { font-size: 13px; color: rgba(250,246,238,0.8); margin: 6px 0; }
.site-footer li a:hover { color: var(--yellow); }
.site-footer .legal { max-width: 1240px; margin: 20px auto 0; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(250,246,238,0.66); flex-wrap: wrap; gap: 8px; }

/* ---------------- Forms / Contact ---------------- */
.form-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid rgba(27, 94, 63, 0.15); border-radius: 24px; padding: 40px; }
.form-row { display: grid; gap: 8px; margin-bottom: 16px; }
.form-row label { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.form-row input, .form-row textarea, .form-row select {
    border: 1px solid rgba(27, 94, 63, 0.25); background: var(--cream);
    padding: 12px 14px; border-radius: 12px; font-size: 15px; color: var(--ink);
    outline: none; transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(27, 94, 63, 0.15); }
.form-row textarea { min-height: 140px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(27,94,63,.2); }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c0; }

/* ---------------- Posts list ---------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid rgba(27, 94, 63, 0.15); border-radius: 20px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.post-card .photo { aspect-ratio: 16/9; background: var(--green-light); overflow: hidden; }
.post-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; }
.post-card h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--green-dark); line-height: 1.2; }
.post-card .excerpt { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.post-card .meta { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.article { max-width: 760px; margin: 0 auto; padding: 60px 40px; }
.article h1 { font-family: 'Fraunces', serif; font-size: 56px; line-height: 1.05; color: var(--green-dark); letter-spacing: -1.5px; margin-bottom: 16px; }
.article .meta { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.article .content { font-size: 17px; line-height: 1.75; }
.article .content p { margin: 16px 0; }
.article .content h2 { font-family: 'Fraunces', serif; font-size: 32px; margin: 32px 0 12px; color: var(--green-dark); }
.article .content h3 { font-family: 'Fraunces', serif; font-size: 24px; margin: 24px 0 8px; color: var(--green-dark); }
.article .content img { border-radius: 16px; margin: 16px 0; }
.article .content blockquote { border-left: 4px solid var(--green); padding-left: 16px; color: var(--muted); font-style: italic; margin: 16px 0; }

/* ---------------- Errors ---------------- */
.error-page { min-height: 50vh; display: grid; place-items: center; padding: 80px 40px; text-align: center; }
.error-page h1 { font-family: 'Fraunces', serif; font-size: 96px; color: var(--green-dark); }
.error-page p { color: var(--muted); margin: 8px 0 24px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .hero .grid, .about .grid, .visit .grid { grid-template-columns: 1fr; }
    .about-tiles { height: auto; }
    .about-tile { min-height: 280px; }
    .hero h1 { font-size: 64px; letter-spacing: -2px; }
    .hero-cover { height: 480px; }
    .best-sellers .grid, .review-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer .grid { grid-template-columns: 1fr 1fr; }
    .menu-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .section, .hero, .site-footer { padding-left: 20px; padding-right: 20px; }
    .site-header { padding: 10px 16px; }
    .site-header .row { gap: 8px; }
    .brand img { height: 36px; }
    .brand .wordmark .name { font-size: 18px; }
    .brand .wordmark .sub { font-size: 8px; letter-spacing: 1.5px; }

    /* Shrink the header CTA + lang toggle so the arrow doesn't dominate */
    .site-header .actions { gap: 6px; }
    .site-header .actions .btn { padding: 6px 12px; font-size: 11px; gap: 4px; line-height: 1.1; }
    .site-header .actions .lang-toggle a { font-size: 11px; padding: 2px 6px; }

    .hero h1 { font-size: 40px; letter-spacing: -1px; }
    .hero-cover { height: 380px; }
    .hero-cover .polaroid { display: none; }
    .section-header { flex-direction: column; align-items: start; }
    .section-header h2, .menu-header h2, .reviews-header h2, .about h2, .visit h2 { font-size: 36px; letter-spacing: -1px; }
    .best-sellers .grid, .review-grid, .post-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
    .menu-panel { padding: 24px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .site-footer .grid { grid-template-columns: 1fr; }
    .site-footer .legal { flex-direction: column; align-items: start; }
}

/* Extra-small phones — let the wordmark "Sugarcane · PDX" wrap if needed */
@media (max-width: 380px) {
    .brand .wordmark .sub { display: none; }
    .site-header .actions .btn { padding: 5px 10px; font-size: 10px; }
}

/* Skip link for a11y */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--cream); color: var(--green-dark); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* ---------------- Skeleton loading + image fade-in ---------------- */
/* Image-frame containers — only set positioning context where the original
   layout doesn't already supply one. .hero-cover .photo and .polaroid are
   already position:absolute, so leave them alone. */
.product-card .photo,
.about-tile,
.post-card .photo {
    position: relative;
    overflow: hidden;
}

/* Shimmer overlay shown while .is-loading is set on the container.
   Animates a light streak across the dark photo background. */
.product-card .photo.is-loading::before,
.hero-cover .photo.is-loading::before,
.hero-cover .polaroid.is-loading::before,
.about-tile.is-loading::before,
.post-card .photo.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(90deg,
        rgba(255,255,255,0)   0%,
        rgba(255,255,255,0.08) 45%,
        rgba(255,255,255,0.14) 50%,
        rgba(255,255,255,0.08) 55%,
        rgba(255,255,255,0)   100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: mia-shimmer 1.4s linear infinite;
}
.post-card .photo.is-loading::before {
    /* Light cards (cream bg) need a darker shimmer */
    background:
      linear-gradient(90deg,
        rgba(14,61,39,0)    0%,
        rgba(14,61,39,0.05) 45%,
        rgba(14,61,39,0.10) 50%,
        rgba(14,61,39,0.05) 55%,
        rgba(14,61,39,0)    100%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
}

@keyframes mia-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade in images smoothly once they finish loading. JS adds .is-loaded. */
img.mia-fade {
    opacity: 0;
    transition: opacity .45s ease-out;
    will-change: opacity;
}
img.mia-fade.is-loaded {
    opacity: 1;
}

/* Reduce motion: disable shimmer + fade for users who prefer it. */
@media (prefers-reduced-motion: reduce) {
    .is-loading::before { animation: none; }
    img.mia-fade { transition: none; opacity: 1; }
}
