@import url("../fonts/fonts.css");

/* ============================================================================
   Jaani Food Junction — public theme
   Visual language adapted from the Restoria "Category Hero" reference:
   dark-green ground, white text, gold (#E6B15F) accent, Fraunces display + Urbanist body.
   ========================================================================== */

:root {
  --main-color: #E6B15F;
  --main-color-dark: #cf9a45;
  --white: #ffffff;
  --color-one: #18312E;   /* page ground */
  --color-two: #152C29;   /* alt sections */
  --color-three: #A7A7A7; /* muted text */
  --color-four: #5E6F6D;  /* borders */
  --color-five: #0E0D0C;
  --w-80: rgba(255,255,255,.80);
  --w-60: rgba(255,255,255,.60);
  --w-40: rgba(255,255,255,.40);
  --w-20: rgba(255,255,255,.20);
  --w-10: rgba(255,255,255,.10);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1326px;
  --section-pad: clamp(56px, 9vw, 100px);
  --radius: 0px;
}

*, *::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; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: .3px;
  color: var(--white);
  background: var(--color-one);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
a { color: var(--main-color); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--main-color); outline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 .4em;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.18;
  color: var(--white);
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); }
h4 { font-size: clamp(1.2rem, 2.2vw, 1.875rem); }
h5, h6 { margin: 0 0 .4em; font-family: var(--font-body); text-transform: uppercase; line-height: 1.25; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; letter-spacing: 1.5px; }
p { margin: 0 0 1rem; }
.theme-color, .theme_color { color: var(--main-color); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding-block: var(--section-pad); position: relative; }
.section--alt { background: var(--color-two); }
.section--tight { padding-block: clamp(36px, 6vw, 64px); }
.center { text-align: center; }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Title box ---------- */
.title-box { margin-bottom: clamp(28px, 4vw, 44px); }
.title-box.center { max-width: 640px; margin-inline: auto; }
.subtitle {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; font-weight: 700; font-size: 13px;
  letter-spacing: .22em; color: var(--main-color); margin-bottom: 12px;
}
.subtitle::before, .subtitle::after {
  content: ""; width: 22px; height: 1px; background: var(--main-color); opacity: .6;
}
.title-box p { color: var(--color-three); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #1b1b1b;
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 34px; border: 2px solid var(--main-color); background: var(--main-color);
  color: var(--btn-fg); font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; overflow: hidden; border-radius: var(--radius);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--color-two);
  transform: translateY(101%); transition: transform .35s ease; z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--white); border-color: var(--color-two); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--main-color); border-width: 1px;
}
.btn--ghost::before { background: var(--main-color); }
.btn--ghost:hover { color: var(--color-two); border-color: var(--main-color); }
.btn--sm { padding: 9px 20px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--color-two); }
.header-top {
  font-size: 12.5px; letter-spacing: .5px; color: var(--w-60);
  border-bottom: 1px solid var(--w-10); background: var(--color-one);
}
.header-top .container { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding-block: 8px; }
.header-top ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.header-top a { color: var(--w-60); }
.header-top a:hover { color: var(--main-color); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.site-logo img { height: 56px; width: auto; }
@media (max-width: 600px) { .site-logo img { height: 44px; } }

.main-nav { display: none; }
@media (min-width: 992px) {
  .main-nav { display: flex; align-items: center; gap: 30px; }
  .main-nav a {
    color: var(--white); text-transform: uppercase; font-size: 13px; font-weight: 600;
    letter-spacing: 1.2px; padding-block: 8px;
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--main-color); }
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent; border: 1px solid var(--w-20);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); }
@media (min-width: 992px) { .nav-toggle { display: none; } }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); background: var(--color-two);
  transform: translateX(100%); transition: transform .3s ease; z-index: 300;
  padding: 24px; overflow-y: auto; border-left: 1px solid var(--w-10);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close{display:block;margin-left:auto;min-width:44px;min-height:44px;border:1px solid var(--w-10);background:transparent;color:var(--white);font-size:28px;cursor:pointer}
.mobile-nav a { display: block; color: var(--white); padding: 12px 0; border-bottom: 1px solid var(--w-10); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.mobile-nav .mnav-quick { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: .3s; z-index: 250; }
.backdrop.open { opacity: 1; visibility: visible; }

/* sticky mobile action bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 190; display: flex; background: var(--color-two); border-top: 1px solid var(--w-10); }
.mobile-bar a {
  flex: 1; text-align: center; padding: 11px 4px; color: var(--white); font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px; border-right: 1px solid var(--w-10);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar a span { display: block; font-size: 16px; margin-bottom: 2px; color: var(--main-color); }
@media (min-width: 992px) { .mobile-bar { display: none; } }
@media (max-width: 991px) { body { padding-bottom: 76px; } }

/* ---------- Category hero ---------- */
.hero { display: grid; min-height: clamp(420px, 80vh, 760px); }
@media (min-width: 768px) { .hero { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.hero-col { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 200px; border-bottom: 1px solid var(--w-10); }
@media (min-width: 768px) { .hero-col { border-bottom: 0; border-right: 1px solid var(--w-10); } .hero-col:last-child { border-right: 0; } }
.hero-col img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: 0; }
.hero-col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,44,41,.35), rgba(14,13,12,.75)); z-index: 1; }
.hero-col:hover img.hero-bg { transform: scale(1.06); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 30px; }
.hero-inner h2 { font-size: clamp(1.6rem, 3.6vw, 3.4rem); text-shadow: 0 2px 12px rgba(0,0,0,.5); text-transform: uppercase; }
.hero-col--empty{background:radial-gradient(circle at 35% 35%,#304940,#152c29 70%)}
.hero-inner{width:100%;min-width:0;overflow-wrap:anywhere}
.hero-inner h2{line-height:1.1;max-width:100%;font-size:clamp(1.45rem,3vw,3rem)}
.image-pending{min-height:180px;aspect-ratio:4/3;background:radial-gradient(circle at 40% 25%,#304940,#152c29 75%);border:1px solid var(--w-10)}
@media(max-width:767px){.hero{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0}.hero-col{min-height:220px}.hero-inner{padding:16px 8px}.hero-inner h2{font-size:clamp(1.2rem,5vw,2rem)}.hero-inner .btn{font-size:.8rem;padding:9px 11px}}
@media(max-width:360px){.hero{grid-template-columns:1fr 1fr}.hero-col{min-height:190px}}
.hero-inner .btn { margin-top: 14px; }

/* ---------- Dish list (menu) ---------- */
.dish { padding: 18px 0; border-bottom: 1px dashed var(--w-20); }
.dish:last-child { border-bottom: 0; }
.dish-head { display: flex; align-items: baseline; gap: 10px; }
.dish-name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--white); text-transform: capitalize; }
.dish-name .diet { font-size: .7em; padding: 2px 6px; margin-left: 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: .5px; vertical-align: middle; }
.diet-veg { color: #7ec97e; border: 1px solid #3f7d3f; }
.diet-nonveg { color: #e08a7a; border: 1px solid #a5503f; }
.diet-spicy { color: var(--main-color); border: 1px solid var(--main-color); }
.dish-badge { display:inline-block; font-size:.65rem; letter-spacing:.5px; text-transform:uppercase; background:var(--main-color); color:#1b1b1b; padding:2px 6px; margin-left:8px; }
.dish-lead { flex: 1; border-bottom: 1px dashed var(--w-20); transform: translateY(-4px); min-width: 12px; }
.dish-price { font-family: var(--font-display); color: var(--main-color); font-size: 1.05rem; white-space: nowrap; }
@media(max-width:600px){.dish-head{flex-wrap:wrap;gap:3px 8px}.dish-name{flex:1 1 100%}.dish-lead{display:none}.dish-price{white-space:normal;overflow-wrap:anywhere}}
.dish-price .pl { color: var(--w-40); font-size: .72em; text-transform: uppercase; letter-spacing: .5px; margin-right: 3px; }
.dish-desc { margin: 6px 0 0; color: var(--color-three); font-size: .95rem; }
.dish-review { display:block; margin-top:6px; color: var(--main-color); font-size:.8rem; }

/* ---------- Cards ---------- */
.card { background: var(--color-two); border: 1px solid var(--w-10); }
.card .card-body { padding: 22px; }
.card h4 a { color: var(--white); }
.card h4 a:hover { color: var(--main-color); }
.card .meta { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--main-color); margin-bottom: 8px; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.dish-card { text-align: center; background: var(--color-two); border: 1px solid var(--w-10); padding: 26px; }
.dish-card img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; }
.dish-card .cat-name { text-transform: uppercase; font-size: 11px; letter-spacing: 2px; color: var(--main-color); }
.dish-card .price { font-family: var(--font-display); color: var(--main-color); margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; color: var(--w-80); }
.input, .textarea, select {
  width: 100%; padding: 12px 16px; background: var(--color-one); border: 1px solid var(--color-four);
  color: var(--white); font-family: inherit; font-size: 15px; border-radius: var(--radius);
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .textarea:focus, select:focus { border-color: var(--main-color); outline: none; }
.form-note { font-size: 13px; color: var(--color-three); }
.alert { padding: 14px 18px; border: 1px solid; margin-bottom: 20px; font-size: 14px; }
.alert-success { border-color: #3f7d3f; background: rgba(63,125,63,.12); color: #b9e3b9; }
.alert-error { border-color: #a5503f; background: rgba(165,80,63,.12); color: #f0c4bb; }
.hp-field { position: absolute !important; left: -9999px !important; }

/* ---------- Blog ---------- */
.post-body { font-size: 1.05rem; line-height: 1.9; }
.post-body h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.post-body h3 { margin-top: 1.3em; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.post-body ul, .post-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.post-body li { margin-bottom: .4em; }
.post-body a { text-decoration: underline; }
.post-body blockquote { border-left: 3px solid var(--main-color); margin: 1.4em 0; padding: .4em 0 .4em 1.2em; color: var(--w-80); font-style: italic; }
.post-body img { margin: 1.4em 0; }
.faq dt { font-family: var(--font-display); font-size: 1.15rem; margin-top: 1.2em; }
.faq dd { margin: .3em 0 0; color: var(--color-three); }
.breadcrumb { font-size: 13px; color: var(--w-60); margin-bottom: 16px; letter-spacing: .5px; }
.breadcrumb a { color: var(--w-60); }
.breadcrumb a:hover { color: var(--main-color); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--w-20); color: var(--white); font-size: 14px; }
.pagination .current { background: var(--main-color); color: #1b1b1b; border-color: var(--main-color); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border: 1px solid var(--w-20); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--w-80); }
.chip[aria-current="true"] { background: var(--main-color); color: #1b1b1b; border-color: var(--main-color); }

.cta-band { background: var(--color-two); border: 1px solid var(--w-10); padding: clamp(24px,4vw,40px); text-align: center; margin: 40px 0; }
.cta-band h3 { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-two); border-top: 1px solid var(--w-10); }
.site-footer .container { padding-block: var(--section-pad); }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h6 { color: var(--main-color); letter-spacing: 2px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; color: var(--w-60); }
.site-footer a { color: var(--w-60); }
.site-footer a:hover { color: var(--main-color); }
.footer-logo img { height: 66px; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid var(--w-10); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 20px; font-size: 13px; color: var(--w-40); }
.social { display: flex; gap: 14px; }
.social a { color: var(--w-60); font-size: 15px; }

/* ---------- Utility ---------- */
.muted { color: var(--color-three); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--main-color); color: #1b1b1b; padding: 10px 16px; z-index: 999; transition: top .2s; }
.skip-link:focus { top: 8px; }
.scroll-top { position: fixed; right: 18px; bottom: 70px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--main-color); color: #1b1b1b; opacity: 0; visibility: hidden; transition: .25s; z-index: 180; }
.scroll-top.show { opacity: 1; visibility: visible; }
@media (min-width: 992px) { .scroll-top { bottom: 24px; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* About image and editorial gallery */
.about-photo img { display:block; width:100%; height:auto; max-height:600px; object-fit:cover; border:1px solid var(--w-10); }
.gallery-filters { justify-content:center; margin:0 0 28px; }
.gallery-filters button { cursor:pointer; min-height:44px; font:inherit; background:transparent; color:var(--w-80); }
.gallery-filters button[aria-pressed="true"] { background:var(--main-color); color:#1b1b1b; }
.gallery-page-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr)); gap:20px; align-items:start; }
.gallery-tile { margin:0; border:1px solid var(--w-10); background:var(--color-two); min-width:0; width:100%; max-width:400px; }
.gallery-tile[hidden] { display:none; }
.gallery-open { display:block; position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; padding:0; border:0; background:none; cursor:zoom-in; }
.gallery-open img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.gallery-open:hover img { transform:scale(1.015); }
.gallery-tile figcaption { padding:16px; display:grid; gap:4px; }
.gallery-tile figcaption p { margin:6px 0 0; }
#gallery-dialog { max-width:min(94vw,1100px); max-height:94vh; padding:18px; border:1px solid var(--main-color); color:var(--white); background:var(--color-two); }
#gallery-dialog::backdrop { background:rgba(0,0,0,.88); }
#gallery-dialog img { display:block; max-width:100%; max-height:75vh; margin:auto; object-fit:contain; }
.gallery-dialog-close { float:right; width:44px; height:44px; cursor:pointer; font-size:28px; background:var(--main-color); border:0; }
@media (prefers-reduced-motion:reduce) { .gallery-open img { transition:none; } }
