/* The Copper Fox Pizza - public site styles.
   Mobile first: the base rules are for phones, wider screens are added below. */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cinzel-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cinzel-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #0d0b0a;
  --surface: #17130f;
  --surface-2: #211a15;
  --line: rgba(207, 122, 63, 0.3);
  --line-strong: rgba(240, 166, 107, 0.65);
  --copper: #cf7a3f;
  --copper-light: #f0a66b;
  --copper-deep: #8f4a20;
  --cream: #f6e3c8;
  --text: #f3ebe1;
  --muted: #b9a999;
  --green: #86db6b;
  --radius: 16px;
  --pad: 16px;
  --max: 1240px;
  --header-h: 108px;
  --display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper-light);
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--copper-light);
  outline-offset: 3px;
}

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

.nowrap {
  white-space: nowrap;
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cream);
  color: #1a120c;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--copper-light), var(--copper));
  color: #1b0f07;
  box-shadow: 0 6px 22px rgba(207, 122, 63, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(240, 166, 107, 0.5);
}

.btn-ghost {
  background: rgba(13, 11, 10, 0.55);
  color: var(--cream);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(207, 122, 63, 0.18);
}

/* ---------- Header ---------- */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 11, 10, 0.94);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(13, 11, 10, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--cream);
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  flex: none;
}
.brand-name {
  font: 700 0.95rem/1.15 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-call {
  min-height: 42px;
  padding: 8px 16px;
  flex: none;
}
.btn-call-number {
  display: none;
}

.site-nav {
  display: flex;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar {
  display: none;
}
.site-nav a {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--line-strong);
  background: rgba(207, 122, 63, 0.18);
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74vh;
  padding: 40px var(--pad) 48px;
  text-align: center;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-photo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.72) 0%, rgba(13, 11, 10, 0.6) 45%, var(--bg) 100%);
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}

.hero-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 14px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.hero h1 {
  font: 700 2.1rem/1.08 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--copper-light);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(180deg, #ffd3a6 0%, #f0a66b 45%, #c56e34 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
  }
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--cream);
  font: 600 0.95rem/1.2 var(--display);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.tagline::before,
.tagline::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}
.tagline .icon-flame {
  order: 3;
  color: var(--copper-light);
  margin-left: -4px;
}
.tagline::after {
  order: 4;
}

.intro {
  margin-top: 16px;
  color: var(--text);
  font-size: 1.05rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.order-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Sections ---------- */

.menu,
.offers,
.find-us {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.menu-section,
.offers,
.find-us {
  padding-top: 36px;
}

.section-head {
  margin-bottom: 18px;
  text-align: center;
}

.section-head h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font: 700 1.6rem/1.15 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.section-head h2::before,
.section-head h2::after {
  content: '';
  flex: 1 1 0;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.section-head h2::after {
  background: linear-gradient(270deg, transparent, var(--line-strong));
}

.section-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Dish cards ---------- */

.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dish-cell {
  display: flex;
}

.dish {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dish:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 166, 107, 0.15);
}
.dish:active {
  transform: translateY(0);
}

.dish-photo {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--surface-2);
}
.dish-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.dish:hover .dish-photo img {
  transform: scale(1.05);
}

.dish-photo--empty {
  background: radial-gradient(circle at 50% 45%, #3a2416 0%, #1c1410 62%, #120e0b 100%);
}
.dish-photo--empty img {
  top: 22%;
  left: 22%;
  width: 56%;
  height: 56%;
  object-fit: contain;
  opacity: 0.45;
}
.dish:hover .dish-photo--empty img {
  transform: none;
}

.dish-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
}

.dish-name {
  font: 700 0.95rem/1.2 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.diet {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: var(--green);
  font: 700 0.68rem/1.3 var(--body);
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
}

.dish-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dish-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 4px;
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.price .size {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.price .amount {
  color: var(--copper-light);
  font-size: 1.02rem;
  font-weight: 700;
}

.legend,
.allergens {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.legend .diet {
  margin: 0 4px 0 10px;
}
.allergens {
  max-width: 640px;
  margin: 10px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--cream);
}

/* ---------- Offers ---------- */

.offer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.offer-day {
  font: 700 0.95rem/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.offer-text {
  color: var(--text);
}
.offer.is-today {
  border-color: var(--copper-light);
  background: linear-gradient(180deg, rgba(207, 122, 63, 0.22), var(--surface));
}
.offer.is-today::after {
  content: 'Today';
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--copper-light);
  color: #1b0f07;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Find us ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.info-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.info-card > .icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  color: var(--copper-light);
}
.info-card h3 {
  margin-bottom: 6px;
  font: 700 0.95rem/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}
.info-card p + p,
.info-card p + a {
  margin-top: 6px;
}

.phone-big {
  color: var(--copper-light);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.text-link {
  display: inline-block;
  padding: 6px 4px;
  color: var(--copper-light);
  font-weight: 600;
}

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}
.hours > div:last-child {
  border-bottom: 0;
}
.hours dt {
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 48px;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.footer-name {
  margin-bottom: 4px;
  font: 700 1rem/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.social a {
  margin: 0 8px;
}

/* ---------- Dish dialog ---------- */

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.is-open {
  opacity: 1;
}

.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(24px);
  transition: transform 0.22s ease;
}
.modal-backdrop.is-open .modal {
  transform: none;
}

.modal-photo {
  flex: none;
  background: var(--surface-2);
}
.modal-photo img {
  width: 100%;
  max-height: 48vh;
  object-fit: cover;
}
.modal-photo.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: radial-gradient(circle at 50% 45%, #3a2416 0%, #1c1410 62%, #120e0b 100%);
}
.modal-photo.is-empty img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.55;
}

.modal-body {
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px));
}
.modal-title {
  font: 700 1.4rem/1.15 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.modal-diet {
  margin-top: 6px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
}
.modal-desc {
  margin-top: 10px;
  color: var(--text);
}
.modal-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.modal-prices .price {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.modal-prices .price .size {
  font-size: 0.9rem;
}
.modal-prices .price .amount {
  font-size: 1.25rem;
}
.modal-actions {
  margin-top: 18px;
}
.modal-actions .btn {
  width: 100%;
}
.modal-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(13, 11, 10, 0.78);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Small phones ---------- */

@media (max-width: 350px) {
  .brand-name {
    font-size: 0.8rem;
  }
  .dish-grid {
    gap: 8px;
  }
  .dish-body {
    padding: 10px;
  }
  .dish-name {
    font-size: 0.85rem;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
}

/* ---------- Large phones and small tablets ---------- */

@media (min-width: 560px) {
  :root {
    --pad: 24px;
  }
  .dish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-logo {
    width: 160px;
    height: 160px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .btn-call-number {
    display: inline;
  }
  .btn-call-short {
    display: none;
  }
  .dish-name {
    font-size: 1rem;
  }
  .dish-desc {
    font-size: 0.86rem;
  }
  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }
  .modal {
    border-bottom: 1px solid var(--line-strong);
    border-radius: 22px;
  }
}

/* ---------- Tablets ---------- */

@media (min-width: 760px) {
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .offer-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-head h2 {
    font-size: 2rem;
  }
  .menu-section,
  .offers,
  .find-us {
    padding-top: 52px;
  }
}

/* ---------- Laptops and desktops ---------- */

@media (min-width: 980px) {
  :root {
    --pad: 32px;
    --header-h: 76px;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-row {
    display: contents;
  }
  .site-header {
    padding-left: max(var(--pad), calc((100vw - var(--max)) / 2));
    padding-right: max(var(--pad), calc((100vw - var(--max)) / 2));
    min-height: 68px;
    gap: 20px;
  }
  .brand {
    order: 1;
    margin-right: auto;
  }
  .site-nav {
    order: 2;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .btn-call {
    order: 3;
  }
  .site-nav a {
    border-color: transparent;
    font-size: 0.95rem;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
    min-height: 0;
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px var(--pad) 32px;
    text-align: left;
    overflow: visible;
  }
  .hero-text {
    align-items: flex-start;
    max-width: none;
  }
  .hero-logo {
    width: 180px;
    height: 180px;
    margin-left: -8px;
  }
  .hero h1 {
    font-size: 3.6rem;
  }
  .tagline {
    justify-content: flex-start;
    font-size: 1.1rem;
  }
  .tagline::before {
    display: none;
  }
  .intro {
    font-size: 1.2rem;
  }
  .cta {
    justify-content: flex-start;
  }
  .hero-photo {
    position: relative;
    max-height: 560px;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(207, 122, 63, 0.18);
  }
  .hero-photo img {
    height: 560px;
    object-position: center 70%;
  }
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(13, 11, 10, 0) 60%, rgba(13, 11, 10, 0.45) 100%);
  }

  .dish-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .dish-body {
    padding: 16px;
  }
  .dish-name {
    font-size: 1.05rem;
  }
  .offer-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .modal {
    flex-direction: row;
    max-width: 860px;
    overflow: hidden;
  }
  .modal-photo {
    flex: 0 0 50%;
    display: flex;
  }
  .modal-photo img {
    height: 100%;
    max-height: none;
    min-height: 380px;
  }
  .modal-photo.is-empty img {
    height: 160px;
    min-height: 0;
    width: 160px;
    margin: auto;
  }
  .modal-body {
    flex: 1 1 auto;
    padding: 56px 28px 28px;
    overflow-y: auto;
    max-height: 86vh;
  }
}

@media (min-width: 1400px) {
  .dish-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

@media print {
  .site-header,
  .hero-photo,
  .cta,
  .modal-backdrop {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
