/*
Theme Name:  eMenu Theme
Theme URI:   https://dev.com.vn
Description: Theme cho eMenu.com.vn - Tim Quan, Xem Menu, Dat Ban
Version:     1.0.0
Author:      dev.com.vn
Author URI:  https://dev.com.vn
Text Domain: emenu-theme
Tags:        restaurant, food, menu, directory
*/

/* Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --em-primary:      #e8420a;
  --em-primary-dark: #c23508;
  --em-accent:       #ff9500;
  --em-green:        #27ae60;
  --em-bg:           #fff8f4;
  --em-card-bg:      #ffffff;
  --em-text:         #1a1a1a;
  --em-muted:        #777;
  --em-border:       #f0e4da;
  --em-radius:       16px;
  --em-shadow:       0 4px 24px rgba(232,66,10,0.09);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--em-bg);
  color: var(--em-text);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a   { color: var(--em-primary); }

/* ── Header ── */
.em-header {
  background: #fff;
  border-bottom: 2px solid var(--em-border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.em-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.em-logo-icon { font-size: 26px; }
.em-logo-text { font-size: 21px; font-weight: 900; color: var(--em-primary); letter-spacing: -0.5px; }
.em-logo-text span { color: var(--em-accent); }
.em-nav { display: flex; gap: 28px; list-style: none; }
.em-nav a { text-decoration: none; color: var(--em-muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.em-nav a:hover, .em-nav .current-menu-item a { color: var(--em-primary); }
.em-header-cta {
  background: var(--em-primary); color: #fff; border: none;
  padding: 9px 22px; border-radius: 50px; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s; font-family: 'Inter', sans-serif;
  text-decoration: none; display: inline-block;
}
.em-header-cta:hover { background: var(--em-primary-dark); color: #fff; }

.em-header-hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; }
@media (max-width: 768px) {
  .em-header { padding: 0 16px; }
  .em-nav, .em-header-cta { display: none; }
  .em-header-hamburger { display: block; }
}

/* ── Hero ── */
.em-hero {
  background: linear-gradient(135deg, #ff5722 0%, #e8420a 40%, #ff9500 100%);
  padding: 72px 32px 90px;
  text-align: center; position: relative; overflow: hidden;
}
.em-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.em-hero__emoji { font-size: 60px; margin-bottom: 16px; display: block; position: relative; }
.em-hero__title { font-size: clamp(28px,5vw,54px); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 14px; position: relative; }
.em-hero__sub   { font-size: 18px; color: rgba(255,255,255,0.88); margin-bottom: 36px; font-weight: 500; position: relative; }
.em-hero .em-search-form { position: relative; }
.em-hero .em-quick-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; position: relative; }
.em-quick-chip {
  background: rgba(255,255,255,0.22); border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: 50px; padding: 7px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block;
}
.em-quick-chip:hover, .em-quick-chip.active { background: #fff; color: var(--em-primary); border-color: #fff; }

/* ── Container ── */
.em-container { max-width: 1200px; margin: 0 auto; padding: 52px 32px; }
@media (max-width: 768px) { .em-container { padding: 32px 16px; } }

.em-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.em-section-h2     { font-size: 24px; font-weight: 800; }
.em-section-h2 span { color: var(--em-primary); }
.em-see-all { color: var(--em-primary); font-weight: 600; font-size: 14px; text-decoration: none; }
.em-see-all:hover { text-decoration: underline; }

/* ── Footer ── */
.em-footer { background: #1a1a1a; color: #ccc; padding: 48px 32px 24px; }
.em-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 900px) { .em-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .em-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.em-footer__logo-text { font-size: 22px; font-weight: 900; color: var(--em-primary); margin-bottom: 10px; }
.em-footer__logo-text span { color: var(--em-accent); }
.em-footer__desc { font-size: 14px; line-height: 1.65; margin-bottom: 16px; color: #999; }
.em-footer__socials { display: flex; gap: 10px; }
.em-footer__social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #ccc; text-decoration: none; font-size: 16px; transition: background .2s; }
.em-footer__social:hover { background: var(--em-primary); color: #fff; }
.em-footer-col h4 { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.em-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.em-footer-col li a { color: #999; text-decoration: none; font-size: 14px; transition: color .2s; }
.em-footer-col li a:hover { color: var(--em-accent); }
.em-footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #666; }

/* ── Content (pages / posts) ── */
.em-content-wrap { max-width: 900px; margin: 0 auto; }
.em-content { background: #fff; border-radius: var(--em-radius); padding: 36px 40px; box-shadow: var(--em-shadow); }
@media (max-width: 600px) { .em-content { padding: 24px 18px; } }
.em-content h1,.em-content h2,.em-content h3 { color: var(--em-text); margin-bottom: 12px; font-weight: 800; }
.em-content p  { margin-bottom: 16px; line-height: 1.75; }
.em-content ul,.em-content ol { padding-left: 24px; margin-bottom: 16px; }
.em-content li { margin-bottom: 6px; }

/* ── Pagination ── */
.em-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.em-pagination a, .em-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--em-border);
  font-weight: 700; font-size: 14px; text-decoration: none; color: var(--em-text); transition: all .2s;
}
.em-pagination .current, .em-pagination a:hover { background: var(--em-primary); color: #fff; border-color: var(--em-primary); }

/* ── Section alt background ── */
.em-section-alt {
  background: #fff;
  border-top: 2px solid var(--em-border);
  border-bottom: 2px solid var(--em-border);
}
.em-section-alt .em-container { padding-top: 44px; padding-bottom: 44px; }

/* ── Hero chips ── */
.em-hero__chips {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1;
}
.em-quick-chip {
  background: rgba(255,255,255,0.22); border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: 50px; padding: 7px 18px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-block;
}
.em-quick-chip:hover { background: #fff; color: var(--em-primary); border-color: #fff; }

/* ── Hero search position ── */
.em-hero .em-search-form { position: relative; z-index: 1; }
.em-hero .em-hero__title,
.em-hero .em-hero__sub,
.em-hero .em-hero__emoji { position: relative; z-index: 1; }
