/*
 * SibOrchid.com — NibPro typography
 * File: astra-child/assets/fonts.css (enqueued site-wide as handle 'sib-nibpro')
 *
 * 1. Registers the self-hosted NibPro family (Light..Black + italics).
 * 2. Applies NibPro consistently (headings, body, buttons, nav, widgets).
 * 3. Defines one coherent H1–H6 scale so titles stop jumping between the
 *    sizes/fonts that were previously set in several different places.
 */

/* ===== 1. Font faces (root-relative paths) ===== */
@font-face{font-family:'NibPro';font-style:normal;font-weight:300;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-Light.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Light.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Light.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:italic;font-weight:300;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-LightItalic.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-LightItalic.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-LightItalic.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:normal;font-weight:400;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-Regular.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Regular.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Regular.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:italic;font-weight:400;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-Italic.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Italic.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Italic.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:normal;font-weight:600;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-SemiBold.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-SemiBold.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-SemiBold.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:italic;font-weight:600;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-SemiBoldItalic.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-SemiBoldItalic.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-SemiBoldItalic.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:normal;font-weight:700;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-Bold.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Bold.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Bold.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:italic;font-weight:700;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-BoldItalic.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-BoldItalic.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-BoldItalic.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:normal;font-weight:900;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-Black.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Black.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-Black.ttf') format('truetype')}
@font-face{font-family:'NibPro';font-style:italic;font-weight:900;font-display:swap;src:url('/wp-content/themes/astra-child/assets/fonts/NibPro-BlackItalic.woff2') format('woff2'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-BlackItalic.woff') format('woff'),url('/wp-content/themes/astra-child/assets/fonts/NibPro-BlackItalic.ttf') format('truetype')}

/* ===== 2. Apply NibPro site-wide (inheritance-safe, no universal selector) ===== */
:root{--sib-font-head:'NibPro',Georgia,'Times New Roman',serif;--sib-font-body:'NibPro',Georgia,'Times New Roman',serif}

body{font-family:var(--sib-font-body)}

h1,h2,h3,h4,h5,h6,
.entry-title,.site-title,.site-title a,
.ast-archive-title,.product_title,.elementor-heading-title,
.ast-heading-title,
button,input,select,textarea,
.ast-button,.ast-custom-button,
.main-navigation a,
.widget-title,.widgettitle,
.mega-block-title,
.large-search-text{
  font-family:var(--sib-font-head) !important
}

.secondary .widget,.ast-small-footer,.site-footer,.site-header,.main-header-bar{font-family:var(--sib-font-body)}

/* ===== 3. Heading scale (H1–H6) ===== */
h1,.entry-title,.product_title,.ast-archive-title{
  font-size:clamp(1.75rem,3.4vw,2.75rem) !important;   /* 28 → 44px */
  line-height:1.15 !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  margin:0 0 .5em !important;
  text-rendering:optimizeLegibility
}
h2{
  font-size:clamp(1.5rem,2.6vw,2rem) !important;        /* 24 → 32px */
  line-height:1.22 !important;
  font-weight:700 !important;
  letter-spacing:.2px !important;
  margin:1.25em 0 .45em !important;
  text-rendering:optimizeLegibility
}
h3{
  font-size:clamp(1.25rem,2.1vw,1.5625rem) !important;  /* 20 → 25px */
  line-height:1.3 !important;
  font-weight:600 !important;
  letter-spacing:.2px !important;
  margin:1.15em 0 .4em !important
}
h4{
  font-size:clamp(1.125rem,1.7vw,1.3125rem) !important; /* 18 → 21px */
  line-height:1.35 !important;
  font-weight:600 !important;
  margin:1.1em 0 .35em !important
}
h5{
  font-size:1.0625rem !important;                       /* 17px */
  line-height:1.4 !important;
  font-weight:600 !important;
  margin:1em 0 .3em !important
}
h6{
  font-size:.9375rem !important;                        /* 15px */
  line-height:1.4 !important;
  font-weight:700 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  margin:.9em 0 .3em !important
}

/* ===== 4. Homepage section titles (unified serif brand) ===== */
.sib-row__title,.sib-picker__title,.sib-posts__title{
  font-family:var(--sib-font-head) !important;
  font-weight:700 !important;
  font-size:clamp(1.625rem,3.2vw,2.5rem) !important;    /* 26 → 40px */
  line-height:1.15 !important;
  letter-spacing:.2px !important;
  margin:0 !important
}

/* ===== 5. Footer / widget headings (smaller than content scale) ===== */
.widget-title,.widgettitle{
  font-weight:700 !important;
  font-size:1.0625rem !important;                       /* 17px */
  line-height:1.3 !important;
  letter-spacing:.4px !important;
  margin:.6em 0 .5em !important
}

/* ===== 6. Product-card title (keep card-sized, just unify the font) ===== */
.woocommerce-loop-product__title{
  font-family:var(--sib-font-head) !important;
  font-size:1rem !important;                            /* 16px */
  line-height:1.35 !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  margin:.6em 0 .2em !important
}

/* ===== 7. Preserve WooCommerce checkout/cart section headings ===== */
#customer_details h3:not(.elementor-widget-woocommerce-checkout-page h3),
.woocommerce-Address h3,
#order_review_heading,
.woocommerce-cart .cart-collaterals .cart_totals > h2{
  font-size:1.2rem !important;
  line-height:1.4 !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  padding:1em 0 .6em !important;
  margin:0 0 1em !important;
  border-bottom:1px solid var(--ast-border-color,#e2e8f0) !important
}

/* ===== 8. Card text on homepage custom sections ===== */
.sib-card__name,.sib-post__title{font-family:var(--sib-font-head) !important}

/* ===== 9. Mobile card edges (added 2026-11-28) ===== */
@media (max-width:767px){
  body .sib-pick,body .sib-card,body .sib-post{border:0;box-shadow:0 1px 5px rgba(31,61,50,.05)}
  body .sib-pick:hover,body .sib-card:hover,body .sib-post:hover{box-shadow:0 4px 14px rgba(31,61,50,.09)}
}
