/* ==========================================================================
   FlameHouse — Fast Food Website
   Global stylesheet
   ========================================================================== */

:root {
  --flame:        #E8340C;   /* primary flame red-orange */
  --flame-dark:   #B8260A;
  --orange:       #FF7A18;
  --yellow:       #FFC529;
  --char:         #17110E;   /* near-black charcoal */
  --char-2:       #241B16;
  --cream:        #FFF7EE;
  --cream-2:      #FBECD9;
  --ink:          #2B211B;
  --muted:        #7A6A5E;
  --line:         #EADFD0;
  --white:        #ffffff;
  --green:        #2FA84F;

  --shadow-sm: 0 2px 8px rgba(23,17,14,.08);
  --shadow-md: 0 12px 30px rgba(23,17,14,.12);
  --shadow-lg: 0 24px 60px rgba(23,17,14,.20);

  --radius:   16px;
  --radius-lg: 26px;
  --container: 1180px;

  --ff-display: 'Anton', 'Arial Narrow', sans-serif;
  --ff-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ------- reset ------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .display {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--char);
}

.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow { color: var(--flame); }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}

/* ------- buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .98rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--flame); color: #fff;
  box-shadow: 0 10px 22px rgba(232,52,12,.35);
}
.btn-primary:hover { background: var(--flame-dark); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(232,52,12,.4); }
.btn-dark { background: var(--char); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--char); border: 2px solid var(--char); }
.btn-ghost:hover { background: var(--char); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--char); box-shadow: 0 10px 22px rgba(255,197,41,.4); }
.btn-yellow:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ------- top ticker ------- */
.ticker {
  background: var(--char);
  color: var(--yellow);
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .5px;
}
.ticker-track { display: inline-flex; gap: 0; animation: ticker 26s linear infinite; padding: 9px 0; }
.ticker-track span { padding: 0 12px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------- header ------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,247,238,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--flame), var(--orange));
  display: grid; place-items: center; font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.brand .logo-text { font-family: var(--ff-display); font-size: 1.5rem; color: var(--char); letter-spacing: 1px; }
.brand .logo-text span { color: var(--flame); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: .96rem; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--flame); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cart-btn .cart-icon { font-size: 1.3rem; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--flame); color: #fff;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 100px; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}
.nav-toggle { display: none; font-size: 1.7rem; color: var(--char); }

/* ------- hero ------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,122,24,.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 100px; font-weight: 600; font-size: .85rem;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.hero h1 .flame-text { color: var(--flame); -webkit-text-stroke: 0; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); margin: 22px 0 30px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats .stat b { font-family: var(--ff-display); font-size: 2rem; color: var(--char); display: block; }
.hero-stats .stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; }
.hero-visual .plate {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--cream-2) 70%, #f2ddc2 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 14px rgba(255,255,255,.6);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-visual .plate img { width: 118%; transform: rotate(-8deg); filter: drop-shadow(0 22px 30px rgba(0,0,0,.25)); }
.hero-badge {
  position: absolute; background: #fff; border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-md); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-badge .emoji { font-size: 1.5rem; }
.hero-badge.b1 { top: 12%; left: -4%; animation: float 4s ease-in-out infinite; }
.hero-badge.b2 { bottom: 14%; right: -2%; animation: float 4s ease-in-out infinite .8s; }
.hero-badge small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ------- feature strip ------- */
.features { background: var(--char); color: #fff; }
.features .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 46px; padding-bottom: 46px; }
.feature-item { text-align: center; }
.feature-item .ic { font-size: 2rem; margin-bottom: 8px; }
.feature-item h4 { font-family: var(--ff-body); font-weight: 700; font-size: 1rem; text-transform: none; color: #fff; letter-spacing: 0; }
.feature-item p { color: rgba(255,255,255,.6); font-size: .85rem; }

/* ------- category chips ------- */
.cat-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.chip {
  padding: 10px 22px; border-radius: 100px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; transition: all .18s ease; display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { border-color: var(--flame); color: var(--flame); }
.chip.active { background: var(--flame); color: #fff; border-color: var(--flame); }

/* ------- menu grid ------- */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.food-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column; position: relative;
}
.food-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.food-card .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.food-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.food-card:hover .img-wrap img { transform: scale(1.07); }
.food-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--yellow); color: var(--char);
  font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: .5px;
}
.food-tag.spicy { background: var(--flame); color: #fff; }
.food-tag.veg { background: var(--green); color: #fff; }
.food-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.food-body .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.food-body h3 { font-family: var(--ff-body); font-weight: 700; font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--char); }
.food-body .price { font-family: var(--ff-display); font-size: 1.4rem; color: var(--flame); white-space: nowrap; }
.food-body .desc { color: var(--muted); font-size: .9rem; margin: 8px 0 16px; flex: 1; }
.food-body .meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.food-body .meta .star { color: var(--yellow); }
.add-btn {
  margin-top: auto; width: 100%;
  background: var(--char); color: #fff;
  padding: 12px; border-radius: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s ease, transform .1s ease;
}
.add-btn:hover { background: var(--flame); }
.add-btn.added { background: var(--green); }

/* ------- promo split ------- */
.promo { background: linear-gradient(120deg, var(--flame) 0%, var(--orange) 100%); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.promo-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.promo-text { padding: 60px 54px; }
.promo-text .eyebrow { color: rgba(255,255,255,.85); }
.promo-text h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.promo-text p { margin: 14px 0 26px; color: rgba(255,255,255,.9); font-size: 1.05rem; }
.promo-img { height: 100%; min-height: 320px; background-size: cover; background-position: center; }

/* ------- steps ------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { text-align: center; padding: 20px; }
.step .num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
  background: var(--cream-2); display: grid; place-items: center; font-family: var(--ff-display); font-size: 1.6rem; color: var(--flame);
  position: relative;
}
.step h3 { font-family: var(--ff-body); text-transform: none; letter-spacing: 0; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ------- testimonials ------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.testi .stars { color: var(--yellow); margin-bottom: 12px; letter-spacing: 2px; }
.testi p { font-size: .96rem; color: var(--ink); }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-weight: 700; color: var(--flame); }
.testi .who b { display: block; font-size: .92rem; }
.testi .who span { font-size: .8rem; color: var(--muted); }

/* ------- app / cta band ------- */
.cta-band { background: var(--char); color: #fff; border-radius: var(--radius-lg); padding: 60px 54px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { color: rgba(255,255,255,.75); max-width: 520px; margin: 14px auto 28px; }
.cta-band .glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(232,52,12,.5), transparent 70%); top: -120px; right: -80px; }

/* ------- footer ------- */
.site-footer { background: var(--char-2); color: rgba(255,255,255,.75); padding: 70px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { font-family: var(--ff-body); text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; color: #fff; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.6); font-size: .92rem; margin-bottom: 10px; transition: color .18s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-brand .logo-text { font-family: var(--ff-display); font-size: 1.6rem; color: #fff; }
.footer-brand .logo-text span { color: var(--flame); }
.footer-brand p { margin-top: 14px; max-width: 260px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 1.1rem; margin: 0; }
.socials a:hover { background: var(--flame); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 24px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ------- page header (subpages) ------- */
.page-hero { background: var(--char); color: #fff; padding: 60px 0; text-align: center; position: relative; overflow: hidden; }
.page-hero .glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,24,.35), transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); position: relative; }
.page-hero p { color: rgba(255,255,255,.7); position: relative; margin-top: 8px; }
.breadcrumb { position: relative; font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 14px; }
.breadcrumb a:hover { color: var(--yellow); }

/* ------- cart page ------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 30px; align-items: start; }
.cart-items { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: none; }
.cart-row .thumb { width: 88px; height: 72px; border-radius: 12px; object-fit: cover; }
.cart-row h4 { font-family: var(--ff-body); text-transform: none; letter-spacing: 0; font-size: 1.02rem; }
.cart-row .unit { color: var(--muted); font-size: .86rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.qty button { width: 30px; height: 30px; font-size: 1.1rem; font-weight: 700; color: var(--char); }
.qty button:hover { background: var(--cream-2); }
.qty span { width: 34px; text-align: center; font-weight: 700; }
.cart-row .line-price { font-family: var(--ff-display); font-size: 1.3rem; color: var(--char); }
.cart-row .rm { color: var(--muted); font-size: .78rem; margin-top: 6px; display: inline-block; }
.cart-row .rm:hover { color: var(--flame); }

.summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; position: sticky; top: 100px; }
.summary h3 { font-family: var(--ff-body); text-transform: none; letter-spacing: 0; font-size: 1.3rem; margin-bottom: 18px; }
.summary .line { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); font-size: .95rem; }
.summary .line.total { border-top: 2px dashed var(--line); margin-top: 10px; padding-top: 16px; color: var(--char); font-weight: 700; font-size: 1.25rem; }
.summary .total .amt { font-family: var(--ff-display); color: var(--flame); }
.summary input, .summary textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: .95rem; margin-bottom: 12px; background: var(--cream);
}
.summary input:focus, .summary textarea:focus { outline: none; border-color: var(--flame); }
.summary label { font-weight: 600; font-size: .85rem; display: block; margin-bottom: 6px; }
.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart .big { font-size: 4rem; }
.empty-cart h3 { font-family: var(--ff-body); text-transform: none; letter-spacing: 0; margin: 14px 0 8px; }
.empty-cart p { color: var(--muted); margin-bottom: 22px; }

/* ------- toast ------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--char); color: #fff; padding: 14px 24px; border-radius: 100px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); z-index: 2000;
  transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--yellow); }

/* ------- reveal animation ------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------- mobile nav ------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1500; background: var(--cream);
  transform: translateX(100%); transition: transform .3s ease;
  padding: 90px 30px 40px; display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--ff-display); font-size: 1.8rem; color: var(--char); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .close { position: absolute; top: 24px; right: 26px; font-size: 2rem; }

/* ------- responsive ------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 20px auto 0; }
  .menu-grid, .testi-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .features .container { grid-template-columns: repeat(2, 1fr); }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-img { min-height: 240px; order: -1; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .menu-grid, .testi-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .promo-text { padding: 40px 30px; }
  .cta-band, .cart-band { padding: 44px 26px; }
  .hero-stats { gap: 22px; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row .col-price { grid-column: 2; }
}
