/* Abo Anwar Bakery & Sweets — bold rustic preview styles
   Presentation lives here (no inline styles) so a strict CSP can use style-src 'self'.
   Palette, type, texture, and button style follow concept 3 (bold rustic). */

/* -------------------------------------------------------------------------- */
/* Fonts (self-hosted, SIL Open Font License — see /fonts)                      */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/AlfaSlabOne-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Special Elite";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/SpecialElite-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/Karla-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Karla";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/Karla-Italic-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Caveat-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Amiri";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/amiri-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/amiri-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/amiri-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */

:root {
  --charcoal: #1A1713;
  --chalkboard: #26231C;
  --soot: #0E0C0A;
  --kraft: #CBA875;
  --kraft-light: #E6D2A8;
  --chalk: #F3EBDA;
  --rust: #D2642A;
  --rust-hover: #b85320;
  --cream: #EDE3D0;
  --muted: #C4B89E;
  --wood: #3A2414;
  --wood-frame: #3A2C1C;
  --input-bg: #1A1814;
  --input-border: #4A4338;
  --color-bg: var(--charcoal);
  --color-bg-alt: var(--chalkboard);
  --color-surface: var(--chalkboard);
  --color-ink: var(--chalk);
  --color-ink-muted: var(--muted);
  --color-accent: var(--rust);
  --color-accent-hover: var(--rust-hover);
  --color-olive: var(--wood);
  --color-olive-hover: #2A1A10;
  --color-gold: var(--kraft);
  --color-gold-soft: var(--kraft-light);
  --color-sand: var(--wood-frame);
  --color-sand-deep: var(--input-border);
  --color-line: var(--input-border);
  --color-footer: var(--soot);
  --color-footer-muted: var(--muted);
  --color-focus: var(--kraft);
  --color-error: #E8A0A0;
  --color-error-bg: #3A1C1C;
  --color-success: #CDE8D0;
  --color-success-bg: #1C2E20;
  --font-display: "Alfa Slab One", "Rockwell", "Times New Roman", Times, serif;
  --font-chalk: "Special Elite", "Courier New", Courier, monospace;
  --font-body: "Karla", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --font-arabic: "Amiri", "Times New Roman", Times, serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --width: 70rem;
  --width-narrow: 42rem;
  --radius: 0;
  --radius-sm: 0;
  --shadow: 8px 10px 0 var(--soot);
  --header-h: 4.75rem;
  --line: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Reset                                                                      */
/* -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: var(--line);
  color: var(--color-ink);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color-scheme: dark;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  opacity: 0.10;
  background-image: url("/img/grain.png");
  background-size: 180px 180px;
}

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

img,
svg {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  margin: 0 0 0.45em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35em;
  text-transform: none;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--kraft-light);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* -------------------------------------------------------------------------- */
/* Accessibility helpers                                                      */
/* -------------------------------------------------------------------------- */

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 2000;
  background: var(--kraft);
  color: var(--soot);
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
  color: var(--soot);
  outline-color: var(--chalk);
}

form fieldset {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

form legend {
  font-family: var(--font-chalk);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kraft);
  margin-bottom: 0.35rem;
}

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


[hidden] {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                     */
/* -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.4rem, var(--width));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.4rem, var(--width-narrow));
}

.site-main {
  flex: 1 0 auto;
}

/* -------------------------------------------------------------------------- */
/* Header & navigation                                                        */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--soot);
  border-bottom: 4px solid var(--kraft);
  box-shadow: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--chalk);
  min-width: 0;
}

.logo:hover {
  color: var(--chalk);
}

.logo img {
  width: auto;
  height: 3.6rem;
  flex: 0 0 auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.logo-ar {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: var(--kraft);
  font-weight: 400;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--kraft);
  border-radius: 0;
  background: var(--chalkboard);
  cursor: pointer;
  color: var(--chalk);
}

.nav-toggle:hover {
  border-color: var(--rust);
  color: var(--kraft-light);
}

.nav-toggle-bars {
  position: relative;
  width: 1.15rem;
  height: 0.85rem;
}

.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars::after {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--soot);
  border-bottom: 4px solid var(--kraft);
  box-shadow: var(--shadow);
  padding: 0.5rem 0 1rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100% - 2.4rem, var(--width));
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.5rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: var(--rust);
  background: transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--rust);
  box-shadow: inset 0.2rem 0 0 var(--rust);
}

@media (min-width: 70rem) {
  .nav-toggle {
    display: none;
  }

  .site-header__inner {
    gap: 2rem;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem 0.35rem;
    width: auto;
    padding: 0;
  }

  .site-nav a {
    padding: 0.45rem 0.85rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -0.18rem 0 0 var(--rust);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.call-order {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  border: 3px solid var(--rust);
  background: var(--rust);
  color: #fff8ee;
  text-decoration: none;
  line-height: 1.15;
  font-weight: 700;
}

.call-order:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
  color: #fff;
}

.call-order__label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-chalk);
}

.call-order__num {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-chalk);
}

.sticky-call {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 450;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border: 3px solid var(--rust);
  background: var(--rust);
  color: #fff8ee;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 6px 8px 0 var(--soot);
}

.sticky-call:hover {
  background: var(--rust-hover);
  border-color: var(--rust-hover);
  color: #fff;
}

body {
  padding-bottom: 5rem;
}

@media (max-width: 28rem) {
  .logo-ar {
    display: none;
  }

  .logo img {
    height: 3.1rem;
  }

  .logo-name {
    font-size: 0.92rem;
  }

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

  .call-order {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 70rem) {
  .site-header__inner .logo {
    flex: 0 0 auto;
    order: 1;
  }

  .site-nav {
    flex: 1 1 auto;
    order: 2;
  }

  .header-actions {
    margin-inline-start: 0;
    order: 3;
  }

  .sticky-call {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.4rem;
  border: 3px solid var(--rust);
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  background: var(--rust);
  color: #fff8ee;
  line-height: 1.2;
}

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

.btn--ghost {
  background: transparent;
  color: var(--kraft-light);
  border-color: var(--kraft);
}

.btn--ghost:hover {
  background: var(--kraft);
  border-color: var(--kraft);
  color: var(--soot);
}

.btn--olive {
  background: var(--wood);
  border-color: var(--wood);
  color: var(--kraft-light);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-row--center {
  justify-content: center;
  margin-top: 2rem;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 3.4rem 0 3.6rem;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(210, 100, 42, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(203, 168, 117, 0.12), transparent 45%),
    var(--charcoal);
  border-bottom: 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-family: var(--font-chalk);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kraft);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--chalk);
  text-transform: uppercase;
}

.hero-ar {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  color: var(--kraft-light);
  margin: 0.15rem 0 0.9rem;
  font-weight: 400;
  text-align: left;
  width: max-content;
  max-width: 100%;
  text-transform: none;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-art {
  justify-self: center;
  width: min(100%, 28rem);
  background: var(--kraft);
  padding: 1.5rem 1.3rem 1.3rem;
  transform: rotate(-2.2deg);
  box-shadow: 8px 10px 0 var(--soot);
}

.hero-art img {
  width: 100%;
  height: auto;
}

.page-hero {
  padding: 2.6rem 0 2.2rem;
  border-bottom: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(210, 100, 42, 0.14), transparent 50%),
    var(--charcoal);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.page-hero .lede {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Sections & cards                                                           */
/* -------------------------------------------------------------------------- */

.section {
  padding: 3.4rem 0;
}

.section--alt {
  background: var(--kraft-light);
  color: var(--soot);
  border-block: 0;
}

.section--alt h2,
.section--alt h3 {
  color: var(--soot);
}

.section--alt .lede,
.section--alt .section-head p,
.section--alt .value p {
  color: #3A2A1A;
}

.section--alt a {
  color: #7A3010;
}

.section--alt a:hover {
  color: var(--soot);
}

.section--alt .btn {
  color: #fff8ee;
}

.section--alt .btn:hover {
  color: #fff;
}

.section--alt .btn--ghost {
  color: var(--soot);
  border-color: var(--soot);
  background: transparent;
}

.section--alt .btn--ghost:hover {
  background: var(--soot);
  border-color: var(--soot);
  color: var(--kraft-light);
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.section-head h2 {
  text-transform: uppercase;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--kraft);
}

.section-ornament img {
  width: 9rem;
  height: auto;
  filter: saturate(1.1) brightness(1.15);
}

.section--alt .section-ornament img {
  filter: brightness(0.45) sepia(0.8) saturate(1.4) hue-rotate(-10deg);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--chalkboard);
  border: 3px solid var(--kraft);
  border-radius: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 6px 8px 0 var(--soot);
}

.card--feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card--feature .card-icon {
  width: 7.5rem;
  height: 7.5rem;
  margin-bottom: 0.75rem;
}

.card--feature p {
  color: var(--muted);
  flex: 1;
}

.info-strip {
  display: grid;
  gap: 1rem;
}

.info-item {
  background: var(--chalkboard);
  border: 3px solid var(--kraft);
  border-radius: 0;
  padding: 1.15rem 1.2rem;
  box-shadow: 6px 8px 0 var(--soot);
}

.info-item h2,
.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  text-transform: none;
  font-family: var(--font-display);
}

.info-label {
  display: block;
  font-family: var(--font-chalk);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kraft);
  margin-bottom: 0.35rem;
}

/* -------------------------------------------------------------------------- */
/* Menu                                                                       */
/* -------------------------------------------------------------------------- */

.menu-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sample-note {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  background: transparent;
  padding: 0;
}

.menu-note {
  display: block;
  background: var(--kraft);
  color: var(--soot);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 100%;
  text-wrap: pretty;
  box-shadow: 6px 6px 0 var(--soot);
}

.price-tax {
  font-weight: 600;
  font-size: 0.82em;
  color: var(--muted);
}

.menu-nav {
  margin: 0 0 2rem;
}

.menu-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.menu-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.25rem 0.9rem;
  border: 2px solid var(--kraft);
  background: transparent;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  background: var(--kraft);
  border-color: var(--kraft);
  color: var(--soot);
}

.menu-category {
  position: relative;
  margin: 0 0 2.25rem;
  background: var(--wood-frame);
  border: 0;
  border-radius: 0;
  padding: 1.8rem 1.5rem 1.3rem;
  box-shadow: 0 0 0 4px #2A1E14, 0 16px 30px rgba(0, 0, 0, 0.4);
}

.menu-category::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(243, 235, 218, 0.28);
  background:
    url("/img/grain.png"),
    radial-gradient(ellipse at 50% 30%, #2F2B22, var(--chalkboard));
  background-size: 180px 180px, auto;
  background-blend-mode: overlay, normal;
  pointer-events: none;
  z-index: 0;
}

.menu-category > * {
  position: relative;
  z-index: 1;
}

.menu-category__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dotted rgba(243, 235, 218, 0.28);
}

.menu-category__head img {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
}

.menu-category__head h2 {
  margin: 0;
  font-family: var(--font-chalk);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kraft-light);
}

.menu-category .category-intro {
  color: var(--muted);
  margin: 0.85rem 0 1rem;
  font-size: 0.98rem;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--rust);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px dotted rgba(243, 235, 218, 0.28);
}

.menu-item:first-of-type {
  border-top: 0;
}

.menu-item__name {
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--chalk);
  text-transform: none;
}

.menu-item__price {
  font-family: var(--font-chalk);
  font-weight: 400;
  color: var(--kraft-light);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.menu-item__desc {
  grid-column: 1 / -1;
  margin: 0;
  color: #CFC4AB;
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.08rem 0.35rem;
  background: var(--kraft);
  color: var(--soot);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */

.prose {
  max-width: 42rem;
}

.prose + .prose,
.values {
  margin-top: 2rem;
}

.values {
  display: grid;
  gap: 1rem;
}

.value {
  background: var(--wood);
  border: 0;
  border-radius: 0;
  padding: 1.2rem 1.3rem;
  color: var(--kraft-light);
  box-shadow: 6px 8px 0 var(--soot);
}

.value h3 {
  color: var(--chalk);
}

.section--alt .value {
  background: var(--wood);
  color: var(--kraft-light);
}

.section--alt .value h3 {
  color: var(--chalk);
}

.section--alt .value p {
  color: var(--kraft-light);
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 2rem;
}

.field-row {
  display: grid;
  gap: 0 1rem;
}

.contact-panel--secondary {
  background: var(--wood);
  box-shadow: 6px 8px 0 var(--soot);
}

.contact-panel,
.form-panel {
  background: var(--chalkboard);
  border: 3px solid var(--kraft);
  border-radius: 0;
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: var(--shadow);
}

.contact-panel h2,
.form-panel h2 {
  text-transform: uppercase;
}

.contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.contact-list li {
  margin: 0 0 1rem;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.form-intro,
.form-fallback {
  color: var(--muted);
  margin-bottom: 1rem;
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 2px solid #8A3A3A;
}

.form-status--success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 2px solid #3A6A44;
}

.form-status ul {
  margin: 0.4rem 0 0;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--kraft);
}

.req {
  color: var(--rust);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 2px solid var(--input-border);
  border-radius: 0;
  background: var(--input-bg);
  color: var(--chalk);
}

.field select {
  appearance: auto;
  min-height: 2.75rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--kraft);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--kraft);
  outline: 2px solid var(--kraft);
  outline-offset: 1px;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field textarea.textarea--short {
  min-height: 5.5rem;
}

.field-hint,
.field-error {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.field-hint {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.field-error {
  color: var(--color-error);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--color-error);
  background: #2A1414;
}

/* -------------------------------------------------------------------------- */
/* Footer & 404                                                               */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--soot);
  color: var(--muted);
  padding: 2.2rem 0 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--kraft);
}

.site-footer a {
  color: var(--kraft-light);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-name,
.footer-brand .logo {
  color: var(--kraft-light);
}

.footer-brand .logo-ar {
  color: var(--kraft);
}

.footer-brand p {
  margin-top: 0.75rem;
}

.site-footer h2 {
  color: var(--kraft);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-nav ul,
.footer-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-chalk);
  letter-spacing: 0.03em;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #3A3228;
  padding-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.error-page {
  text-align: center;
  padding: 4rem 0 5rem;
}

.error-page h1 {
  font-size: 3.5rem;
  margin-bottom: 0.25rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  word-break: keep-all;
}

.ph,
code.ph {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 600;
  background: var(--wood-frame);
  color: var(--kraft-light);
  padding: 0.05em 0.38em;
  border: 1px dashed var(--kraft);
  white-space: nowrap;
}

.site-footer .ph {
  background: #3A2C1C;
  color: var(--kraft-light);
}

.hours-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  max-width: 20rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.22rem 0;
  border-bottom: 1px dotted rgba(243, 235, 218, 0.22);
  font-size: 0.95rem;
}

.hours-list li:last-child {
  border-bottom: 0;
}

.hours-day {
  font-weight: 700;
}

.hours-list .is-closed .hours-time {
  color: var(--muted);
  font-style: italic;
}

.site-footer .hours-list li {
  border-bottom-color: #3A3228;
}

.site-footer .hours-list .is-closed .hours-time {
  color: var(--muted);
}

.site-footer .logo img {
  height: 3.6rem;
}

/* -------------------------------------------------------------------------- */
/* Wider layouts                                                              */
/* -------------------------------------------------------------------------- */

@media (min-width: 40rem) {
  .hero {
    padding: 4.2rem 0 4.4rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.6fr;
  }
}

@media (min-width: 64rem) {
  body {
    font-size: 1.125rem;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--four {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 4.25rem 0;
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------- */
/* Social, payment, order form                                                */
/* -------------------------------------------------------------------------- */

.payment-note {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.footer-connect {
  border-top: 1px solid #3A3228;
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.footer-connect h2 {
  color: var(--kraft);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.site-footer .payment-note {
  color: var(--muted);
  margin: 0;
}

.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0;
  padding: 0;
}

.social-list li {
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.social-link:hover {
  text-decoration: underline;
}

.social-link.is-disabled {
  color: #7A705C;
  cursor: not-allowed;
  font-weight: 600;
  pointer-events: none;
}

.site-footer .social-link {
  color: var(--kraft-light);
}

.site-footer .social-link:hover {
  color: #fff;
}

.site-footer .social-link.is-disabled,
.site-footer .social-link.is-disabled:hover {
  color: #7A705C;
  text-decoration: none;
}

.coming-soon {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
}

.order-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0.85rem 0 0;
}

.page-hero .order-callout {
  margin-top: 1.4rem;
}

.order-callout .call-order {
  flex-direction: row;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.25rem;
}

.order-callout .call-order__label {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.order-callout .call-order__num {
  font-size: 1.2rem;
}

.order-rows {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0 0;
  border-top: 1px dashed var(--input-border);
}

.order-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.order-row__remove {
  justify-self: start;
}

.fulfillment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.35rem 0 0.85rem;
}

.fulfillment-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  min-height: 2.25rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--chalk);
  font-size: 1rem;
}

.delivery-field {
  display: none;
}

.fulfillment:has(#fulfillment-delivery:checked) .delivery-field {
  display: block;
}

@media (min-width: 40rem) {
  .footer-connect {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .order-row {
    grid-template-columns: 1fr 8rem auto;
    align-items: end;
  }
}

@media print {
  .call-order,
  .sticky-call,
  .header-actions {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Reduced motion & print                                                     */
/* -------------------------------------------------------------------------- */

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

  .hero-art {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .site-nav,
  .btn-row,
  .site-footer,
  .skip-link,
  .sticky-call,
  .call-order,
  .menu-nav,
  form,
  body::before {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  .menu-category,
  .card,
  .info-item,
  .form-panel,
  .contact-panel {
    box-shadow: none;
    break-inside: avoid;
    background: #fff;
    color: #000;
    border-color: #000;
  }

  .menu-category::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap,
  .wrap--narrow {
    width: min(100% - 1.5rem, var(--width));
  }

  .hero {
    padding: 2.6rem 0 2.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-art {
    max-width: 380px;
    margin-inline: auto;
  }

  .menu-category {
    padding: 1.4rem 1rem 1.1rem;
  }
}

/* ---------- Motion (warm, gentle; off for reduced-motion users) ---------- */
@keyframes aa-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes aa-bob-soft { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-3px) rotate(-1deg) } }
@keyframes aa-ember { 0%,100% { box-shadow: 0 0 0 0 rgba(210,100,42,0), 0 4px 14px rgba(110,50,20,.25) } 50% { box-shadow: 0 0 0 6px rgba(210,100,42,.18), 0 6px 22px rgba(232,140,60,.38) } }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .25s ease, box-shadow .3s ease, background-color .25s ease, color .25s ease; }
  .btn:hover, .btn:focus-visible { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 24px rgba(210,100,42,.35); }
  .call-order, .sticky-call a { animation: aa-ember 3.4s ease-in-out infinite; transition: transform .25s ease; }
  .call-order:hover, .sticky-call a:hover { transform: translateY(-2px) scale(1.03); }
  .hero-art { animation: aa-bob 6.5s ease-in-out infinite; }
  .logo img { animation: aa-bob-soft 7s ease-in-out infinite; }
  .menu-item { transition: transform .22s ease, box-shadow .25s ease, background-color .25s ease; }
  .menu-item:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 10px 26px rgba(110,50,20,.18), 0 0 0 1px rgba(232,140,60,.25); }
  .card, .value, .info-item, .contact-panel { transition: transform .3s ease, box-shadow .3s ease; }
  .card:hover, .value:hover, .info-item:hover, .contact-panel:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(110,50,20,.18), 0 0 18px rgba(232,140,60,.18); }
  .form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus,
  form input:focus, form select:focus, form textarea:focus { box-shadow: 0 0 0 3px rgba(210,100,42,.25), 0 0 18px rgba(255,180,100,.35); transition: box-shadow .25s ease; }
  .js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js-motion .reveal.is-visible { opacity: 1; transform: none; }
}
