/*
Theme Name: Biryani House
Theme URI: https://example.com/biryani-house
Author: Biryani House
Author URI: https://example.com
Description: A dark, brass-and-saffron theme for biryani kitchens and takeaways. Ships with a "Biryani Items" menu post type, spice/price/serves fields, a takeaway order form that saves orders in WordPress, and one-click demo data.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biryani-house
Tags: restaurant, food, custom-menu, custom-logo, featured-images, translation-ready, dark-mode
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
  --handi:      #150d10; /* blackened base of the degh */
  --degh:       #23151a; /* raised surface */
  --degh-hi:    #2e1c22;
  --line:       #3b2630;
  --brass:      #d6a648;
  --brass-dim:  #8a6a2c;
  --saffron:    #e9963b;
  --mint:       #93b87c; /* the chutney counterpoint */
  --rice:       #f6f1e4;
  --rice-dim:   #b3a897;

  --display: "Yeseva One", "Hoefler Text", Georgia, serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --util: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.8rem + 4.4vw, 5.6rem);

  --gut: clamp(1.15rem, 4vw, 3rem);
  --max: 1180px;
  --rule: 1px solid var(--line);
}

/* ==========================================================================
   1. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--handi);
  color: var(--rice);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.06; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
blockquote { margin: 0; }
button { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 999; width: auto; height: auto;
  clip: auto; background: var(--brass); color: var(--handi); padding: .6rem 1rem;
}

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.band { padding-block: clamp(3.5rem, 9vw, 7rem); }
.band--line { border-top: var(--rule); }
.eyebrow {
  font-family: var(--util); font-size: var(--step--1); letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lede { font-size: var(--step-1); color: var(--rice-dim); max-width: 46ch; line-height: 1.5; }
.muted { color: var(--rice-dim); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font-family: var(--util); font-size: var(--step--1); letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.6rem; border-radius: 2px; border: 1px solid var(--brass);
  background: var(--brass); color: var(--handi);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--saffron); border-color: var(--saffron); color: var(--handi); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--brass); }
.btn--ghost:hover { background: var(--brass); color: var(--handi); }
.btn--mint { background: var(--mint); border-color: var(--mint); }
.btn--mint:hover { background: var(--rice); border-color: var(--rice); }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--handi) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--rice); }
.brand:hover { color: var(--rice); }
.brand img { max-height: 46px; width: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--display); font-size: var(--step-1); line-height: 1; }
.brand__tag {
  display: block; font-family: var(--util); font-size: .62rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--brass-dim); margin-top: .3rem;
}
.nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--util); font-size: var(--step--1); letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--rice-dim);
  padding-block: .4rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav .current-menu-item > a { color: var(--rice); border-bottom-color: var(--brass); }
.head__actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--rice);
  padding: .55rem .7rem; border-radius: 2px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px 0; transition: transform .3s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--degh);
    border-bottom: var(--rule); padding: 1.5rem var(--gut) 2rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav a { font-size: 1rem; }
  .head__actions .btn { display: none; }
}

/* ==========================================================================
   4. Hero — the signature "dum strata"
   ========================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: var(--rule); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 78% 12%, rgba(233,150,59,.16), transparent 62%),
    radial-gradient(90% 70% at 8% 92%, rgba(147,184,124,.09), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { letter-spacing: -.015em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; margin-top: 2.2rem;
  font-family: var(--util); font-size: var(--step--1); color: var(--rice-dim);
  letter-spacing: .06em;
}
.hero__meta b { color: var(--rice); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Strata diagram */
.strata { border: var(--rule); background: var(--degh); padding: 1.4rem; border-radius: 3px; }
.strata__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--util); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-dim); margin-bottom: 1.1rem;
}
.layer {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center;
  gap: .9rem; padding: .62rem 0; border-top: 1px dashed var(--line);
  opacity: 0; transform: translateY(8px);
  animation: layerIn .55s cubic-bezier(.2,.7,.3,1) forwards;
}
.layer:first-of-type { border-top: 0; }
.layer:nth-of-type(1) { animation-delay: .1s; }
.layer:nth-of-type(2) { animation-delay: .22s; }
.layer:nth-of-type(3) { animation-delay: .34s; }
.layer:nth-of-type(4) { animation-delay: .46s; }
.layer:nth-of-type(5) { animation-delay: .58s; }
.layer:nth-of-type(6) { animation-delay: .7s; }
@keyframes layerIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .layer { opacity: 1; transform: none; } }
.layer__no { font-family: var(--util); font-size: .68rem; color: var(--brass-dim); }
.layer__name { font-family: var(--display); font-size: 1.02rem; line-height: 1.2; }
.layer__name small { display: block; font-family: var(--body); font-size: .78rem; color: var(--rice-dim); letter-spacing: 0; }
.layer__swatch { width: 46px; height: 12px; border-radius: 1px; }

/* ==========================================================================
   5. Menu grid + item cards
   ========================================================================== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem;
}
.section-head h2 { margin-bottom: 0; }
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: var(--degh);
  border: var(--rule); border-radius: 3px; overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--brass-dim); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--degh-hi); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__flag {
  position: absolute; left: .7rem; top: .7rem; z-index: 2;
  font-family: var(--util); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--handi); color: var(--mint); border: 1px solid var(--mint);
  padding: .25rem .5rem; border-radius: 2px;
}
.card__body { padding: 1.15rem 1.15rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-family: var(--util); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dim); }
.card h3 { font-size: var(--step-1); margin: .5rem 0 .55rem; }
.card h3 a { color: var(--rice); text-decoration: none; }
.card h3 a:hover { color: var(--brass); }
.card__desc { font-size: .9rem; color: var(--rice-dim); margin: 0 0 1rem; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.price { font-family: var(--util); font-size: 1.05rem; color: var(--brass); letter-spacing: .02em; }
.card .btn { padding: .62rem 1rem; font-size: .66rem; }

/* Spice meter */
.spice { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--util); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rice-dim); }
.spice__dots { display: inline-flex; gap: 3px; }
.spice__dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--brass-dim); }
.spice__dot.is-on { background: var(--saffron); border-color: var(--saffron); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a {
  font-family: var(--util); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--rice-dim); border: var(--rule); border-radius: 2px;
  padding: .5rem .85rem;
}
.chips a:hover, .chips a.is-active { color: var(--handi); background: var(--brass); border-color: var(--brass); }

/* ==========================================================================
   6. Single item
   ========================================================================== */
.item { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .item { grid-template-columns: 1fr; } }
.item__media { border: var(--rule); border-radius: 3px; overflow: hidden; background: var(--degh); }
.item__facts { list-style: none; margin: 1.8rem 0; padding: 0; border-top: var(--rule); }
.item__facts li {
  display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0;
  border-bottom: var(--rule); font-family: var(--util); font-size: var(--step--1);
  color: var(--rice-dim); letter-spacing: .06em;
}
.item__facts b { color: var(--rice); font-weight: 500; }
.item__price { font-family: var(--util); font-size: var(--step-2); color: var(--brass); }

/* ==========================================================================
   7. Feature strip / steps
   ========================================================================== */
.feats { display: grid; gap: 1px; background: var(--line); border: var(--rule); border-radius: 3px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.feat { background: var(--handi); padding: 1.8rem 1.5rem; }
.feat h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feat p { font-size: .9rem; color: var(--rice-dim); margin: 0; }
.feat__ico { color: var(--brass); margin-bottom: 1rem; }

/* ==========================================================================
   8. Testimonials
   ========================================================================== */
.quotes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { border: var(--rule); border-left: 2px solid var(--brass); background: var(--degh); padding: 1.6rem; border-radius: 3px; }
.quote p { font-family: var(--display); font-size: var(--step-1); line-height: 1.35; margin: 0 0 1rem; }
.quote cite { font-family: var(--util); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dim); font-style: normal; }

/* ==========================================================================
   9. Order form + basket
   ========================================================================== */
.order { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-family: var(--util); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-dim); margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--degh); color: var(--rice); font: inherit;
  border: var(--rule); border-radius: 2px; padding: .8rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field--row { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.notice { border: 1px solid var(--mint); background: rgba(147,184,124,.1); color: var(--rice); padding: 1rem 1.1rem; border-radius: 2px; margin-bottom: 2rem; }
.notice--warn { border-color: var(--saffron); background: rgba(233,150,59,.1); }

.basket { border: var(--rule); background: var(--degh); border-radius: 3px; padding: 1.4rem; position: sticky; top: 96px; }
.basket h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.basket__list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.basket__list li { display: flex; justify-content: space-between; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.basket__list button { background: none; border: 0; color: var(--rice-dim); cursor: pointer; padding: 0 0 0 .5rem; }
.basket__list button:hover { color: var(--saffron); }
.basket__total { display: flex; justify-content: space-between; font-family: var(--util); border-top: var(--rule); padding-top: 1rem; }
.basket__total span:last-child { color: var(--brass); }
.basket__empty { font-size: .9rem; color: var(--rice-dim); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 140%);
  background: var(--brass); color: var(--handi); padding: .8rem 1.3rem; border-radius: 2px;
  font-family: var(--util); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  z-index: 200; transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.toast.is-up { transform: translate(-50%, 0); }

/* ==========================================================================
   10. Editor content / pages
   ========================================================================== */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose img { border-radius: 3px; margin-block: 1.8rem; }
.prose ul li, .prose ol li { margin-bottom: .5em; }
.prose blockquote { border-left: 2px solid var(--brass); padding-left: 1.2rem; font-family: var(--display); font-size: var(--step-1); }
.wp-caption-text, .prose figcaption { font-family: var(--util); font-size: .72rem; color: var(--rice-dim); }
.alignleft { float: left; margin: .4rem 1.6rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.6rem; }
.aligncenter { margin-inline: auto; }
.page-hero { border-bottom: var(--rule); padding-block: clamp(2.8rem, 6vw, 4.6rem); }
.page-hero h1 { margin-bottom: .3em; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-foot { border-top: var(--rule); background: var(--degh); padding-block: clamp(2.8rem, 6vw, 4.4rem) 2rem; margin-top: 0; }
.foot__grid { display: grid; gap: 2.2rem; grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 780px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__grid h4 { font-family: var(--util); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem; }
.foot__grid ul { list-style: none; margin: 0; padding: 0; }
.foot__grid li { margin-bottom: .55rem; font-size: .92rem; color: var(--rice-dim); }
.foot__grid a { color: var(--rice-dim); text-decoration: none; }
.foot__grid a:hover { color: var(--brass); }
.hours { font-family: var(--util); font-size: .82rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.foot__base {
  border-top: var(--rule); margin-top: 2.8rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--util); font-size: .68rem; letter-spacing: .1em; color: var(--brass-dim);
}

/* ==========================================================================
   12. Pagination / misc
   ========================================================================== */
.pagination { margin-top: 3rem; font-family: var(--util); font-size: var(--step--1); }
.pagination .page-numbers { padding: .5rem .8rem; border: var(--rule); border-radius: 2px; text-decoration: none; margin-right: .35rem; }
.pagination .current { background: var(--brass); color: var(--handi); border-color: var(--brass); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
