/* ==========================================================================
   Rudy's Mexican Restaurant — site stylesheet
   Downtown Milwaukee, WI  |  single stylesheet, no external dependencies
   1. Design tokens          5. Hero & page header
   2. Base / reset           6. Components (cards, menu, faq, forms)
   3. Layout helpers         7. Footer
   4. Site header & nav      8. Responsive & print
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --ink: #241f1c;
  --ink-soft: #4a423d;
  --muted: #6b615a;
  --line: #e6ded4;
  --cream: #fdf7f0;
  --cream-deep: #f6ece0;
  --surface: #ffffff;
  --chili: #a92218;
  --chili-dark: #7d170f;
  --agave: #1c6b52;
  --maize: #c8860d;
  --focus: #0b62d6;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(36, 31, 28, .06), 0 2px 8px rgba(36, 31, 28, .05);
  --shadow: 0 4px 12px rgba(36, 31, 28, .07), 0 14px 34px rgba(36, 31, 28, .07);
  --wrap: 1120px;
  --wrap-narrow: 820px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
}

/* 2. Base / reset -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child,
ul:last-child,
ol:last-child { margin-bottom: 0; }

a { color: var(--chili-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--chili); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

strong, b { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

small { font-size: .875rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--chili-dark);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* 3. Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

main { display: block; }

.section { padding: 3rem 0; }
.section--tight { padding: 2.25rem 0; }
.section--cream { background: var(--cream-deep); }
.section--surface { background: var(--surface); }

.section__head {
  max-width: 62ch;
  margin: 0 auto 2rem;
  text-align: center;
}
.section__head--start { margin-left: 0; text-align: left; }
.section__kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--agave);
  margin-bottom: .5rem;
}

.lede { font-size: 1.08rem; color: var(--ink-soft); }

.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(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stack > * + * { margin-top: 1rem; }

/* 4. Site header & nav -------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 .9rem;
}

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.brand img { width: auto; max-height: 84px; border-radius: var(--radius-sm); }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--chili-dark);
}
.brand__tag {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.header-cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.site-nav { border-top: 1px solid var(--line); background: var(--surface); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .35rem;
  margin: 0;
  padding: .5rem 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--cream-deep); color: var(--chili-dark); }
.site-nav a[aria-current="page"] {
  background: var(--chili-dark);
  color: #fff;
}

/* 5. Hero & page header ------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, #fff6ea 0%, rgba(255, 246, 234, 0) 60%),
    var(--cream-deep);
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hero h1 { margin-bottom: .5rem; }
.hero__tagline {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--chili-dark);
  margin-bottom: 1rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }

.hero__media { margin: 0; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero__media figcaption {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

.page-header {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0 1.9rem;
}
.page-header h1 { margin-bottom: .35rem; }
.page-header p { max-width: 70ch; margin: 0; color: var(--ink-soft); }

.breadcrumbs { padding: 1rem 0 .25rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }

/* 6. Components --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--chili-dark);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--chili); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--chili-dark); border-color: var(--chili-dark); }
.btn--ghost:hover { background: var(--chili-dark); color: #fff; }
.btn--agave { background: var(--agave); }
.btn--agave:hover { background: #145843; }
.btn--sm { padding: .5rem .9rem; font-size: .88rem; }
.btn--block { width: 100%; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card--accent { border-top: 4px solid var(--chili); }
.card--link { transition: transform .12s ease, box-shadow .12s ease; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pill {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.fact-bar {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.fact {
  background: var(--surface);
  padding: 1.15rem 1.25rem;
}
.fact__label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--agave);
  margin-bottom: .35rem;
}
.fact__value { display: block; font-size: 1rem; }
.fact__value a { text-decoration: none; font-weight: 600; }
.fact__value a:hover { text-decoration: underline; }

.callout {
  background: #fffdf7;
  border: 1px solid #f0e2c8;
  border-left: 5px solid var(--maize);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}
.callout h3 { margin-top: 0; }

.notice {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* Menu ---------------------------------------------------------------- */
.menu-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.menu-section > h2,
.menu-section > h3 {
  margin-top: 0;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--cream-deep);
}
.menu-section__note {
  font-size: .92rem;
  color: var(--muted);
  margin-top: -.25rem;
}

.menu-list { margin: 0; padding: 0; list-style: none; }
.menu-item {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  justify-content: space-between;
  padding: .7rem 0;
  border-bottom: 1px dotted var(--line);
}
.menu-item:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-item__body { flex: 1 1 auto; }
.menu-item__name { font-weight: 700; color: var(--ink); }
.menu-item__num { color: var(--muted); font-weight: 700; margin-right: .35rem; }
.menu-item__desc { display: block; font-size: .93rem; color: var(--ink-soft); }
.menu-item__price {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--chili-dark);
  white-space: nowrap;
}

.menu-index { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.menu-index a {
  display: inline-block;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.menu-index a:hover { border-color: var(--chili); color: var(--chili-dark); }

.price-note { font-size: .88rem; color: var(--muted); }

/* Gallery ------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; width: 100%; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

/* FAQ ---------------------------------------------------------------- */
.faq { max-width: var(--wrap-narrow); margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .35rem 1.1rem;
  margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: .85rem 0;
  font-size: 1.02rem;
}
.faq summary::marker { color: var(--chili); }
.faq details[open] summary { color: var(--chili-dark); }
.faq details > p,
.faq details > ul,
.faq details > div { padding-bottom: .9rem; }

/* Forms -------------------------------------------------------------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdfb;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--chili); outline-offset: 1px; }
.form__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.25rem; }

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: stretch;
  max-width: 480px;
}
.newsletter input[type="email"] { flex: 1 1 220px; width: auto; }
.newsletter .btn { flex: 0 0 auto; }

/* Details / table ---------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.two-col { columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .two-col { columns: 1; } }

/* 7. Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 3rem;
  background: #2a2320;
  color: #efe6dd;
  padding: 3rem 0 1.5rem;
  font-size: .95rem;
}
.site-footer a { color: #ffd9c9; text-decoration-color: rgba(255, 217, 201, .5); }
.site-footer a:hover { color: #fff; }
.site-footer h2,
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer .grid { gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer__brand img { max-height: 70px; width: auto; border-radius: var(--radius-sm); margin-bottom: .9rem; }
.footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
  color: #cbbfb5;
}
.footer__bottom p { margin: 0; }

/* Sister-restaurant list: inherits the surrounding colour, only the dark
   footer version gets the muted light tone (WCAG AA on both backgrounds). */
.sister-list { font-size: .9rem; }
.site-footer .sister-list { color: #d9cec5; }
.site-footer .sister-list li { margin-bottom: .3rem; }

/* 8. Responsive & print ------------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .section { padding: 2.25rem 0; }
  .hero { padding: 2rem 0; }
  .brand img { max-height: 62px; }
  .brand-bar { justify-content: center; text-align: center; }
  .brand { flex-direction: column; gap: .5rem; }
  .header-cta { justify-content: center; width: 100%; }
  .site-nav ul { gap: .1rem; }
  .site-nav a { padding: .45rem .6rem; font-size: .9rem; }
  .menu-section { padding: 1.25rem; }
  .menu-item { flex-wrap: wrap; }
}

@media print {
  .site-nav, .header-cta, .hero__actions, .site-footer .newsletter, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-footer { background: #fff; color: #000; }
  .site-footer h2, .site-footer h3, .site-footer a { color: #000; }
  .card, .menu-section { box-shadow: none; border-color: #999; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
