/* ============================================================
   BLACKPACKER CHILD v2 — HOMEPAGE STYLES
   ============================================================ */

/* ── 1. HERO ─────────────────────────────────────────────── */
#hero {
  padding: clamp(3rem, 7vw, 6rem) var(--px) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-left { max-width: 580px; }
.hero-title {
  font-size: clamp(36px, 5.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}
.hero-title .emoji { display: inline-block; font-style: normal; font-size: 0.9em; }
.hero-title .highlight { color: var(--blue); }

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--body);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: flex; gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 24px; font-weight: 800;
  color: var(--ink); line-height: 1;
}
.hero-stat-label {
  font-size: 13px; color: var(--muted);
  font-weight: 400; margin-top: 2px;
}
.stat-divider {
  width: 1px; background: var(--border);
  align-self: stretch;
}

/* ── Hero right — floating photo cards ── */
.hero-right { position: relative; height: 520px; }

.float-card {
  position: absolute;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.float-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.float-card-1 { width: 240px; height: 300px; top: 20px; left: 20px; z-index: 3; }
.float-card-2 { width: 200px; height: 240px; top: 60px; right: 10px; z-index: 4; }
.float-card-3 { width: 220px; height: 200px; bottom: 20px; left: 80px; z-index: 3; }

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}
.blob-1 { width: 280px; height: 280px; background: var(--blue-bg); top: -20px; left: 0; }
.blob-2 { width: 220px; height: 220px; background: var(--warm-bg); top: 40px; right: 0; }
.blob-3 { width: 200px; height: 200px; background: var(--green-bg); bottom: 0; left: 60px; }

.float-label {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  z-index: 10;
  letter-spacing: 0.2px;
}
.float-label .label-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.label-blue  { background: var(--blue); }
.label-green { background: var(--green); }
.label-warm  { background: var(--warm); }
.label-purple { background: var(--purple); }

.label-pos-1 { top: 0; left: 50px; }
.label-pos-2 { bottom: 200px; right: -10px; }
.label-pos-3 { bottom: 10px; right: 30px; }
.label-pos-4 { top: 300px; left: 10px; }

/* ── 2. HOW IT WORKS ────────────────────────────────────── */
#how {
  background: #f9fafb;
  padding: clamp(3rem, 6vw, 5rem) var(--px);
}
.how-inner { max-width: 1200px; margin: 0 auto; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.how-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.how-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.how-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 1.25rem;
}
.how-icon-blue   { background: var(--blue-bg); }
.how-icon-warm   { background: var(--warm-bg); }
.how-icon-green  { background: var(--green-bg); }
.how-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--ink); margin-bottom: 0.5rem;
}
.how-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.how-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  color: var(--blue); margin-top: 1rem;
  transition: gap var(--ease);
}
.how-card-link:hover { gap: 10px; }

/* ── 3. EVENTS ──────────────────────────────────────────── */
#events {
  padding: clamp(3rem, 6vw, 5rem) var(--px);
  max-width: 1400px; margin: 0 auto;
}
.events-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 2rem;
  flex-wrap: wrap; gap: 1rem;
}
.see-all-link {
  font-size: 14px; font-weight: 700;
  color: var(--blue); display: flex;
  align-items: center; gap: 4px;
  transition: gap var(--ease);
}
.see-all-link:hover { gap: 8px; }

.event-filters {
  display: flex; gap: 8px;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.filter-pill {
  padding: 8px 18px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white); color: var(--muted);
  transition: all var(--ease);
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.active {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden; cursor: pointer;
  transition: box-shadow var(--ease), transform var(--ease);
}
.event-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.event-card-img {
  height: 180px; position: relative; overflow: hidden;
}
.event-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.event-card:hover .event-card-img img { transform: scale(1.04); }
.event-type-chip {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.chip-in-person { background: var(--green-bg); color: #065f46; }
.chip-virtual   { background: var(--blue-bg);  color: #1e40af; }
.chip-trek      { background: var(--purple-bg); color: #5b21b6; }
.event-card-body { padding: 1.25rem; }
.event-date-row {
  font-size: 12px; font-weight: 700;
  color: var(--blue); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 0.4rem;
}
.event-card-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--ink); line-height: 1.35;
  margin-bottom: 0.5rem;
}
.event-card-body p {
  font-size: 13px; color: var(--muted);
  line-height: 1.5; margin-bottom: 1rem;
}
.event-card-footer-row {
  display: flex; justify-content: space-between;
  align-items: center;
}

/* ── 4. CATEGORIES ──────────────────────────────────────── */
#categories {
  background: #f9fafb;
  padding: clamp(3rem, 6vw, 5rem) var(--px);
}
.categories-inner { max-width: 1200px; margin: 0 auto; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1rem;
  text-align: center; cursor: pointer;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
}
.cat-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.cat-emoji { font-size: 32px; line-height: 1; }
.cat-name {
  font-size: 13px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
  text-align: center;
}
.cat-count { font-size: 11px; color: var(--muted); }

/* ── 5. GROUPS ──────────────────────────────────────────── */
#groups {
  padding: clamp(3rem, 6vw, 5rem) var(--px);
  max-width: 1400px; margin: 0 auto;
}
.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.group-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden; cursor: pointer;
  transition: box-shadow var(--ease), transform var(--ease);
}
.group-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.group-card-img {
  height: 160px; overflow: hidden; position: relative;
}
.group-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.group-card:hover .group-card-img img { transform: scale(1.05); }
.group-card-body { padding: 1.25rem; }
.group-topic-chip {
  display: inline-block;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.topic-adventure  { background: var(--green-bg);  color: #065f46; }
.topic-women      { background: var(--coral-bg);  color: #9f1239; }
.topic-budget     { background: var(--warm-bg);   color: #92400e; }
.topic-career     { background: var(--purple-bg); color: #5b21b6; }
.topic-photo      { background: var(--blue-bg);   color: #1e40af; }
.topic-culture    { background: #fef9c3; color: #713f12; }
.group-card-body h3 {
  font-size: 17px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
  margin-bottom: 0.4rem;
}
.group-card-body p {
  font-size: 13px; color: var(--muted);
  line-height: 1.55; margin-bottom: 1rem;
}
.group-card-foot {
  display: flex; justify-content: space-between;
  align-items: center;
}
.group-meta {
  font-size: 13px; color: var(--muted);
  font-weight: 500; display: flex;
  align-items: center; gap: 4px;
}

/* ── 6. STORIES ─────────────────────────────────────────── */
#stories {
  background: #f9fafb;
  padding: clamp(3rem, 6vw, 5rem) var(--px);
}
.stories-inner { max-width: 1200px; margin: 0 auto; }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.story-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
  cursor: pointer;
}
.story-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}
.story-card-img {
  height: 200px; overflow: hidden;
}
.story-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.story-card:hover .story-card-img img { transform: scale(1.04); }
.story-card-body { padding: 1.25rem; }
.story-chip {
  display: inline-block; padding: 4px 12px;
  border-radius: var(--r-pill); font-size: 11px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 0.6rem;
}
.story-card-body h3 {
  font-size: 17px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
  margin-bottom: 0.5rem;
}
.story-card-body p {
  font-size: 13px; color: var(--muted);
  line-height: 1.6; margin-bottom: 1rem;
}
.story-author {
  display: flex; align-items: center; gap: 10px;
}
.author-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.author-info .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.author-info .date { font-size: 12px; color: var(--muted); }

/* ── 7. THE BLACKPACKER SAGA ────────────────────────────── */
#saga {
  background: var(--white);
  padding: clamp(3rem, 6vw, 5rem) var(--px);
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}
.saga-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
}
.saga-text { max-width: 560px; }

.saga-heading {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.saga-heading .highlight { color: var(--blue); }

.saga-body {
  font-size: 16px;
  color: var(--body);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}
.saga-body strong { font-weight: 700; color: var(--ink); }

.saga-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.saga-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Saga visual */
.saga-visual {
  position: relative;
  height: 520px;
}

.saga-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}
.saga-blob-1 { width: 300px; height: 300px; background: var(--blue-bg); top: -20px; left: 0; }
.saga-blob-2 { width: 210px; height: 210px; background: var(--warm-bg); top: 50px; right: 0; }
.saga-blob-3 { width: 175px; height: 175px; background: var(--green-bg); bottom: 10px; left: 55px; }

.saga-photo {
  position: absolute;
  width: 285px; height: 420px;
  top: 28px; left: 48px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
  z-index: 3;
}
.saga-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  transition: transform 0.5s ease;
}
.saga-photo:hover img { transform: scale(1.04); }

.saga-label-1 {
  position: absolute;
  top: 6px; right: 10px;
  z-index: 10;
}
.saga-label-2 {
  position: absolute;
  bottom: 50px; right: 5px;
  z-index: 10;
}
.saga-label-3 {
  position: absolute;
  top: 290px; left: 4px;
  z-index: 10;
}

/* ── 8. TRIP PLANNER ────────────────────────────────────── */
#planner {
  background: var(--blue);
  padding: clamp(3rem, 6vw, 5rem) var(--px);
  position: relative; overflow: hidden;
}
.planner-blob-1 {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(255,255,255,0.07);
  top: -100px; right: -80px; pointer-events: none;
}
.planner-blob-2 {
  position: absolute; width: 250px; height: 250px;
  border-radius: 50%; background: rgba(255,255,255,0.05);
  bottom: -60px; left: 40%;  pointer-events: none;
}
.planner-inner {
  max-width: 800px; margin: 0 auto;
  position: relative; z-index: 2;
  text-align: center;
}
.planner-inner .section-eyebrow { color: rgba(255,255,255,0.7); }
.planner-inner .section-heading { color: var(--white); margin-bottom: 0.5rem; }
.planner-inner .section-sub { color: rgba(255,255,255,0.75); margin: 0 auto 2.5rem; }

.planner-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 16px;
  text-align: left;
}
.pf { display: flex; flex-direction: column; gap: 6px; }
.pf.full { grid-column: 1 / -1; }
.pf label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.pf input, .pf select, .pf textarea {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 13px 15px;
  border-radius: var(--r-lg);
  font-size: 14px; font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none; width: 100%;
  transition: border-color var(--ease); resize: none;
}
.pf input::placeholder { color: rgba(255,255,255,0.4); }
.pf input:focus, .pf select:focus, .pf textarea:focus { border-color: rgba(255,255,255,0.65); }
.pf select option { background: #1f5fa0; }
.planner-note {
  margin-top: 1rem; font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex; align-items: center;
  justify-content: center; gap: 6px;
}

/* ── 9. JOIN CTA ────────────────────────────────────────── */
#join-cta {
  padding: clamp(4rem, 8vw, 7rem) var(--px);
  text-align: center; background: var(--white);
}
.join-cta-inner { max-width: 700px; margin: 0 auto; }
.join-big-text {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; color: var(--ink);
  letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 1rem;
}
.join-big-text .blue { color: var(--blue); }
.join-sub {
  font-size: 17px; color: var(--muted);
  font-weight: 400; line-height: 1.65;
  margin-bottom: 2.5rem;
}
.join-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   HOMEPAGE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .groups-grid { grid-template-columns: 1fr 1fr; }
  .stories-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .saga-grid { grid-template-columns: 1fr; }
  .saga-visual { display: none; }
  .saga-text { max-width: 100%; }
}
@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .groups-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .planner-form-grid { grid-template-columns: 1fr; }
  .pf.full { grid-column: auto; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .saga-stats { gap: 1.25rem; }
  .saga-ctas { flex-direction: column; align-items: flex-start; }
}
