/* ── Status dot ─────────────────────────────────────────────────────────── */

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: none;
  background: #9aa0a6;
}
.status-dot.is-open {
  background: #46b26b;
  box-shadow: 0 0 0 0 rgb(70 178 107 / 0.55);
  animation: pulse 2.4s infinite;
}
.status-dot.is-closed {
  background: #c25b4b;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgb(70 178 107 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(70 178 107 / 0);
  }
}

/* ── Header ─────────────────────────────────────────────────────────────────
   One bar, always visible. Phone, hours and the order button never scroll
   away, because those are the three things a hungry visitor is looking for.
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  box-shadow: 0 12px 34px -26px rgb(23 17 13 / 0.7);
}

/* Literal, never var(--header-h): the header publishes its measured height
   into that variable, so reading it back here would be a feedback loop that
   grows the header on every resize observation. */
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 74px;
}

.header__brand {
  text-decoration: none;
  color: var(--ink);
  flex: none;
  display: flex;
  align-items: center;
  /* Space around the mark so it is not crowded by the viewport edge on one
     side and the nav on the other. */
  padding: 0.35rem 1.5rem 0.35rem 0.25rem;
  margin-right: 0.5rem;
}

/* ── Wordmark ───────────────────────────────────────────────────────────────
   Set as text in a script face matching the original artwork, with its two
   colours sampled from it. --logo-size is the only thing each placement
   changes.
   ------------------------------------------------------------------------- */

.logo {
  --logo-size: 2.05rem;
  --logo-ink: #a9151d;
  --logo-accent: #c8903a;
  --logo-sub: var(--ink-soft);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  line-height: 1;
}

.logo__word {
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  font-size: var(--logo-size);
  font-weight: 400;
  line-height: 0.95;
  color: var(--logo-ink);
  white-space: nowrap;
  /* The script has tall ascenders and deep descenders; trimming the box keeps
     it optically centred against the nav rather than sitting high. */
  padding-block: 0.06em;
}

.logo__rule {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  font-family: var(--font-display);
  font-size: calc(var(--logo-size) * 0.19);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--logo-sub);
  white-space: nowrap;
  margin-top: -0.15em;
}

.logo__rule i {
  flex: 1;
  height: 1px;
  background: var(--logo-accent);
  opacity: 0.75;
}

/* Dark ground: the script goes to paper, the rule keeps its gold. */
.logo--light {
  --logo-ink: var(--paper);
  --logo-sub: color-mix(in srgb, var(--paper) 78%, transparent);
}

/* Header: the compact cut, sized so "Italian Bistro" stays readable. */
.header .logo--image {
  width: auto;
  height: 52px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

.footer .logo--image {
  width: auto;
  height: 168px;
  max-width: 380px;
  object-fit: contain;
  object-position: left center;
}

.footer .logo {
  --logo-size: 4.4rem;
}

.mobile-nav .logo {
  --logo-size: 2.2rem;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.header__link {
  position: relative;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.header__link:hover {
  color: var(--ink);
}
.header__link:hover::after,
.header__link.is-active::after {
  transform: scaleX(1);
}
.header__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

/* Hours, inline in the header rather than in a strip that scrolls away. */
.header__hours {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.25;
  padding-right: 0.35rem;
}

.header__hours strong {
  display: block;
  font-weight: 600;
}

.header__hours em {
  font-style: normal;
  color: var(--ink-muted);
}

/* The phone is a conversion, so it looks like one. */
.btn--phone {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  white-space: nowrap;
}
.btn--phone:hover:not(:disabled) {
  --btn-bg: var(--tomato-dark);
}

.header__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger {
  display: grid;
  gap: 4px;
  width: 19px;
}
.burger i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger.is-open i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.is-open i:nth-child(2) {
  opacity: 0;
}
.burger.is-open i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Second row on phones: status and address, still inside the sticky header. */
.header__strip {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  padding: 0.4rem 1.25rem 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.header__strip::-webkit-scrollbar {
  display: none;
}
.header__strip strong {
  color: var(--ink);
}
.header__strip-sep {
  width: 1px;
  height: 11px;
  background: var(--line-strong);
  flex: none;
}

@media (max-width: 1180px) {
  .header__hours {
    display: none;
  }
}

@media (max-width: 1080px) {
  .header__nav {
    display: none;
  }
  .header__toggle {
    display: flex;
  }
  .header__strip {
    display: flex;
  }
  .header__actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .logo {
    --logo-size: 1.7rem;
  }
  .header__brand {
    padding-right: 0.5rem;
    margin-right: 0;
  }
  .header .logo--image {
    height: 42px;
    max-width: 165px;
  }
  .footer .logo--image {
    height: 128px;
  }
  .header__actions .btn--phone .btn__label,
  .header__order {
    display: none;
  }
  .header__actions .btn--phone {
    padding: 0.6rem 0.75rem;
  }
  .header__inner {
    min-height: 62px;
    gap: 0.5rem;
  }
}

/* ── Mobile nav ─────────────────────────────────────────────────────────── */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: var(--paper);
  padding: calc(var(--header-h) + 4rem) 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.2s var(--ease);
}

.mobile-nav.is-open .mobile-nav__link {
  opacity: 1;
  transform: none;
}

.mobile-nav__link.is-active {
  color: var(--tomato);
}

.mobile-nav__foot {
  display: grid;
  gap: 0.7rem;
  margin-top: 2.5rem;
}

.mobile-nav__meta {
  margin: 0.5rem 0 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  padding-top: var(--space-xl);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.05fr 0.9fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}


.footer__tagline {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: var(--step--1);
  line-height: 1.65;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  border-radius: 50%;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.footer__social-link:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

.footer__link,
.footer__links a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.15rem 0;
  transition: color 0.15s var(--ease);
}
.footer__link:hover,
.footer__links a:hover {
  color: var(--gold);
}

.footer__links {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.footer__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
}

.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.22rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--paper) 12%, transparent);
}

.footer__hours li.is-today {
  color: var(--paper);
  font-weight: 600;
}

.footer__note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

.footer__cta {
  margin-top: 0.4rem;
}

.footer__bottom {
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  padding-block: 1.4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--paper) 52%, transparent);
}

.footer__bottom p {
  margin: 0;
}

.pill {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill--open {
  background: rgb(70 178 107 / 0.18);
  color: #7fd39c;
}
.pill--closed {
  background: rgb(194 91 75 / 0.18);
  color: #e39c90;
}

@media (max-width: 940px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Images ─────────────────────────────────────────────────────────────── */

.img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-warm);
}

.img--placeholder {
  display: grid;
  place-items: center;
  gap: 0.6rem;
  color: var(--line-strong);
  background: linear-gradient(140deg, var(--paper-warm), color-mix(in srgb, var(--paper-warm) 70%, var(--line)));
  border: 1px dashed var(--line-strong);
}

.img--placeholder svg {
  width: 44%;
  max-width: 120px;
}

.img__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── Stars ──────────────────────────────────────────────────────────────── */

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  line-height: 0;
}

/* ── Tags & chips ───────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.tag--hot {
  background: var(--tomato-tint);
  color: var(--tomato-dark);
  border-color: color-mix(in srgb, var(--tomato) 25%, transparent);
  margin-left: 0.5rem;
}
.tag--vegetarian {
  color: #3d6b47;
  border-color: #cfe0d3;
  background: #eef5ef;
}
.tag--spicy {
  color: var(--tomato-dark);
  border-color: #f0cfc7;
  background: #fdefec;
}
.tag--seafood {
  color: #2f5670;
  border-color: #cddae4;
  background: #eef4f8;
}

.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.chip:hover {
  border-color: var(--ink);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ── Accordion ──────────────────────────────────────────────────────────── */

.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__heading {
  margin: 0;
  font-size: inherit;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: 0;
  padding: 1.15rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.15s var(--ease);
}

.accordion__trigger:hover {
  color: var(--tomato);
}

.accordion__icon {
  flex: none;
  color: var(--tomato);
  transition: transform 0.25s var(--ease);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  padding-bottom: 1.3rem;
  max-width: 62ch;
  color: var(--ink-muted);
  animation: slide-down 0.28s var(--ease);
}

.accordion__panel p {
  margin: 0;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ── Forms ──────────────────────────────────────────────────────────────── */

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form__title {
  margin-top: 0;
  font-size: var(--step-2);
}

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

@media (max-width: 620px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: block;
  margin-bottom: 1.1rem;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field__label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea,
.captcha__input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.captcha__input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px var(--tomato-tint);
}

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

.field.has-error input,
.field.has-error textarea,
.captcha.has-error .captcha__input {
  border-color: var(--tomato);
  background: var(--tomato-tint);
}

.field__error {
  display: block;
  margin-top: 0.35rem;
  color: var(--tomato-dark);
  font-size: var(--step--1);
  font-weight: 500;
}

.field__hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__legal {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ── Captcha ────────────────────────────────────────────────────────────── */

.captcha {
  margin-bottom: 1.3rem;
}

.captcha__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.captcha__image {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  flex: none;
}

.captcha__image svg {
  display: block;
}

.captcha__refresh {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius);
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  flex: none;
  transition: background 0.15s var(--ease), transform 0.3s var(--ease);
}
.captcha__refresh:hover {
  background: var(--paper-warm);
  transform: rotate(180deg);
}

.captcha__input {
  flex: 1 1 10rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

/* ── Notices ────────────────────────────────────────────────────────────── */

.notice {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  background: var(--paper-warm);
}

.notice--error {
  border-color: color-mix(in srgb, var(--tomato) 40%, transparent);
  background: var(--tomato-tint);
  color: var(--tomato-dark);
}

.notice--success {
  border-color: #bcdcc6;
  background: #eef7f0;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.notice--success h2 {
  margin-top: 0;
}

.muted {
  color: var(--ink-muted);
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--tomato);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
