/*
Theme Name: Nivora
Theme URI: https://nivoras.co.uk
Description: Custom theme for Nivora by Aurum, charcoal grill and meze in Berkhamsted. Homepage, Menu, From the Fire and Our Story pages, with opening hours, phone, address and the ordering link editable in Appearance > Customise > Nivora details.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nivora
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #FAF7F0; color: #22201C; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
a:hover { color: #B08D4C; }
a:focus-visible { outline: 2px solid #B08D4C; outline-offset: 3px; }

/* The photo's own flames, gently flickering */
.nivora-flicker {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: url(#nivora-heat);
  animation: nivora-flicker 3.2s ease-in-out infinite;
}
@keyframes nivora-flicker {
  0%   { opacity: 0.55; }
  11%  { opacity: 0.85; }
  19%  { opacity: 0.62; }
  31%  { opacity: 0.95; }
  44%  { opacity: 0.68; }
  57%  { opacity: 0.88; }
  69%  { opacity: 0.6; }
  83%  { opacity: 0.82; }
  100% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .nivora-flicker { animation: none; filter: none; opacity: 0.7; }
}

/* Faint line drawings on the dark order banner */
.nivora-deco { position: absolute; height: auto; opacity: 0.13; pointer-events: none; }
.nivora-band > div { position: relative; }
@media (max-width: 700px) { .nivora-deco:nth-of-type(n+4) { display: none; } }

/* Keep hero text crisp over the fire */
header h1, header p, header a { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }

/* Phones and small tablets */
@media (max-width: 700px) {
  h1 { font-size: 50px !important; }
  h2 { font-size: 36px !important; }
  header, section, article, nav { padding-left: 20px !important; padding-right: 20px !important; }
  section[id] img[aria-hidden="true"], header img[aria-hidden="true"] { display: none; }
  section[id] > div > div { border-left: 0 !important; padding-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
