@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --rice-gold: #E5C37A;
  --forest-green: #2F6B4F;
  --terracotta: #C06E4E;
  --mist-gray: #F3F4F6;
  --text-dark: #1F2937;
  --bg: var(--mist-gray);
  --nav-bg: #ffffff;
  --card-bg: #ffffff;
  --footer-bg: var(--text-dark);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10000;
}
.skip-link:focus {
  top: 8px;
}

html[lang="vi"] .lang-en { display: none !important; }
html[lang="en"] .lang-vi { display: none !important; }

.dark {
  --bg: #0f172a; /* slate-900 */
  --text-dark: #e5e7eb; /* gray-200 */
  --nav-bg: #111827; /* gray-900 */
  --card-bg: #1f2937; /* gray-800 */
  --footer-bg: #0b1220;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

/* Utility classes to match Tailwind-like custom colors used in HTML */
.text-forest-green { color: var(--forest-green) !important; }
.text-rice-gold { color: var(--rice-gold) !important; }
.bg-rice-gold { background-color: var(--rice-gold) !important; }
.bg-terracotta { background-color: var(--terracotta) !important; }
.hover\:text-forest-green:hover { color: var(--forest-green) !important; }
.hover\:bg-terracotta:hover { background-color: var(--terracotta) !important; }
.hover\:text-terracotta:hover { color: var(--terracotta) !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

.navbar {
  background-color: var(--nav-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero {
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(47, 107, 79, 0.7), rgba(229, 195, 122, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.btn-primary {
  background-color: var(--forest-green);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--terracotta);
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rice-gold);
}

.timeline-item {
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--forest-green);
  border-radius: 50%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 20px;
  line-height: 36px;
}

.footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 40px 0;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 16px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
