/**
 * HM v2 — Global shared sections + unified palette.
 *
 * Loaded on EVERY v2 page (via maybe_enqueue in hm-design-system.php).
 * Provides:
 *  - Unified color palette (logo colors) for all v2 pages
 *  - Styles for the 6 shared sections in _globals.php
 */

.hm-v2 {
  /* === Logo palette — UNIFIED across all v2 pages === */
  --hm-warm-white: #FAF8F5;
  --hm-paper: #F8F9FA;
  --hm-sand: #F4E4D0;
  --hm-sand-light: #FAF1E3;
  --hm-white: #FFFFFF;
  --hm-forest-dark: #1F4129;
  --hm-forest: #2D5A3D;
  --hm-forest-light: #3F7654;
  --hm-mint: #9EE5BF;
  --hm-mint-light: #CDF2DD;
  --hm-mint-dark: #7DD9A8;
  --hm-mint-soft: #d6f4e3;
  --hm-green: #5CB88A;
  --hm-green-dark: #3F9C6E;
  --hm-coral: #FFA3A3;
  --hm-coral-dark: #C45A4E;
  --hm-peach: #FFC199;
  --hm-peach-light: #FFD0AD;
  --hm-action: #FF9800;
  --hm-action-dark: #E88600;
  --hm-slate: #2C3E50;
  --hm-slate-soft: #4A5C6E;
  --hm-mist: #6B7B7C;
  --hm-border: #E5E0D6;
  --hm-charcoal: #1f2a23;
  --hm-terracotta: #C45A4E;

  --hm-font-base: 'Heebo', system-ui, sans-serif;
  --hm-font-lg: 17px;
  --hm-font-xl: 20px;
  --hm-font-2xl: 28px;
  --hm-font-3xl: 36px;
}

.hm-v2 body, .hm-v2 { font-family: var(--hm-font-base); }

/* === Global section base === */
.hm-v2 .hm-g-section { padding: 56px 0; }
.hm-v2 .hm-g-container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .hm-v2 .hm-g-container { padding: 0 24px; } }

.hm-v2 .hm-g-section-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--hm-action);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.hm-v2 .hm-g-section-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--hm-forest-dark);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px;
}
.hm-v2 .hm-g-section-lead {
  font-size: 17px; color: var(--hm-slate-soft);
  max-width: 640px; margin-bottom: 36px; line-height: 1.55;
}
.hm-v2 .hm-g-head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}

/* === Buttons (global) === */
.hm-v2 .hm-g-btn-action {
  background: var(--hm-action); color: #fff; border: none;
  padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; min-height: 44px;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.30);
  transition: background 0.2s;
}
.hm-v2 .hm-g-btn-action:hover { background: var(--hm-action-dark); }
.hm-v2 .hm-g-btn-secondary {
  background: #fff; color: var(--hm-forest-dark);
  border: 1.5px solid var(--hm-forest-dark); padding: 10px 20px; border-radius: 10px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; min-height: 44px; transition: all 0.2s;
}
.hm-v2 .hm-g-btn-secondary:hover { background: var(--hm-forest-dark); color: #fff; }
.hm-v2 .hm-g-btn-ghost {
  background: transparent; color: var(--hm-slate);
  border: 1px solid var(--hm-border); padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; min-height: 44px;
}
.hm-v2 .hm-g-btn-ghost:hover { background: var(--hm-sand-light); }

/* === Testimonials === */
.hm-v2 .hm-g-testimonials-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hm-v2 .hm-g-testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.hm-v2 .hm-g-testimonial {
  background: var(--hm-paper); border: 1px solid var(--hm-border); border-radius: 16px;
  padding: 28px 24px; position: relative;
}
.hm-v2 .hm-g-testimonial-quote {
  position: absolute; top: 12px; right: 18px;
  font-size: 54px; line-height: 1; color: var(--hm-mint-dark); opacity: 0.5;
  font-family: serif;
}
.hm-v2 .hm-g-testimonial-text { font-size: 14px; color: var(--hm-slate); line-height: 1.65; margin: 0 0 20px; position: relative; z-index: 1; }
.hm-v2 .hm-g-testimonial-author { display: flex; align-items: center; gap: 12px; }
.hm-v2 .hm-g-testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hm-forest), var(--hm-green));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
}
.hm-v2 .hm-g-testimonial-name { font-weight: 700; color: var(--hm-forest-dark); font-size: 14px; }
.hm-v2 .hm-g-testimonial-role { font-size: 11px; color: var(--hm-mist); }

/* === Partners === */
.hm-v2 .hm-g-partners { background: #fff; }
.hm-v2 .hm-g-partner-group { margin-top: 28px; }
.hm-v2 .hm-g-partner-cat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: var(--hm-forest-dark);
  padding-bottom: 10px; border-bottom: 1px solid var(--hm-border);
}
.hm-v2 .hm-g-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hm-v2 .hm-g-cat-dot-forest { background: var(--hm-forest); }
.hm-v2 .hm-g-cat-dot-teal { background: var(--hm-forest); }
.hm-v2 .hm-g-cat-dot-coral { background: var(--hm-coral-dark); }
.hm-v2 .hm-g-cat-dot-action { background: var(--hm-action); }
.hm-v2 .hm-g-cat-tag {
  margin-inline-start: auto;
  background: var(--hm-paper); color: var(--hm-mist);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.hm-v2 .hm-g-partner-wall {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px;
}
@media (min-width: 640px) { .hm-v2 .hm-g-partner-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .hm-v2 .hm-g-partner-wall { grid-template-columns: repeat(4, 1fr); } }
.hm-v2 .hm-g-partner-card {
  background: #fff; border: 1px solid var(--hm-border); border-radius: 14px;
  padding: 18px 14px; text-align: center; transition: all .2s;
  display: flex; flex-direction: column; gap: 8px; min-height: 160px;
  text-decoration: none; color: inherit;
}
.hm-v2 .hm-g-partner-card:hover { border-color: var(--hm-forest); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(45,90,61,0.08); }
.hm-v2 .hm-g-partner-logo {
  width: 100%; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.hm-v2 .hm-g-partner-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(15%); transition: filter .2s;
}
.hm-v2 .hm-g-partner-card:hover .hm-g-partner-logo img { filter: grayscale(0); }
.hm-v2 .hm-g-partner-name { font-weight: 700; color: var(--hm-forest-dark); font-size: 13px; line-height: 1.3; }
.hm-v2 .hm-g-partner-cat { font-size: 11px; color: var(--hm-mist); line-height: 1.4; }
.hm-v2 .hm-g-partner-lahav { background: linear-gradient(135deg, var(--hm-sand-light), var(--hm-peach-light)); }
.hm-v2 .hm-g-partner-lahav .hm-g-partner-logo img { filter: none; }

/* === Google reviews === */
.hm-v2 .hm-g-google-reviews { background: var(--hm-sand-light); }
.hm-v2 .hm-g-rating-sub { color: var(--hm-slate-soft); font-size: 14px; }
.hm-v2 .hm-g-rating-stars { color: var(--hm-action); font-size: 18px; }
.hm-v2 .hm-g-rating-sub strong { color: var(--hm-forest-dark); }
.hm-v2 .hm-g-reviews-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hm-v2 .hm-g-reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hm-v2 .hm-g-reviews-grid { grid-template-columns: repeat(4, 1fr); } }
.hm-v2 .hm-g-review-card {
  background: #fff; border: 1px solid var(--hm-border); border-radius: 14px;
  padding: 20px; box-shadow: 0 2px 8px rgba(45,90,61,0.04);
  display: flex; flex-direction: column; gap: 10px;
}
.hm-v2 .hm-g-review-head { display: flex; align-items: center; gap: 10px; }
.hm-v2 .hm-g-review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hm-v2 .hm-g-grad-forest { background: linear-gradient(135deg, var(--hm-forest), var(--hm-green)); }
.hm-v2 .hm-g-grad-coral { background: linear-gradient(135deg, var(--hm-coral), var(--hm-coral-dark)); }
.hm-v2 .hm-g-grad-teal { background: linear-gradient(135deg, var(--hm-forest), var(--hm-forest-dark)); }
.hm-v2 .hm-g-grad-mint { background: linear-gradient(135deg, var(--hm-mint-dark), var(--hm-green)); }
.hm-v2 .hm-g-review-name { font-weight: 700; color: var(--hm-forest-dark); font-size: 14px; }
.hm-v2 .hm-g-review-meta { font-size: 11px; color: var(--hm-mist); }
.hm-v2 .hm-g-review-stars { color: var(--hm-action); font-size: 16px; letter-spacing: 2px; }
.hm-v2 .hm-g-review-text { font-size: 13px; color: var(--hm-slate); line-height: 1.55; margin: 0; }

/* === Parent reviews === */
.hm-v2 .hm-g-parent-reviews { background: #fff; border-top: 1px solid var(--hm-border); }
.hm-v2 .hm-g-parent-reviews-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hm-v2 .hm-g-parent-reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.hm-v2 .hm-g-parent-review {
  background: var(--hm-paper); border: 1px solid var(--hm-border); border-radius: 14px;
  padding: 22px; border-right: 4px solid var(--hm-mint-dark);
}
.hm-v2 .hm-g-parent-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hm-v2 .hm-g-parent-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.hm-v2 .hm-g-pcol-coral { background: var(--hm-coral); }
.hm-v2 .hm-g-pcol-peach { background: var(--hm-peach); }
.hm-v2 .hm-g-pcol-mint { background: var(--hm-mint); color: var(--hm-forest-dark); }
.hm-v2 .hm-g-parent-name { font-weight: 700; color: var(--hm-forest-dark); font-size: 14px; }
.hm-v2 .hm-g-parent-meta { font-size: 11px; color: var(--hm-mist); }
.hm-v2 .hm-g-parent-stars { color: var(--hm-action); font-size: 14px; letter-spacing: 1.5px; margin-bottom: 8px; }
.hm-v2 .hm-g-parent-text { font-size: 13.5px; color: var(--hm-slate); line-height: 1.6; margin: 0; }
.hm-v2 .hm-g-parent-foot { text-align: center; margin-top: 28px; font-size: 13px; color: var(--hm-mist); }
.hm-v2 .hm-g-parent-foot i { width: 12px; height: 12px; vertical-align: middle; }

/* === Donation === */
.hm-v2 .hm-g-donation-section { padding: 36px 0; }
.hm-v2 .hm-g-donation-banner {
  background: linear-gradient(135deg, var(--hm-mint-light) 0%, var(--hm-peach-light) 100%);
  border-radius: 18px; padding: 28px;
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .hm-v2 .hm-g-donation-banner { grid-template-columns: 1.6fr auto; padding: 36px 40px; }
}
.hm-v2 .hm-g-donation-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--hm-coral-dark); margin-bottom: 10px;
}
.hm-v2 .hm-g-donation-eyebrow i { width: 13px; height: 13px; }
.hm-v2 .hm-g-donation-banner h3 { font-size: 22px; font-weight: 800; color: var(--hm-forest-dark); margin: 0 0 6px; }
.hm-v2 .hm-g-donation-banner p { font-size: 14px; color: var(--hm-slate-soft); line-height: 1.55; margin: 0; }
.hm-v2 .hm-g-donation-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* === CTA banner === */
.hm-v2 .hm-g-cta-banner {
  background: linear-gradient(135deg, var(--hm-forest-dark) 0%, var(--hm-forest) 100%);
  padding: 64px 0; text-align: center; color: #fff;
}
.hm-v2 .hm-g-cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: #fff;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.hm-v2 .hm-g-cta-banner p {
  font-size: 16px; color: rgba(255,255,255,0.85); max-width: 540px;
  margin: 0 auto 28px; line-height: 1.55;
}
.hm-v2 .hm-g-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hm-v2 .hm-g-cta-banner .hm-g-btn-ghost {
  color: #fff; border-color: rgba(255,255,255,0.3); background: transparent;
}
.hm-v2 .hm-g-cta-banner .hm-g-btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Lucide default sizing inside globals */
.hm-v2 .hm-g-section [data-lucide] { width: 16px; height: 16px; stroke-width: 2; }
