/*
Theme Name: Khao Bae
Theme URI: https://khaobae.com/
Author: Khao Bae
Author URI: https://khaobae.com/
Description: Bold, GenZ street-food delivery theme for Khao Bae — Karachi's delivery-only heritage street food & Asian-fusion brand. Converted from the original khaobae.com one-page design (mustard/green/cream palette, Archivo Black + Space Grotesk).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khaobae
*/

/* ==========================================================================
   1. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--cream);
  color: var(--green);
  overflow-x: clip;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

:root {
  --mustard: #f6a605;
  --green: #0b5e2d;
  --cream: #f0e6dc;
  --radius: 1rem;
}

.font-display { font-family: 'Archivo Black', sans-serif; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

section[id] { scroll-margin-top: 4.5rem; }

.kb-container {
  max-width: 72rem; /* 1152px */
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .kb-container { padding-inline: 1.5rem; }
}

/* ==========================================================================
   2. Animations
   ========================================================================== */
@keyframes kb-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.kb-marquee-track { animation: kb-marquee 22s linear infinite; }

@keyframes kb-wobble {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(-1deg); }
}
.kb-wobble { animation: kb-wobble 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .kb-marquee-track, .kb-wobble { animation: none; }
}

.kb-leader {
  background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.4px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  background-position: bottom;
}

.kb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.kb-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .kb-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.kb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.kb-btn:hover { transform: translateY(-2px); }
.kb-btn:active { transform: scale(0.98); }
.kb-btn svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.kb-btn:hover svg { transform: translate(2px, -2px); }

.kb-btn--order { background: var(--green); color: var(--cream); }
.kb-btn--order-inverse { background: var(--mustard); color: var(--green); }
.kb-btn--order-solid { background: var(--green); border-color: var(--green); color: var(--cream); }
.kb-btn--outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}
.kb-btn--outline:hover { background: var(--green); color: var(--cream); }
.kb-btn--header { padding: 0.5rem 1rem; font-size: 0.75rem; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--green);
  background: rgba(240, 230, 220, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}
.site-header__logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
}
.site-header__logo .kb-accent {
  color: var(--mustard);
  text-shadow: 1px 1px 0 var(--green);
}
.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.site-header__nav a { transition: opacity 0.2s ease; }
.site-header__nav a:hover { opacity: 0.6; }
@media (min-width: 768px) {
  .site-header__nav { display: flex; }
}
.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header__nav-list li { list-style: none; }

/* ==========================================================================
   5. Marquee
   ========================================================================== */
.kb-marquee {
  overflow: hidden;
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  padding-block: 0.75rem;
  background: var(--green);
  color: var(--mustard);
}
.kb-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}
.kb-marquee-row { display: flex; }
.kb-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline: 1.5rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.kb-marquee-item svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: 6rem; }
.hero__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 4rem;
  padding-top: 2.5rem;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .hero { padding-top: 4rem; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid var(--green);
  background: var(--mustard);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__badge svg { width: 1rem; height: 1rem; }
.hero__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__title .kb-accent {
  color: var(--mustard);
  text-shadow: 3px 3px 0 var(--green);
}
@media (min-width: 640px) { .hero__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 6rem; } }
.hero__lead {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.hero__media { position: relative; }
.hero__media-wrap { position: relative; margin-inline: auto; max-width: 24rem; }
@media (min-width: 1024px) { .hero__media-wrap { max-width: none; } }
.hero__media-bg {
  position: absolute;
  inset: -0.75rem;
  transform: rotate(-2deg);
  border-radius: 2rem;
  background: var(--mustard);
}
.hero__media-img {
  position: relative;
  width: 100%;
  transform: rotate(1deg);
  border-radius: 2rem;
  border: 2px solid var(--green);
  object-fit: cover;
  box-shadow: 8px 8px 0 var(--green);
}
.hero__sticker-top {
  position: absolute;
  right: -0.75rem;
  top: -1.25rem;
  border-radius: 9999px;
  border: 2px solid var(--green);
  background: var(--green);
  padding: 0.5rem 1rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--mustard);
}
.hero__sticker-bottom {
  position: absolute;
  bottom: -1rem;
  left: -0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transform: rotate(-3deg);
  border-radius: 9999px;
  border: 2px solid var(--green);
  background: var(--cream);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 var(--green);
}
.hero__sticker-bottom svg { width: 0.875rem; height: 0.875rem; fill: var(--mustard); color: var(--green); }

/* ==========================================================================
   7. Section spacing helpers
   ========================================================================== */
.kb-section { padding-block: 5rem; }
@media (min-width: 640px) { .kb-section { padding-block: 7rem; } }
.kb-section--tight { padding-block: 5rem; }
@media (min-width: 640px) { .kb-section--tight { padding-block: 6rem; } }

.kb-eyebrow {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kb-eyebrow svg { width: 1rem; height: 1rem; }

.kb-h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.25rem;
  text-transform: uppercase;
  line-height: 0.95;
}
@media (min-width: 640px) { .kb-h2 { font-size: 3.75rem; } }
.kb-h2 .kb-accent { color: var(--mustard); }
.kb-h2 .kb-accent--shadow { text-shadow: 2px 2px 0 var(--green); }

/* ==========================================================================
   8. Spotlight
   ========================================================================== */
.spotlight { background: var(--green); color: var(--cream); }
.spotlight__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .spotlight__grid { grid-template-columns: 1fr 1fr; } }
.spotlight__media { position: relative; order: 2; }
.spotlight__text { order: 1; }
@media (min-width: 1024px) {
  .spotlight__media { order: 1; }
  .spotlight__text { order: 2; }
}
.spotlight__img {
  width: 100%;
  transform: rotate(-1deg);
  border-radius: 2rem;
  border: 2px solid var(--cream);
  object-fit: cover;
  box-shadow: 10px 10px 0 var(--mustard);
}
.spotlight__badge {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  transform: rotate(2deg);
  border-radius: 9999px;
  background: var(--mustard);
  padding: 0.5rem 1rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--green);
}
.spotlight__eyebrow { color: var(--mustard); }
.spotlight p.kb-copy { margin-top: 1.5rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.7; color: rgba(240,230,220,0.9); }
.spotlight p.kb-copy + p.kb-copy { margin-top: 1rem; }
.spotlight .kb-accent-inline { font-weight: 700; color: var(--mustard); }
.spotlight__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.spotlight__tag {
  border-radius: 9999px;
  border: 2px solid var(--mustard);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--mustard);
}
.spotlight .kb-btn { margin-top: 2rem; }

/* ==========================================================================
   9. Menu
   ========================================================================== */
.menu-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem 3rem; }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-cat__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.75rem;
}
.menu-cat__head svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.menu-cat__title { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.menu-cat__note { margin-left: auto; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; text-align: right; }
.menu-cat__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.menu-item__row { display: flex; align-items: flex-end; gap: 0.75rem; }
.menu-item__img {
  display: none;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  transform: rotate(-2deg);
  border-radius: 0.75rem;
  border: 2px solid var(--green);
  object-fit: cover;
  transition: transform 0.2s ease;
}
.menu-item__row:hover .menu-item__img { transform: rotate(2deg); }
@media (min-width: 640px) { .menu-item__img { display: block; } }
.menu-item__body { min-width: 0; flex: 1; }
.menu-item__title-row { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-item__name { font-family: 'Archivo Black', sans-serif; font-size: 1rem; text-transform: uppercase; line-height: 1.3; }
@media (min-width: 640px) { .menu-item__name { font-size: 1.125rem; } }
.menu-item__leader { flex: 1; margin-inline: 0.25rem; opacity: 0.4; display: none; }
@media (min-width: 640px) { .menu-item__leader { display: block; } }
.menu-item__tag {
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--mustard);
  padding: 0.125rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.menu-item__desc { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; opacity: 0.8; }

.menu-cta {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 2rem;
  border: 2px solid var(--green);
  background: var(--mustard);
  padding: 2rem;
  text-align: center;
}
@media (min-width: 640px) { .menu-cta { padding: 2.5rem; } }
.menu-cta__title { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; text-transform: uppercase; line-height: 1.2; }
@media (min-width: 640px) { .menu-cta__title { font-size: 1.875rem; } }
.menu-cta__body { max-width: 28rem; font-weight: 500; }

/* ==========================================================================
   10. Story
   ========================================================================== */
.story { background: var(--mustard); }
.story__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .story__grid { grid-template-columns: 1fr 1.1fr; } }
.story__media { position: relative; }
.story__media-bg { position: absolute; inset: -0.75rem; transform: rotate(2deg); border-radius: 2rem; background: var(--cream); }
.story__img {
  position: relative;
  width: 100%;
  transform: rotate(-1deg);
  border-radius: 2rem;
  border: 2px solid var(--green);
  object-fit: cover;
  box-shadow: 8px 8px 0 var(--green);
}
.story__badge {
  position: absolute;
  bottom: -1rem;
  right: 1.5rem;
  transform: rotate(2deg);
  border-radius: 9999px;
  border: 2px solid var(--green);
  background: var(--green);
  padding: 0.5rem 1rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--cream);
}
.story .kb-lead { margin-top: 1.5rem; max-width: 32rem; font-size: 1.125rem; font-weight: 500; line-height: 1.7; }
.story .kb-lead + .kb-lead { margin-top: 1rem; }

/* ==========================================================================
   11. Instagram section
   ========================================================================== */
.ig-section { text-align: center; }
.ig-section__inner { max-width: 56rem; margin-inline: auto; }
.ig-section__icon {
  margin-inline: auto;
  margin-bottom: 1.5rem;
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 2px solid var(--green);
  background: var(--mustard);
  box-shadow: 4px 4px 0 var(--green);
}
.ig-section__icon svg { width: 2rem; height: 2rem; }
.ig-section p { margin-inline: auto; margin-top: 1.25rem; max-width: 28rem; font-size: 1.125rem; font-weight: 500; line-height: 1.7; }
.ig-section .kb-btn { margin-top: 2rem; background: var(--green); border-color: var(--green); color: var(--cream); }

/* ==========================================================================
   12. Contact
   ========================================================================== */
.contact { background: var(--green); color: var(--cream); }
.contact__grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.contact__card {
  height: 100%;
  border-radius: 1.5rem;
  border: 2px solid rgba(240, 230, 220, 0.4);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.contact__card:hover { border-color: var(--mustard); }
.contact__card svg { width: 1.75rem; height: 1.75rem; color: var(--mustard); }
.contact__card h3 { margin-top: 1rem; font-family: 'Archivo Black', sans-serif; font-size: 1.125rem; text-transform: uppercase; }
.contact__card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: rgba(240,230,220,0.85); }
.contact__card a {
  margin-top: 1rem;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--mustard);
  text-underline-offset: 4px;
}
.contact__card a:hover { text-decoration: underline; }
.contact__card a svg { width: 1rem; height: 1rem; color: var(--mustard); }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { border-top: 2px solid rgba(240, 230, 220, 0.2); background: var(--green); padding-block: 2rem; color: var(--cream); }
.site-footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .site-footer__row { flex-direction: row; } }
.site-footer__brand { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; }
.site-footer__tagline { color: rgba(240, 230, 220, 0.7); }
.site-footer__links { display: flex; align-items: center; gap: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.site-footer__links a:hover { color: var(--mustard); }
.site-footer__copy { margin-top: 1.5rem; text-align: center; font-size: 0.75rem; color: rgba(240, 230, 220, 0.5); }

/* ==========================================================================
   14. Generic page/post fallback (for non-front pages, if any are added)
   ========================================================================== */
.kb-page { padding-top: 8rem; padding-bottom: 5rem; }
.kb-page__title { font-family: 'Archivo Black', sans-serif; font-size: 2.5rem; text-transform: uppercase; line-height: 1; }
.kb-page__content { margin-top: 1.5rem; max-width: 42rem; font-size: 1.05rem; line-height: 1.75; }
.kb-page__content p { margin-bottom: 1.25rem; }
.kb-page__content a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
