/*
Theme Name: Bistro Nira
Theme URI: https://bistronira.bg/
Author: ABC Engineering
Description: Лека собствена тема за Бистро Нира с дневно меню.
Version: 1.0.14
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: bistro-nira
*/

:root {
  --nira-ink: #14231c;
  --nira-muted: #5f6c65;
  --nira-paper: #f6f3ec;
  --nira-white: #fff;
  --nira-leaf: #83a63f;
  --nira-leaf-dark: #58762a;
  --nira-warm: #e77d42;
  --nira-line: rgba(20, 35, 28, 0.13);
  --nira-shadow: 0 24px 70px rgba(20, 35, 28, 0.13);
  --nira-radius: 26px;
  --nira-width: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nira-ink);
  background: var(--nira-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.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;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--nira-white);
  background: var(--nira-ink);
  border-radius: 999px;
}

.site-shell {
  width: var(--nira-width);
  margin-inline: auto;
}

.menu-section,
.about-section,
.gallery-section,
.contact-section {
  scroll-margin-top: 92px;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: var(--nira-white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  position: fixed;
  color: var(--nira-ink);
  background: rgba(246, 243, 236, 0.96);
  box-shadow: 0 8px 30px rgba(20, 35, 28, 0.09);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: min-height 180ms ease;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 78px;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.32))
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
  transition: height 180ms ease, filter 180ms ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 82px;
}

.site-header.is-scrolled .brand-logo {
  height: 64px;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65))
    drop-shadow(0 3px 8px rgba(20, 35, 28, 0.18));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--nira-white);
  background: var(--nira-warm);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(231, 125, 66, 0.24);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover,
.button:hover {
  box-shadow: 0 16px 36px rgba(231, 125, 66, 0.3);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 820px;
  align-items: center;
  overflow: hidden;
  color: var(--nira-white);
  background: #17251f;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 24, 18, 0.88) 0%, rgba(12, 24, 18, 0.58) 48%, rgba(12, 24, 18, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 24, 18, 0.24), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--nira-leaf);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero .eyebrow {
  color: #c4dd83;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8.5vw, 112px);
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 36px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.menu-section {
  position: relative;
  z-index: 5;
  padding: 0 0 112px;
}

.menu-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  margin-top: -72px;
  overflow: hidden;
  background: var(--nira-white);
  border-radius: var(--nira-radius);
  box-shadow: var(--nira-shadow);
}

.menu-aside {
  position: relative;
  padding: 48px 42px;
  color: var(--nira-white);
  background: var(--nira-leaf-dark);
  overflow: hidden;
}

.menu-aside::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  content: "";
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50% 50% 50% 20%;
  transform: rotate(-20deg);
}

.menu-date {
  position: relative;
  z-index: 1;
  display: grid;
  margin-bottom: 48px;
}

.menu-date strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
}

.menu-date span {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
}

.menu-aside h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.05;
}

.menu-aside p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: 14px;
  opacity: 0.78;
}

.menu-content {
  min-height: 430px;
  padding: 54px clamp(34px, 6vw, 76px);
}

.menu-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--nira-line);
}

.menu-content-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.menu-updated {
  margin: 9px 0 0;
  color: var(--nira-muted);
  font-size: 13px;
  white-space: nowrap;
}

.daily-menu-copy {
  padding-top: 26px;
  font-size: 17px;
}

.daily-menu-copy > :first-child {
  margin-top: 0;
}

.daily-menu-copy h2,
.daily-menu-copy h3 {
  margin: 30px 0 10px;
  color: var(--nira-leaf-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.daily-menu-copy p {
  margin: 8px 0;
}

.daily-menu-copy .menu-notice {
  color: var(--nira-muted);
  font-size: 15px;
  line-height: 1.7;
}

.daily-menu-copy .menu-portion {
  color: var(--nira-muted);
  font-size: 14px;
  font-weight: 800;
}

.daily-menu-copy ul {
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.daily-menu-copy li {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--nira-line);
}

.daily-menu-copy li strong:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.daily-menu-copy .menu-source {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--nira-line);
  color: var(--nira-muted);
  font-size: 13px;
}

.empty-menu {
  display: grid;
  min-height: 230px;
  place-items: center;
  color: var(--nira-muted);
  text-align: center;
}

.empty-menu strong {
  display: block;
  margin-bottom: 8px;
  color: var(--nira-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.about-section {
  padding: 112px 0;
  background: var(--nira-white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(52px, 8vw, 110px);
}

.about-copy h2,
.gallery-heading h2,
.contact-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.about-copy .lead {
  margin: 28px 0 0;
  color: var(--nira-muted);
  font-size: 20px;
  line-height: 1.75;
}

.about-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--nira-line);
  font-weight: 800;
}

.about-note span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--nira-white);
  background: var(--nira-warm);
  border-radius: 50%;
}

.about-media {
  position: relative;
  padding: 0 0 42px 54px;
}

.about-media::before {
  position: absolute;
  z-index: 0;
  top: 42px;
  right: 42px;
  bottom: 0;
  left: 0;
  content: "";
  background: var(--nira-leaf);
  border-radius: var(--nira-radius);
}

.about-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border-radius: var(--nira-radius);
  box-shadow: var(--nira-shadow);
}

.gallery-section {
  padding: 112px 0;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.gallery-heading p {
  max-width: 430px;
  margin: 0 0 8px;
  color: var(--nira-muted);
  font-size: 17px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
}

.gallery-grid figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--nira-radius);
}

.gallery-grid figure:first-child {
  grid-row: span 2;
  min-height: 678px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.025);
}

.contact-section {
  padding: 0 0 112px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 110px);
  padding: clamp(42px, 6vw, 76px);
  color: var(--nira-white);
  background: var(--nira-ink);
  border-radius: var(--nira-radius);
  box-shadow: var(--nira-shadow);
}

.contact-intro .eyebrow {
  color: var(--nira-leaf);
}

.contact-intro h2 {
  max-width: 590px;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 0;
}

.contact-detail {
  display: grid;
  gap: 7px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-detail span {
  color: var(--nira-leaf);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-detail strong,
.contact-detail a {
  color: var(--nira-white);
  font-size: 19px;
  font-weight: 800;
}

.contact-detail small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.contact-facebook {
  margin-top: 24px;
  color: var(--nira-white);
  font-weight: 800;
  text-decoration: none;
}

.contact-facebook span {
  color: var(--nira-leaf);
}

.site-footer {
  padding: 68px 0 36px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--nira-ink);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 42px;
}

.footer-main .site-brand {
  color: var(--nira-white);
}

.footer-main .brand-logo {
  height: 92px;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.34))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32));
}

.footer-copy {
  max-width: 540px;
  margin: 0;
  text-align: right;
}

.footer-copy a {
  color: var(--nira-white);
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 13px;
}

.content-page {
  width: min(820px, calc(100% - 40px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 150px 0 90px;
}

.content-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 72px);
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    color: var(--nira-white);
  }

  .menu-toggle {
    display: block;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% - 4px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 22px;
    color: var(--nira-ink);
    background: var(--nira-white);
    border-radius: 20px;
    box-shadow: var(--nira-shadow);
  }

  .js .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 7px 2px;
  }

  .site-nav .nav-cta {
    margin-top: 4px;
    padding: 0 18px;
  }

  .menu-card {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 680px;
  }

  .gallery-grid figure,
  .gallery-grid figure:first-child {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  :root {
    --nira-width: min(100% - 24px, 1180px);
    --nira-radius: 20px;
  }

  .header-inner {
    min-height: 86px;
  }

  .brand-logo {
    height: 68px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 72px;
  }

  .site-header.is-scrolled .brand-logo {
    height: 56px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(12, 24, 18, 0.87), rgba(12, 24, 18, 0.42));
  }

  .hero h1 {
    font-size: clamp(54px, 20vw, 84px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions .text-link {
    display: none;
  }

  .menu-section {
    padding-bottom: 78px;
  }

  .menu-card {
    grid-template-columns: 1fr;
    margin-top: -44px;
  }

  .menu-aside {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 22px;
    padding: 30px;
  }

  .menu-date {
    margin: 0;
  }

  .menu-date strong {
    font-size: 54px;
  }

  .menu-aside h2 {
    font-size: 29px;
  }

  .menu-aside p {
    display: none;
  }

  .menu-content {
    min-height: 360px;
    padding: 38px 26px;
  }

  .menu-content-header {
    display: block;
  }

  .menu-updated {
    white-space: normal;
  }

  .daily-menu-copy li {
    display: block;
  }

  .about-section,
  .gallery-section {
    padding: 78px 0;
  }

  .contact-section {
    padding-bottom: 78px;
  }

  .contact-card {
    gap: 28px;
    padding: 34px 26px;
  }

  .about-media {
    padding: 0 0 24px 24px;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-heading p {
    margin-top: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure,
  .gallery-grid figure:first-child {
    min-height: 280px;
  }

  .footer-main,
  .footer-bottom {
    display: grid;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
