/* ============================================================
   TẾT ĐẮK LẮK – Stylesheet
   File: style.css
   Liên kết font: Google Fonts (Anton, Playfair Display, Be Vietnam Pro)
   ============================================================ */

/* ===== BIẾN MÀU (CSS Variables) ===== */
:root {
  --red:        #C0392B;
  --gold:       #D4A017;
  --dark-red:   #8B1A1A;
  --cream:      #FDF6E3;
  --warm-brown: #6B3F2A;
  --dark:       #1A0A00;
  --light-gold: #F5E6C8;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===== TOP HEADER (Logo bar) ===== */
.top-header {
  background: #fff;
  padding: 0.6rem 2.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  position: relative;
  z-index: 200;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text-small {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
}

.logo-text-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  background: var(--red);
  z-index: 100;
  padding: 0 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}

nav ul::-webkit-scrollbar { display: none; }

nav ul li a {
  display: block;
  padding: 1rem 1.6rem;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-bottom-color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  height: calc(100vh - 110px);
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ảnh nền thực */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./images/hero-quang-truong-bmt.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45);
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1.06); }

/* Lớp phủ màu đỏ nâu */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(100,10,10,0.35) 0%, rgba(60,5,5,0.55) 100%);
  z-index: 1;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  max-width: 1100px;
}

/* Badge "CHÀO XUÂN" */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #1A0A00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.5rem 1.6rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

/* Tiêu đề khổng lồ - dùng Be Vietnam Pro để hỗ trợ tiếng Việt đúng */
.hero-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease 0.15s both;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  flex-wrap: wrap;
}

.hero-title .white {
  color: #fff;
  font-size: clamp(3.5rem, 11vw, 10rem);
  display: inline-block;
  line-height: 1.2;
}

.hero-title .gold {
  color: var(--gold);
  font-size: clamp(3.5rem, 11vw, 10rem);
  display: inline-block;
  line-height: 1.2;
}

.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  margin-top: 1.2rem;
  letter-spacing: 1px;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* Nút CTA */
.hero-cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.9rem 3rem;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
  animation: fadeUp 0.8s ease 0.45s both;
}

.hero-cta:hover {
  background: #fff;
  color: var(--red);
}

/* Hoa trang trí góc màn hình */
.deco-flower {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  animation: sway 3s ease-in-out infinite alternate;
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* ===== KEYFRAMES ===== */
@keyframes sway {
  from { transform: rotate(-10deg) scale(1); }
  to   { transform: rotate(10deg) scale(1.1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  max-width: 100%;
  padding: 0;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: block;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--dark-red);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 em {
  color: var(--gold);
  font-style: italic;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #4A3728;
  max-width: 700px;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4rem auto;
  padding: 0 2rem;
  max-width: 1200px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider-icon {
  color: var(--gold);
  font-size: 1.5rem;
}

/* ===== INTRO GRID ===== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.map-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(139,26,26,0.2);
  transform: rotate(2deg);
  transition: transform 0.4s;
}

.map-card:hover { transform: rotate(0deg) scale(1.02); }

.map-card img { width: 100%; display: block; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--dark-red);
  color: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.stat-box .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  display: block;
}

.stat-box .label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

/* ===== CULTURE BAND ===== */
.culture-band {
  background: var(--dark);
  padding: 5rem 2rem;
}

.culture-band-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.culture-band h2,
.culture-band .section-tag { color: #fff; }

.culture-band h2 { color: var(--gold); }

.culture-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.culture-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.culture-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

.culture-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.culture-card-body { padding: 1.5rem; }

.culture-card-body h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.culture-card-body p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== PHONG TỤC TẾT ===== */
.rituals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.ritual-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(192,57,43,0.1);
}

.ritual-item:last-child { border-bottom: none; }

.ritual-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: rgba(192,57,43,0.15);
  line-height: 1;
  min-width: 50px;
  font-weight: 700;
}

.ritual-text h4 {
  color: var(--dark-red);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.ritual-text p {
  color: #6B5040;
  font-size: 0.9rem;
  line-height: 1.7;
}

.altar-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(139,26,26,0.2);
}

.altar-img img { width: 100%; display: block; }

/* ===== ẨM THỰC ===== */
.food-section {
  background: var(--light-gold);
  padding: 5rem 2rem;
}

.food-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.food-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin-top: 3rem;
}

.food-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s;
}

.food-item:hover { transform: scale(1.02); }

.food-item.featured { grid-row: span 2; }

.food-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.food-item:hover img { transform: scale(1.05); }

.food-item.featured img { min-height: 450px; }

.food-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  padding: 1.5rem 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== CẢNH ĐÊM ===== */
.night-scene {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.night-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.night-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.night-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.night-text p {
  max-width: 600px;
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* ===== DANH LAM THẮNG CẢNH ===== */
.attractions-bg {
  background: linear-gradient(180deg, #1A0A00 0%, #3D1515 100%);
  padding: 5rem 2rem;
}

.attr-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.attr-inner .section-tag { color: var(--gold); }
.attr-inner h2            { color: #fff; }
.attr-inner h2 em         { color: var(--gold); }

.attr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.attr-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 350px;
  cursor: pointer;
}

.attr-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.attr-card:hover img { transform: scale(1.1); }

.attr-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 40%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.attr-card:hover .attr-overlay {
  background: linear-gradient(to top, rgba(139,26,26,0.9) 40%, transparent);
}

.attr-overlay h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.attr-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== CON NGƯỜI ===== */
.people-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.people-img { position: relative; overflow: hidden; }
.people-img img { width: 100%; height: 100%; object-fit: cover; }

.people-content {
  background: var(--dark-red);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.people-content .section-tag { color: var(--gold); }
.people-content h2            { color: var(--gold); }

.people-content p {
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.highlight-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== TIỀM NĂNG ===== */
.potential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.potential-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border-top: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.potential-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(192,57,43,0.15);
}

.potential-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.potential-card h3 {
  color: var(--dark-red);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.potential-card p {
  color: #6B5040;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 3rem 2rem;
}

footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

footer .footer-slogan {
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

footer .footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

footer .footer-links a:hover { color: var(--gold); }

footer hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

footer p { font-size: 0.8rem; }

/* ===== DECORATIVE ===== */
.ribbon {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.fire-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.fire-img img { width: 100%; display: block; }

/* ===== ANIMATIONS (Scroll Reveal) ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .intro-grid        { grid-template-columns: 1fr; }
  .food-grid         { grid-template-columns: 1fr 1fr; }
  .food-item.featured{ grid-row: auto; }
  .attr-grid         { grid-template-columns: 1fr; }
  .potential-grid    { grid-template-columns: 1fr; }
  .rituals           { grid-template-columns: 1fr; }
  .people-split      { grid-template-columns: 1fr; }
  .stats-row         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .food-grid       { grid-template-columns: 1fr; }
  nav ul li a      { padding: 1rem 0.8rem; font-size: 0.7rem; }
}

/* ===== TIMELINE TẾT ===== */
.tet-timeline {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
}

.tet-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--red), var(--gold));
  border-radius: 3px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed rgba(192,57,43,0.15);
  position: relative;
  align-items: start;
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 0.2rem;
  line-height: 1.4;
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-red);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #5A3E2B;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}
