/* ============================================================
   home.css – homepage and about page sections
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  /* Put a photo at images/hero.jpg. If it is missing, the dark
     teal colour below is shown instead, so the page never breaks. */
  background: #0b4a5e url("../images/hero.jpg") center / cover no-repeat;
  position: relative;
  color: #fff;
  padding: 5rem 0 4rem;
}
.hero::before {                      /* dark overlay so text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 52, 0.62);
}
.hero .container { position: relative; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 0.8rem; }
.hero-subtitle { font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; color: #e3eef2; }

/* ---------- Search box ---------- */
.search-box {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr auto;
  gap: 0.8rem;
  align-items: end;
  background: var(--surface);
  color: var(--text);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.search-box .form-group { margin-bottom: 0; }

/* ---------- Generic sections ---------- */
.section { padding: 3.5rem 0 0; }
.section-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Popular destinations ---------- */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.destination-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 190px;
  padding: 1rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
  background-color: #0b6e8a;          /* fallback if the photo is missing */
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
}
.destination-card::before {          /* gradient so the label is readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.05) 60%);
}
.destination-card span { position: relative; }
.destination-card:hover { transform: translateY(-3px); text-decoration: none; }

/* ---------- Featured packages (filled in Phase 3) ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text); margin-bottom: 0.4rem; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.step { text-align: center; }
.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Why TripSphere ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--primary); }
.feature-card p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- About page ---------- */
.page-banner { background: #0b4a5e; color: #fff; padding: 3rem 0; }
.page-banner h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-banner p { color: #d4e6ec; max-width: 620px; }
.prose { max-width: 760px; }
.prose h2 { margin: 2rem 0 0.6rem; font-size: 1.4rem; }
.prose p, .prose li { color: #374151; margin-bottom: 0.6rem; }
.prose ul { padding-left: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .destination-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .search-box { grid-template-columns: 1fr 1fr; }
  .search-box .btn { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; }
  .search-box { grid-template-columns: 1fr; }
  .destination-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .section { padding-top: 2.5rem; }
}
