:root {
  --ink: #18120f;
  --muted: #695f56;
  --paper: #fffaf0;
  --cream: #f6dfab;
  --cream-2: #f2eadc;
  --burgundy: #98002c;
  --burgundy-dark: #6f001f;
  --rust: #c87508;
  --sage: #2f6d46;
  --blue: #1f6682;
  --line: #e1cda8;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(47, 34, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 36px;
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  width: 190px;
  min-width: 150px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a,
.header-cta,
.button,
.category-tabs button,
.lang-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a {
  padding: 10px 14px;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--burgundy);
  background: #f1e4d0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  min-height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lang-button {
  cursor: pointer;
  min-width: 44px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
}

.lang-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.lang-button:focus-visible {
  outline: 3px solid rgba(152, 0, 44, 0.22);
  outline-offset: 2px;
}

.header-cta,
.button-primary {
  padding: 10px 16px;
  border: 2px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
}

.hero {
  position: relative;
  height: 74svh;
  min-height: 500px;
  max-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("assets/piadine-gay.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 8, 0.44);
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 96px));
  margin-left: max(24px, calc((100% - 1180px) / 2));
  margin-right: max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 40px;
  align-items: center;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.hero-content {
  min-width: 0;
}

.hero-title-row {
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff2cf;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.9rem;
  line-height: 0.95;
}

.hero-hours {
  width: 100%;
  margin: 0;
  padding: 24px 28px 28px;
  border: 1px solid rgba(255, 242, 207, 0.7);
  border-radius: 8px;
  background: rgb(0, 0, 0, 0.65);
  color: #fff2cf;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: none;
  backdrop-filter: blur(2px);
}

.hero-hours p {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
}

.hero-hours dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.hero-hours dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
}

.hero-hours dt,
.hero-hours dd {
  margin: 0;
}

.hero-hours dt {
  color: var(--white);
}

.hero-hours dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-copy {
  max-width: 630px;
  margin: 22px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  padding: 12px 18px;
  border: 2px solid currentColor;
}

.button-secondary {
  background: var(--paper);
  color: var(--burgundy);
  text-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #f1e4d0;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.info-strip > div {
  min-height: 96px;
  padding: 20px 32px;
  border-right: 1px solid var(--line);
}

.info-strip > div:last-child {
  border-right: 0;
}

.delivery-info {
  scroll-margin-top: 96px;
}

.info-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.info-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--burgundy);
  font-size: 1.25rem;
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.delivery-row strong {
  flex: 0 0 auto;
  margin-top: 0;
}

.delivery-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.delivery-badges a {
  display: inline-flex;
}

.delivery-badges img {
  width: auto;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(47, 34, 22, 0.12);
}

.featured,
.shipping-section,
.menu-section,
.location-section {
  padding: 78px max(24px, calc((100% - 1180px) / 2));
}

.featured {
  background: var(--cream-2);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.65rem;
  line-height: 1.05;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.menu-item {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.feature-label {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 6px;
  background: #e7f0e7;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 1.45rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card strong {
  margin-top: auto;
  color: var(--burgundy);
  font-size: 1.4rem;
}

.menu-section {
  background: var(--paper);
  padding-top: 42px;
}

.shipping-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.shipping-grid {
  display: grid;
  gap: 14px;
}

.shipping-header {
  margin-bottom: 0;
}

.menu-tools {
  position: relative;
  top: auto;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(250px, 330px) 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.97);
  box-shadow: 0 12px 32px rgba(47, 34, 22, 0.1);
  backdrop-filter: blur(12px);
}

.search-field {
  display: contents;
}

.search-field span {
  grid-column: 1 / -1;
  grid-row: 1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-field input {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.search-field input:focus {
  outline: 3px solid rgba(152, 0, 44, 0.18);
  border-color: var(--burgundy);
}

.category-tabs {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: center;
}

.category-tabs button {
  cursor: pointer;
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.category-tabs button[aria-pressed="true"] {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
}

.menu-status {
  min-height: 26px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.menu-grid {
  display: grid;
  gap: 42px;
}

.menu-block {
  scroll-margin-top: 150px;
}

.menu-block-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--rust);
}

.menu-block-header h3 {
  margin: 0;
  color: var(--burgundy);
  font-size: 1.8rem;
}

.menu-block-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.menu-item {
  min-height: 154px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px;
}

.item-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.item-name {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.18;
}

.item-price {
  flex: 0 0 auto;
  color: var(--burgundy);
  font-weight: 900;
}

.item-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.item-category {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  background: #edf4ed;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 900;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-order-button {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.item-order-button:hover,
.item-order-button:focus-visible {
  background: var(--burgundy-dark);
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: center;
  background: #eef4ee;
}

.location-copy h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.08;
}

.location-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.map-preview {
  display: block;
  border-radius: 8px;
  border: 1px solid #bdd2c1;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.site-footer {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 26px;
  align-items: center;
  padding: 34px max(24px, calc((100% - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.site-footer img {
  width: 210px;
  filter: invert(1);
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.site-footer span,
.site-footer a {
  color: #f0ddba;
}

.footer-hours {
  flex-basis: 100%;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(240, 221, 186, 0.24);
  color: #f0ddba;
}

.footer-hours p {
  margin: 0 0 8px;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

.footer-hours dl {
  max-width: 420px;
  display: grid;
  gap: 5px;
  margin: 0;
}

.footer-hours dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.footer-hours dt,
.footer-hours dd {
  margin: 0;
}

.footer-hours dt {
  color: var(--white);
  font-weight: 800;
}

.footer-hours dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 18px;
  }

  .brand {
    width: 170px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    justify-self: end;
  }

  .hero {
    min-height: 470px;
    height: 72svh;
  }

  h1 {
    font-size: 3.55rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .info-strip,
  .featured-grid,
  .menu-items,
  .location-section {
    grid-template-columns: 1fr;
  }

  .info-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .info-strip > div:last-child {
    border-bottom: 0;
  }

  .delivery-row {
    flex-wrap: wrap;
  }

  .menu-tools {
    top: auto;
    grid-template-columns: 1fr;
  }

  .search-field span,
  .search-field input,
  .category-tabs {
    grid-column: 1;
  }

  .category-tabs {
    grid-row: 3;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-areas: "brand actions";
    grid-template-columns: 1fr auto;
    min-height: 64px;
    gap: 8px 12px;
    padding: 8px 12px;
  }

  .brand {
    grid-area: brand;
    width: 96px;
    min-width: 0;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    grid-area: actions;
    gap: 6px;
  }

  .header-cta,
  .lang-button {
    min-height: 36px;
    padding: 8px 12px;
  }

  .language-switch {
    min-height: 36px;
  }

  .hero {
    min-height: 0;
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
    overflow: visible;
    background-position: center;
  }

  .hero-panel {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
    gap: 0;
  }

  .hero-content {
    padding: 0;
  }

  h1 {
    font-size: 2.05rem;
    line-height: 1;
  }

  .hero-title-row {
    gap: 12px;
  }

  .hero-hours {
    display: none;
  }

  .hero-copy {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
  }

  .info-strip > div {
    min-height: auto;
    padding: 16px 18px;
  }

  .delivery-row {
    display: grid;
    gap: 12px;
  }

  .delivery-row strong {
    display: block;
  }

  .delivery-badges {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    justify-content: start;
    margin-top: 0;
  }

  .delivery-badges a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    line-height: 0;
  }

  .delivery-badges img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    box-shadow: none;
    vertical-align: top;
  }

  .featured,
  .shipping-section,
  .menu-section,
  .location-section {
    padding: 56px 16px;
  }

  .section-heading h2,
  .location-copy h2 {
    font-size: 2.1rem;
  }

  .feature-card {
    min-height: 190px;
  }

  .menu-tools {
    top: auto;
    padding: 12px;
  }

  .menu-section {
    padding-top: 34px;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-tabs button {
    flex: 0 0 auto;
  }

  .menu-block-header {
    display: block;
  }

  .menu-block-header p {
    margin-top: 4px;
  }

  .menu-item {
    min-height: 136px;
    padding: 16px;
  }

  .item-image {
    height: 150px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-hours dl {
    max-width: none;
  }
}

@media (max-width: 360px) {
  .delivery-badges {
    gap: 8px;
  }

  .delivery-badges a {
    min-height: 0;
  }

  .footer-hours dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-hours dd {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .hero-panel {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
    padding: 12px;
  }

  h1 {
    font-size: 2.1rem;
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-hours {
    font-size: 0.72rem;
  }

  .hero-hours dl div {
    grid-template-columns: 66px 1fr;
    gap: 6px;
  }
}
