/* ============================================================
   O'Neil's Restaurant & Pub — shared design system
   Pure static, offline-safe: system fonts only, no webfonts.
   ============================================================ */

:root {
  --green-900: #0e3d15;
  --green-800: #0b5d1e;
  --green-700: #147030;
  --green-600: #1d8a3e;
  --green-100: #e4f0e2;
  --green-50:  #f2f7f0;
  --gold:      #b8860b;
  --gold-soft: #c9a227;
  --cream:     #faf7ef;
  --paper:     #fffdf7;
  --ink:       #24281f;
  --ink-soft:  #4d5347;
  --line:      #dfe3d5;
  --shadow:    0 1px 2px rgba(20, 40, 15, .06), 0 8px 24px rgba(20, 40, 15, .08);
  --radius:    12px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;
  --container: 1060px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(11, 93, 30, .05), rgba(11, 93, 30, 0) 260px),
    var(--cream);
}

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

a { color: var(--green-700); }
a:hover { color: var(--green-900); }

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

/* ---------- accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- layout: everything centered ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

main { padding-bottom: 64px; }

.section { margin-block: 40px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--green-900);
  margin: 0 0 .5em;
  line-height: 1.25;
}
.section-intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 24px; }

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20, 40, 15, .03);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-weight: 700;
  color: var(--green-900);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone:hover { color: var(--green-700); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--green-800);
  color: #f5e9c8;
  font-family: var(--font-display);
  font-size: 1.7rem;
  border-radius: 10px;
  line-height: 1;
}
.brand-text { line-height: 1.15; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-900);
  font-weight: 700;
}
.brand-tag {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 4px 20px;
  max-width: var(--container);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: .5rem .85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--green-50); color: var(--green-900); }
.site-nav a[aria-current="page"] {
  background: var(--green-800);
  color: #fff;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: .5rem .8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--green-900);
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-800) 55%, var(--green-700));
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(1200px 300px at 20% -20%, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
}
.hero .container { padding-block: 56px 48px; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .4em;
  max-width: 21ch;
}
.hero p.lead {
  font-size: 1.12rem;
  max-width: 58ch;
  color: #eef5ea;
  margin: 0 0 28px;
}
.hero .kicker {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f0e2b0;
  border: 1px solid rgba(240, 226, 176, .45);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 18px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #f7f3e8; color: var(--green-900); }
.btn-primary:hover { background: #fff; color: var(--green-900); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline {
  border-color: var(--green-700);
  color: var(--green-800);
  background: transparent;
}
.btn-outline:hover { background: var(--green-50); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; font-family: var(--font-display); color: var(--green-900); }
.card p { margin-bottom: 0; color: var(--ink-soft); }
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: none;
}
.card .more::after { content: " \2192"; }

.icon-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 1.4rem;
  border-radius: 50%;
  margin-bottom: 14px;
}

/* feature strip under hero */
.feature-strip { margin-top: -34px; position: relative; z-index: 2; }
.feature-strip .grid { gap: 14px; }
.mini-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: .95rem;
  color: var(--ink-soft);
}
.mini-card strong { display: block; color: var(--green-900); font-size: 1rem; margin-bottom: 2px; }

/* ---------- menu pages ---------- */
.menu-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.menu-anchors {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.menu-anchors h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--green-900);
}
.menu-anchors ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.menu-anchors a { text-decoration: none; font-weight: 600; }

.menu-section { margin-block: 44px; scroll-margin-top: 90px; }
.menu-section > h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  background: var(--green-800);
  display: inline-block;
  padding: .35em .9em;
  border-radius: 8px;
  margin: 0 0 6px;
  line-height: 1.3;
}
.menu-note { color: var(--ink-soft); font-style: italic; margin: 0 0 14px; }

.menu-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.menu-table caption {
  text-align: left;
  padding: 10px 2px;
  color: var(--ink-soft);
  font-size: .9rem;
}
.menu-table th, .menu-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.menu-table tr:last-child th, .menu-table tr:last-child td { border-bottom: 0; }
.menu-table .item-name { font-weight: 700; color: var(--green-900); }
.menu-table .item-desc { color: var(--ink-soft); font-size: .95rem; }
.menu-table .price {
  width: 92px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--green-900);
}
.menu-table .variant td { font-size: .93rem; }
.menu-table .variant .item-name { font-weight: 600; color: var(--ink-soft); }

.topping-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topping-list li {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .9rem;
  color: var(--ink-soft);
}

.menu-callout {
  background: var(--green-100);
  border: 1px solid #cfe2cb;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 40px;
}
.menu-callout p { margin: 0 0 6px; }
.menu-callout p:last-child { margin-bottom: 0; }

/* ---------- generic content pages ---------- */
.page-head { margin-block: 40px 26px; }
.breadcrumbs {
  font-size: .86rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/\00a0"; color: #a8b09b; }
.breadcrumbs a { text-decoration: none; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  color: var(--green-900);
  margin: 0 0 .35em;
  line-height: 1.2;
}
.page-head .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 64ch; margin: 0; }

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1em; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }

/* address card */
.address-card .info-list strong { color: var(--green-900); }
.address-card a { text-decoration: none; font-weight: 600; }

/* FAQ */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.faq-item h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: var(--green-900);
}
.faq-item p { margin: 0; color: var(--ink-soft); }

/* map */
.map-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.map-frame img { display: block; width: 100%; border-radius: 8px; }

/* brand cards (sister locations) */
.brand-card { text-align: center; }
.brand-card img {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-bottom: 14px;
}
.brand-card figcaption { font-size: .95rem; color: var(--ink-soft); }

/* callout banner */
.callout {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}
.callout h2 { margin: 0; font-family: var(--font-display); font-size: 1.4rem; }
.callout .btn-primary { background: #f7f3e8; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #d7e5d2;
  margin-top: 40px;
  padding-block: 44px 26px;
  font-size: .93rem;
}
.site-footer a { color: #e8f0e4; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.site-footer h2 {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f0e2b0;
  margin: 0 0 12px;
  font-family: var(--font-body);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #b9ccb2;
}

/* back to top */
.back-top {
  display: inline-block;
  margin-top: 26px;
  font-size: .9rem;
  text-decoration: none;
  font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero .container { padding-block: 40px 36px; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    padding: 10px 20px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: .7rem .8rem; font-size: 1rem; }
}

@media (max-width: 480px) {
  .header-phone { display: none; }
  .header-directions { padding: .55rem 1rem; font-size: .9rem; }
  .menu-table .price { width: 74px; }
  .callout { padding: 24px; }
}

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

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .back-top, .btn-row { display: none !important; }
  body { background: #fff; }
  .card, .menu-table, .menu-anchors { box-shadow: none; }
}