/* ============================================================
   OLLIES CHICKEN — styles.css
   Palette pulled from brand: orange / cream / deep brown / navy
   ============================================================ */

:root {
  --orange:        #f47b20;
  --orange-deep:   #e05f00;
  --orange-bg:     #ef7622;
  --orange-shape:  #d96512;
  --cream:         #fbe9d6;
  --cream-light:   #fdf3e7;
  --brown:         #3f2a14;
  --navy:          #1d2c6b;
  --white:         #fffdf9;

  --font-display: "Anton", Impact, sans-serif;
  --font-script:  "Pacifico", cursive;
  --font-body:    "Inter", system-ui, sans-serif;

  --header-h: 76px;
  --radius: 6px;
  --shadow: 0 14px 40px rgba(63, 42, 20, .18);

  /* repeating "Ollies" wrapping-paper pattern used as image fallback */
  --slot-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Crect width='160' height='120' fill='%23f7dfc4'/%3E%3Ctext x='10' y='34' font-family='Georgia,serif' font-style='italic' font-weight='bold' font-size='22' fill='%23e05f0033'%3EOllies%3C/text%3E%3Ctext x='80' y='74' font-family='Georgia,serif' font-style='italic' font-weight='bold' font-size='22' fill='%23e05f0033'%3EOllies%3C/text%3E%3Ctext x='10' y='112' font-family='Georgia,serif' font-style='italic' font-weight='bold' font-size='22' fill='%23e05f0033'%3EOllies%3C/text%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* clip (not hidden) keeps position:sticky working and reliably
   prevents sideways wiggle from slide-in reveals on iOS */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

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

a { color: inherit; }

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

.center { text-align: center; }

/* ---------- Type ---------- */
.section-kicker {
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: clamp(.8rem, 1.4vw, 1rem);
  color: var(--brown);
}
.section-kicker.dark { color: var(--brown); }

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: .01em;
}
.section-title.light  { color: var(--white); }
.section-title.orange { color: var(--orange); }
.section-title.sm     { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.body-copy {
  margin-top: 1.2rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  padding: .8em 1.6em;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover  { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 24px rgba(63,42,20,.25); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-solid { background: var(--orange); color: var(--white); }
.btn-solid:hover { background: var(--orange-deep); }

.btn-cream { background: var(--cream); color: var(--orange-deep); }
.btn-cream:hover { background: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--orange-deep); }

.btn-lg { padding: 1em 2.2em; font-size: 1.05rem; }

.btn-mini {
  background: var(--orange);
  color: var(--white);
  padding: .5em 1em;
  font-size: .75rem;
  border-radius: 4px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Image slots (placeholder until real photos exist) ---------- */
.img-slot {
  position: relative;
  overflow: hidden;
  background: var(--slot-pattern) var(--cream-light);
  background-size: 160px 120px;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(63,42,20,.08);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(63,42,20,.12); }

.header-inner {
  width: min(1380px, 94%);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- Logo ---------- */
.logo { text-decoration: none; display: flex; align-items: center; gap: .3rem; line-height: 1; }

.logo-img {
  height: 52px;
  width: auto;
  transition: transform .3s ease;
}
.logo:hover .logo-img { transform: rotate(-3deg) scale(1.05); }
.logo-img.xl { height: clamp(120px, 18vw, 180px); }

.logo-script {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--orange);
  text-shadow:
    -2px -2px 0 var(--navy), 2px -2px 0 var(--navy),
    -2px  2px 0 var(--navy), 2px  2px 0 var(--navy),
     0 4px 0 var(--navy);
  transform: rotate(-4deg);
  display: inline-block;
}
.logo-sub {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--navy);
  transform: rotate(-4deg) translateY(-2px);
  display: inline-block;
}
.logo-script.xl { font-size: clamp(3.5rem, 8vw, 5.5rem); }
.logo-sub.xl    { font-size: clamp(1.4rem, 3vw, 2.2rem); }

/* ---------- Nav ---------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}
.main-nav > a:not(.btn) {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .85rem;
  text-decoration: none;
  color: var(--orange-deep);
  position: relative;
  padding: .3em 0;
}
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.main-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--orange-deep);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(1rem, 3vw, 2.5rem) 0; }

.hero-frame {
  position: relative;
  width: min(1380px, 94%);
  margin-inline: auto;
  min-height: clamp(420px, 72vh, 680px);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #5a3c20;
  /* fallback "table spread" look if no photo present */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244,123,32,.35), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(244,123,32,.25), transparent 45%),
    radial-gradient(circle at 60% 80%, rgba(29,44,107,.3), transparent 50%),
    linear-gradient(160deg, #6b4423, #3f2a14);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero-media img { animation: heroZoom 14s ease-out forwards; }

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,18,6,.78) 0%, rgba(30,18,6,.25) 45%, rgba(30,18,6,.05) 100%);
}

/* WebGL ember particles overlay */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1100px;
}

.hero-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  margin-bottom: .4em;
  opacity: 0;
  animation: fadeUp .8s ease .3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--orange);
  font-size: clamp(2.6rem, 8.5vw, 6.5rem);
  line-height: .98;
  letter-spacing: .01em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn .85s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: .45s; }
.hero-title .line:nth-child(2) span { animation-delay: .6s; }
.hero-title .line:nth-child(3) span { animation-delay: .75s; }

@keyframes riseIn { to { transform: translateY(0); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp .8s ease 1.05s forwards;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--brown);
  color: var(--cream);
  overflow: hidden;
  padding: .7rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 1rem;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ============================================================
   FAVOURITES
   ============================================================ */
.favourites {
  position: relative;
  background: var(--orange-bg);
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.favourites .section-kicker { color: var(--brown); }

/* abstract flame shapes in the background */
.flame {
  position: absolute;
  background: var(--orange-shape);
  border-radius: 48% 52% 55% 45% / 60% 45% 55% 40%;
  pointer-events: none;
  animation: blob 16s ease-in-out infinite alternate;
}
.flame-1 { width: 520px; height: 620px; top: -120px; right: -140px; }
.flame-2 { width: 420px; height: 520px; bottom: -160px; left: 12%; animation-delay: -8s; }
.flame-3 { width: 480px; height: 560px; top: 10%; left: -200px; animation-delay: -4s; }

@keyframes blob {
  from { transform: rotate(-6deg) scale(1); border-radius: 48% 52% 55% 45% / 60% 45% 55% 40%; }
  to   { transform: rotate(8deg) scale(1.08); border-radius: 55% 45% 48% 52% / 45% 60% 40% 55%; }
}

.favourites .container { position: relative; z-index: 2; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}

.food-card {
  background: var(--cream-light);
  padding: .9rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.3,1.2), box-shadow .35s ease;
}
.food-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: 0 24px 50px rgba(40,22,6,.3);
}

.food-card-img {
  aspect-ratio: 16 / 10;
  border-radius: 2px;
}
.food-card-img img { transition: transform .6s ease; }
.food-card:hover .food-card-img img { transform: scale(1.07); }

.food-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .9rem;
}
.food-card-bar h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--orange);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: .03em;
}

/* ============================================================
   DELIVERY
   ============================================================ */
.delivery { padding: clamp(4rem, 9vw, 8rem) 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.delivery-img .img-slot {
  aspect-ratio: 3 / 2;
  border-radius: 4px;
}

/* orange "sticker" outline behind the photo */
.sticker {
  box-shadow:
    8px 10px 0 var(--orange),
    -6px -6px 0 var(--orange);
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}
.sticker:hover { transform: rotate(0deg) scale(1.01); }

/* ============================================================
   SERVING
   ============================================================ */
.serving {
  position: relative;
  background: var(--orange-bg);
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.serving .container { position: relative; z-index: 2; }

.serving-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.serving-title .accent { color: var(--brown); }

.serving-panel {
  background: var(--cream-light);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  width: min(1100px, 100%);
  margin-inline: auto;
  text-align: center;
}

.serving-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  color: var(--orange);
  transition: transform .4s cubic-bezier(.2,.8,.3,1.4);
}
.serving-item:hover .serving-icon { transform: translateY(-6px) rotate(-4deg) scale(1.08); }
.serving-icon svg { width: 100%; height: 100%; }

.serving-item h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--orange);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: .8rem;
  letter-spacing: .03em;
}
.serving-item p { font-size: .92rem; color: var(--brown); }
.serving-item p a { color: var(--orange-deep); font-weight: 600; }

/* ============================================================
   CONTACT / HOURS
   ============================================================ */
.contact {
  background: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.contact-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.hours-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 1.6rem;
}

.location h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.location p { margin-bottom: 1rem; font-size: .98rem; }
.location a { color: var(--brown); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.location a:hover { color: var(--orange-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 1.6rem 0;
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.footer-nav a:hover { color: var(--orange); }

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.reveal.slide-left  { transform: translateX(-48px); }
.reveal.slide-right { transform: translateX(48px); }
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .delivery-img { max-width: 440px; margin-inline: auto; width: 100%; }
  .serving-panel { grid-template-columns: 1fr; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; text-align: center; }
  .hours-cols { text-align: left; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, box-shadow .4s ease;
    z-index: 99;
  }
  .main-nav.open {
    max-height: 420px;
    box-shadow: 0 18px 30px rgba(63,42,20,.15);
  }
  .main-nav > a:not(.btn) {
    width: 100%;
    text-align: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(63,42,20,.08);
    font-size: 1rem;
  }
  .main-nav .nav-cta { margin: 1.2rem 0 1.6rem; }

  .hero-frame { min-height: 78vh; }
  .hours-cols { grid-template-columns: 1fr; }
  .flame-1 { width: 300px; height: 360px; right: -120px; }
  .flame-2, .flame-3 { width: 260px; height: 320px; }

  /* gentler slide distance so off-screen reveals never poke past the viewport */
  .reveal.slide-left  { transform: translateX(-24px); }
  .reveal.slide-right { transform: translateX(24px); }
  .reveal.in-view { transform: none; }
}

@media (max-width: 480px) {
  .btn-row .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .logo-script { font-size: 1.8rem; }
}
