/* ------------------------------------------------------------------
   LT's Pizza And Subs -- reconstructed theme
   Recreates the live site's look (utility bar, white masthead, grey
   page title band, navy menu bands, brown action buttons) with our
   own class names only: nothing from any previous theme or builder.
   ------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #000; text-decoration: none; transition: color .2s ease; }
a:hover, a:focus-visible { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: 0 0 .35em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------------- Utility bar ---------------- */
.utility-bar {
  background: var(--utility-bg);
  color: var(--on-dark);
  font-size: 12px;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}
.utility-nav { display: flex; gap: 26px; }
.utility-nav__link {
  color: var(--on-dark);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  font-weight: 600;
  line-height: 36px;
}
.utility-nav__link:hover { color: var(--accent); }
.utility-social { display: flex; align-items: center; gap: 14px; }
.utility-social__link { color: var(--on-dark); display: inline-flex; }
.utility-social__link svg { width: 15px; height: 15px; fill: currentColor; }
.utility-social__link:hover { color: var(--accent); }

/* ---------------- Masthead ---------------- */
.masthead { background: var(--white); box-shadow: var(--shadow-header); position: relative; z-index: 50; }
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: var(--masthead-h);
}
.masthead__logo { flex: 0 0 auto; }
.masthead__logo img { width: 161px; height: auto; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav__item { position: relative; margin: 0; }
.primary-nav__link {
  display: inline-block;
  color: var(--ink-header);
  font-size: var(--fs-nav);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 10px 0;
}
.primary-nav__item.is-current > .primary-nav__link,
.primary-nav__link:hover { color: var(--accent); }

.primary-nav__item.has-children > .primary-nav__link::after {
  content: "\25BE";
  font-size: 9px;
  margin-left: 7px;
  vertical-align: 1px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 20px 0 0;
  padding: 10px 0 15px;
  list-style: none;
  background: var(--submenu-bg);
  border-radius: var(--radius);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1000;
}
.primary-nav__item.has-children:hover > .submenu,
.primary-nav__item.has-children:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 8px 22px;
  color: #2b2b2b;
  font-size: 13px;
  line-height: 1.45;
}
.submenu a:hover { color: var(--accent); background: rgba(255, 255, 255, .35); }

/* ---------------- Page title band ---------------- */
.page-title { background: var(--band-light); padding: 38px 0; }
.page-title h1 { margin: 0; font-size: var(--fs-h1); font-weight: 400; color: var(--ink); }

/* ---------------- Bands and sections ---------------- */
.band { padding: 26px 0; }
.band--white { background: var(--white); }
.band--light { background: var(--band-light); }
.band--navy { background: var(--navy); color: var(--on-dark); padding: 40px 0; }
.band--brown { background: var(--cta); color: var(--on-dark); }

.band--navy h1, .band--navy h2, .band--navy h3, .band--navy h4 { color: var(--on-dark); }
.band--navy a { color: var(--on-dark); }
.band--navy a:hover { color: var(--accent); }
.band--navy p, .band--navy li { color: var(--on-dark); }

.band figure { margin: 0 0 10px; }
.band figure img { margin: 0 auto; }

/* ---------------- Price tables ---------------- */
.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 22px; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-table th,
.price-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--rule-on-dark);
  text-align: left;
  vertical-align: middle;
}
.band--white .price-table th,
.band--white .price-table td { border-top-color: #e6e6e6; }
.price-table th { font-weight: 700; }
.price-table th:not(:first-child),
.price-table td:not(:first-child) { text-align: center; }
.price-table tbody tr:last-child td { border-bottom: 1px solid var(--rule-on-dark); }
.band--white .price-table tbody tr:last-child td { border-bottom-color: #e6e6e6; }

/* ---------------- Dish cards ---------------- */
.dish {
  background: var(--navy);
  color: var(--on-dark);
  padding: 22px 50px;
  margin: 0 0 10px;
}
.dish__name { margin: 0 0 4px; font-size: 24px; color: var(--on-dark); font-weight: 400; }
.dish__price { margin: 0 0 4px; font-weight: 700; color: var(--on-dark); }
.dish__desc { margin: 0; font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff !important;
  cursor: pointer;
  transition: background-color .25s ease;
}
.btn--brown { background: var(--cta); }
.btn--brown:hover, .btn--brown:focus-visible { background: var(--cta-hover); color: #fff !important; }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); }

/* Action rows: heading and buttons centred as one unit, like the live layout. */
.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 14px 0;
}
.action-row h2 { margin: 0; }
.band .container > a.btn { margin: 0 10px 10px 0; }
.band .container > a.btn:last-child { margin-right: 0; }

/* ---------------- Map ---------------- */
.map-embed { margin: 0 0 10px; }
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------------- Forms ---------------- */
.application-form { max-width: 860px; margin: 0 auto; }
.field-group { border: 0; padding: 0; margin: 0 0 24px; }
.field-group legend {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  padding: 0;
  margin: 0 0 10px;
}
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; margin: 0 0 18px; }
.field--wide { flex: 2 1 320px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field textarea:focus { outline: 2px solid rgba(231, 69, 26, .35); border-color: var(--accent); }
.req { color: var(--accent); }
.field-error { color: #b3261e; font-size: 12px; margin: 6px 0 0; }

.choice-grid { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.choice input { width: 16px; height: 16px; margin: 0; }
.choice--consent { margin-top: 12px; align-items: flex-start; }
.choice--consent span { font-size: 13px; line-height: 1.6; }

.consent-text {
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 12px 16px;
  margin: 0 0 8px;
  font-size: 13px;
  background: #fafafa;
}
.consent-text summary { cursor: pointer; font-weight: 600; }
.consent-text p { margin: 10px 0 0; }

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

.notice { padding: 18px 22px; border-radius: 3px; margin: 0 0 26px; }
.notice--success { background: #eef7ee; border: 1px solid #bfe0bf; }
.notice--error { background: #fdecea; border: 1px solid #f2b8b5; color: #7f1d1a; }
.notice h2 { margin-top: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 20px;
  background: #333333;
  color: #cccccc;
  border-top: 0;
  padding: 20px 0;
}
.site-footer__legal {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #cccccc;
}
.site-footer__legal a { color: #cccccc; text-decoration: underline; }
.site-footer__legal a:hover { color: #25bce9; }

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.back-to-top:hover { background: var(--accent); color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .primary-nav__list { gap: 24px; }
  .masthead__inner { gap: 18px; }
}

@media (max-width: 860px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--ink-header); }

  .primary-nav {
    display: none;
    order: 3;
    flex: 1 0 100%;
    padding: 6px 0 18px;
  }
  .nav-toggle:checked ~ .primary-nav { display: block; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__item { border-top: 1px solid #efefef; }
  .primary-nav__link { display: block; padding: 13px 0; }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0 0 10px;
    box-shadow: none;
    border-radius: 0;
    padding: 6px 0;
    display: none;
  }
  .primary-nav__item.has-children:focus-within > .submenu,
  .primary-nav__item.has-children.is-open > .submenu { display: block; }

  .masthead__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .page-title h1 { font-size: 30px; }
  .dish { padding: 18px 22px; }
  .band .container > h2 { display: block; margin-bottom: 14px; }
  .band .container > h2 + .btn { margin-left: 0; }
  .btn { width: 100%; max-width: 320px; margin: 0 auto 10px; }
  .action-row .btn { width: 200px; max-width: 200px; }
}

@media (max-width: 560px) {
  .utility-nav { gap: 16px; }
  .utility-bar__inner { min-height: 32px; }
  .utility-nav__link { font-size: 10px; line-height: 32px; }
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 10px 6px; }
  .page-title { padding: 26px 0; }
  .band { padding: 18px 0; }
  .band--navy { padding: 26px 0; }
}

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