/* ==========================================================================
   Notti Pizza - design system
   Palette locked from logo.svg: red #c6252c on cream #fff7e9.
   Typography: Fraunces (display) + Inter (body) via Google Fonts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --notti-red:        #c6252c;
    --notti-red-dark:   #9a1c22;
    --notti-cream:      #fff7e9;
    --notti-cream-2:    #fef5e7;
    --notti-mozz:       #f4e4c1;
    --notti-olive:      #5a6e3a;
    --charcoal:         #1a1a1a;
    --ink:              #2a2522;
    --muted:            #6b605a;
    --line:             rgba(26, 26, 26, 0.12);
    --line-strong:      rgba(26, 26, 26, 0.22);
    --shadow-sm:        0 1px 2px rgba(26,26,26,.06), 0 1px 3px rgba(26,26,26,.06);
    --shadow-md:        0 6px 18px rgba(26,26,26,.10);
    --shadow-lg:        0 18px 42px rgba(26,26,26,.18);
    --radius-sm:        6px;
    --radius:           12px;
    --radius-lg:        20px;
    --radius-pill:      999px;
    --container:        1200px;
    --container-narrow: 880px;
    --font-display:     'Fraunces', 'Times New Roman', serif;
    --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--notti-cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--notti-red);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--notti-red-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--notti-red);
    margin: 0 0 .75rem;
}

.muted { color: var(--muted); }
.text-center { text-align: center; }
.italic { font-style: italic; }

/* ============== layout ============== */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.container-narrow { max-width: var(--container-narrow); }

.section {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.row-between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ============== topbar ============== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 233, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .85rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--notti-red);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -.01em;
    line-height: 1;
}
.brand img, .brand svg { height: 36px; width: auto; }

.nav { display: none; gap: 1.75rem; align-items: center; }
.nav a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: .25rem 0;
}
.nav a:hover { color: var(--notti-red); }
.nav a.active::after {
    content: '';
    position: absolute;
    inset: auto 0 -8px;
    height: 2px;
    background: var(--notti-red);
    border-radius: 2px;
}

@media (min-width: 880px) {
    .nav { display: inline-flex; }
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--charcoal);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
@media (min-width: 880px) {
    .nav-toggle { display: none; }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--charcoal);
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.mobile-nav a:hover { background: var(--notti-mozz); }

/* ============== buttons ============== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--notti-red);
    color: var(--notti-cream);
    box-shadow: 0 4px 14px rgba(198,37,44,.28);
}
.btn-primary:hover { background: var(--notti-red-dark); color: var(--notti-cream); }
.btn-outline {
    background: transparent;
    color: var(--notti-red);
    border-color: var(--notti-red);
}
.btn-outline:hover { background: var(--notti-red); color: var(--notti-cream); }
.btn-ghost {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--notti-mozz); }
.btn-sm  { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg  { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============== hero ============== */

.hero {
    position: relative;
    background: var(--notti-cream);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-block: clamp(3rem, 8vw, 7rem);
}
@media (min-width: 880px) {
    .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: .9;
    letter-spacing: -.04em;
    margin: 0 0 1.25rem;
    color: var(--charcoal);
}
.hero-title .accent { color: var(--notti-red); font-style: italic; }
.hero-sub {
    font-size: 1.15rem;
    color: var(--ink);
    max-width: 38ch;
    margin: 0 0 1.75rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-stamp {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--notti-red);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    color: var(--notti-cream);
    overflow: hidden;
}
.hero-stamp::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 2px dashed rgba(255,247,233,.45);
    border-radius: calc(var(--radius-lg) - 6px);
}
.hero-stamp .stamp-inner {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}
.hero-stamp .stamp-eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .75rem;
    opacity: .8;
    margin-bottom: .5rem;
}
.hero-stamp .stamp-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: .95;
    margin: 0;
}
.hero-stamp .stamp-foot {
    margin-top: 1rem;
    font-size: .85rem;
    opacity: .85;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ============== info strip ============== */

.info-strip {
    border-block: 1px solid var(--line);
    padding-block: 1.25rem;
    background: var(--notti-cream-2);
}
.info-strip-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.info-block {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.info-block .info-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    font-weight: 600;
}
.info-block .info-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--charcoal);
    font-weight: 600;
}

/* ============== cards ============== */

.card {
    background: var(--notti-cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.card-pad { padding: 1.25rem 1.25rem 1.5rem; }

.menu-card {
    display: flex;
    flex-direction: column;
    background: var(--notti-cream);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    height: 100%;
}
.menu-card-img {
    aspect-ratio: 4 / 3;
    background: var(--notti-mozz) center/cover no-repeat;
    position: relative;
}
.menu-card-img.placeholder {
    display: grid;
    place-items: center;
    color: var(--notti-red);
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--notti-mozz), var(--notti-cream-2));
}
.menu-card-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.menu-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 0 .35rem;
    color: var(--charcoal);
}
.menu-card-desc {
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 1rem;
    flex: 1;
}
.menu-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}
.menu-card-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--notti-red);
}

.diet-tags { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .5rem; }
.diet-tag {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: var(--radius-pill);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--notti-mozz);
    color: var(--notti-olive);
}
.diet-tag.spicy { background: rgba(198,37,44,.12); color: var(--notti-red); }
.diet-tag.featured { background: var(--notti-red); color: var(--notti-cream); }

/* ============== menu page ============== */

.menu-section { padding-block: 3rem; }
.menu-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.menu-section-head h2 { margin: 0; }
.menu-anchor-nav {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}
.menu-anchor-nav a {
    flex: 0 0 auto;
    padding: .5rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--notti-mozz);
    color: var(--charcoal);
    font-size: .9rem;
    font-weight: 600;
}
.menu-anchor-nav a:hover { background: var(--notti-red); color: var(--notti-cream); }

/* ============== forms ============== */

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--charcoal);
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=tel],
.field input[type=number],
.field input[type=date],
.field input[type=time],
.field select,
.field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--notti-cream);
    font: inherit;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--notti-red);
    box-shadow: 0 0 0 3px rgba(198,37,44,.18);
}
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field-error { color: var(--notti-red); font-size: .85rem; margin-top: .25rem; }
.field-hint { color: var(--muted); font-size: .8rem; }

.checkbox, .radio { display: inline-flex; align-items: center; gap: .5rem; }
.checkbox input, .radio input { width: 1rem; height: 1rem; accent-color: var(--notti-red); }

/* ============== alerts ============== */

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: #e7f3e7; color: #1f6a1f; border-color: #b9d8b9; }
.alert-error   { background: #fde7e7; color: #8a1f1f; border-color: #f4c0c0; }
.alert-info    { background: #e9f0fb; color: #1c3d70; border-color: #c5d6f0; }
.alert-warn    { background: #fff3d6; color: #7a5a0d; border-color: #f1d588; }

/* ============== footer ============== */

.footer {
    margin-top: 4rem;
    background: var(--charcoal);
    color: var(--notti-cream);
    padding-block: 3rem 2rem;
}
.footer a { color: var(--notti-cream); }
.footer a:hover { color: var(--notti-mozz); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h4 {
    font-family: var(--font-display);
    color: var(--notti-cream);
    font-size: 1.05rem;
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}
.footer-bottom {
    border-top: 1px solid rgba(255,247,233,.15);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    font-size: .85rem;
    opacity: .8;
}

/* ============== sticky mobile order CTA ============== */

.mobile-order-bar {
    position: fixed;
    inset: auto 0 0 0;
    background: var(--notti-red);
    color: var(--notti-cream);
    padding: .85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 60;
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.mobile-order-bar a, .mobile-order-bar a:hover { color: var(--notti-cream); }
.mobile-order-bar .label { font-weight: 600; font-size: .95rem; }
@media (min-width: 880px) {
    .mobile-order-bar { display: none; }
}
body.has-mobile-bar { padding-bottom: 70px; }
@media (min-width: 880px) {
    body.has-mobile-bar { padding-bottom: 0; }
}

/* ============== utility ============== */

.hidden  { display: none !important; }
.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;
}
.divider {
    height: 1px;
    background: var(--line);
    margin: 2rem 0;
    border: 0;
}
.tag {
    display: inline-block;
    padding: .15rem .55rem;
    background: var(--notti-mozz);
    color: var(--charcoal);
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
}
