/* ============================================================
   🌍 HBM Frontend – Restaurant Single (Emerald & Gold v27)
   Author: Habesha.Website
   Compatible: single-hbm_restaurant.php v27.1
============================================================ */

:root {
  --hbm-emerald: #0f7b68;
  --hbm-emerald-dark: #0b1b18;
  --hbm-gold: #d6ad61;
  --hbm-gold-light: #f4d87a;
  --hbm-dark: #0a0f0d;
  --hbm-light: #fafafa;
  --hbm-gray: #bfbfbf;
  --hbm-radius: 10px;
  --hbm-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  --hbm-font: "Poppins", sans-serif;
}

/* ============================================================
   GLOBAL RESET & TYPOGRAPHY
============================================================ */
.hbm-single {
  font-family: var(--hbm-font);
  color: var(--hbm-light);
  background: var(--hbm-emerald-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.hbm-container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 50px 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--hbm-gold);
}

p {
  margin: 0 0 1em;
  color: #ddd;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hbm-hero {
  position: relative;
  background: var(--hbm-dark) center/cover no-repeat;
  background-image: var(--hbm-hero-bg, none);
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hbm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.9));
}

.hbm-hero-inner {
  position: relative;
  z-index: 2;
}

.hbm-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--hbm-gold-light);
  margin-bottom: 0.4em;
  text-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.hbm-hero-meta {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.4em;
}

.hbm-rating {
  font-size: 1.2rem;
  color: var(--hbm-gold);
}

.hbm-open-status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
}

.hbm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hbm-gray);
  display: inline-block;
}

.hbm-open-status.hbm-open .hbm-dot { background: #10b981; }
.hbm-open-status.hbm-closed .hbm-dot { background: #ef4444; }

/* ============================================================
   CTA BUTTONS
============================================================ */
.hbm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 500;
  border-radius: var(--hbm-radius);
  padding: 0.6em 1.2em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hbm-btn-primary {
  background: var(--hbm-emerald);
  color: var(--hbm-light);
}

.hbm-btn-secondary {
  background: var(--hbm-gold);
  color: var(--hbm-dark);
}

.hbm-btn-ghost {
  border: 1px solid var(--hbm-gold);
  color: var(--hbm-gold);
  background: transparent;
}

.hbm-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ============================================================
   SECTION LAYOUTS
============================================================ */
.hbm-section {
  background: var(--hbm-emerald-dark);
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hbm-section:nth-child(even) {
  background: #10211d;
}

.hbm-section-title {
  font-size: 1.9rem;
  margin-bottom: 0.3em;
  color: var(--hbm-gold);
}

.hbm-section-subtitle {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 2em;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.hbm-grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hbm-about-content {
  color: #eee;
  font-size: 1rem;
}

.hbm-review-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--hbm-radius);
  padding: 25px;
  box-shadow: var(--hbm-shadow);
}

/* ============================================================
   MENU GRID & ACCORDION
============================================================ */
.hbm-menu-category {
  margin-bottom: 1.4em;
  border-radius: var(--hbm-radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.hbm-menu-category-header {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: var(--hbm-gold);
  font-weight: 600;
  padding: 0.9em 1.2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.hbm-menu-category.is-open .hbm-menu-category-toggle {
  transform: rotate(180deg);
}

.hbm-menu-category-body {
  display: none;
  padding: 1.2em;
}

.hbm-menu-category.is-open .hbm-menu-category-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

.hbm-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.hbm-menu-item {
  background: rgba(0,0,0,0.35);
  border-radius: var(--hbm-radius);
  overflow: hidden;
  box-shadow: var(--hbm-shadow);
  transition: transform 0.3s ease;
}

.hbm-menu-item:hover {
  transform: translateY(-4px);
}

.hbm-menu-item-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hbm-menu-item-body {
  padding: 1em;
}

.hbm-menu-item-title {
  font-size: 1.1rem;
  color: var(--hbm-gold);
  margin-bottom: 0.4em;
}

.hbm-menu-item-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.6em;
}

.hbm-menu-item-price {
  font-weight: 600;
  color: var(--hbm-gold-light);
  font-size: 1rem;
}

/* ============================================================
   HOURS & CONTACT
============================================================ */
.hbm-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hbm-hours-table th {
  text-align: left;
  color: var(--hbm-gold);
  padding: 0.5em 0.8em;
  width: 40%;
}

.hbm-hours-table td {
  color: #eee;
  padding: 0.5em 0.8em;
}

.hbm-hours-table tr.is-today {
  background: rgba(255,255,255,0.05);
}

.hbm-hours-status {
  margin-top: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hbm-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hbm-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #ddd;
}

.hbm-contact-icon {
  font-size: 1.2em;
  color: var(--hbm-gold);
}

/* ============================================================
   GALLERY
============================================================ */
.hbm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.hbm-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--hbm-radius);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hbm-gallery-item img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ============================================================
   MAP SECTION
============================================================ */
.hbm-map {
  width: 100%;
  height: 350px;
  border-radius: var(--hbm-radius);
  overflow: hidden;
  margin-bottom: 1em;
  box-shadow: var(--hbm-shadow);
}

/* ============================================================
   NEARBY GRID
============================================================ */
.hbm-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.hbm-nearby-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--hbm-radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hbm-nearby-card:hover {
  transform: translateY(-4px);
}

.hbm-nearby-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.hbm-nearby-body {
  padding: 1em;
}

.hbm-nearby-title a {
  color: var(--hbm-gold);
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================
   FOOTER
============================================================ */
.hbm-single-footer {
  background: #0a1513;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hbm-single-credit {
  color: #999;
  font-size: 0.9rem;
}

.hbm-single-credit a {
  color: var(--hbm-gold-light);
  text-decoration: none;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .hbm-grid--2col {
    grid-template-columns: 1fr;
  }
  .hbm-hero {
    height: 55vh;
  }
  .hbm-container {
    padding: 40px 0;
  }
}

@media (max-width: 600px) {
  .hbm-hero-title {
    font-size: 1.8rem;
  }
  .hbm-section-title {
    font-size: 1.5rem;
  }
  .hbm-btn {
    font-size: 0.9rem;
    padding: 0.5em 1em;
  }
}
