:root {
  --deep: #0f2f2a;
  --gold: #c6a75e;
  --softgold: #e8d8a9;
  --bg: #f6f4ef;
  --text: #222;
  --muted: #555;
  --accent: #c6a75e;
}

body {
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--text);
  margin: 0;
}

/* ================= HERO ================= */
.index-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(15, 47, 42, 0.6), rgba(15, 47, 42, 0.6)),
    url("<?= $base_url ?>/assets/images/hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.index-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* subtle overlay for luxury effect */
  z-index: 1;
}

.index-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.index-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards;
}

.index-hero p {
  margin-top: 20px;
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.3s;
}
.index-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.index-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards;
}
.index-hero p {
  margin-top: 20px;
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.3s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Search */
.hero-search {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-search input {
  width: 320px;
  padding: 12px 20px;
  border-radius: 30px 0 0 30px;
  border: none;
  outline: none;
  font-size: 1rem;
}
.hero-search button {
  padding: 12px 20px;
  border: none;
  border-radius: 0 30px 30px 0;
  background: linear-gradient(135deg, var(--gold), var(--softgold));
  font-weight: 700;
  cursor: pointer;
}
#searchResults {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}
#searchResults .result-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: 0.2s;
}
#searchResults .result-card:hover {
  background: #f0f0f0;
}
.result-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.result-card .info {
  flex: 1;
}
.result-card .info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep);
}
.result-card .info p {
  margin: 3px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.result-card .badge {
  display: inline-block;
  font-size: 0.65rem;
  background: linear-gradient(135deg, var(--gold), var(--softgold));
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 3px;
  font-weight: 700;
}

/* Containers & Sections */
.index-container {
  width: 92%;
  max-width: 1300px;
  margin: auto;
}
.index-section {
  padding: 90px 0;
}
.index-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 40px;
  text-align: center;
}
.index-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--gold);
  display: block;
  margin: 12px auto 0;
  border-radius: 10px;
}

/* Grid Cards */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.index-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.4s;
  position: relative;
}
.index-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}
.index-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: 0.4s;
}
.index-card:hover img {
  transform: scale(1.05);
}
.index-card-content {
  padding: 20px;
}
.index-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--deep);
}
.index-card p {
  font-size: 0.95rem;
  color: var(--muted);
}
.index-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--gold), var(--softgold));
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Scroll Reveal */
.index-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}
.index-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .index-hero {
    padding: 100px 20px;
  }
  .index-hero h1 {
    font-size: 2rem;
  }
  .index-section {
    padding: 60px 0;
  }
  .index-card img {
    height: 200px;
  }
  .hero-search input {
    width: 200px;
  }
}
