/* Taj Indian Cuisine — public theme stylesheet.

   Page bodies are authored with inline styles in the templates to stay
   byte-faithful to the design export. This file carries:
     - brand tokens (the single source of truth — :root variables);
     - reset, keyframes;
     - :hover states (inline styles can't express :hover);
     - the responsive nav + full-screen mobile drawer (hamburger → X morph);
     - the marquee, menu jump-flash and lazy food video helpers. */

/* ── Brand tokens — ONE place. Templates mirror these hexes inline for export
      fidelity; author all *new* CSS against the variables. ─────────────────── */
:root{
  --taj-cream:#F4EBD9;        /* ground            */
  --taj-card:#FBF5EA;         /* warm card         */
  --taj-teal:#0E3E42;         /* peacock teal      */
  --taj-teal-dark:#0A2C2F;    /* darker teal       */
  --taj-teal-hi:#14535A;      /* teal hover        */
  --taj-oxblood:#5E1E26;      /* primary buttons   */
  --taj-oxblood-hi:#7A2630;   /* oxblood hover     */
  --taj-gold:#C8902E;         /* marigold gold     */
  --taj-gold-hi:#D9A93E;      /* gold hover        */
  --taj-gold-lt:#E8C77A;      /* light gold        */
  --taj-eyebrow:#B07A2A;      /* eyebrow gold      */
  --taj-ink:#1C1611;          /* headings ink      */
  --taj-body:#4A3E30;         /* body copy         */
  --taj-muted:#6E6052;
  --taj-muted-2:#9A8A74;
  --taj-cream-1:#F8EFDC;      /* cream on dark     */
  --taj-cream-2:#F0E2C4;
  --taj-cream-3:#E2D7C2;
  --taj-veg:#1A6E4E;          /* veg green         */
  --taj-gf:#9A6A1E;           /* GF amber          */
  --taj-serif:'Yeseva One',Georgia,serif;
  --taj-sans:'Hanken Grotesk',system-ui,-apple-system,sans-serif;
}

/* ── Reset (mirrors the export global style) ─────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0;}
html{min-height:100%;-webkit-text-size-adjust:100%;background-color:var(--taj-teal-dark);}
body{min-height:100vh;min-height:100svh;background:var(--taj-teal-dark);color:var(--taj-ink);font-family:var(--taj-sans);
  display:flex;flex-direction:column;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body > main{flex:1 0 auto;background:var(--taj-cream);}
body > footer{flex-shrink:0;}
button{font-family:inherit;color:inherit;}
img{display:block;max-width:100%;}
a{color:inherit;}
::selection{background:var(--taj-gold);color:var(--taj-teal);}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes tajFade{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:translateY(0);}}
@keyframes tajMarquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* ── Hover states (inline base appearance; :hover wins with !important) ───── */
.taj-hov-gold:hover{background:var(--taj-gold-hi) !important;}
.taj-hov-oxblood:hover{background:var(--taj-oxblood-hi) !important;}
.taj-hov-teal:hover{background:var(--taj-teal-hi) !important;}
.taj-hov-fill-oxblood:hover{background:var(--taj-oxblood) !important;color:var(--taj-cream) !important;}
.taj-hov-fill-oxblood-b:hover{background:var(--taj-oxblood) !important;color:var(--taj-cream) !important;border-color:var(--taj-oxblood) !important;}
.taj-hov-border-cream:hover{border-color:var(--taj-cream) !important;}
.taj-hov-ghost-cream:hover{border-color:var(--taj-cream) !important;background:rgba(244,235,217,.08) !important;}
.taj-hov-border-gold:hover{border-color:var(--taj-gold) !important;}
.taj-hov-outline-oxblood:hover{background:rgba(94,30,38,.07) !important;}
.taj-hov-gold-text:hover{color:var(--taj-gold-lt) !important;}
.taj-hov-marigold-text:hover{color:var(--taj-gold) !important;}
.taj-hov-white:hover{color:#fff !important;}
.taj-hov-jumplink:hover{border-bottom-color:var(--taj-gold) !important;}

/* ── Responsive nav (replaces the export's JS isMobile/<900 switch) ──────── */
.taj-desktop-nav{display:flex;}
.taj-mobile-btn{display:none;}
@media (max-width:899px){
  .taj-desktop-nav{display:none;}
  .taj-mobile-btn{display:inline-flex;}
}

/* ── Hamburger → X morph (same button, animated in place) ────────────────── */
.taj-bar{position:absolute;left:9px;width:26px;height:2.5px;background:#2C2018;border-radius:2px;
  transform-origin:center;transition:transform .32s cubic-bezier(.6,.05,.3,1),opacity .2s ease,top .32s cubic-bezier(.6,.05,.3,1);}
.taj-bar-top{top:15px;} .taj-bar-mid{top:21px;} .taj-bar-bot{top:27px;}
body.taj-drawer-lock .taj-bar-top{top:21px;transform:rotate(45deg);}
body.taj-drawer-lock .taj-bar-mid{opacity:0;transform:scaleX(.3);}
body.taj-drawer-lock .taj-bar-bot{top:21px;transform:rotate(-45deg);}

/* ── Full-screen mobile drawer ───────────────────────────────────────────── */
.taj-drawer{display:none;}
.taj-drawer.is-open{display:flex;}
body.taj-drawer-lock{overflow:hidden;}

/* ── Smooth in-page jumps (menu "jump to" + marquee deep-links) ──────────── */
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

/* ── Marquee (home) ──────────────────────────────────────────────────────── */
.taj-marquee-track{display:flex;width:max-content;animation:tajMarquee 38s linear infinite;}
.taj-marquee-track:hover{animation-play-state:paused;}
@media (prefers-reduced-motion:reduce){.taj-marquee-track{animation:none;}}

/* ── Footer columns: 4-up desktop, 2-up phones ───────────────────────────── */
.taj-footer-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}
@media (max-width:600px){ .taj-footer-grid{grid-template-columns:repeat(2,1fr);} }

/* ── Cookie consent banner — flat jali-corner treatment.
   The engine injects #blackrail-cookie-css AFTER this file, so colours use
   !important; layout/visibility is left to the engine. Intentional geometric
   corner detail, no top stripe, gradients, shine, or generic ornament wash. */
.blackrail-cookie-banner{
  position:fixed;overflow:hidden;isolation:isolate;
  --taj-cookie-jali:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath d='M7 47V20C7 12.8 12.8 7 20 7h27' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M15 47V23c0-4.4 3.6-8 8-8h24' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M7 36h13c4.4 0 8-3.6 8-8V15' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Ccircle cx='15' cy='36' r='1.5' fill='%23000'/%3E%3Ccircle cx='28' cy='15' r='1.5' fill='%23000'/%3E%3C/svg%3E");
  background:#0A2C2F !important;color:var(--taj-cream) !important;
  border:1px solid rgba(200,144,46,.48) !important;
  border-radius:8px !important;box-shadow:0 12px 34px rgba(0,0,0,.36) !important;
  font-family:'Hanken Grotesk',system-ui,-apple-system,sans-serif !important;
  /* Clear the corner jali flourishes so the text/buttons never overlap them. */
  padding:16px 72px !important;
}
.blackrail-cookie-banner::before,.blackrail-cookie-banner::after{content:"" !important;position:absolute;width:48px;height:48px;background:var(--taj-gold);opacity:.32;pointer-events:none;z-index:0;-webkit-mask:var(--taj-cookie-jali) center/contain no-repeat;mask:var(--taj-cookie-jali) center/contain no-repeat;}
.blackrail-cookie-banner::before{left:10px;top:10px;}
.blackrail-cookie-banner::after{right:10px;bottom:10px;transform:rotate(180deg);}
.blackrail-cookie-banner > *{position:relative;z-index:1;}
.blackrail-cookie-banner p{color:rgba(244,235,217,.9) !important;}
.blackrail-cookie-banner button{position:relative;overflow:hidden;border-radius:5px !important;font-weight:700 !important;letter-spacing:.02em;border:1px solid transparent !important;}
.blackrail-cookie-banner button::before{content:none !important;}
.blackrail-cookie-banner .blackrail-cookie-accept{background:var(--taj-gold) !important;color:var(--taj-ink) !important;border-color:var(--taj-gold) !important;}
.blackrail-cookie-banner .blackrail-cookie-accept:hover{background:var(--taj-gold-hi) !important;color:var(--taj-ink) !important;border-color:var(--taj-gold-hi) !important;}
.blackrail-cookie-banner .blackrail-cookie-decline{background:var(--taj-teal-dark) !important;color:var(--taj-cream) !important;border-color:rgba(200,144,46,.52) !important;}
.blackrail-cookie-banner .blackrail-cookie-decline:hover{background:var(--taj-teal) !important;color:#fff !important;border-color:var(--taj-gold) !important;}
/* Phones: the banner stacks and centres, leaving no room for corner flourishes — drop them and restore compact padding. */
@media (max-width:640px){
  .blackrail-cookie-banner{padding:14px !important;}
  .blackrail-cookie-banner::before,.blackrail-cookie-banner::after{display:none !important;}
}

/* Footer gift-card link: the Reservations & Ordering plugin renders a bare
   .br-reserve-btn anchor; scope the footer link treatment onto it. */
.taj-footer-gift .br-reserve-btn{text-decoration:none;font:500 13.5px/1.4 'Hanken Grotesk';color:#E2D7C2;}
.taj-footer-gift .br-reserve-btn:hover{color:var(--taj-gold-lt);}

/* Home gallery: three tiles — 3-up on desktop/tablet, stacked on phones.
   Three columns (or one) avoids orphaning a tile at any width. */
.taj-gallery{grid-template-columns:repeat(3,1fr);}
@media (max-width:640px){ .taj-gallery{grid-template-columns:1fr;} }
