/* ════════════════════════════════════════════════════════════════
   BusinessExpert Homepage — conditionally loaded on is_front_page()
   Uses design tokens from theme.css (:root variables)
   ════════════════════════════════════════════════════════════════ */

/* ── Shared section header ── */
.sh { text-align: center; margin-bottom: 40px; }
.sh h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  line-height: 1.2;
}
.sh-lab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sh-lab span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
}
.sh-lab::before,
.sh-lab::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
}

/* ════════════════════════════════════
   1. HERO
   ════════════════════════════════════ */
.hp-hero {
  background: var(--purple-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 64px 0 72px;
}
.hp-hero__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hp-hero__content { display: flex; flex-direction: column; gap: 20px; }
.hp-hero__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}
.hp-hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 520px;
}
.hp-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hp-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: var(--r-md);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.hp-hero__cta--primary {
  background: var(--purple);
  color: #fff;
}
.hp-hero__cta--primary:hover {
  background: var(--purple-hover);
  box-shadow: var(--sh-md);
}
.hp-hero__cta--secondary {
  background: var(--bg);
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.hp-hero__cta--secondary:hover {
  background: var(--bg-alt);
  border-color: var(--purple);
  color: var(--purple);
}

/* Hero visual */
.hp-hero__visual {
  min-height: 320px;
  border-radius: var(--r-lg);
  background-image: url('../images/homepage-hero.svg');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* ════════════════════════════════════
   2. CATEGORIES (sector grid)
   ════════════════════════════════════ */
.hp-categories {
  padding: 72px 0;
  background: var(--bg);
}
.hp-categories__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}
.hp-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hp-cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hp-cat-card:hover {
  border-color: var(--purple);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.hp-cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.hp-cat-card__icon svg { width: 22px; height: 22px; }
.hp-cat-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.hp-cat-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ════════════════════════════════════
   3. VALUES (why choose)
   ════════════════════════════════════ */
.hp-values {
  padding: 72px 0;
  background: var(--bg-alt);
}
.hp-values__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}
.hp-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hp-value-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
}
.hp-value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 16px;
}
.hp-value-card__icon svg { width: 24px; height: 24px; }
.hp-value-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.hp-value-card__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ════════════════════════════════════
   4. LATEST GUIDES
   ════════════════════════════════════ */
.hp-latest {
  padding: 72px 0;
  background: var(--bg);
}
.hp-latest__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}
.hp-latest__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hp-latest-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-latest-card:hover {
  border-color: var(--purple);
  box-shadow: var(--sh-sm);
}
.hp-latest-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}
.hp-latest-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
}
.hp-latest-card__date {
  font-size: 13px;
  color: var(--text-light);
  margin-top: auto;
}

/* ════════════════════════════════════
   5. MISSION
   ════════════════════════════════════ */
.hp-mission {
  padding: 72px 0;
  background: var(--bg-alt);
}
.hp-mission__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hp-mission__text .sh { text-align: left; }
.hp-mission__text .sh-lab { justify-content: flex-start; }
.hp-mission__text .sh-lab::before { display: none; }
.hp-mission__text p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.hp-mission__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.15s;
}
.hp-mission__cta:hover { color: var(--purple-hover); text-decoration: underline; }
.hp-mission__cta::after { content: '\2192'; }

/* Mission / Guarantee visual */
.hp-mission__visual {
  min-height: 280px;
  border-radius: var(--r-lg);
  background-image: url('../images/homepage-guarantee.svg');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* ════════════════════════════════════
   6. TRUST STRIP
   ════════════════════════════════════ */
.hp-trust {
  padding: 48px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.hp-trust__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}
.trust {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-i {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-mid);
}
.trust-i strong {
  font-weight: 700;
  color: var(--text-dark);
  margin-right: 4px;
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

/* ════════════════════════════════════
   7. NEWSLETTER
   ════════════════════════════════════ */
.hp-newsletter {
  padding: 72px 0;
  background: var(--purple-surface);
}
.hp-newsletter__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.hp-newsletter__desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-top: -20px;
}

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 880px) {
  .hp-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hp-hero__visual { min-height: 200px; }
  .hp-categories__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-values__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-latest__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-mission__inner { grid-template-columns: 1fr; gap: 32px; }
  .hp-mission__visual { min-height: 200px; order: -1; }
  .trust { gap: 24px 32px; }
}

@media (max-width: 640px) {
  .hp-hero { padding: 40px 0 48px; }
  .hp-hero__title { font-size: 28px; }
  .hp-hero__ctas { flex-direction: column; }
  .hp-hero__cta { width: 100%; text-align: center; }
  .hp-categories__grid,
  .hp-values__grid { grid-template-columns: 1fr; }
  .hp-latest__grid { grid-template-columns: 1fr; }
  .hp-categories, .hp-values, .hp-latest, .hp-mission { padding: 48px 0; }
  .trust { flex-direction: column; align-items: center; gap: 16px; }
  .sh h2 { font-size: 24px; }
}
