/* ==========================================================
   CobAnanda homepage sections — homepage only.
   Loaded by index.html after theme.css, which holds the shared palette,
   type, buttons, header and footer. Every rule is scoped to body.home.
   ========================================================== */
/* ---------- Homepage type helpers ---------- */
body.home .h-eyebrow { display: block; margin-bottom: 18px; font: 600 .78rem/1.3 var(--h-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--h-terracotta-ink); }
body.home .h-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; }
body.home .h-eyebrow--light { color: var(--h-sand); }
body.home .h-lead { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.6; }
body.home .h-more { display: inline-block; font: 600 .82rem/1.2 var(--h-font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--h-terracotta-ink); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
body.home .h-more::after { content: " →"; }
body.home .h-more:hover { color: var(--h-forest); }

/* ---------- Sections ---------- */
body.home .h-section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
body.home .h-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
body.home .h-head .h-eyebrow::before { display: none; }
body.home .h-head p { color: var(--h-muted); }
body.home .h-center { margin-top: clamp(40px, 5vw, 56px); text-align: center; }

/* ---------- Hero ---------- */
body.home .h-hero .hero__text { background: linear-gradient(to left, rgba(31, 48, 40, .86) 0%, rgba(31, 48, 40, .62) 42%, rgba(31, 48, 40, 0) 66%); }
body.home .h-hero h1 { color: var(--h-ivory); font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.9rem); max-width: 15ch; text-shadow: 0 2px 16px rgba(0, 0, 0, .2); }
body.home .h-hero .hero__text p { color: var(--h-ivory); }
body.home .h-hero .actions { margin-top: 32px; }
body.home .h-hero .btn:not(.btn--light) { background: var(--h-ivory); border-color: var(--h-ivory); color: var(--h-forest); }
body.home .h-hero .btn:not(.btn--light):hover { background: var(--h-sand); border-color: var(--h-sand); color: var(--h-forest); }

/* ---------- Our story ---------- */
body.home .h-story { background: var(--h-ivory); }
body.home .h-story__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
body.home .h-story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: var(--radius); box-shadow: var(--shadow); }
body.home .h-story__text { max-width: 540px; }
body.home .h-story__text p { margin-bottom: 18px; }
body.home .h-sign { font-family: var(--h-font-display); font-size: 1.5rem; font-style: normal; color: var(--h-forest); margin: 28px 0 32px !important; }

/* ---------- Offerings ---------- */
body.home .h-offers { background: var(--h-ivory); }
body.home .h-offers .h-card { background: var(--h-white); }  /* white cards so they stand out on the ivory section */
body.home .h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
body.home .h-card,
body.home .h-wide { display: flex; flex-direction: column; background: var(--h-ivory); border-radius: var(--radius); overflow: hidden; color: var(--h-forest); text-decoration: none; transition: transform .25s, box-shadow .25s; }
body.home .h-card:hover,
body.home .h-wide:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--h-forest); }
body.home .h-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body.home .h-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
body.home .h-card__body p,
body.home .h-wide__body p { color: var(--h-muted); margin-bottom: 22px; }
body.home .h-card__meta { display: block; margin-bottom: 10px; font: 600 .74rem/1.4 var(--h-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--h-terracotta-ink); }
body.home .h-card__more { margin-top: auto; font: 600 .78rem/1 var(--h-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--h-forest); }
body.home .h-card__more::after { content: " →"; color: var(--h-terracotta); }
body.home .h-wide { flex-direction: row; margin-top: clamp(20px, 2.5vw, 32px); background: var(--h-forest); color: var(--h-ivory); }
body.home .h-wide:hover { color: var(--h-ivory); }
body.home .h-wide__img { width: 44%; object-fit: cover; aspect-ratio: auto; min-height: 100%; }
body.home .h-wide__body { flex: 1; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
body.home .h-wide h3 { color: var(--h-ivory); font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); }
body.home .h-wide .h-card__meta { color: var(--h-sand); }
body.home .h-wide__body p { color: rgba(244, 240, 231, .86); max-width: 56ch; }
body.home .h-wide .h-card__more { color: var(--h-ivory); }
body.home .h-wide .h-card__more::after { color: var(--h-sand); }

/* ---------- Coaching with Ananda (own section) ---------- */
body.home .h-coaching { background: var(--h-white); }
body.home .h-coaching .h-wide { margin-top: 0; }

/* ---------- Calendar ---------- */
body.home .h-dates { background: var(--h-white); }
body.home .h-dates__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
body.home .h-dates__intro { position: sticky; top: 112px; }
body.home .h-dates__intro p { color: var(--h-muted); max-width: 42ch; }
body.home .h-dates__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 32px; border-radius: var(--radius); }
body.home .h-dates__intro .actions { margin-top: 32px; }
body.home .h-dates__list .event { padding: 32px 0; border-top: 1px solid rgba(40, 60, 50, .18); }
body.home .h-dates__list .event:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- Wider family ---------- */
body.home .h-family { background: var(--h-ivory); }
body.home .h-family .h-place:not(.h-place--feature) { background: var(--h-white); }  /* white cards so they stand out on the ivory section */
body.home .h-family__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(20px, 2.5vw, 32px); }
body.home .h-place { display: flex; flex-direction: column; background: var(--h-ivory); border-radius: var(--radius); overflow: hidden; }
body.home .h-place--feature { grid-row: span 2; background: var(--h-forest); color: var(--h-ivory); }
body.home .h-place__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
body.home .h-place--feature .h-place__img { flex: 1 1 auto; aspect-ratio: auto; min-height: 340px; height: 100%; }
body.home .h-place__body { padding: 26px 28px 30px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
body.home .h-place__body p { color: var(--h-muted); margin-bottom: 20px; }
body.home .h-place--feature .h-place__body { padding: clamp(28px, 3.5vw, 44px); }
body.home .h-place--feature h3 { color: var(--h-ivory); font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); }
body.home .h-place--feature .h-card__meta { color: var(--h-sand); }
body.home .h-place--feature .h-place__body p { color: rgba(244, 240, 231, .86); }
body.home .h-place--feature .btn { background: var(--h-ivory); border-color: var(--h-ivory); color: var(--h-forest); }
body.home .h-place--feature .btn:hover { background: var(--h-sand); border-color: var(--h-sand); color: var(--h-forest); }
body.home .h-place .h-more { margin-top: auto; }

/* ---------- Stay connected ---------- */
body.home .h-connect { background: var(--h-sand); }
body.home .h-connect__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 104px); }
body.home .h-connect .h-eyebrow { color: var(--h-forest); }
body.home .h-connect h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); }
body.home .h-connect p { color: var(--h-forest); }
body.home .h-social { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; font-size: .95rem; }
body.home .h-social span { width: 100%; font-weight: 600; }
body.home .h-social a { color: var(--h-forest); font-weight: 600; text-decoration-color: rgba(40, 60, 50, .4); }
body.home .h-social a:hover { color: var(--h-forest-deep); text-decoration-color: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  body.home .h-hero .hero__text { background: var(--h-forest); }
  body.home .h-hero h1 { max-width: 20ch; }
}
@media (max-width: 900px) {
  body.home .h-story__grid,
  body.home .h-dates__grid,
  body.home .h-connect__grid { grid-template-columns: 1fr; }
  body.home .h-story__media img { aspect-ratio: 3 / 2; }
  body.home .h-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .h-dates__intro { position: static; }
  body.home .h-dates__img { display: none; }
  body.home .h-family__grid { grid-template-columns: 1fr 1fr; }
  body.home .h-place--feature { grid-column: 1 / -1; grid-row: auto; }
  body.home .h-place--feature .h-place__img { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  body.home .h-cards,
  body.home .h-family__grid { grid-template-columns: 1fr; }
  body.home .h-wide { flex-direction: column; }
  body.home .h-wide__img { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  body.home .h-card__body,
  body.home .h-place__body { padding: 22px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .h-card:hover,
  body.home .h-wide:hover { transform: none; }
}
