/* ==========================================================================
   NATASHA BBQ
   Digital Menu Styles
   File: style1.css  (used by index1.html)

   This stylesheet is self-contained. It includes the colors, fonts,
   header, navigation, menu and footer styles, so the old shared
   style.css is not needed.

   DESIGN IDEA:
   Taken from the logo and the wooden menu boards: a black field with
   flame red, white script lettering, red brush-stroke category labels,
   and "name ........ price" rows with dotted leaders.
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   Change colors and fonts here to restyle the whole page.
   ========================================================================== */

:root {
  --black: #0d0d0d;
  --char: #171515;
  --char-2: #221e1d;
  --flame: #d8392b;
  --flame-dark: #a82419;
  --paper: #fffdf8;
  --ember: #e9c9a0;
  --muted: #b7aca3;
  --line: rgba(255, 253, 248, 0.14);

  --font-display: "Kaushan Script", "Brush Script MT", cursive;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  background: var(--black);
  color: var(--paper);

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
p {
  margin: 0;
}


/* ==========================================================================
   3. SITE HEADER
   Logo, name, tagline and Home button.
   ========================================================================== */

.site-header {
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(216, 57, 43, 0.28),
      transparent 65%
    ),
    var(--black);

  padding: max(18px, env(safe-area-inset-top)) 18px 22px;
}

.header-inner {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.brand-logo {
  width: 124px;
  height: 124px;

  border-radius: 50%;
  box-shadow:
    0 0 0 3px var(--flame),
    0 0 36px rgba(216, 57, 43, 0.45);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.brand-tagline {
  color: var(--ember);
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
}

.home-button {
  position: absolute;
  top: 0;
  right: 0;

  padding: 7px 16px;

  border: 1.5px solid rgba(255, 253, 248, 0.5);
  border-radius: 999px;

  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  transition: background-color 0.2s ease;
}

.home-button:hover {
  background: rgba(255, 253, 248, 0.14);
}

.home-button:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}


/* ==========================================================================
   4. CATEGORY NAVIGATION BAR
   Sticky bar that lets customers jump between categories.
   ========================================================================== */

.category-nav {
  position: sticky;
  top: 0;
  z-index: 50;

  background: var(--flame);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.8);
}

.category-nav-scroll {
  display: flex;
  gap: 10px;

  padding: 12px 16px;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

/* Center the buttons when they fit; scroll from the start when not. */
.nav-pill:first-child {
  margin-left: auto;
}

.nav-pill:last-child {
  margin-right: auto;
}

.nav-pill {
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;

  min-height: 40px;
  padding: 8px 20px;

  border: 1.5px solid rgba(255, 253, 248, 0.7);
  border-radius: 999px;

  background: transparent;
  color: var(--paper);

  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.nav-pill:hover {
  background: rgba(13, 13, 13, 0.2);
}

.nav-pill.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--paper);
}

.nav-pill:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 2px;
}


/* ==========================================================================
   5. MENU CONTENT CONTAINER
   ========================================================================== */

.menu-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 56px;
}


/* ==========================================================================
   6. CATEGORY SECTIONS
   Each heading is a red brush-stroke label, like on the wooden menu.
   ========================================================================== */

.category-section {
  margin-top: 40px;

  /* Keeps headings visible below the sticky navigation. */
  scroll-margin-top: 76px;
}

.category-heading {
  display: inline-block;

  margin-bottom: 16px;
  padding: 6px 34px 10px 22px;

  background: var(--flame);
  color: var(--paper);

  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;

  /* Rough, torn right edge. */
  clip-path: polygon(
    0 6%, 4% 0, 96% 3%, 100% 0,
    97% 38%, 100% 62%, 96% 100%,
    4% 96%, 0 100%
  );
}

.category-note {
  margin-bottom: 14px;

  color: var(--ember);
  font-size: 14px;
  font-style: italic;
}


/* ==========================================================================
   7. MENU ITEMS
   Each row reads:  Item name ........ TSh 12,000/=
   ========================================================================== */

.item-list {
  display: flex;
  flex-direction: column;
}

.menu-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.menu-item-name {
  flex: 0 1 auto;

  font-family: var(--font-body);
  font-size: 16.5px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
}

/* Dotted leader between the name and the price */
.menu-item-leader {
  flex: 1 1 24px;
  min-width: 24px;
  align-self: flex-end;

  margin-bottom: 5px;
  border-bottom: 2px dotted rgba(255, 253, 248, 0.38);
}

.menu-item-price {
  flex: 0 0 auto;

  color: var(--ember);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

/* Items without a listed price */
.menu-item-price--ask {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
}

.menu-item-desc {
  margin-top: 3px;

  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}


/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.site-footer {
  padding: 24px 18px max(28px, env(safe-area-inset-bottom));

  background: var(--char);
  border-top: 3px solid var(--flame);

  color: var(--muted);
  font-size: 13px;
  text-align: center;
}


/* ==========================================================================
   9. SMALL MOBILE SCREENS
   ========================================================================== */

@media (max-width: 380px) {

  .menu-item-name {
    font-size: 15.5px;
  }

  .menu-item-price {
    font-size: 15px;
  }

  .home-button {
    padding: 6px 12px;
    font-size: 13px;
  }
}


/* ==========================================================================
   10. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
