/*
 Theme typography system - Phase 1
 Typography only.

 This file intentionally does not change:
 - menu/header/navigation typography
 - mobile menu typography
 - hero-actions / three-buttons-inline
 - button styling
 - eyebrow-line styling
 - FTT component styling
 - WooCommerce product loop/card typography
 - single-product template typography
 - event page/card/grid typography
 - footer/newsletter typography
 - promo bar typography
 - section or row spacing
*/

/* Preserve current dominant body typography from audit. */
body,
body #page-container {
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
}

/* Keep Divi Blurb titles semibold while preserving chosen font family and size. */
.et_pb_blurb .et_pb_module_header,
.et_pb_blurb .et_pb_module_header a {
  font-weight: 600 !important;
}

/*
 Hero typography system.

 Keeps hero type sizing, wrapping, contrast, and text transforms together.
 Structural hero layout, overlay placement, and button layout remain in style.css.
*/
body #page-container #et-boc .et-l .hero h1,
body #page-container .hero h1 {
  color: #ffffff !important;
  font-size: clamp(58px, 5vw, 70px) !important;
  line-height: 0.95em !important;
  text-align: center !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.20);
  max-width: 1200px !important;
  margin-top: 0 !important;
  margin-right: auto !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
}

body #page-container #et-boc .et-l .hero .hero-subheading p,
body #page-container .hero .hero-subheading p {
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1.5em !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.50),
    0 2px 6px rgba(0, 0, 0, 0.22);
  text-wrap: balance;
  margin: 0 !important;
  padding: 0 !important;
}

body #page-container #et-boc .et-l .hero .et_pb_button,
body #page-container .hero .et_pb_button {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  text-transform: uppercase !important;
}

body #page-container #et-boc .et-l .hero .hero-actions .et_pb_button,
body #page-container .hero .hero-actions .et_pb_button {
  color: #ffffff !important;
}

@media screen and (min-width: 981px) and (max-width: 1399px) {
  body #page-container #et-boc .et-l .hero h1,
  body #page-container .hero h1,
  html body #page-container #et-boc .et-l .hero .et_pb_text h1,
  html body.home #page-container #et-boc .et-l .et_pb_section.et_pb_section_0.hero .et_pb_text.et_pb_text_1 h1 {
    font-size: clamp(56px, 5vw, 68px) !important;
  }
}

@media (max-width: 980px) {
  body #page-container #et-boc .et-l .hero h1,
  body #page-container .hero h1 {
    font-size: 64px !important;
    line-height: 1em !important;
    max-width: 900px !important;
  }

  body #page-container #et-boc .et-l .hero .hero-subheading p,
  body #page-container .hero .hero-subheading p {
    font-size: 18px !important;
    line-height: 1.5em !important;
  }
}

@media (max-width: 767px) {
  body #page-container #et-boc .et-l .hero h1,
  body #page-container .hero h1 {
    font-size: 40px !important;
    line-height: 0.98em !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body #page-container #et-boc .et-l .hero .hero-subheading p,
  body #page-container .hero .hero-subheading p {
    font-size: 17px !important;
    line-height: 1.5em !important;
  }

  body.home #page-container #et-boc .et-l .hero .hero-subheading p,
  body.home #page-container .hero .hero-subheading p {
    font-size: 15px !important;
    line-height: 1.35em !important;
  }

  body.home #page-container #et-boc .et-l .hero .hero-actions .et_pb_button,
  body.home #page-container .hero .hero-actions .et_pb_button {
    font-size: 16px !important;
    line-height: 1.2em !important;
  }
}

body #page-container #et-boc .et-l .hero .hero-heading h1,
body #page-container .hero .hero-heading h1 {
  line-height: 1.12em !important;
}

@media (max-width: 980px) {
  body #page-container #et-boc .et-l .hero .hero-heading h1,
  body #page-container .hero .hero-heading h1 {
    line-height: 1.1em !important;
  }
}

@media (max-width: 767px) {
  body #page-container #et-boc .et-l .hero .hero-heading h1,
  body #page-container .hero .hero-heading h1 {
    line-height: 1.08em !important;
  }
}

/*
 Normal main-content H2 system.

 Targets ordinary Divi Text Module H2s in #main-content.
 Uses body/context exclusions plus minimal text-module component exclusions.
*/
body:not(.woocommerce):not(.woocommerce-page):not(.single-product):not(.single-event):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag):not(.page-id-27006131) #page-container #main-content .et_builder_inner_content :where(.et_pb_section:not(.hero)) .et_pb_text:not(.hero-subheading):not(.eyebrow-line):not([class*="eyebrow"]):not([class*="menu"]):not(:has(.sbft)):not(:has([class*="rmg-"])):not(:has([class*="stitch-event"])):not(:has(.woocommerce)):not(:has(ul.products)) h2 {
  font-family: "Bodoni Moda", Georgia, serif !important;
  font-size: 50px !important;
  font-weight: 400 !important;
  line-height: 1.2em !important;
  font-optical-sizing: none !important;
}

@media screen and (min-width: 994px) and (max-width: 1399px) {
  body:not(.woocommerce):not(.woocommerce-page):not(.single-product):not(.single-event):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag):not(.page-id-27006131) #page-container #main-content .et_builder_inner_content :where(.et_pb_section:not(.hero)) .et_pb_text:not(.hero-subheading):not(.eyebrow-line):not([class*="eyebrow"]):not([class*="menu"]):not(:has(.sbft)):not(:has([class*="rmg-"])):not(:has([class*="stitch-event"])):not(:has(.woocommerce)):not(:has(ul.products)) h2 {
    font-size: clamp(45px, 3.8vw, 48px) !important;
    line-height: 1.15em !important;
  }
}

@media (max-width: 980px) {
  body:not(.woocommerce):not(.woocommerce-page):not(.single-product):not(.single-event):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag):not(.page-id-27006131) #page-container #main-content .et_builder_inner_content :where(.et_pb_section:not(.hero)) .et_pb_text:not(.hero-subheading):not(.eyebrow-line):not([class*="eyebrow"]):not([class*="menu"]):not(:has(.sbft)):not(:has([class*="rmg-"])):not(:has([class*="stitch-event"])):not(:has(.woocommerce)):not(:has(ul.products)) h2 {
    font-size: 45px !important;
    line-height: 1.2em !important;
  }
}

@media (max-width: 767px) {
  body:not(.woocommerce):not(.woocommerce-page):not(.single-product):not(.single-event):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag):not(.page-id-27006131) #page-container #main-content .et_builder_inner_content :where(.et_pb_section:not(.hero)) .et_pb_text:not(.hero-subheading):not(.eyebrow-line):not([class*="eyebrow"]):not([class*="menu"]):not(:has(.sbft)):not(:has([class*="rmg-"])):not(:has([class*="stitch-event"])):not(:has(.woocommerce)):not(:has(ul.products)) h2 {
    font-size: 40px !important;
    line-height: 1.2em !important;
  }
}

body.woocommerce-cart,
body.woocommerce-checkout {
  --stitch-commerce-indigo: #222B61;
}

body.woocommerce-cart :is(
  .wc-block-components-button,
  .wp-block-button__link,
  .checkout-button,
  .button,
  button.button,
  input.button,
  button[name="apply_coupon"],
  button[name="apply_gc_code"],
  button[name="woocommerce_checkout_place_order"],
  #place_order,
  .wc_gc_cart_redeem_send,
  .wc_gc_add_gift_card_form__button,
  .wc-block-components-totals-coupon__button,
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button
),
body.woocommerce-checkout :is(
  .wc-block-components-button,
  .wp-block-button__link,
  .checkout-button,
  .button,
  button.button,
  input.button,
  button[name="apply_coupon"],
  button[name="apply_gc_code"],
  button[name="woocommerce_checkout_place_order"],
  #place_order,
  .wc_gc_cart_redeem_send,
  .wc_gc_add_gift_card_form__button,
  .wc-block-components-totals-coupon__button,
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button
) {
  background: var(--stitch-commerce-indigo) !important;
  background-color: var(--stitch-commerce-indigo) !important;
  border-color: var(--stitch-commerce-indigo) !important;
  color: #fff !important;
}

body.woocommerce-cart :is(
  .wc-block-components-button,
  .wp-block-button__link,
  .checkout-button,
  .button,
  button.button,
  input.button,
  button[name="apply_coupon"],
  button[name="apply_gc_code"],
  button[name="woocommerce_checkout_place_order"],
  #place_order,
  .wc_gc_cart_redeem_send,
  .wc_gc_add_gift_card_form__button,
  .wc-block-components-totals-coupon__button,
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button
):is(:hover, :focus),
body.woocommerce-checkout :is(
  .wc-block-components-button,
  .wp-block-button__link,
  .checkout-button,
  .button,
  button.button,
  input.button,
  button[name="apply_coupon"],
  button[name="apply_gc_code"],
  button[name="woocommerce_checkout_place_order"],
  #place_order,
  .wc_gc_cart_redeem_send,
  .wc_gc_add_gift_card_form__button,
  .wc-block-components-totals-coupon__button,
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button
):is(:hover, :focus) {
  background: var(--stitch-commerce-indigo) !important;
  background-color: var(--stitch-commerce-indigo) !important;
  border-color: var(--stitch-commerce-indigo) !important;
  color: #fff !important;
}

body.woocommerce-cart :is(
  .wc-block-components-button,
  .wp-block-button__link,
  .checkout-button,
  .button,
  button.button,
  input.button,
  button[name="apply_coupon"],
  button[name="apply_gc_code"],
  button[name="woocommerce_checkout_place_order"],
  #place_order,
  .wc_gc_cart_redeem_send,
  .wc_gc_add_gift_card_form__button,
  .wc-block-components-totals-coupon__button,
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button
) *,
body.woocommerce-checkout :is(
  .wc-block-components-button,
  .wp-block-button__link,
  .checkout-button,
  .button,
  button.button,
  input.button,
  button[name="apply_coupon"],
  button[name="apply_gc_code"],
  button[name="woocommerce_checkout_place_order"],
  #place_order,
  .wc_gc_cart_redeem_send,
  .wc_gc_add_gift_card_form__button,
  .wc-block-components-totals-coupon__button,
  .wc-block-components-checkout-place-order-button,
  .wc-block-cart__submit-button
) * {
  color: #fff !important;
}

body.woocommerce-cart :is(
  .et_pb_module table th,
  .woocommerce table.shop_table th,
  .wc-block-cart table th,
  .wc-block-components-totals-item__label,
  .wc-block-components-order-summary-item__description,
  .wc-block-components-product-name
),
body.woocommerce-checkout :is(
  .et_pb_module table th,
  .woocommerce table.shop_table th,
  .woocommerce-checkout-review-order-table th,
  .wc-block-checkout table th,
  .wc-block-components-totals-item__label,
  .wc-block-components-order-summary-item__description,
  .wc-block-components-product-name
) {
  font-family: "Urbanist", Arial, sans-serif !important;
  font-size: clamp(14px, 1.1vw, 18px) !important;
  line-height: 1.35 !important;
}

body #page-container .et_pb_section.shop-her {
  min-height: 75vh !important;
  display: flex !important;
  align-items: center !important;
}

body #page-container .et_pb_section.category-hero {
  min-height: 60vh !important;
  display: flex !important;
  align-items: center !important;
}

body.single-product .ppc-button-wrapper,
body.single-product #ppc-button-ppcp-gateway-v6 {
  display: none !important;
}

/* Typography-only sweep: archive and commerce body copy. */
body #page-container #main-content :is(
  .et_pb_text_inner,
  .et_pb_text_inner p,
  .et_pb_text_inner li,
  .post-content,
  .post-content p,
  .post-content li,
  .dipi-post-content,
  .dipi-post-content p,
  .dipi-post-content li,
  .stitch-press-archive,
  .stitch-press-archive p,
  .rmg-thread-archive,
  .rmg-thread-archive p,
  .rmg-taxonomy-archive,
  .rmg-taxonomy-archive p,
  .stitch-all-events,
  .stitch-all-events p,
  .mec-wrap,
  .mec-wrap p,
  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price
) {
  font-family: "Urbanist", Arial, sans-serif;
  font-weight: 500;
}

/* Product/archive card titles remain Urbanist Medium. */
body #page-container #main-content :is(
  .woocommerce-loop-product__title,
  .woocommerce-loop-product__title a,
  .woocommerce-loop-category__title,
  .rmg-thread-archive-card__title,
  .rmg-product-meta__tile-title
) {
  font-family: "Urbanist", Arial, sans-serif;
  font-weight: 500;
}

/* Embedded FAQ card titles use Urbanist without changing other H2s. */
body #page-container #main-content article.et_pb_post.type-faq h2.entry-title,
body #page-container #main-content article.et_pb_post.type-faq h2.entry-title a {
  font-family: "Urbanist", Arial, sans-serif !important;
}

/* Event archive and individual-event titles remain Urbanist Bold. */
body #page-container #main-content :is(
  .mec-event-title,
  .mec-event-title a,
  .mec-single-title,
  .rmg-event-product__title,
  .rmg-event-product__title a
) {
  font-family: "Urbanist", Arial, sans-serif;
  font-weight: 700;
}

body.post-type-archive-press #page-container #main-content .stitch-press-archive .stitch-press-item__title,
body.post-type-archive-press #page-container #main-content .stitch-press-archive .stitch-press-item__title a {
  font-family: "Urbanist", Arial, sans-serif !important;
  text-align: left !important;
}

body.post-type-archive-press #page-container #main-content .stitch-press-archive .stitch-press-item > div {
  text-align: left !important;
}

body.post-type-archive-press #page-container #main-content .stitch-press-archive .stitch-press-item__link {
  text-align: left !important;
}

body.page-id-27011123 #page-container #main-content a.stitch-cta-button[href="/contact-us/"] {
  color: #222B61 !important;
}
