/* ============================================================
   The Grill House — Riccarton
   Rebuilt from Canva design as static HTML/CSS
   ============================================================ */

:root {
  --red: #e4131a;
  --red-dark: #c30e14;
  --gold: #f4b93e;
  --gold-btn: #f6c453;
  --cream: #f8efce;
  --dark: #191919;
  --text: #232323;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f4f2ee;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  letter-spacing: .3px;
}
.btn:hover { transform: translateY(-2px); }

.btn-red {
  background: var(--red);
  color: #fff;
  padding: 15px 42px;
  border-radius: 4px;
  font-size: 1.15rem;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(228, 19, 26, .35);
}
.btn-red:hover { background: var(--red-dark); }

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  padding: 15px 42px;
  border-radius: 4px;
  font-size: 1.15rem;
  text-transform: uppercase;
  border: 3px solid var(--dark);
}
.btn-outline-dark:hover { background: var(--dark); color: #fff; }

.btn-gold {
  background: var(--gold-btn);
  color: #1a1a1a;
  padding: 15px 46px;
  border-radius: 4px;
  font-size: 1.2rem;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.btn-gold:hover { background: #ffd166; }

.btn-outline-gold {
  background: transparent;
  color: var(--gold-btn);
  padding: 16px 44px;
  border: 2px solid var(--gold-btn);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-outline-gold:hover { background: var(--gold-btn); color: #1a1a1a; }

/* ============================================================
   SIPO STATUS STRIP — sits above the sticky navbar
   ============================================================ */
/* Fixed strip (styled in api/api-styles.css) is pinned to top:0.
   Push the page + navbar down by its height so nothing is hidden. */
body.has-status-strip { padding-top: var(--strip-height, 0px); }

/* ============================================================
   NAVBAR — always visible (sticky)
   ============================================================ */
.site-header {
  position: sticky;
  top: var(--strip-height, 0px); /* sticks just below the status strip */
  left: 0;
  width: 100%;
  background: var(--red);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 70px;
  gap: 20px;
}

.nav-brand {
  display: none; /* hidden on desktop to match original; shown on mobile */
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: #fff;
  font-family: "Alfa Slab One", serif;
  font-size: 1rem;
}
.nav-brand img { width: 38px; height: 38px; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: .78; }

/* Book a Table = highlighted button in navbar */
.nav-book {
  background: var(--gold-btn);
  color: #1a1a1a !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 700 !important;
}
.nav-book:hover { background: #ffd166; opacity: 1 !important; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: url("assets/texture-light.jpg") center/cover no-repeat;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: 78vh;
}
.hero-content { flex: 1 1 46%; max-width: 560px; }
.hero-logo { width: 230px; height: auto; margin-bottom: 18px; }

.hero-title { font-family: "Alfa Slab One", serif; color: #141414; line-height: 1; text-transform: uppercase; }
.hero-title .welcome {
  display: block;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}
.hero-title .brand {
  display: block;
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  letter-spacing: 1px;
}
.hero-subtitle {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #1a1a1a;
  margin: 14px 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-image { flex: 1 1 50%; display: flex; justify-content: center; }
.hero-image img {
  width: 100%;
  max-width: 620px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .3));
}

/* ============================================================
   WHERE TASTE TAKES THE LEAD
   ============================================================ */
.taste {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .58)),
              url("assets/taste-bg.jpg") center/cover fixed no-repeat;
  color: #fff;
}
.taste-inner { padding: 70px 24px 80px; max-width: 1120px; }
.taste-title {
  font-family: "Alfa Slab One", serif;
  color: var(--gold);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.taste-body p {
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  font-weight: 500;
  text-align: justify;
  margin-bottom: 14px;
  color: #fdfdfd;
}

/* ============================================================
   CRAVE IT? CLICK IT!
   ============================================================ */
.crave {
  background:
    linear-gradient(90deg, rgba(214, 26, 18, .96) 0%, rgba(228, 62, 26, .7) 42%, rgba(233, 92, 40, .35) 100%),
    url("assets/crave-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}
.crave-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 64px 24px;
}
.crave-content { flex: 1 1 46%; }
.crave-title {
  font-family: "Alfa Slab One", serif;
  color: var(--cream);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: .98;
  text-transform: uppercase;
}
.crave-sub {
  font-family: "Alfa Slab One", serif;
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 14px 0 26px;
}
.crave-plates {
  flex: 1 1 50%;
  position: relative;
  min-height: 340px;
}
.crave-plates .plate {
  position: absolute;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35));
}
.plate-back { width: 60%; top: 6%; left: 2%; }
.plate-front { width: 62%; bottom: 2%; right: 2%; }

/* ============================================================
   EXPLORE MENU
   ============================================================ */
.menu {
  background: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .42)),
              url("assets/menu-bg.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.menu-inner {
  padding: 80px 24px 90px;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-title {
  font-family: "Alfa Slab One", serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.menu-title span { color: var(--red); }
.menu-body {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  font-weight: 600;
  margin-bottom: 34px;
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: url("assets/texture-light.jpg") center/cover no-repeat;
  color: #1c1c1c;
}
.footer-inner {
  padding: 56px 24px 40px;
  text-align: center;
}
.footer-logo { width: 175px; height: auto; margin: 0 auto 40px; }
.footer-cols {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.footer-col { min-width: 210px; }
.footer-col h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #111;
}
.footer-col p { color: #2a2a2a; font-size: 1.05rem; }
.footer-col a { color: #2a2a2a; text-decoration: none; }
.footer-col a:hover { color: var(--red); }

/* Live opening hours list (injected by SIPO uiManager into #footer-hours) */
.footer-hours {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}
.footer-hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
  padding: 3px 0;
  font-size: 1.02rem;
  color: #2a2a2a;
}
.footer-hours .day { font-weight: 700; min-width: 46px; }
.footer-hours .time { text-align: right; }
.footer-hours li.today { color: var(--red); font-weight: 700; }
.footer-hours li.today .day,
.footer-hours li.today .time { color: var(--red); }
.footer-hours .closed-day { opacity: .65; }
.footer-copy {
  font-size: .95rem;
  color: #2a2a2a;
  line-height: 1.7;
}
.footer-credits {
  font-size: .95rem;
  color: #2a2a2a;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
}
.footer-credits .credit-item { white-space: nowrap; } /* keep "Ordering Partner SIPO" together */
.footer-credits a { color: #2a2a2a; text-decoration: none; }
.footer-credits a:hover { color: var(--red); }
.footer-credits-sep { opacity: .5; }
@media (max-width: 480px) {
  /* On narrow phones, drop the dot and stack each credit on its own line */
  .footer-credits-sep { display: none; }
  .footer-credits { flex-direction: column; }
}

/* ============================================================
   FLOATING ONLINE ORDER BUTTON
   ============================================================ */
.floating-order {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: transform .18s ease, background .2s ease;
}
.floating-order:hover { transform: translateY(-3px) scale(1.03); background: var(--red-dark); }
.floating-order svg { flex: none; }
.floating-order-text { white-space: nowrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* Mobile navbar */
  .nav { justify-content: space-between; }
  .nav-brand { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--red);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    box-shadow: 0 12px 18px rgba(0, 0, 0, .2);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; text-align: center; border-top: 1px solid rgba(255, 255, 255, .18); }
  .nav-links a { display: block; padding: 16px; }
  .nav-book {
    display: inline-block;
    margin: 8px 0;
  }

  /* Hero stacks */
  .hero-inner { flex-direction: column; text-align: center; min-height: auto; }
  .hero-content { max-width: 100%; }
  .hero-logo { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  /* Crave stacks */
  .crave-inner { flex-direction: column; text-align: center; }
  .crave-content { flex-basis: auto; }
  .crave-plates { width: 100%; min-height: 300px; }

  /* Taste no fixed bg on mobile (perf) */
  .taste { background-attachment: scroll; }

  .footer-cols { gap: 36px; }
}

@media (max-width: 560px) {
  .btn-red, .btn-outline-dark { padding: 13px 30px; font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .taste-body p { text-align: left; }

  /* Floating button = icon only on mobile */
  .floating-order {
    right: 16px;
    bottom: 16px;
    padding: 0;
    width: 58px;
    height: 58px;
    justify-content: center;
    border-radius: 50%;
  }
  .floating-order-text { display: none; }
}
