:root {
  --tp-red: #992323;
  --tp-red-dark: #721616;
  --tp-cream: #f8efe0;
  --tp-warm: #efe1c8;
  --tp-ink: #2a1f16;
  --tp-border: #76563a;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #efe6d6;
  background-image:
    linear-gradient(rgba(34, 24, 16, 0.5), rgba(34, 24, 16, 0.5)),
    url("assets/tony/Tony's Interior.png"),
    url("tony/Tony's Interior.png");
  background-size: auto, cover, cover;
  background-position: center, center, center;
  background-attachment: fixed, fixed, fixed;
  color: var(--tp-ink);
  font-family: "Trebuchet MS", Verdana, Arial, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: #1a4b86;
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  color: #123663;
}

.tp-site {
  width: min(1020px, calc(100% - 26px));
  margin: 12px auto 16px;
  background: transparent;
}

/* ===== Header ===== */
.tp-header {
  background: rgba(242, 228, 205, 0.9);
}

.tp-header-main {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(135deg, var(--tp-red), var(--tp-red-dark));
}

.tp-logo {
  width: 150px;
  height: 100px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
}

.tp-brand-copy h1 {
  margin: 0;
  color: #fff4dd;
  font-family: Tahoma, Arial, Verdana, sans-serif;
  font-size: 45px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(54, 10, 10, 0.65);
}

.tp-tagline {
  margin: 4px 0 0;
  color: #ffe0ab;
  font-size: 18px;
  font-weight: 700;
}

.tp-subtag {
  margin: 2px 0 0;
  color: #ffe8c6;
  font-size: 12px;
  font-weight: 700;
}

.tp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 7px 10px;
  background: rgba(232, 215, 186, 0.92);
}

.tp-nav a {
  padding: 0 8px;
  color: #264770;
  text-decoration: underline;
  font: 700 12px Verdana, Arial, sans-serif;
}

.tp-nav a + a {
  border-left: 1px solid #9b8467;
}

.tp-nav a:hover,
.tp-nav a:focus-visible {
  color: #17345a;
}

/* ===== Main ===== */
.tp-main {
  padding: 14px 12px;
  display: grid;
  gap: 14px;
  background: rgba(248, 239, 224, 0.9);
}

.tp-welcome {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 12px;
}

.tp-note-card {
  padding: 0;
  border: none;
  background: transparent;
}

.tp-note-card h2 {
  margin: 0 0 7px;
  color: #7a1818;
  font-family: Tahoma, Arial, Verdana, sans-serif;
  font-size: 28px;
  line-height: 1.05;
}

.tp-note-card p {
  margin: 0 0 8px;
}

.tp-note-card p:last-child {
  margin-bottom: 0;
}

.tp-photo-large {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.tp-photo-large img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.tp-photo-large figcaption {
  margin-top: 5px;
  color: #5e4a35;
  font-size: 11px;
  font-style: italic;
}

.tp-menu-section {
  padding: 8px 0 0;
  border-top: 1px solid #c8ad88;
  background: transparent;
}

.tp-menu-section h2 {
  margin: 0 0 8px;
  color: #1f4a24;
  font-family: Tahoma, Arial, Verdana, sans-serif;
  font-size: 29px;
  line-height: 1.05;
}

.tp-menu-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tp-menu-card {
  padding: 0;
  border: none;
  background: transparent;
}

.tp-menu-card h3 {
  margin: 0 0 5px;
  color: #7b1a1a;
  font-size: 17px;
}

.tp-menu-card ul {
  margin: 0;
  padding-left: 17px;
}

.tp-menu-card li {
  margin-bottom: 2px;
}

.tp-placeholder-note {
  margin: 8px 0 0;
  padding: 6px;
  border: none;
  background: transparent;
  color: #6a5845;
  font-size: 12px;
}

.tp-menu-scan {
  margin: 9px 0 0;
  padding: 0;
  border: none;
  background: transparent;
}

.tp-menu-scan img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #ffffff;
}

.tp-menu-scan figcaption {
  margin-top: 4px;
  color: #5f4b36;
  font-size: 11px;
}

.tp-location-strip {
  padding: 8px 0 0;
  border-top: 1px solid #c8ad88;
  background: transparent;
}

.tp-location-strip h2 {
  margin: 0 0 8px;
  color: #1f4a24;
  font-family: Tahoma, Arial, Verdana, sans-serif;
  font-size: 25px;
  line-height: 1.05;
}

.tp-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tp-location-grid article {
  padding: 0;
  border: none;
  background: transparent;
}

.tp-location-grid h3 {
  margin: 0 0 4px;
  color: #7b1a1a;
  font-size: 16px;
}

.tp-location-grid p {
  margin: 0 0 5px;
}

.tp-mini-note {
  color: #5c4a36;
  font-size: 11px;
}

.tp-order-section {
  text-align: center;
  padding: 12px 0 0;
  border-top: 1px solid #bfa179;
  background: transparent;
}

.tp-order-link {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid #7e5a1f;
  border-top-color: #ffefbc;
  border-left-color: #ffefbc;
  border-right-color: #65440f;
  border-bottom-color: #65440f;
  background: linear-gradient(#ffe06d, #d99e2f);
  color: #452700;
  text-decoration: underline;
  font: 700 13px Verdana, Arial, sans-serif;
}

.tp-order-link:hover,
.tp-order-link:focus-visible {
  background: linear-gradient(#ffeb98, #e7b44a);
}

.tp-footer {
  padding: 10px 2px;
  border-top: 1px solid #bfa179;
  background: rgba(222, 193, 154, 0.75);
  text-align: center;
  font-size: 12px;
}

.tp-footer p {
  margin: 0 0 3px;
}

.tp-footer p:last-child {
  margin-bottom: 0;
}

/* ===== Touch-Tone Popup ===== */
.tone-overlay {
  position: fixed;
  inset: 0;
  display: none;
  padding: 5px;
  background: transparent;
  z-index: 2000;
}

.tone-overlay.is-open {
  display: flex;
}

.tone-window {
  position: absolute;
  width: min(312px, calc(100vw - 12px));
  border: 2px solid #8b8b8b;
  border-top-color: #d8d8d8;
  border-left-color: #d8d8d8;
  border-right-color: #626262;
  border-bottom-color: #626262;
  background: #e5e5e5;
}

.tone-window.is-dragging {
  user-select: none;
}

.tone-titlebar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 2px 4px;
  border-bottom: 1px solid #707070;
  background: linear-gradient(#7c7c7c, #5e5e5e);
  cursor: move;
}

.tone-titlebar h2 {
  margin: 0;
  color: #fff7ea;
  font: 700 12px Verdana, Arial, sans-serif;
}

.tone-close {
  width: 16px;
  height: 16px;
  border: 1px solid #8d795e;
  border-top-color: #fff5e2;
  border-left-color: #fff5e2;
  border-right-color: #69553c;
  border-bottom-color: #69553c;
  background: #ead5b0;
  color: #44290c;
  font: 700 11px Verdana, Arial, sans-serif;
  cursor: pointer;
}

.tone-body {
  padding: 6px;
  background: #e5e5e5;
}

.tone-copy {
  margin: 0 0 6px;
  font-size: 12px;
}

.tone-body label {
  display: block;
  margin-bottom: 2px;
  color: #3b2d1c;
  font-size: 10px;
}

#order-code-display {
  width: 100%;
  padding: 4px;
  border: 2px inset #ac9d82;
  background: #f3fff3;
  color: #203520;
  font: 700 15px "Courier New", Courier, monospace;
  letter-spacing: 1.4px;
}

.tone-keypad {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(3, 56px);
  justify-content: center;
  gap: 2px;
}

.tone-keypad button,
.tone-dial {
  border: 1px solid #876f4e;
  border-top-color: #fff5df;
  border-left-color: #fff5df;
  border-right-color: #684f2f;
  border-bottom-color: #684f2f;
  background: #f2e1c2;
  color: #3b2a16;
  font-family: Verdana, Arial, Tahoma, sans-serif;
  cursor: pointer;
}

.tone-keypad button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 44px;
  padding: 0;
}

.tone-digit {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.tone-letters {
  margin-top: 1px;
  font-size: 8px;
  letter-spacing: 0.6px;
  line-height: 1;
}

.tone-zero {
  grid-column: 2;
}

.tone-dial {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 5px 0;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(#d9ffd5, #4fb05c);
  color: #103b17;
  border-color: #3f8248;
  border-top-color: #e9ffe7;
  border-left-color: #e9ffe7;
  border-right-color: #2f6e39;
  border-bottom-color: #2f6e39;
}

.tone-keypad button:hover,
.tone-keypad button:focus-visible,
.tone-dial:hover,
.tone-dial:focus-visible,
.tone-close:hover,
.tone-close:focus-visible {
  background: #fff9e9;
}

.tone-keypad button:disabled,
.tone-dial:disabled {
  background: #d3c2a4;
  color: #7b6a53;
  border-color: #8d7a5c;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .tp-site {
    width: calc(100% - 16px);
    margin: 8px auto 12px;
  }

  .tp-header-main {
    grid-template-columns: 130px 1fr;
  }

  .tp-logo {
    width: 115px;
    height: 82px;
  }

  .tp-brand-copy h1 {
    font-size: 36px;
  }

  .tp-tagline {
    font-size: 16px;
  }

  .tp-welcome,
  .tp-menu-layout,
  .tp-location-grid {
    grid-template-columns: 1fr;
  }

  .tp-photo-large img {
    height: 220px;
  }
}
