:root {
  --bg: #f4eee5;
  --paper: #ffffff;
  --ink: #1d1b19;
  --muted: #746f68;
  --gold: #aa8750;
  --gold-dark: #806232;
  --line: rgba(29, 27, 25, .1);
  --dark: #171714;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.section { padding: 100px 0; scroll-margin-top: 72px; } 
.bg-paper { background-color: var(--paper); }
.bg-dark { background-color: var(--dark); color: #fff; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header & Logo */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto 0; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; color: #fff; transition: .3s ease; }
.site-header.scrolled { height: 72px; color: var(--ink); background: rgba(255, 255, 255, .96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark-img { height: 42px; width: auto; border-radius: 4px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: .9rem; letter-spacing: .16em; }
.brand-text small { margin-top: 5px; font-size: .55rem; letter-spacing: .28em; opacity: .75; }

/* Nav */
.nav { display: flex; align-items: center; gap: 30px; font-size: .85rem; }
.nav a { position: relative; font-weight: 500; }
.nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: currentColor; transition: .25s ease; }
.nav > a:hover::after { right: 0; }
.nav-cta { padding: 11px 18px; border: 1px solid currentColor; border-radius: 2px; }
.menu-toggle { display: none; }

/* HERO SLIDER */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-slider .slide {
  position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.05); transition: opacity 1.5s ease-in-out;
}
.hero-slider .slide.active { 
  opacity: 1; transform: scale(1); transition: opacity 1.5s ease-in-out, transform 8s ease-out; 
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,10,8,.8) 0%, rgba(10,10,8,.5) 43%, rgba(10,10,8,.2) 100%), linear-gradient(0deg, rgba(10,10,8,.3), transparent 45%); }
.hero-content { position: relative; z-index: 2; padding-top: 80px; }

.eyebrow, .section-kicker { margin: 0 0 20px; font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); }
.hero .eyebrow { color: #e9d7b6; }
.hero h1 { max-width: 900px; margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(3.2rem, 7vw, 7.2rem); line-height: 1.15; letter-spacing: -.02em; padding-bottom: 10px; }
.hero h1 em { font-weight: 500; color: #ecd8b6; }
.hero-copy { max-width: 610px; margin: 25px 0 0; color: rgba(255,255,255,.85); font-size: clamp(1rem, 2vw, 1.08rem); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: .25s ease; font-weight: 500; font-size: 0.95rem; }
.btn-primary { color: #fff; background: var(--gold); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(170,135,80,0.2); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Typography & Grids */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 8vw; align-items: start; }
.section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.intro-copy { max-width: 560px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats article { padding: 34px 0; }
.stats article + article { border-left: 1px solid var(--line); padding-left: 42px; }
.stats strong { display: block; font-family: var(--serif); font-size: 3.3rem; line-height: 1; color: var(--gold-dark); }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: .88rem; }

/* Dịch vụ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: start; }
.services-sticky { position: sticky; top: 110px; }
.services-sticky p:not(.eyebrow) { color: var(--muted); margin-top: 20px; font-size: 1.05rem; }
.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-item { display: flex; gap: 20px; background: var(--bg); padding: 30px; border-radius: 4px; border: 1px solid transparent; transition: .3s ease; }
.service-item:hover { border-color: var(--gold); transform: translateX(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); background: var(--paper); }
.service-item span { font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.service-item h3 { font-size: 1.25rem; margin: 0 0 10px 0; font-family: var(--serif); font-weight: 600; color: var(--ink); }
.service-item p { color: var(--muted); font-size: .95rem; margin: 0; }

.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 7vw; align-items: end; margin-bottom: 52px; }
.section-heading > p { color: var(--muted); max-width: 480px; }

/* SẢNH TIỆC */
.package-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; transition: all 0.4s ease; }
.package-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; transition: all 0.4s ease; cursor: pointer; overflow: hidden; }
.package-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(47,36,20,.08); border-color: var(--gold); }

.card-img-wrap { width: 100%; height: 260px; overflow: hidden; position: relative; }
.card-img-wrap img { transition: transform 0.6s ease; }
.package-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-content-wrap { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.package-number { color: var(--gold); font-size: .75rem; letter-spacing: .2em; font-weight: 600; }
.package-card h3 { margin: 12px 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.card-short-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; }

.view-more-btn { margin-top: auto; color: var(--gold-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 15px; transition: color 0.3s; }
.package-card:hover .view-more-btn { color: var(--gold); gap: 10px; border-color: var(--gold); }

.featured-card { background: var(--dark); color: #fff; border-color: var(--dark); }
.featured-card .card-short-desc { color: rgba(255,255,255,.7); }
.featured-card .view-more-btn { color: #e2c38f; border-color: rgba(255,255,255,.1); }
.badge { position: absolute; top: 20px; right: 20px; padding: 6px 12px; color: #201c16; background: #e7cfaa; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; z-index: 2; }

.package-grid.collapsed .package-card { flex-direction: row; align-items: center; padding: 15px; border-radius: 4px; }
.package-grid.collapsed .card-img-wrap { width: 120px; height: 80px; border-radius: 4px; flex-shrink: 0; }
.package-grid.collapsed .card-content-wrap { padding: 0 0 0 20px; }
.package-grid.collapsed .card-short-desc, 
.package-grid.collapsed .view-more-btn,
.package-grid.collapsed .badge { display: none; }
.package-grid.collapsed .package-number { margin: 0; font-size: 0.7rem; }
.package-grid.collapsed .package-card h3 { margin: 5px 0 0 0; font-size: 1.5rem; }

.package-card.active-hall { border-color: var(--gold); background: #fdfaf5; box-shadow: 0 10px 30px rgba(170, 135, 80, 0.15); }
.featured-card.active-hall { background: #262421; border-color: var(--gold); }

/* Inline Details Container */
.inline-details-container { display: none; margin-top: 30px; padding: 40px; background: var(--paper); border: 1px solid var(--gold); border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.04); animation: fadeInDown 0.5s ease forwards; }
.inline-details-content { display: none; }
.inline-details-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.inline-details-header h4 { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 10px 0; color: var(--ink); }
.close-details-btn { background: transparent; border: 1px solid var(--line); padding: 8px 15px; border-radius: 2px; cursor: pointer; color: var(--muted); transition: 0.3s; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.close-details-btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px 30px; }
.check-list li { position: relative; padding: 8px 0 8px 24px; color: var(--ink); font-size: 0.95rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: bold; }

/* GALLERY 5 ẢNH (MASONRY GRID) */
.inline-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 25px; }
.inline-gallery img { width: 100%; object-fit: cover; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.inline-gallery img:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.15); z-index: 2; position: relative; }
.inline-gallery img:nth-child(1), .inline-gallery img:nth-child(2) { grid-column: span 3; height: 260px; }
.inline-gallery img:nth-child(3), .inline-gallery img:nth-child(4), .inline-gallery img:nth-child(5) { grid-column: span 2; height: 180px; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Offer Section */
.offer h2 strong { color: var(--gold); }
.offer h2 small { font-size: 1.2rem; font-weight: normal; color: rgba(255,255,255,0.7); font-family: var(--sans); }
.offer-copy { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 35px; }

/* CSS LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(8px); }
.lightbox.show { display: flex; justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
.lightbox-content { max-width: 85%; max-height: 85vh; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: rgba(255,255,255,0.7); font-size: 45px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 10001; }
.lightbox-close:hover { color: var(--gold); transform: scale(1.1); }
.lightbox-prev, .lightbox-next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 20px; margin-top: -30px; color: rgba(255,255,255,0.6); font-weight: bold; font-size: 40px; transition: 0.3s; user-select: none; z-index: 10002; }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--gold); transform: scale(1.1); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8vw; align-items: start; }
details { background: var(--paper); border: 1px solid var(--line); margin-bottom: 15px; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; }
details:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
summary { padding: 22px 25px; cursor: pointer; font-weight: 500; display: flex; justify-content: space-between; align-items: center; list-style: none; color: var(--ink); font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--gold-dark); font-size: 1.4rem; transition: transform 0.3s; line-height: 0; }
details[open] summary span { transform: rotate(45deg); }
details p { padding: 0 25px 25px; color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.steps article { padding: 35px 28px 0 0; }
.steps article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.steps span { color: var(--gold-dark); font-size: .75rem; letter-spacing: .18em; font-weight: 600; }
.steps h3 { margin: 20px 0 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.steps p { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact { position: relative; color: #fff; background: url("../img/banner-2.jpg") center/cover no-repeat; }
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(17, 17, 14, 0.82); z-index: 1; }
.contact .container { position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 8vw; align-items: start; }
.contact-copy { max-width: 560px; color: rgba(255,255,255,.7); margin-top: 15px; }
.contact-info { margin-top: 48px; display: grid; gap: 20px; }
.contact-info p { margin: 0; color: rgba(255,255,255,.85); }
.contact-info span { display: block; margin-bottom: 5px; color: #c9a66f; font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

/* Form */
.lead-form { padding: 40px; background: var(--paper); color: var(--ink); border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.lead-form label { display: grid; gap: 8px; margin-bottom: 20px; font-size: .8rem; font-weight: 600; color: #4e4943; }
.lead-form input, .lead-form textarea { width: 100%; border: 1px solid #d3c8ba; border-radius: 2px; outline: none; background: #fffdf9; padding: 14px 16px; color: var(--ink); resize: vertical; transition: border-color 0.3s; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--gold); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn-full { width: 100%; height: 54px; font-size: 1.05rem; margin-top: 10px; }
.form-note { margin: 15px 0 0; font-size: .75rem; color: #8c847a; text-align: center; }

/* Footer Mới CÓ MAP */
.footer { padding: 60px 0 30px; background: #0a0a09; color: #fff; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--gold); }
.footer-map iframe { width: 100%; height: 260px; border-radius: 8px; border: none; filter: contrast(1.1) opacity(0.9); transition: 0.3s; }
.footer-map iframe:hover { filter: contrast(1) opacity(1); }
.footer-copyright { margin-top: 50px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* Scroll Reveal */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* NÚT LIÊN HỆ NỔI */
.floating-contact { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 12px; z-index: 90; }
.btn-contact { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.15); background: #fff; transition: 0.3s ease; }
.btn-contact:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-contact img { width: 28px; height: 28px; object-fit: contain; }

/* TỐI ƯU GIAO DIỆN MOBILE & TABLET */
@media (max-width: 1024px) {
  .intro-grid, .services-grid, .contact-grid, .faq-grid { gap: 4vw; }
  .package-grid { gap: 15px; }
  .inline-details-container { padding: 30px 20px; }
}

@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .site-header { padding-inline: 24px; }
  .menu-toggle { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; border: 0; background: transparent; color: currentColor; }
  .menu-toggle span { width: 24px; height: 1.5px; background: currentColor; }
  .nav { position: fixed; top: 72px; left: 15px; right: 15px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 15px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.15); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 10px; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav-cta { margin-top: 10px; text-align: center; background: var(--gold); color: #fff; border: none; }
  
  .intro-grid, .section-heading, .contact-grid, .faq-grid, .services-grid, .package-grid { grid-template-columns: 1fr; }
  .services-sticky { position: static; margin-bottom: 25px; }
  
  .package-grid.collapsed .package-card { flex-direction: column; align-items: flex-start; padding: 15px; }
  .package-grid.collapsed .card-img-wrap { width: 100%; height: 120px; margin-bottom: 10px; }
  .package-grid.collapsed .card-content-wrap { padding: 0; }

  .inline-gallery { grid-template-columns: 1fr 1fr; }
  .inline-gallery img:nth-child(1), .inline-gallery img:nth-child(2),
  .inline-gallery img:nth-child(3), .inline-gallery img:nth-child(4) { grid-column: span 1; height: 160px; }
  .inline-gallery img:nth-child(5) { grid-column: span 2; height: 200px; }

  .steps { grid-template-columns: 1fr 1fr; border-top: none; }
  .steps article { border-top: 1px solid var(--line); padding: 25px 20px 25px 0; }
  .steps article:nth-child(3), .steps article:nth-child(4), .steps article:nth-child(5) { border-left: 0; padding-left: 0; }
  .steps article:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; }
  
  .lightbox-prev, .lightbox-next { padding: 10px; font-size: 30px; }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
  
  /* FOOTER MOBILE */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-map iframe { height: 300px; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero-content { padding-top: 90px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .stats { grid-template-columns: 1fr; margin-top: 50px; }
  .stats article { padding: 25px 0; }
  .stats article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article:nth-child(even) { border-left: 0; padding: 25px 0; padding-left: 0 !important; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 25px; }
  
  .inline-details-header { flex-direction: column; gap: 15px; align-items: flex-start; }
  .close-details-btn { align-self: flex-end; width: 100%; text-align: center; }
  
  .inline-gallery { grid-template-columns: 1fr; }
  .inline-gallery img { grid-column: span 1 !important; height: 220px !important; }

  .floating-contact { bottom: 20px; right: 15px; transform: scale(0.9); transform-origin: bottom right; }
}

/* ==============================================
   PROMO POPUP QUẢNG CÁO
   ============================================== */
.popup-overlay {
  display: none; /* Ẩn mặc định, JS sẽ bật lên */
  position: fixed;
  inset: 0;
  z-index: 99999; /* Đảm bảo đè lên cả nút Zalo/FB và Header */
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.popup-overlay.show {
  display: flex;
  opacity: 1;
}
.popup-content {
  position: relative;
  max-width: 90%;
  width: 500px; /* Kích thước chuẩn cho ảnh vuông/chữ nhật dọc */
  transform: scale(0.9);
  transition: transform 0.4s ease;
  animation: popupBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes popupBounce {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.popup-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: block;
  cursor: pointer;
}
.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 2;
  transition: 0.3s;
}
.popup-close:hover {
  background: var(--gold);
  color: #fff;
  transform: rotate(90deg); /* Hiệu ứng xoay khi đưa chuột vào */
}