/* ===== Variables ===== */
:root {
  --color-primary: #c45c26;
  --color-primary-dark: #a34a1e;
  --color-secondary: #2d4a3e;
  --color-accent: #d4a853;
  --color-bg: #faf7f2;
  --color-bg-dark: #1a1612;
  --color-text: #2c2419;
  --color-text-light: #6b5d4f;
  --color-white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(26, 22, 18, 0.08);
  --shadow-md: 0 8px 30px rgba(26, 22, 18, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 22, 18, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(26, 22, 18, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
}

.logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 22, 18, 0.5) 0%,
    rgba(26, 22, 18, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding-top: var(--header-height);
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
}

.hero-scroll span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-white);
  border-radius: 2px;
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== About ===== */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.about-features {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.about-features li {
  text-align: center;
}

.about-features strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
}

.about-features span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Menu ===== */
.menu {
  background: var(--color-white);
}

.menu-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.menu-active-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  min-height: 1.6em;
}

.menu-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 2rem;
  font-size: 1rem;
}

.menu-filter {
  padding: 0.5rem 1.25rem;
  border: 2px solid #e8e0d5;
  border-radius: 50px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.menu-filter:hover,
.menu-filter.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.menu-card.hidden {
  display: none;
}

.menu-card-image {
  height: 200px;
  overflow: hidden;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.1);
}

.menu-card-body {
  padding: 1.25rem;
}

.menu-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.menu-card-body p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.menu-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ===== Reservation ===== */
.reservation {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1e3329 100%);
  color: var(--color-white);
}

.reservation .section-tag {
  color: var(--color-accent);
}

.reservation .section-title {
  color: var(--color-white);
}

.reservation-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.reservation-info p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.reservation-hours {
  margin-bottom: 1.5rem;
}

.reservation-hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.reservation-hours strong {
  color: var(--color-accent);
}

.reservation-note {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.reservation-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  color: var(--color-text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e8e0d5;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-message.success {
  color: #2d7a4f;
}

.form-message.error {
  color: #c0392b;
}

/* ===== Reviews ===== */
.reviews-section {
  background: var(--color-bg);
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.review-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.review-form h3,
.reviews-list-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star-rating .star {
  background: none;
  border: none;
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--transition), transform 0.15s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: var(--color-accent);
  transform: scale(1.1);
}

.reviews-list-wrap {
  min-height: 200px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.review-card {
  background: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.4s ease;
}

.review-card--new {
  border-left: 4px solid var(--color-primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-stars .star-filled {
  color: var(--color-accent);
}

.review-stars .star-empty {
  color: #ddd;
}

.review-comment {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.review-date {
  font-size: 0.8rem;
  color: #aaa;
}

.reviews-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 2rem;
}

.about-features {
  flex-wrap: wrap;
}

/* ===== Map ===== */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.map-wrapper iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.map-directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.direction-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.direction-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.direction-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== Contact ===== */
.contact {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}

.contact-card--link:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.contact-link-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-primary);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.contact-card a:hover {
  color: var(--color-primary);
}

/* Nút mạng xã hội cố định góc phải */
.social-float {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.social-float-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: socialFloatIn 0.5s ease backwards, socialFloatBob 3s ease-in-out infinite;
}

.social-float-btn:nth-child(1) { animation-delay: 0.1s, 0s; }
.social-float-btn:nth-child(2) { animation-delay: 0.2s, 0.4s; }
.social-float-btn:nth-child(3) { animation-delay: 0.3s, 0.8s; }

.social-float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  animation-play-state: paused;
}

.social-float-btn:hover::before {
  opacity: 0.35;
  transform: scale(1.15);
}

.social-float-btn:active {
  transform: scale(1.05);
}

.social-float-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.social-float-btn:hover svg {
  transform: scale(1.08);
}

.social-float-btn--facebook {
  background: #1877f2;
}

.social-float-btn--phone {
  background: #2d7a4f;
  animation: socialFloatIn 0.5s ease backwards, socialFloatBob 3s ease-in-out infinite, socialPhonePulse 2s ease-out infinite;
}

.social-float-btn--zalo {
  background: #0068ff;
}

.social-float-zalo-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes socialFloatIn {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes socialFloatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes socialPhonePulse {
  0% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(45, 122, 79, 0.5);
  }
  70% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 12px rgba(45, 122, 79, 0);
  }
  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(45, 122, 79, 0);
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  text-align: center;
}

.footer-inner p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer strong {
  color: var(--color-accent);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-accent);
}

.lightbox-close {
  top: 1.5rem;
  right: 2rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid,
  .reservation-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
    height: 280px;
  }

  .gallery-item {
    height: 200px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .map-directions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(26, 22, 18, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-features {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-float {
    right: 1rem;
    bottom: 4rem;
  }

  .social-float-btn {
    width: 52px;
    height: 52px;
  }

  .social-float-btn svg {
    width: 24px;
    height: 24px;
  }

  .social-float-zalo-text {
    font-size: 0.75rem;
  }
}

/* ===== Nội dung động từ backend ===== */
.gallery-grid { grid-auto-rows: 220px; }
.content-loading,
.content-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--color-text-light);
}
.content-error { color: #c0392b; }
.menu-grid > .menu-empty { grid-column: 1 / -1; }
.menu-card-image img,
.gallery-item img,
.about-image img { background: #e8e0d5; }
