/*
Theme Name: Aishah Balti
Theme URI: https://www.aishahbalti.com
Description: One-page theme for Aishah Balti, Bengali & Indian takeaway in Alsager. The owner manages opening hours, holidays, the notice banner, menu pages, special offers and business details from the “Takeaway” menu in wp-admin.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Author: BigBoffin
Text Domain: aishahbalti
License: Proprietary
*/

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Playfair Display Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(assets/fonts/playfair-display-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Playfair Display Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url(assets/fonts/playfair-display-latin-wght-italic.woff2) format("woff2-variations");
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Playfair Display Variable", Georgia, serif;

  --saffron-300: #fcc98f;
  --saffron-400: #faad63;
  --saffron-500: #f6993f;
  --chilli-500: #d93a2b;
  --chilli-600: #b92b1f;
  --ink-950: #0c0a09;
  --ink-900: #171311;
  --ink-800: #241d19;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --emerald-200: #a7f3d0;
  --emerald-400: #34d399;
  --line: rgba(255, 255, 255, .1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--stone-200);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--saffron-400); outline-offset: 2px; }
[id] { scroll-margin-top: 6rem; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.text-soft { color: var(--stone-300); }
.text-muted { color: var(--stone-400); }
.small { font-size: .875rem; line-height: 1.25rem; }
.mt-3 { margin-top: .75rem; }
.mt-5 { margin-top: 1.25rem; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--saffron-400); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: .5rem; z-index: 100;
  background: #fff; color: #000; padding: .5rem .75rem; border-radius: .25rem;
}
.skip-link:focus { left: .5rem; position: fixed; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; padding: .75rem 1.25rem;
  font-weight: 600; line-height: 1.5rem;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--saffron-500); color: var(--ink-950); }
.btn-primary:hover { background: var(--saffron-400); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; }
.btn-lg { font-size: 1.125rem; line-height: 1.75rem; }
.btn-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.icon { width: 1rem; height: 1rem; flex: none; }

/* ---------- Notice banner & header ---------- */
.notice-banner {
  background: var(--chilli-600); color: #fff;
  padding: .625rem 1rem; text-align: center;
  font-size: .875rem; line-height: 1.25rem; font-weight: 500;
}
/* Black logo strip: pure #000 so it blends seamlessly with the logo's own background */
.site-brand {
  background: #000;
  display: flex; justify-content: center;
  padding: .75rem 1rem;
}
.site-logo { display: block; flex: none; }
.site-logo img { height: 4.5rem; width: auto; }

/* Nav bar beneath the logo; this is the part that stays stuck on scroll */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 9, .85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: .625rem; padding-bottom: .625rem; }
.site-nav { display: none; align-items: center; gap: 1.5rem; font-size: .875rem; color: var(--stone-300); }
.site-nav a:hover { color: #fff; }
.hide-mobile { display: none; }
@media (min-width: 640px) {
  .site-logo img { height: 6.5rem; }
  .hide-mobile { display: inline; }
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .site-header__inner { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg, .hero__shade { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__bg { object-fit: cover; }
.hero__shade { background: linear-gradient(to top, var(--ink-950), rgba(12, 10, 9, .7), rgba(12, 10, 9, .3)); }
.hero__inner {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 55vh; min-height: 55svh;
  padding-top: 2.5rem; padding-bottom: 3.5rem;
}
.hero__title {
  max-width: 48rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.25rem; line-height: 1.25; color: #fff;
}
.hero__title span { color: var(--saffron-400); font-style: italic; }
.hero__lead { margin-top: 1rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--stone-300); }
.hero__delivery { margin-top: 1.5rem; font-size: .875rem; color: var(--stone-400); }
.hero__delivery strong { color: var(--saffron-300); }
@media (min-width: 640px) {
  .hero__inner { padding-bottom: 5rem; }
  .hero__title { font-size: 3.75rem; line-height: 1.15; }
}

/* Open / closed badge (filled in by assets/js/open-status.js) */
.open-status {
  align-self: flex-start; margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.25rem; padding: .375rem 1rem;
  border: 1px solid transparent; border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.open-status.is-open { border-color: rgba(52, 211, 153, .4); background: rgba(2, 44, 34, .6); color: var(--emerald-200); }
.open-status.is-shut { border-color: rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .5); color: var(--stone-200); }
.open-status .dot { position: relative; display: flex; width: .625rem; height: .625rem; }
.open-status .core { position: relative; width: 100%; height: 100%; border-radius: 9999px; background: var(--stone-400); }
.open-status.is-open .core { background: var(--emerald-400); }
.open-status .ping { position: absolute; inset: 0; border-radius: 9999px; background: var(--emerald-400); opacity: .6; animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* ---------- Special offers ---------- */
.offers {
  padding: 3.5rem 0 .5rem;
  background: radial-gradient(60rem 24rem at 50% 0, rgba(246, 153, 63, .12), transparent 70%);
}
.offers .section-head { margin-bottom: 1.5rem; }
.offers .eyebrow { margin-bottom: .25rem; }
/* One offer per row, full width */
.offers-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.offer {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(246, 153, 63, .35); border-radius: 1rem;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900) 60%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
/* Shown whole, never cropped: offer photos are often flyers with text to the edges */
.offer__image { display: flex; align-items: center; background: #000; }
.offer__image img { width: 100%; height: auto; }
.offer__body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1.5rem; }
.offer__tag { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--saffron-400); }
.offer__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.25; color: #fff; }
.offer__text { color: var(--stone-300); }
.offer__text p + p { margin-top: .5rem; }
.offer__text strong { color: #fff; }
.offer__foot { margin-top: auto; padding-top: .75rem; }
.offer__ends { font-size: .875rem; font-weight: 600; color: var(--saffron-300); }
.offer__terms { margin-top: .25rem; font-size: .75rem; color: var(--stone-500); }
.offer__cta { margin-top: 1rem; }
/* Wider screens: picture beside the text */
@media (min-width: 768px) {
  .offer:has(.offer__image) { flex-direction: row; }
  .offer__image { flex: 0 0 45%; }
  .offer__body { padding: 2rem; }
}

/* ---------- Key info cards ---------- */
.info-grid { display: grid; gap: 1rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 1rem; background: rgba(23, 19, 17, .8); padding: 1.5rem; }
.card__title { margin-bottom: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 2rem; color: #fff; }

.hours > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1rem; }
.hours > div + div { margin-top: .5rem; }
.hours dt { font-weight: 500; color: #fff; }
.hours dd { color: var(--stone-300); }
.is-closed { font-weight: 600; color: var(--chilli-500) !important; }
.hours-notes { margin-top: .75rem; font-size: .875rem; color: var(--stone-400); }
.hours-notes li + li { margin-top: .25rem; }
.coming-up { margin-top: 1rem; padding: .75rem; border: 1px solid rgba(246, 153, 63, .3); border-radius: .75rem; background: rgba(246, 153, 63, .1); }
.coming-up ul { margin-top: .375rem; font-size: .875rem; color: var(--stone-200); }
.coming-up li + li { margin-top: .25rem; }
.coming-up__label { color: #fff; }

.delivery-free { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--saffron-400); }
.delivery-free + p { margin-top: .25rem; }
.phone-link {
  display: inline-block; margin-top: 1.25rem;
  font-size: 1.125rem; font-weight: 600; color: #fff;
  text-decoration: underline; text-decoration-color: var(--saffron-500); text-underline-offset: 4px;
}
address + p { margin-top: .25rem; }
.directions { display: inline-flex; margin-top: 1rem; font-size: .875rem; font-weight: 600; color: var(--saffron-400); }
.directions:hover { color: var(--saffron-300); }

.hygiene { display: inline-block; }
.hygiene img {
  width: 100%; max-width: 291px; padding: .5rem;
  background: #fff; border-radius: .75rem;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s;
}
.hygiene:hover img { box-shadow: 0 0 0 1px var(--saffron-400); }
.hygiene__fallback {
  display: inline-flex; padding: .5rem .75rem;
  border: 1px solid var(--line); border-radius: .75rem; background: rgba(255, 255, 255, .05);
  font-size: .875rem; color: var(--stone-300);
}
.hygiene:hover .hygiene__fallback { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Menu ---------- */
.menu-section { background: #000; padding: 3.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 2.5rem; color: #fff; }
.section-title + p { margin-top: .5rem; }
.menu-page {
  overflow: hidden; border: 1px solid var(--line); border-radius: 1rem;
  background: var(--ink-900); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
.menu-page + .menu-page { margin-top: 1.5rem; }
.menu-page img { width: 100%; }
.menu-page figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; font-size: .75rem; color: var(--stone-400); }
.menu-page figcaption a { text-underline-offset: 2px; }
.menu-page figcaption a:hover { color: #fff; text-decoration: underline; }
.allergy {
  margin-top: 2rem; padding: 1.25rem;
  border: 1px solid rgba(217, 58, 43, .3); border-radius: 1rem; background: rgba(185, 43, 31, .1);
  font-size: .875rem; color: var(--stone-300);
}
.allergy h3 { margin-bottom: .25rem; font-size: 1rem; font-weight: 600; color: var(--chilli-500); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-950); }
.site-footer__inner { display: flex; flex-direction: column; gap: .5rem; padding-top: 2rem; padding-bottom: 2rem; font-size: .875rem; color: var(--stone-400); }
.site-footer a:hover { color: #fff; }
.site-footer__name { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: #fff; }
@media (min-width: 640px) { .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Other pages (privacy policy etc.) ---------- */
.page-content { padding-top: 3rem; padding-bottom: 4rem; max-width: 48rem; }
.entry { margin-top: 1.5rem; color: var(--stone-300); }
.entry > * + * { margin-top: 1rem; }
.entry a { color: var(--saffron-400); text-decoration: underline; }
.entry h2, .entry h3 { font-family: var(--font-display); color: #fff; }
.entry ul { list-style: disc; padding-left: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .open-status .ping { display: none; }
}
