/* Tiano's Pizza — Madison, NC
   Vintage engraving look: cream paper, black ink, Italian red & green accents. */
:root {
  --paper: #fbf6ea;
  --paper-2: #f3ead6;
  --card: #fffdf7;
  --ink: #1d1a17;
  --ink-soft: #4a423b;
  --muted: #776c61;
  --line: #e2d6bd;
  --red: #b3261e;
  --red-dark: #8f1d17;
  --green: #2e7d32;
  --green-dark: #1f5c23;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(29,26,23,.06), 0 8px 24px rgba(29,26,23,.07);
  --display: "IM Fell English", "Times New Roman", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Eyebrows & helpers */
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .9em; }
.eyebrow.green { color: var(--green); }
.script { font-family: var(--display); font-style: italic; color: var(--red); font-size: 1.25rem; margin: 0 0 .6em; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; border-radius: var(--radius);
  font: 600 .92rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 62px; width: auto; }
.brand .wordmark { font-family: var(--display); font-size: 1.6rem; line-height: 1; letter-spacing: .02em; }
.brand .wordmark small { display: block; font: 500 .62rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand.has-logo .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tricolor { height: 5px; background: linear-gradient(90deg, var(--green) 0 33.33%, #fff 33.33% 66.66%, var(--red) 66.66%); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font: 500 .95rem/1 var(--sans); padding: 10px 12px; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { margin-left: 8px; color: #fff; min-height: 44px; padding: .6em 1.1em; text-decoration: none; }
.nav .btn:hover { color: #fff; }
.header-call { display: none; }
.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 9px 14px; font: 600 .9rem/1 var(--sans); color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-call { display: inline-flex; min-height: 44px; padding: .55em .9em; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin: 14px 0 0; }
  .brand img { height: 48px; }
}
@media (max-width: 420px) { .header-call span { display: none; } }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 500 .85rem/1 var(--sans); margin-bottom: 22px; }
.open-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.open-pill.is-open .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(46,125,50,.15); }
.open-pill.is-closed .dot { background: var(--red); }
.hero .lead { margin-top: .4em; }
.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-media figure:first-child { grid-column: 1 / -1; }
.photo.hero-wide { aspect-ratio: 16 / 9; }
.photo.sq { aspect-ratio: 1 / 1; }
.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2) repeating-linear-gradient(45deg, transparent 0 10px, rgba(179,38,30,.05) 10px 20px); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 4 / 3; }
.photo.missing img { visibility: hidden; }
.photo.missing::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font: italic 1rem/1.3 var(--display); color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding: 28px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Info strip */
.info-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.info-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.info-strip .cell { padding: 24px 20px; border-left: 1px solid var(--line); font-size: .98rem; }
.info-strip .cell:first-child { border-left: 0; padding-left: 0; }
.info-strip .eyebrow { font-size: .72rem; margin-bottom: .6em; }
.info-strip p { margin: 0; }
@media (max-width: 760px) {
  .info-strip .wrap { grid-template-columns: 1fr; }
  .info-strip .cell { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .info-strip .cell:first-child { border-top: 0; }
}

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead, .section.dark p { color: #e9dfcc; }
.section.dark .eyebrow { color: #f0a29c; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .section { padding: 60px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--red); margin: 0 auto 18px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .5; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.card .more::after { content: " \2192"; }
.card .icon { width: 44px; height: 44px; color: var(--green); margin-bottom: 14px; }
@media (max-width: 900px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* Price highlight boxes */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.4em 0; }
.price-box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; text-align: center; }
.price-box .amt { font-family: var(--display); font-size: 2.3rem; line-height: 1; color: var(--red); }
.price-box .lbl { font: 600 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.price-box .sub { font-size: .85rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }

/* Specials */
.specials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.special { background: var(--card); color: var(--ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.special .day { background: var(--green); color: #fff; text-align: center; font: 700 .9rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px; }
.special:nth-child(2) .day { background: var(--red); }
.special .body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; flex: 1; }
.special .what { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.special .amt { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--green); white-space: nowrap; }
.special:nth-child(2) .amt { color: var(--red); }
@media (max-width: 900px) { .specials { grid-template-columns: 1fr; } }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 16px; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .p { font-weight: 600; white-space: nowrap; }

/* Ratings */
.ratings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.rating { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.rating .score { font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--ink); }
.rating .stars { color: #c8901a; letter-spacing: 3px; font-size: 1.2rem; margin: 6px 0; }
.rating .src { font-weight: 600; }
@media (max-width: 620px) { .ratings { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .photo { aspect-ratio: 1 / 1; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.gallery .missing figcaption { display: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0 0; padding: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.3rem; margin: 0; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.7rem/1 var(--sans); color: var(--red); }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 22px 18px; color: var(--ink-soft); }
.faq .a p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fde9e6; max-width: 60ch; margin: 0 auto; }
.cta-band .btns { justify-content: center; }

/* Page hero (inner pages) */
.page-hero { padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Menu page */
.menu-nav { position: sticky; top: 81px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.menu-nav ul { display: flex; gap: 6px; overflow-x: auto; list-style: none; margin: 0; padding: 10px 0; scrollbar-width: thin; }
.menu-nav a { display: block; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; background: var(--card); }
.menu-nav a:hover { border-color: var(--red); color: var(--red); }
.menu-section { padding: 60px 0 20px; scroll-margin-top: 150px; }
.menu-section > .wrap > header { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; }
.menu-section header h2 { margin: 0; }
.menu-section header p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
@media (max-width: 760px) { .menu-grid { grid-template-columns: 1fr; } .menu-nav { top: 81px; } }
.item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.item .row { display: flex; align-items: baseline; gap: 10px; }
.item h3 { font-size: 1.25rem; margin: 0; }
.item .dots { flex: 1; border-bottom: 2px dotted #cdbf9f; transform: translateY(-5px); min-width: 20px; }
.item .price { font-weight: 600; white-space: nowrap; }
.item p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.note { background: var(--card); border-left: 4px solid var(--green); padding: 14px 18px; margin: 18px 0; font-size: .95rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.note.red { border-left-color: var(--red); }
.toppings { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.toppings li { background: var(--card); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: .9rem; }
.size-table { width: 100%; border-collapse: collapse; margin: 8px 0 6px; background: var(--card); border: 1px solid var(--line); }
.size-table th, .size-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.size-table th { font: 600 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.size-table td:not(:first-child), .size-table th:not(:first-child) { text-align: right; }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px 18px; } }
label, legend { display: block; font: 600 .9rem/1.3 var(--sans); margin-bottom: 6px; }
.req { color: var(--red); }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #cdbf9f; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid rgba(46,125,50,.25); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; min-height: 36px; }
.checks input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--green); }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e8f3e8; color: var(--green-dark); border: 1px solid #b9d9bb; }
.form-status.err { display: block; background: #fbeae8; color: var(--red-dark); border: 1px solid #efc1bc; }
.hp { position: absolute; left: -5000px; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font: 600 1.1rem/1 var(--sans); margin-bottom: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Map */
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: #d9cfbd; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-size: 1.35rem; color: #fff; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { background: var(--paper); border-radius: var(--radius); padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 64px; width: auto; }
.footer-bottom { border-top: 1px solid #3a342e; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: #a99d8a; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #5a5148; border-radius: 50%; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile sticky action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 3px solid var(--red); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { color: #fff; text-decoration: none; text-align: center; padding: 12px 4px; font: 600 .8rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
  .action-bar a + a { border-left: 1px solid #3a342e; }
  body { padding-bottom: 64px; }
}

/* 404 */
.notfound { text-align: center; padding: 100px 0; }
