/* ============================================
   SHARED PAGE TITLE STANDARD
   ============================================
   This file provides consistent page title spacing
   across all marketing/public pages.
   
   Based on Support Resources page as the reference.
   
   DO NOT override these rules on individual pages.
   ============================================ */

/* CRITICAL: Ensure nav placeholder has no margin/padding that affects spacing */
#llv-nav-placeholder {
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  height: 0;
  width: 100%;
}

/* Title band - balanced vertical padding for visual spacing only */
/* NOTE: This is NOT for header compensation. Body padding-top handles header offset. */
/* This spacing must be identical on every page */
/* CRITICAL: padding-top: 56px creates the exact gap from header bottom to title top */
.page-title-band {
  padding-top: 56px !important;
  padding-bottom: 56px;
  margin: 0 !important;
  margin-top: 0 !important;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Title wrapper - centers content and provides horizontal padding */
/* CRITICAL: margin-top: 0 ensures no additional gap above title */
.page-title-wrap {
  max-width: 1200px;
  margin: 0 auto !important;
  margin-top: 0 !important;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  width: 100%;
}

/* Main page title - consistent spacing and typography */
/* margin: 0 and line-height: 0.95 are critical - do not override */
/* CRITICAL: All margins must be 0 to ensure exact gap measurement from header bottom */
/* CRITICAL: Headlines must be composed intentionally. Max-width and text-wrap: balance
   control wrapping. If auto-wrap produces ugly second lines, use manual <br> breaks. */
.page-title {
  margin: 0 auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  max-width: 1100px !important;
  line-height: 0.95;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--text-primary, #f9fafb);
  text-align: center !important;
  text-wrap: balance !important;
  width: 100%;
}

/* Gold accent span (for two-color titles like "Support Resources") */
.page-title span {
  color: var(--gold, #C6B08A);
}

/* Subtitle/supporting text - constrained width, balanced spacing */
/* CRITICAL: max-width: 980px keeps subtitle tighter and centered underneath title */
.page-title-subtext {
  margin-top: 24px;
  margin-bottom: 0;
  max-width: 980px !important;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary, #9ca3af);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Legacy support: .subtitle class maps to .page-title-subtext */
.page-title-wrap .subtitle {
  margin-top: 24px;
  margin-bottom: 0;
  max-width: 980px !important;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary, #9ca3af);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center !important;
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  .page-title-band {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-title-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-title-subtext {
    margin-top: 18px;
    max-width: 100%;
  }

  .page-title-wrap .subtitle {
    margin-top: 18px;
    max-width: 100%;
  }

  .page-title {
    font-size: 2.25rem;
    max-width: 100%;
    text-wrap: balance;
  }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
  .page-title-band {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-title-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 1.75rem;
    max-width: 100%;
    text-wrap: balance;
  }
  
  .page-title-subtext,
  .page-title-wrap .subtitle {
    max-width: 100%;
  }
}
