/* BARBET GLOBAL TYPOGRAPHY V2
   Purpose: consistent 45px desktop titles + 16px subtitles/supporting headings.
   Loaded after @stack('head') so page-specific styles cannot override it.
*/

:root{
  --barbet-title-size:45px;
  --barbet-subtitle-size:16px;
  --barbet-title-line:1.12;
  --barbet-subtitle-line:1.65;
}

/* =========================================================
   PRIMARY PAGE / HERO TITLES — 45PX DESKTOP
   ========================================================= */
.mm-home-hero h1,
.cv2-hero h1,
.pdpv3-buybox h1,
.mm-about-hero-copy-v2 h1,
.mm-about-empty h1,
.bb-blog-hero h1,
.bb-article-header h1,
.mm-contact-hero h1,
.mm-track-title h1,
.mm-login-card h1,
.mm-login-panel h1,
.mm-simple-head h1,
.mm-privacy-hero h1,
.mm-terms-hero h1,
.mm-checkout-head h1,
.mm-checkout-header h1,
.mm-order-success h1,
.barbet-auth-intro h1,
.bj-hero h1,
.bj-article-head h1{
  font-size:var(--barbet-title-size) !important;
  line-height:var(--barbet-title-line) !important;
  letter-spacing:-.02em !important;
  text-wrap:balance;
}

/* =========================================================
   MAIN SECTION TITLES — 45PX DESKTOP
   Only true section headings; product/card titles are excluded.
   ========================================================= */
.mm-home-section-head h2,
.mm-video-head h2,
.mm-occasion-head h2,
.mm-reviews-head h2,
.mm-faq-head h2,
.mm-about-section-heading h2,
.mm-about-process-head h2,
.mm-about-specialists-head h2,
.mm-about-cta-v2 h2,
.bb-section-head h2,
.pdpv3-section-head h2,
.mm-contact-section-heading h2,
.mm-contact-main-grid > section > h2,
.mm-contact-main-grid > div > h2,
.mm-contact-form-card h2,
.mm-contact-location h2,
.mm-shipping-card > header h2,
.mm-shipping-card > div:first-child h2,
.mm-checkout-section-title,
.mm-simple-page > .mm-empty-state > h2,
.mm-privacy-section > h2,
.mm-terms-section > h2,
.bb-blog-empty h2,
.bj-related > h2{
  font-size:var(--barbet-title-size) !important;
  line-height:var(--barbet-title-line) !important;
  letter-spacing:-.02em !important;
  text-wrap:balance;
}

/* Track-order form/result headings are functional sub-sections, not page titles. */
.mm-track-form-heading h2,
.mm-result-head h2,
.mm-track-result h2,
.mm-privacy-nav h2,
.mm-terms-nav h2,
.partials-checkout-summary h2,
.mm-checkout-summary h2{
  line-height:1.25 !important;
}

/* =========================================================
   SUBTITLES / KICKERS / EYEBROWS — 16PX
   ========================================================= */
.mm-home-kicker,
.mm-about-pill,
.mm-about-section-heading > span,
.mm-about-process-head span,
.mm-about-specialists-head span,
.bb-eyebrow,
.mm-cart-eyebrow,
.cv2-kicker,
.mm-track-kicker,
.mm-login-eyebrow,
.mm-privacy-eyebrow,
.mm-terms-eyebrow,
.barbet-auth-kicker,
.bj-kicker,
.pdpv3-section-head span{
  font-size:var(--barbet-subtitle-size) !important;
  line-height:1.35 !important;
}

/* Supporting subtitle/intro copy immediately associated with title blocks. */
.mm-home-hero-copy > p,
.mm-home-hero-copy p,
.cv2-hero p,
.mm-about-hero-copy-v2 > p,
.mm-about-process-head > p,
.mm-about-specialists-head p,
.mm-about-cta-v2 > div > p,
.bb-blog-hero p,
.bb-article-lead,
.mm-contact-hero p,
.mm-contact-section-heading p,
.mm-track-title p,
.mm-simple-head p,
.mm-privacy-hero > div > p,
.mm-terms-hero > div > p,
.mm-checkout-head p,
.mm-checkout-header p,
.mm-shipping-card > header p,
.mm-shipping-card > div:first-child p,
.barbet-auth-lead,
.bj-hero p,
.bj-article-head p,
.mm-occasion-head p,
.mm-reviews-head p,
.mm-faq-head p{
  font-size:var(--barbet-subtitle-size) !important;
  line-height:var(--barbet-subtitle-line) !important;
}

/* Home section head can contain title + action; keep alignment clean after enlargement. */
.mm-home-section-head,
.pdpv3-section-head,
.bb-section-head,
.mm-about-process-head,
.mm-about-specialists-head{
  gap:24px !important;
}

.mm-home-section-head h2,
.mm-video-head h2,
.mm-occasion-head h2,
.mm-reviews-head h2,
.mm-faq-head h2,
.pdpv3-section-head h2,
.bb-section-head h2,
.mm-about-section-heading h2,
.mm-about-process-head h2,
.mm-about-specialists-head h2,
.mm-about-cta-v2 h2{
  margin-top:0;
  margin-bottom:0;
}

/* Footer column headings are subtitles, not oversized page titles. */
.mm-reference-footer .mm-footer-column > h3,
.mm-reference-footer .mm-footer-newsletter > h3{
  font-size:16px !important;
  line-height:1.35 !important;
}

/* =========================================================
   TABLET
   Keep the site responsive while preserving strong hierarchy.
   ========================================================= */
@media (max-width: 991px){
  :root{ --barbet-title-size:38px; }

  .mm-home-section-head,
  .pdpv3-section-head,
  .bb-section-head,
  .mm-about-process-head,
  .mm-about-specialists-head{
    align-items:flex-start !important;
  }
}

/* =========================================================
   MOBILE
   45px desktop titles scale safely so words do not overflow.
   Subtitles remain exactly 16px as requested.
   ========================================================= */
@media (max-width: 640px){
  :root{ --barbet-title-size:32px; --barbet-subtitle-size:16px; }

  .mm-home-section-head,
  .pdpv3-section-head,
  .bb-section-head,
  .mm-about-process-head,
  .mm-about-specialists-head{
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:12px !important;
  }

  .mm-home-section-head h2,
  .mm-video-head h2,
  .mm-occasion-head h2,
  .mm-reviews-head h2,
  .mm-faq-head h2,
  .mm-about-section-heading h2,
  .mm-about-process-head h2,
  .mm-about-specialists-head h2,
  .mm-about-cta-v2 h2,
  .bb-section-head h2,
  .pdpv3-section-head h2,
  .mm-contact-section-heading h2,
  .mm-contact-main-grid > section > h2,
  .mm-contact-main-grid > div > h2,
  .mm-contact-form-card h2,
  .mm-contact-location h2,
  .mm-shipping-card > header h2,
  .mm-shipping-card > div:first-child h2,
  .mm-privacy-section > h2,
  .mm-terms-section > h2{
    line-height:1.18 !important;
  }
}

@media (max-width: 390px){
  :root{ --barbet-title-size:30px; }
}


/* CART TYPOGRAPHY EXCEPTION
   The cart is a narrow drawer, so its internal headings must not inherit 45px section titles. */
.mm-cart-page .mm-cart-recos > h2{
  font-size:20px !important;
  line-height:1.25 !important;
  letter-spacing:-.01em !important;
  text-wrap:wrap !important;
}
@media (max-width:760px){
  .mm-cart-page .mm-cart-recos > h2{font-size:18px !important;}
}
@media (max-width:420px){
  .mm-cart-page .mm-cart-recos > h2{font-size:17px !important;}
}
