/* Marrone's Deli & Catering
   Palette follows the original Marrone's brand: brick red, gold and black,
   on warm cream. Mobile-first; no external fonts or scripts. */

:root {
    --red: #b8291a;
    --red-dark: #8f1f13;
    --gold: #c9a227;
    --gold-light: #e6c766;
    --black: #141210;
    --charcoal: #2a2622;
    --cream: #f7f1e6;
    --paper: #fffdf8;
    --ink: #221e1a;
    --muted: #6b625a;
    --line: #e4dccd;
    --green: #2f7d3a;

    --font-head: "Rockwell", "Rockwell Nova", "Roboto Slab", "Zilla Slab", "DejaVu Serif", Georgia, serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Two text sizes for the whole page: body text and secondary notes. */
    --text-small: 0.95rem;

    --wrap: 1160px;
    --gutter: 20px;
    --radius: 6px;
    --shadow: 0 10px 30px rgb(20 18 16 / 0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

h1, h2, h3 {
    margin: 0 0 0.5em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--red); text-underline-offset: 0.15em; }
a:hover { color: var(--red-dark); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

address { font-style: normal; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

.staging-banner {
    padding: 6px var(--gutter);
    background: var(--gold);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    min-height: 48px;
    padding: 0.7em 1.4em;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--small { min-height: 40px; padding: 0.45em 1em; font-size: 0.95rem; }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }

.btn--light { background: var(--paper); color: var(--black); }
.btn--light:hover { background: var(--gold-light); color: var(--black); }

.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: #fff; }

.btn--ghost { border-color: rgb(255 255 255 / 0.35); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.eyebrow {
    margin-bottom: 0.6em;
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold-light); }

/* Header */

.site-header {
    position: relative;
    z-index: 50;
    background: var(--black);
    color: #fff;
    border-bottom: 4px solid var(--red);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
    padding-block: 10px 4px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.brand:hover { color: #fff; }

.brand__logo {
    width: 52px;
    height: auto;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: contain;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.brand__sub { display: none; color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius);
}
.site-nav a:hover { background: var(--charcoal); color: var(--gold-light); }

.site-header__actions { display: flex; gap: 8px; }
.site-header__actions .btn--ghost { display: none; }

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgb(184 41 26 / 0.35), transparent 55%),
        var(--black);
    color: #fff;
}

.hero__inner {
    display: grid;
    gap: 36px;
    padding-block: 48px 56px;
}

.hero h1 { max-width: 14ch; }
.hero__lead { max-width: 52ch; color: #e9e2d6; font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero__photos {
    position: relative;
    min-height: 300px;
}

.hero__photo {
    position: absolute;
    width: 62%;
    max-width: 340px;
    border: 8px solid var(--paper);
    border-radius: 3px;
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}
.hero__photo--a { top: 0; left: 0; transform: rotate(-4deg); }
/* b and c are portrait (4:5) photos, so they're narrower to keep a similar height. */
.hero__photo--b { top: 6%; right: 2%; width: 46%; max-width: 255px; transform: rotate(5deg); z-index: 2; }
.hero__photo--c { bottom: -4%; left: 30%; width: 46%; max-width: 255px; transform: rotate(-2deg); z-index: 3; }

/* Info bar */

.infobar { background: var(--red); color: #fff; }
.infobar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    align-items: center;
    padding-block: 14px;
}
.infobar__item { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.infobar a { color: #fff; font-weight: 600; }
.infobar a:hover { color: var(--gold-light); }

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
}
.status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}
.infobar .status--open::before { background: #7ee28a; box-shadow: 0 0 0 3px rgb(126 226 138 / 0.3); }
.infobar .status--closed::before { background: var(--gold-light); }
.section--dark .status--open { color: #7ee28a; }
.section--dark .status--closed { color: var(--gold-light); }

/* Sections */

.section { padding-block: 64px; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--black); color: #fff; }

.section__head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section__head p:last-child { color: var(--muted); }

.section__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

/* Printable menu thumbnail, with the order button underneath */

.menu-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.menu-pdf__link {
    display: block;
    width: min(100%, 480px);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.menu-pdf__img {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-pdf__label {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 0.2em;
}

.menu-pdf__meta { color: var(--muted); font-weight: 400; }

.menu-pdf__link:hover .menu-pdf__img {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgb(20 18 16 / 0.18);
}

.menu-pdf__link:hover .menu-pdf__label { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
    .menu-pdf__img { transition: none; }
    .menu-pdf__link:hover .menu-pdf__img { transform: none; }
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Menu photos are square so more of each plate shows. */
.cards--three .card__img { aspect-ratio: 1; }

.card__body { padding: 18px 20px 20px; }
.card__body h3 { margin-bottom: 0.35em; }
.card__body p { margin: 0; color: var(--muted); font-size: var(--text-small); }

.card--text {
    background:
        repeating-linear-gradient(45deg, rgb(201 162 39 / 0.08) 0 12px, transparent 12px 24px),
        var(--cream);
    border-top: 5px solid var(--gold);
}
.card--text .card__body { display: flex; flex-direction: column; justify-content: center; height: 100%; padding-block: 28px; }

.callout {
    margin-top: 28px;
    padding: 22px 24px;
    background: var(--black);
    color: #fff;
    border-left: 6px solid var(--gold);
    border-radius: var(--radius);
}
.callout h3 { color: var(--gold-light); }
.callout p { margin: 0; color: #e9e2d6; }

/* Catering */

.catering-plan {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 32px;
    padding: 28px;
    background: #fff;
    border: 2px solid var(--black);
    border-radius: var(--radius);
}
.catering-plan__text { flex: 1 1 420px; }
.catering-plan__text p { margin-bottom: 0.6em; }

.ticks { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 2px;
    width: 12px;
    height: 7px;
    border-left: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    transform: rotate(-45deg);
}

.catering-list {
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.catering-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.catering-list summary::-webkit-details-marker { display: none; }
.catering-list summary::after {
    content: "+";
    color: var(--red);
    font-size: 1.8rem;
    line-height: 1;
}
.catering-list[open] summary::after { content: "–"; }
.catering-list[open] summary { border-bottom: 1px solid var(--line); }

.catering-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px 40px;
    padding: 24px;
}

.catering-group h3 {
    padding-bottom: 6px;
    color: var(--red);
    border-bottom: 2px solid var(--gold);
}
.catering-group dl { margin: 0 0 20px; }
.catering-group dt { margin-top: 10px; font-weight: 700; }
.catering-group dd { margin: 0; color: var(--muted); font-size: var(--text-small); }

.fine-print { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: var(--text-small); }

/* Story */

.story__inner { display: grid; gap: 40px; align-items: start; }

.story__photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: end; }
.story__photos figure { margin: 0; }
.story__photo {
    width: 100%;
    border: 8px solid #fff;
    box-shadow: var(--shadow);
    filter: sepia(0.25);
}
.story__photos figure:last-child { transform: rotate(2deg); }

.story__copy { max-width: 62ch; }

.mission {
    margin-top: 32px;
    padding: 22px 24px;
    border-left: 4px solid var(--gold);
    background: #fff;
    box-shadow: var(--shadow);
}
.mission p { margin: 0; }

/* Visit */

.visit__intro { margin-bottom: 32px; }
.visit__intro h2 { margin-bottom: 0.3em; }

.visit__layout { display: grid; gap: 36px; }

.visit__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 32px;
    align-content: start;
}

.visit__block h3 {
    padding-bottom: 8px;
    color: var(--gold-light);
    border-bottom: 1px solid rgb(255 255 255 / 0.2);
}
.visit__block p { margin-bottom: 0.4em; }
.visit a:not(.btn) { color: #fff; font-weight: 600; }
.visit a:not(.btn):hover { color: var(--gold-light); }

.visit__phone {
    display: inline-block;
    padding-block: 4px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    text-decoration: none;
}

.social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.visit .social__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    text-decoration: none;
}
.social__icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--charcoal);
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.visit .social__link:hover .social__icon { background: #1877f2; border-color: #1877f2; }
.visit .social__link:hover .social__text { text-decoration: underline; }
.visit .plain + .btn { margin-top: 6px; }

.visit__map {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--charcoal);
    border: 1px solid rgb(255 255 255 / 0.15);
    border-radius: var(--radius);
}

.visit__map-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 18px;
}
.visit__map-head address { line-height: 1.45; }

.visit__map-frame {
    display: block;
    width: 100%;
    min-height: 280px;
    flex: 1;
    aspect-ratio: 4 / 3;
    border: 0;
    filter: grayscale(0.15);
}

.hours { border-collapse: collapse; }
.hours th { padding: 2px 14px 2px 0; font-weight: 600; text-align: left; white-space: nowrap; }
.hours td { padding: 2px 0; white-space: nowrap; }

/* Comfortable tap targets for inline contact links. */
.plain a,
.infobar a {
    display: inline-block;
    padding-block: 6px;
}

.plain { margin: 0; padding: 0; list-style: none; }
.plain li { margin-bottom: 8px; }
.muted { color: #b9afa3; font-size: var(--text-small); }

/* Footer */

.site-footer {
    padding-block: 18px;
    background: var(--charcoal);
    color: #b9afa3;
    border-top: 4px solid var(--red);
    font-size: var(--text-small);
}
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.site-footer p { margin: 0; }

/* Error page */

.error-page { padding-block: 80px; text-align: center; }
.error-page .section__actions { margin-top: 24px; }

/* Larger screens */

@media (min-width: 420px) {
    .brand__sub { display: block; }
}

@media (min-width: 720px) {
    .site-header { position: sticky; top: 0; }
    .brand__logo { width: 64px; }
    .brand__name { font-size: 1.35rem; }
    .site-header__actions .btn--ghost { display: inline-flex; }
    .hero__photos { min-height: 380px; }
    .story__inner { grid-template-columns: 1fr 1.1fr; gap: 56px; }
    /* Wider screens: stack the old photos larger beside the story. */
    .story__photos { grid-template-columns: 1fr; gap: 40px; max-width: 520px; padding-top: 12px; }
    .story__photos figure:last-child { width: 88%; justify-self: end; }
    .section { padding-block: 84px; }
}

@media (min-width: 960px) {
    .site-header__inner { grid-template-columns: auto 1fr auto; gap: 20px; padding-block: 10px; }
    .site-nav { grid-column: 2; grid-row: 1; justify-self: end; }
    .hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; padding-block: 72px 80px; }
    .hero__photos { min-height: 480px; }
    .cards--three { grid-template-columns: repeat(3, 1fr); }
    .cards--four { grid-template-columns: repeat(4, 1fr); }
    .visit__layout { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch; }
    .visit__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}

@media print {
    .site-header, .hero__photos, .section__actions, .skip-link, .staging-banner { display: none; }
    .catering-list:not([open]) .catering-list__grid { display: grid; }
    body { background: #fff; color: #000; }
}
