/* ==========================================================================
   Peking Restaurant - Refreshed Styles
   Preserves original color scheme and layout, modernized with flexbox/grid
   ========================================================================== */

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

/* --- Typography --- */
body {
  background: #fefefe url("../img/net_pattern.jpg");
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.7;
  color: #333;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8em;
  font-weight: normal;
  letter-spacing: 0.07em;
  line-height: 1;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8em;
  font-weight: normal;
  color: #444;
  line-height: 1.2;
}

h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: normal;
}

h4 {
  font-weight: normal;
  font-size: 1em;
}

p {
  margin: 10px 0;
}

.text-primary {
  color: #303030;
  font-size: 1em;
  font-family: "Lato", Arial, serif;
}

.text-secondary {
  color: #333;
  font-size: 0.95em;
  font-family: "Lato", Arial, Georgia, serif;
  line-height: 1.4;
}

.text-body {
  color: #333;
  font-size: 1em;
  font-family: "Lato", serif, Arial;
}

.text-center {
  text-align: center;
}

/* --- Container --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.mob-head {
  display: none;
  width: 100%;
  background: #392222;
  padding: 10px 15px;
  align-items: center;
  justify-content: space-between;
}

.mob-logo img {
  display: block;
}

.mob-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mob-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #b57f6f;
  border-radius: 2px;
  margin: 5px 0;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.mob-toggle.open .mob-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mob-toggle.open .mob-toggle-bar:nth-child(2) {
  opacity: 0;
}
.mob-toggle.open .mob-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mob-nav {
  display: none;
  background: #2e1a1a;
}

.mob-nav ul {
  display: flex;
  flex-direction: column;
}

.mob-nav ul li a {
  display: block;
  padding: 14px 20px;
  color: #c9a89c;
  font:
    1.05em "Lato",
    Arial,
    sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s,
    color 0.2s;
}

.mob-nav ul li a:hover,
.mob-nav ul li a.active {
  background: rgba(255, 255, 255, 0.06);
  color: #e8d0c6;
}

.head-bg {
  background: #392222 url("../img/main_bg.png") repeat-x top;
  min-height: 205px;
}

.site-header {
  height: 155px;
  position: relative;
}

.site-logo {
  position: absolute;
  top: 0;
  opacity: 0.85;
}

/* --- Navigation --- */
.site-nav {
  text-align: center;
}

.site-nav ul {
  display: inline-flex;
  gap: 0;
}

.site-nav ul li a {
  display: block;
  padding: 11px 25px;
  border-left: 1px solid #3b2222;
  border-right: 1px solid #3b2222;
  color: #999;
  font:
    1em "Lato",
    Arial,
    sans-serif;
  transition: color 0.2s;
}

.site-nav ul li a:hover {
  color: #ccc;
}
.site-nav ul li a.pressed {
  color: #8c574b;
}

/* --- Mobile Category Navigation (menu pages) --- */
.mob-cat-wrap {
  position: relative;
  z-index: 10;
  margin-bottom: 10px;
  width: 100%;
}

.mob-cat-toggle {
  display: block;
}

.mob-cat-toggle button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #392222;
  color: #c9a89c;
  border: none;
  border-radius: 6px;
  font:
    1em "Lato",
    Arial,
    sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.mob-cat-toggle button:hover {
  background: #4a2e2e;
}

.mob-cat-arrow {
  font-size: 0.8em;
  transition: transform 0.3s;
}

.mob-cat-wrap.open .mob-cat-arrow {
  transform: rotate(180deg);
}

.mob-cat-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mob-cat-list ul li a {
  display: block;
  padding: 12px 16px;
  color: #611919;
  font:
    0.95em "Lato",
    Arial,
    sans-serif;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.mob-cat-list ul li:last-child a {
  border-bottom: none;
}

.mob-cat-list ul li a:hover,
.mob-cat-list ul li a.active {
  background: #f5ebe6;
  color: #a5745f;
  font-weight: bold;
}

/* ==========================================================================
   Title
   ========================================================================== */
.page-title {
  text-align: center;
  margin-top: 45px;
}

/* ==========================================================================
   Slider (crossfade)
   ========================================================================== */
.slider-wrapper {
  position: relative;
  max-width: 940px;
  margin: -50px auto 0;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(74, 74, 74, 0.4);
  overflow: hidden;
}

.slider-images {
  position: relative;
  width: 100%;
  aspect-ratio: 940 / 360;
}

.slider-images .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-images .slide.active {
  opacity: 1;
}

.slider-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(99, 37, 37, 0.8);
  color: #eee;
  padding: 12px 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2em;
  line-height: 1.5em;
  box-sizing: border-box;
  z-index: 8;
  transition: opacity 0.5s ease-in-out;
}

/* ==========================================================================
   Content Sections (Home / About / Contact)
   ========================================================================== */
.down-bg {
  background: url("../img/net_pattern3.jpg");
  padding: 20px 0 40px;
}

.page-down {
  padding: 20px 0 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.content-full {
  grid-column: 1 / -1;
}
.content-col {
  padding: 10px;
}

.content-flex {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.content-images {
  flex: 0 0 33%;
}
.content-images img {
  margin-bottom: 10px;
}
.content-text {
  flex: 1;
}

.section-title {
  height: 37px;
  background: url("../img/dtitle_bg2.png") repeat-x;
  color: #9f6f5b;
  line-height: 37px;
  padding-left: 10px;
}

/* --- Button --- */
.red-button {
  display: inline-block;
  line-height: 42px;
  text-align: center;
  background: linear-gradient(to bottom, #641d1d 5%, #6c2828 100%);
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  color: #ececec;
  font:
    1.1em "Cormorant Garamond",
    serif;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
  padding: 10px 30px;
}

.red-button:hover {
  background: linear-gradient(to bottom, #723232 5%, #793c3c 100%);
  color: #fff;
}

/* ==========================================================================
   Menu Page
   ========================================================================== */
.menu-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* --- Sidebar --- */
.menu-list {
  flex: 0 0 220px;
}
.menu-list ul {
  margin-top: 30px;
}

.menu-list ul li {
  text-align: center;
  margin-bottom: 5px;
  border-bottom: 1px dotted #793a2e;

  transition: background-color 0.2s;
}

.menu-list ul li:hover {
  background-color: rgba(97, 25, 25, 0.05);
}
.menu-list ul li.active {
  background-color: rgba(165, 116, 95, 0.08);
}

.menu-list ul li a {
  color: #611919;
  font-family: "Lato", serif, Arial;
  font-size: 0.9em;
  display: block;
  text-transform: uppercase;
  padding: 6px 4px;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.menu-list ul li a:hover {
  color: #ccc;
}

.menu-list ul li.active a {
  color: #a5745f;
  font-weight: bold;
}

.menu-list ul li .en-name {
  display: block;
  font-size: 0.8em;
  color: #888;
  text-transform: none;
  font-style: italic;
}

.menu-list ul li.combo-link {
  border-bottom-color: #a5745f;
}

.menu-mobile-nav {
  display: none;
}

/* --- Menu Main Image --- */
.dish-menu-mainpic {
  text-align: center;
  margin: 0 auto;
}

/* --- Dish Table (menu) --- */
.dish-menu {
  width: 400px;
  margin: 20px auto 0;
}

.dish-menu-top {
  height: 23px;
  background: url("../img/meni_top.gif") no-repeat;
}

.dish-menu-content {
  background: url("../img/meni_mid.gif") repeat-y;
  padding: 10px;
}

.dish-menu-bottom {
  height: 26px;
  background: url("../img/meni_bottom.gif") no-repeat;
}

.menu-table {
  margin: 0 auto;
  width: 360px;
  border-collapse: collapse;
}

.table-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  color: #611919;
  height: 35px;
  font-style: italic;
  font-weight: bold;
  border-bottom: 2px solid #d4a574;
  padding-bottom: 8px;
}

.menu-table td {
  padding: 6px 5px;
  line-height: 22px;
  vertical-align: top;
}

.td-number {
  font-family: "Lato", Arial, serif;
  font-size: 12px;
  color: #555;
  width: 8%;
}

.td-dish {
  font-family: "Lato", Arial, serif;
  font-size: 13px;
  color: #333;
  width: 70%;
}

.td-price {
  font-family: "Lato", Arial, serif;
  font-size: 13px;
  color: #611919;
  width: 22%;
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
}

.dish-en {
  font-style: italic;
  color: #888;
  font-size: 0.85em;
}

.combo-price {
  float: right;
  font-weight: bold;
  color: #611919;
  font-size: 1.05em;
}

.table-bottom {
  background: #fffdd0 url("../img/meni_ukras.gif") no-repeat center;
  text-align: center;
  height: 30px;
}

.menu-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.015);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-block {
  margin-bottom: 15px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  border-left: 3px solid #9f6f5b;
}

.contact-block h3 {
  color: #611919;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.contact-block hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0;
}

.map {
  text-align: center;
  padding: 5px;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.map iframe {
  max-width: 100%;
  border-radius: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot-bg {
  background: #200 url("../img/foot_bg2.gif") repeat-x top;
}

.site-footer {
  color: #fff;
  padding: 15px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.site-footer p {
  color: #b57f6f;
  font-family: "Lato", Arial, sans-serif;
  font-size: 11px;
}

.site-footer p a {
  color: #b57f6f;
}
.site-footer p a:hover {
  color: #ccc;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 767px) {
  /* Mobile header */
  .mob-head {
    display: flex;
    padding: 0px 15px;
  }
  .mob-logo img {
    width: 60%;
  }
  .mob-toggle {
    display: block;
  }
  .site-nav {
    display: none;
  }
  .site-logo {
    display: none;
  }

  .head-bg {
    display: none;
  }

  /* Layout */
  .content-grid {
    grid-template-columns: 1fr;
  }

  .menu-layout {
    flex-direction: column;
  }

  .menu-list {
    display: none;
  }
  .menu-mobile-nav {
    display: block;
  }

  .dish-menu {
    width: 100%;
    max-width: 400px;
  }

  .page-title {
    margin-top: 20px;
  }
  .slider-wrapper {
    margin-top: 20px;
  }

  .slider-caption {
    font-size: 1.1em;
    padding: 8px 12px;
    line-height: 1.2em;
  }
  .content-flex {
    flex-direction: column;
  }
}

@media screen and (max-width: 479px) {
  body {
    font-size: 14px;
  }
  .page-title {
    margin-top: 10px;
  }

  .dish-menu {
    width: 100%;
    max-width: 350px;
  }

  .menu-table {
    width: 100%;
  }

  .dish-menu-top {
    background-image: url("../img/meni_top_small.gif");
  }
  .dish-menu-content {
    background-image: url("../img/meni_mid_small.gif");
  }
  .dish-menu-bottom {
    background-image: url("../img/meni_bottom_small.gif");
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #9f6f5b;
  outline-offset: 2px;
}
