/* ==========================================================================
   Scarface Pizzeria — 371A High St, Northcote
   ========================================================================== */

:root {
  --yellow:     #facf57;
  --yellow-dk:  #f0bd33;
  --red:        #db4230;
  --red-dk:     #b73023;
  --green:      #1c8a42;
  --green-dk:   #156c33;
  --orange:     #ed7342;
  --orange-dk:  #d85c2c;
  --ink:        #111111;
  --ink-soft:   #4a4542;
  --white:      #ffffff;

  --shell:   min(1180px, 100% - 2.5rem);
  --display: "Bangers", "Impact", "Haettenschweiler", sans-serif;
  --body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .025em;
  line-height: .92;
  margin: 0;
}
h1 { font-size: clamp(3.2rem, 9vw, 6.4rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
p  { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.shell { width: var(--shell); margin-inline: auto; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.26rem); max-width: 60ch; }
.centred { text-align: center; }
.centred .lede { margin-inline: auto; }

.kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin: 0 0 .5rem;
}

/* two brush-ish dashes either side of a centred heading */
.swash { display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.swash::before, .swash::after {
  content: "";
  width: clamp(30px, 6vw, 80px); height: 7px;
  background: currentColor; border-radius: 4px;
  transform: skewX(-22deg);
  opacity: .9;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1;
  padding: .95rem 2.1rem;
  border: 3px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .12s;
}
.btn:active { transform: translateY(2px); }
.btn--green  { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--green:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn--red    { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: var(--red-dk); border-color: var(--red-dk); }
.btn--white  { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--ghost  { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--red); }
.btn--sm { padding: .55rem 1.2rem; font-size: 1.1rem; border-width: 2px; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.centred .btn-row { justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--yellow);
  border-bottom: 4px solid var(--red);
}
.site-head .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .5rem 0;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { width: 74px; height: auto; }

.nav { display: flex; align-items: center; gap: 1.8rem; margin-left: auto; }
.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--red);
  padding: .2rem 0;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a.is-active { color: var(--green); border-bottom-color: var(--green); }
.nav a.btn { color: var(--white); border-bottom-color: var(--green); }
.nav a.btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); border: 0; color: var(--white);
  place-items: center; cursor: pointer;
}
.nav-toggle svg { display: block; }

/* ==========================================================================
   Colour blocks
   ========================================================================== */
section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.sec--yellow { background: var(--yellow); color: var(--ink); }
.sec--white  { background: var(--white);  color: var(--ink); }
.sec--red    { background: var(--red);    color: var(--white); }
.sec--orange { background: var(--orange); color: var(--white); }
.sec--green  { background: var(--green);  color: var(--white); }

.sec--yellow h1, .sec--yellow h2 { color: var(--red); }
.sec--white h2 { color: var(--red); }
.sec--white .kicker { color: var(--green); }
.sec--yellow .kicker { color: var(--green); }
.sec--red h2, .sec--orange h2, .sec--green h2,
.sec--red h3, .sec--orange h3, .sec--green h3,
.sec--red .kicker, .sec--orange .kicker, .sec--green .kicker { color: var(--white); }

.sec--yellow a:not(.btn) { color: var(--red); }
.sec--white a:not(.btn)  { color: var(--red); }

/* full-bleed photo band between blocks */
.band { height: clamp(260px, 40vw, 520px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* lightning bolt divider */
.bolt { display: block; margin: 0 auto 1.4rem; width: clamp(52px, 8vw, 88px); height: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(3rem, 7vw, 5.4rem) 0 clamp(3rem, 6vw, 4.8rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__media { display: grid; place-items: center; }
.hero__media img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(17, 17, 17, .18));
}
.hero h1 { max-width: 13ch; }
.hero p { max-width: 48ch; margin-top: 1.4rem; font-size: clamp(1.1rem, 1.8vw, 1.32rem); }
.hero__label {
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.25rem;
  color: var(--green); margin: 2.2rem 0 .7rem;
}

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem 2rem;
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 4px solid var(--red);
}
.fact b {
  display: block; font-family: var(--display); color: var(--red);
  font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: .02em;
}
.fact span { font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.fact .stars { color: var(--orange); letter-spacing: .06em; }

/* ==========================================================================
   Feature block
   ========================================================================== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.6rem); align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 5px solid var(--white); }
.sec--white .feature__media img, .sec--yellow .feature__media img { border-color: var(--ink); }

/* ==========================================================================
   Menu category cards
   ========================================================================== */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.cat { text-decoration: none; display: block; color: inherit; }
.cat__shot { display: block; overflow: hidden; border: 4px solid var(--ink); aspect-ratio: 4/3; }
.cat__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.cat:hover .cat__shot img { transform: scale(1.08); }
.cat h3 { margin: .9rem 0 .15rem; color: var(--red); transition: color .15s; }
.cat:hover h3 { color: var(--green); }
.cat p { font-size: .98rem; color: var(--ink-soft); margin: 0; font-weight: 600; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; align-items: start; text-align: left; }
.review {
  background: var(--white); color: var(--ink);
  border: 4px solid var(--ink); padding: 1.5rem 1.4rem;
  box-shadow: 8px 8px 0 rgba(17,17,17,.14);
}
.review .stars { color: var(--orange); font-size: 1.05rem; letter-spacing: .12em; }
.review blockquote { margin: .6rem 0 1.2rem; font-size: 1.05rem; }
.review blockquote::before { content: "\201C"; }
.review blockquote::after  { content: "\201D"; }
.review footer { display: flex; align-items: center; gap: .75rem; }
.review .avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em;
}
.review cite { font-style: normal; font-weight: 800; display: block; line-height: 1.2; }
.review time { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }

/* ==========================================================================
   Find us
   ========================================================================== */
.shopcard {
  background: var(--white); color: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(17,17,17,.18);
  max-width: 760px; margin-inline: auto;
}
.shopcard > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 5px solid var(--ink); }
.shopcard__body { padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; }
.shopcard h2 { color: var(--green); }
.shopcard .addr { font-size: 1.2rem; font-weight: 600; margin-top: .9rem; }
.shopcard .addr a { color: var(--red); font-weight: 800; }

.block-label {
  font-family: var(--display); letter-spacing: .07em;
  font-size: 1.25rem; color: var(--red);
  margin: 1.8rem 0 .3rem;
}
.map-wrap { margin: 2.4rem auto 0; border: 5px solid var(--ink); box-shadow: 10px 10px 0 rgba(17,17,17,.18); max-width: 760px; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ==========================================================================
   Menu page
   ========================================================================== */
.page-head { background: var(--yellow); padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2.2rem, 4vw, 3rem); text-align: center; }
.page-head h1 { color: var(--red); }
.page-head .kicker { color: var(--green); }
.page-head .lede { margin: 1rem auto 0; }

.menu-nav {
  position: sticky; top: 92px; z-index: 40;
  background: var(--red);
  border-bottom: 4px solid var(--ink);
}
.allergy-note {
  background: var(--white); border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(17,17,17,.14);
  padding: 1.5rem 1.6rem; font-size: 1rem;
}
.allergy-note b { font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em; color: var(--red); display: block; margin-bottom: .3rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot { background: var(--yellow); color: var(--red); padding: 3.6rem 0 2rem; text-align: center; }
.site-foot img.mark { width: 160px; height: auto; margin: 0 auto 1.6rem; }
.foot-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem;
  list-style: none; margin: 0 0 1.8rem; padding: 0;
}
.foot-links a {
  font-family: var(--display); letter-spacing: .05em; font-size: 1.25rem;
  color: var(--red); text-decoration: none;
}
.foot-links a:hover { color: var(--green); }
.foot-info { font-weight: 600; color: var(--ink); margin-bottom: 1.6rem; }
.foot-info a { color: var(--red); font-weight: 800; }
.socials { display: flex; justify-content: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.socials a { color: var(--red); transition: color .15s, transform .15s; display: block; }
.socials a:hover { color: var(--green); transform: translateY(-2px); }
.foot-base { font-size: .92rem; font-weight: 600; color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1040px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .review:nth-child(3n+2) { margin-top: 1.8rem; }
}

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

@media (max-width: 900px) {
  /* logo first, so the brand is the first thing on a phone */
  .hero__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__media { order: -1; }
  .hero__media img { max-width: 300px; }
}

@media (max-width: 820px) {
  :root { --shell: min(1180px, 100% - 2rem); }
  html { scroll-padding-top: 86px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0 0 auto; top: 0; z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6rem 1.5rem 2rem;
    background: var(--yellow);
    border-bottom: 4px solid var(--red);
    transform: translateY(-105%);
    transition: transform .3s cubic-bezier(.3,.8,.3,1);
  }
  .nav.is-open { transform: none; }
  .brand, .nav-toggle { position: relative; z-index: 2; }
  .nav a { font-size: 2rem; padding: .6rem 0; border-bottom: 2px solid rgba(219,66,48,.3); }
  .nav a.btn { margin-top: 1.2rem; border: 3px solid var(--green); }
  .brand img { width: 62px; }
  .menu-nav { top: 78px; }
  .hero h1 { max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .cats { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-wrap iframe { height: 300px; }
}

/* ==========================================================================
   Live data blocks (filled by api/*.js)
   ========================================================================== */
.live-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem;
  margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 4px solid var(--red);
}
.page-head .live-row { justify-content: center; border-top: 0; padding-top: 0; margin-top: 1.6rem; }
.live-today { font-weight: 600; color: var(--ink-soft); }
.live-today strong { color: var(--ink); }

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.hours-table { max-width: 420px; margin-inline: auto; text-align: left; }
.contact-card .hours-table { margin-inline: 0; max-width: none; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.contact-card {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, .16);
  padding: 1.8rem 1.6rem;
}
.contact-card h2 { color: var(--red); margin-bottom: .8rem; }
.contact-card .addr { font-size: 1.15rem; font-weight: 600; }
.contact-card .addr a { color: var(--red); font-weight: 800; }
.contact-card--wide { grid-column: 1 / -1; }

/* ---------- Footer columns ---------- */
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem 2.4rem;
  max-width: 680px;
  margin: 0 auto 1.8rem;
  text-align: left;
  color: var(--ink);
}
.foot-cols .block-label { margin-top: 0; }
.foot-cols p { font-weight: 600; margin-bottom: .4rem; }
.foot-cols a { color: var(--red); font-weight: 800; }

@media (max-width: 560px) {
  .popular-grid { grid-template-columns: 1fr; }
  .foot-cols { text-align: center; }
  .live-row { justify-content: center; }
}
