/* Tokens lifted from eatlocalpizza.ca (theme variables.css) so the page reads as the same brand. */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('/assets/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/assets/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('/assets/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 800; font-display: swap; src: url('/assets/montserrat-alt-800.woff2') format('woff2'); }

:root {
  --green: #21A831; --green-600: #1B8C29; --red: #E40021; --red-600: #C2001C;
  --base: #0A0A0A; --elevated: #141414; --floating: #1E1E1E; --border: #333333;
  --text: #FAF7F2; --text-2: #C4B9A7; --muted: #8A7B65;
  --heading: 'Montserrat Alternates', 'Montserrat', sans-serif;
  --body: 'Montserrat', sans-serif;
  --radius: 1rem; --pill: 9999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--body); line-height: 1.5;
  background: var(--base) url('/assets/hero-background.webp') center top / cover fixed no-repeat;
}
body::before { content: ''; position: fixed; inset: 0; background: rgba(10,10,10,.82); z-index: -1; }
@media (max-width: 767px) { body { background-image: url('/assets/hero-background-mobile.webp'); background-attachment: scroll; } }

a { color: var(--green); }
.green { color: var(--green); }

.topbar {
  padding: .6rem 1rem; background: rgba(10,10,10,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; transition: transform .2s; }
.brand:hover { transform: scale(1.03); }
.brand img { display: block; height: 40px; width: auto; }

/* Site navigation, mirrored from eatlocalpizza.ca (same links, same Order Now menu, same mobile overlay). */
.nav-desktop { display: none; }
.nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; position: relative; padding: .5rem 0; text-decoration: none;
  font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); transition: color .15s;
}
.nav-list a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--green); transition: width .2s; }
.nav-list a:hover { color: var(--text); }
.nav-list a:hover::after { width: 100%; }
.nav-list a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.order-dropdown { position: relative; display: none; }
.order-trigger { display: inline-flex; align-items: center; gap: 6px; padding: .6rem 1.1rem; font-size: .78rem; }
.order-trigger svg { transition: transform .2s; }
.order-dropdown.is-open .order-trigger svg { transform: rotate(180deg); }
.order-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: var(--floating); border: 1px solid var(--border);
  border-radius: 12px; padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s; box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.order-dropdown.is-open .order-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
.order-menu a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; color: var(--text); text-decoration: none; font: 500 .875rem/1.2 var(--body); }
.order-menu a:hover { background: rgba(255,255,255,.06); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot-white { background: #fff; } .dot-green { background: var(--green); } .dot-red { background: var(--red); }
.mobile-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .15s; }
.mobile-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 9; background: var(--base); display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow-y: auto; padding: 5rem 1rem; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; text-align: center; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-nav-list a { font: 800 1.5rem/1.2 var(--heading); color: var(--text); text-decoration: none; }
.mobile-nav-list a:hover { color: var(--green); }
.mobile-nav-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.pill-dark { background: var(--floating); border: 1px solid var(--border); }
.pill-dark:hover { background: #262626; }
.back { color: var(--text-2); text-decoration: none; }
.back::before { content: '\2190\00a0'; }
.back:hover { color: var(--text); }
.nav-list a, .order-trigger { white-space: nowrap; }
@media (min-width: 768px) {
  .brand img { height: 48px; }
  .order-dropdown { display: block; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .mobile-toggle { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .nav-list { gap: 1.1rem; } .nav-list a { font-size: .72rem; letter-spacing: .06em; } }

.pill {
  display: inline-block; border: 0; border-radius: var(--pill); padding: .7rem 1.4rem;
  font: 700 .875rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: #fff; cursor: pointer; transition: transform .15s, background .15s;
}
.pill:hover { transform: translateY(-1px); }
.pill-red { background: var(--red); box-shadow: 0 0 20px rgba(228,0,33,.25); }
.pill-red:hover { background: var(--red-600); }
.pill-green { background: var(--green); }
.pill-green:hover { background: var(--green-600); }
.pill.big { width: 100%; padding: 1rem 1.4rem; font-size: 1rem; }
.pill:disabled { opacity: .6; cursor: wait; transform: none; }

.hero {
  max-width: 1120px; margin: 0 auto; padding: 2.5rem 1rem 3rem;
  display: grid; gap: 2rem; align-items: start;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 440px; gap: 3.5rem; padding-top: 5rem; } }

.kicker { margin: 0 0 .75rem; color: var(--green); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .875rem; }
h1 {
  margin: 0; font: 800 clamp(2.25rem, 7vw, 4rem)/1.05 var(--heading); letter-spacing: -.03em;
}
.lead { color: var(--text-2); font-size: 1.125rem; max-width: 34rem; margin: 1.25rem 0 1.75rem; }
.facts { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.facts li {
  background: rgba(20,20,20,.85); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .8rem 1rem; flex: 1 1 0; min-width: 0;
}
@media (min-width: 900px) { .facts li { flex: 0 0 auto; min-width: 7.5rem; } }
.facts b { display: block; font: 800 1.75rem/1 var(--heading); color: var(--green); }
.facts span { font-size: .8rem; color: var(--text-2); }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }

.card {
  background: rgba(20,20,20,.94); border: 1px solid var(--border); border-radius: 1.5rem;
  padding: 1.5rem; box-shadow: 0 10px 25px rgba(33,168,49,.08), 0 20px 40px rgba(0,0,0,.4);
}
@media (min-width: 900px) { .card { padding: 2rem; } }
.card h2 { margin: 0 0 1.25rem; font: 800 1.6rem/1.15 var(--heading); }

.row { margin-bottom: 1rem; }
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
label em, .label em, legend em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .25rem; }
input:not([type=checkbox]), select {
  width: 100%; padding: .8rem .9rem; font: 400 1rem var(--body); color: var(--text);
  background: var(--floating); border: 1px solid var(--border); border-radius: .75rem;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
input[aria-invalid=true] { border-color: var(--red); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; }

.optin { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem .4rem; margin: 1.25rem 0 1rem; }
.optin legend { font-weight: 700; padding: 0 .35rem; font-size: .95rem; }
.optin legend em { display: block; margin: .1rem 0 0; }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; align-items: start; font-weight: 400; font-size: .82rem; color: var(--text-2); margin-bottom: .75rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--green); }
.check.rules { color: var(--text); font-size: .88rem; margin: 0 0 1.1rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: rgba(228,0,33,.12); border: 1px solid var(--red); color: #fbc5ce; border-radius: .75rem; padding: .7rem .9rem; font-size: .9rem; margin: 0 0 1rem; }
.fine { color: var(--muted); font-size: .78rem; text-align: center; margin: .9rem 0 0; }

.done { text-align: center; padding: 1rem 0; }
.done h2 { color: var(--green); }
.done p { color: var(--text-2); }
.done .pill { margin-top: 1rem; }

.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem 3rem; border-top: 1px solid var(--border); background: rgba(10,10,10,.9); }
.foot p { margin: .3rem 0; }
.foot a { color: var(--text-2); }
.foot .small { font-size: .75rem; }

/* Rules page */
.doc { max-width: 760px; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.doc h2 { font: 800 1.2rem/1.3 var(--heading); margin: 2rem 0 .5rem; color: var(--green); }
.doc p, .doc li { color: var(--text-2); }
.doc .todo { background: rgba(228,0,33,.15); color: #fbc5ce; padding: 0 .3rem; border-radius: .25rem; }
