/* home.css — homepage-only styles
   Loaded exclusively via home.njk / index.njk extraCss front matter.
   Depends on main.css variables and base resets being loaded first.
   To update course count: edit marketIntro in src/index.njk front matter.
*/

/* HERO — matches page-hero treatment exactly, uses --green-dark */
.home-hero {
  background: var(--green-dark);
  padding: 56px 24px 52px;
  text-align: center;
}

.home-hero__headline {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
  white-space: normal;
}

.home-hero__subline {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-br {
  display: none;
}

/* MARKET GRID SECTION — same green as hero, flush continuation */
.market-grid {
  background: var(--green-dark);
  padding: 32px 24px 64px;
  text-align: center;
}

.market-intro {
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

/* MARKET CARDS — horizontal row, gold accent on hover */
.market-cards {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.market-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 44px;
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  min-width: 220px;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.market-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 16px rgba(45, 106, 79, 0.1);
}

.market-card__pin {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
}

/* MOBILE */
@media (max-width: 640px) {
  .home-hero__headline {
    font-size: 24px;
  }

  .hero-br {
    display: block;
  }

  .market-cards {
    flex-direction: column;
    align-items: center;
  }

  .market-card {
    width: 100%;
    max-width: 320px;
  }
}
