/*
 Theme Name:   Peplane Child
 Theme URI:    https://peplane.com
 Description:  Child theme for Bricks - Peplane self-hosted fonts and custom styles.
 Author:       Peplane
 Template:     bricks
 Version:      1.1.2
 Text Domain:  peplane-child
*/

/* =========================================================
   SELF-HOSTED FONTS
   Files live in assets/fonts/. No Google Fonts, no CDN.
   Variable fonts: one file covers the full weight range.
   ========================================================= */

@font-face {
  font-family: 'Geist Variable';
  src: url('assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono Variable';
  src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('assets/fonts/newsreader-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('assets/fonts/newsreader-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   BRICKS HEADER WRAPPER
   Bricks wraps the header template in <header id="brx-header">.
   display: contents removes that box so .nav stays position: sticky
   against the page (as in the static build), not just inside the wrapper.
   ========================================================= */
#brx-header { display: contents; }

/* =========================================================
   BRICKS ELEMENT MAX-WIDTH
   Bricks adds [class*="brxe-"] { max-width: 100% } in its base layer.
   The static build has no such rule, and it squeezes wide flex rows such
   as the ribbon marquee. Restore the browser default; any max-width set in
   assets/peplane.css still wins (this selector has zero specificity).
   ========================================================= */
:where([class*="brxe-"]) { max-width: none; }

/* =========================================================
   BRICKS BASE-LAYER RESET
   Bricks ships element defaults in its low-priority CSS layer
   (html font-size 62.5%, heading sizes and line-heights, img
   max-width, svg min sizes, border-color, blockquote, table). The
   static build was designed on browser defaults, so revert them.
   :where() keeps specificity at zero, so every rule in
   assets/peplane.css and the other design stylesheets still wins.
   ========================================================= */
:where(html) { font-size: revert; line-height: revert; }
:where(h1, h2, h3, h4, h5, h6) { font-size: revert; line-height: revert; text-rendering: revert; }
:where(img) { height: revert; max-width: revert; vertical-align: revert; }
:where(svg:not([width])) { min-width: revert; }
:where(svg:not([height])) { min-height: revert; }
:where(*, ::before, ::after) { border-color: revert; }
:where(figure) { margin: revert; }
:where(blockquote) { border-left-style: revert; border-left-width: revert; font-family: revert; font-size: revert; margin: revert; padding: revert; position: revert; }
:where(table) { width: revert; }
:where(button, input, optgroup, select, textarea) { line-height: revert; }
:where(button) { text-align: revert; } /* Bricks base layer left-aligns button text; browsers centre it */
/* Bricks sets box-sizing:border-box on ::before/::after; the static build only set it on elements. */
::before, ::after { box-sizing: revert; }

/* =========================================================
   BREADCRUMB CURRENT ITEM
   The static build coloured the last crumb inline (color: var(--ink)).
   The Bricks Breadcrumbs element marks it aria-current="page" instead.
   ========================================================= */
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* =========================================================
   PRODUCT STAGE BACKGROUND BY CATEGORY
   The static build set --stage inline per product. In WordPress it is set
   once per product category (data-cat is the category slug, added by the
   {peplane_cat_slug} dynamic tag on .pdp-stage and .card).
   ========================================================= */
.pdp-stage[data-cat="metabolic-research"], .card[data-cat="metabolic-research"] { --stage: linear-gradient(165deg,#EDF3F7,#D9E4EE); }
.pdp-stage[data-cat="cellular-longevity"], .card[data-cat="cellular-longevity"] { --stage: linear-gradient(165deg,#F3F4F6,#DDE0E5); }
.pdp-stage[data-cat="dermal-research"], .card[data-cat="dermal-research"] { --stage: linear-gradient(165deg,#F1F1F3,#DEDDE1); }
.pdp-stage[data-cat="neuro-research"], .card[data-cat="neuro-research"] { --stage: linear-gradient(165deg,#E9EDF3,#D1D9E6); }
.pdp-stage[data-cat="growth-recovery"], .card[data-cat="growth-recovery"] { --stage: linear-gradient(165deg,#ECEFF3,#D5DCE7); }
.pdp-stage[data-cat="tissue-repair"], .card[data-cat="tissue-repair"] { --stage: linear-gradient(165deg,#EFEFF4,#DBDBE4); }
.pdp-stage[data-cat="specialized"], .card[data-cat="specialized"] { --stage: linear-gradient(165deg,#EEEFF1,#D9DCE0); }

/* =========================================================
   PRODUCT VIAL IMAGES (PNG instead of the <pp-vial> web component)
   Each PNG is the 160x300 vial SVG rasterised onto a 1200x1200 square,
   so the square must be 1.875x the vial's intended width, with negative
   side margins so it occupies the same layout width as <pp-vial> did.
   ========================================================= */
.card-stage .card-vial { display: block; width: 217.5px; height: auto; max-width: none; margin: 0 -50.75px; position: relative; z-index: 1; transition: transform .5s var(--ease); filter: drop-shadow(0 22px 22px rgba(20,24,45,.22)); }
.card:hover .card-stage .card-vial { transform: translateY(-10px) rotate(-2deg); }
.pdp-stage .pdp-vial { display: block; width: 412.5px; height: auto; max-width: none; margin: 0 -96.25px; filter: drop-shadow(0 34px 32px rgba(20,24,45,.26)); }
@media (max-width: 680px) {
  .card-stage .card-vial { width: 172.5px; margin: 0 -40.25px; }
}

/* Spec chip row variant used under the product title (static: margin-top:14px inline). */
.spec-chips.chips-tight { margin-top: 14px; }

/* =========================================================
   SINGLE PRODUCT MAIN WRAPPER
   WooCommerce adds post classes (incl. .product) to Bricks' <main>, and
   Bricks' WooCommerce layer then sets .single-product .product { display:flex;
   flex-wrap:wrap }, which shrinks each full-width section. The Single Product
   template's sections must stack like any other page.
   ========================================================= */
.single-product #brx-content.product { display: block; }

/* EMPTY LEDE: a Page head whose lede comes from an empty field (e.g. a product category
   without a description) should not leave a blank gap. */
.page-head .lede:empty { display: none; }

/* =========================================================
   VIAL PNG CONTEXTS
   Product-vial PNGs (img.vial-png) stand in for <pp-vial> wherever the
   static build placed one. Each PNG is the 160x300 vial rasterised on a
   square canvas, so the image is 1.875x the vial's width with negative
   side margins that keep the vial's original layout box.
   (Product cards and the product page use .card-vial / .pdp-vial above.)
   ========================================================= */
img.vial-png { display: block; height: auto; max-width: none; }
.wwd-vial img.vial-png { width: 187.5%; margin: 0 -43.75%; }
.vx-obj-vial img.vial-png { width: 330px; margin: 0 -77px; filter: drop-shadow(0 30px 34px rgba(20,24,45,.24)); }
@media (max-width: 980px) {
  .vx-obj-vial img.vial-png { width: 285px; margin: 0 -66.5px; }
}
img.nl-vial.vial-png { width: 225px; }
img.nl-vial.v1.vial-png { margin-left: -52.5px; }
img.nl-vial.v2.vial-png { margin-right: -52.5px; }

/* =========================================================
   NEWSLETTER FORM (Bricks Form element with class nl-form)
   Bricks wraps each field and the button in .form-group; make that
   markup lay out like the static <form class="nl-form"><input><button class="btn">.
   ========================================================= */
.newsletter .nl-form.brxe-form { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.newsletter .nl-form .form-group { margin: 0; padding: 0; width: auto; min-width: 0; }
.newsletter .nl-form .form-group:not(.submit-button-wrapper) { flex: 1; }
.newsletter .nl-form .form-group input { width: 100%; }
/* the Bricks field wrapper is a column flexbox; flex:none lets the input keep its own 54px height (peplane.css) */
.newsletter .nl-form .form-group input { flex: none; }
.newsletter .nl-form .submit-button-wrapper { flex: 0 0 auto; }
.newsletter .nl-form .bricks-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 28px; border-radius: var(--r-btn); border: 0;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 560; letter-spacing: -0.005em; line-height: 1;
  transition: transform .15s var(--ease), box-shadow .25s, background .25s; white-space: nowrap; cursor: pointer;
}
.newsletter .nl-form .bricks-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,13,18,.22); }
body[data-active="home"] .newsletter .nl-form .bricks-button { background: #fff; color: var(--ink); }
.newsletter .nl-form .bricks-button { gap: 0; }
.newsletter .nl-form .bricks-button .loading { display: none; }

/* =========================================================
   PHASE 8 PAGES (coa, partners, contact, legal)
   ========================================================= */
/* Legal pages: the counsel-review flag sits 8px above the policy (static inline margin-bottom:8px) */
.notice-tight > .fda { margin-bottom: 8px; }

/* Partners hero: vial PNGs stand in for the three floating <pp-vial>s (same 1.875x canvas maths as above) */
.partner-stage img.vial-png { position: absolute; width: 172.5px; margin: 0 -40.25px; filter: drop-shadow(0 22px 22px rgba(20,24,45,.22)); }
.partner-stage img.vial-png.pv2 { width: 142.5px; margin: 0 -33.25px; }
.partner-stage img.vial-png.pv3 { width: 157.5px; margin: 0 -36.75px; }

/* Bricks Form elements laid out like the static forms
   (.lot-input = COA lot search, .contact-form = contact page) */
.lot-input.brxe-form { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.lot-input .form-group { margin: 0; padding: 0; width: auto; min-width: 0; }
.lot-input .form-group:not(.submit-button-wrapper) { flex: 1; }
.lot-input .form-group input { width: 100%; }
.lot-input .form-group input { flex: none; } /* keep peplane.css height inside the Bricks column-flex field wrapper */
.lot-input .submit-button-wrapper { flex: 0 0 auto; }
.lot-input .bricks-button, .contact-form .bricks-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  height: 50px; padding: 0 28px; border-radius: var(--r-btn); border: 0;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 560; letter-spacing: -0.005em; line-height: 1;
  transition: transform .15s var(--ease), box-shadow .25s, background .25s; white-space: nowrap; cursor: pointer;
}
.lot-input .bricks-button:hover, .contact-form .bricks-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,13,18,.22); }
.lot-input .bricks-button .loading, .contact-form .bricks-button .loading { display: none; }

.contact-form.brxe-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; max-width: 520px; }
.contact-form .form-group { margin: 0; padding: 0; width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.contact-form .form-group:nth-child(-n+2):not(.submit-button-wrapper) { width: calc(50% - 8px); }
.contact-form .form-group label { margin: 0; padding: 0; font-size: 13px; line-height: inherit; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--hairline-2);
  background: var(--paper); font-size: 15px; outline: none;
}
.contact-form textarea { height: 147px; padding: 14px 16px; resize: vertical; font-family: inherit; } /* static rows="6" */
.contact-form .submit-button-wrapper { width: auto; }
/* static inputs sit inside their <label> and inherit its colour; the select keeps the native arrow */
.contact-form input, .contact-form select { color: var(--ink-2); }
.contact-form select { appearance: auto; line-height: normal; }

/* =========================================================
   FIELD NOTES (posts)
   ========================================================= */
/* post breadcrumb ends on the (unlinked) category, styled like the current crumb */
.single-post .breadcrumb > span.item:last-child { color: var(--ink); }

/* =========================================================
   SITE-WIDE LINK + BUTTON TEXT STYLE (2026-11-17)
   Every hyperlink and button renders in ALL CAPS via CSS so the
   source text stays natural-case for crawlers and screen readers.
   Excluded: the Peplane brand wordmark (.brand), the skip link, and
   card links (.card product cards, .bl-card article cards) whose
   whole body (title, price, excerpt) is one link.
   ========================================================= */
a:not(.brand):not(.skip-link):not(.card):not(.bl-card),
.btn, .btn-ghost, .btn-sm, .btn-lg,
.bricks-button, .brxe-button, .brxe-form button[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce .add_to_cart_button, .single_add_to_cart_button,
.wc-block-components-button, .wc-block-components-checkout-place-order-button,
.wp-block-button__link, .wp-element-button {
  text-transform: uppercase;
}

/* Buttons keep the underline */
.btn, .btn-ghost, .btn-sm, .btn-lg,
.bricks-button, .brxe-button, .brxe-form button[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce .add_to_cart_button, .single_add_to_cart_button,
.wc-block-components-button, .wc-block-components-checkout-place-order-button,
.wp-block-button__link, .wp-element-button {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Header nav and mega menu: light tracking so caps stay legible */
.nav-links a, .m-links a, .mega a { letter-spacing: .04em; }

/* Footer: column headings (Shop peptides, Lab results, Peplane, Policies)
   one step larger than the link items under them; items in ALL CAPS */
footer.site .foot-col h4 { font-size: 14.5px; letter-spacing: .08em; color: #23c8e1; text-decoration-color: rgba(35,200,225,.6); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
footer.site .foot-col a  { font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase; }

/* Newsletter component: underlined placeholder, small print split under input and button */
.newsletter .nl-form input::placeholder { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); opacity: 1; }
/* Button matches the email box: same 54px height, same radius, natural width with a shared minimum so the note below lines up */
.newsletter .nl-form .submit-button-wrapper { flex: 0 0 auto; }
.newsletter .nl-form .bricks-button { height: 54px; min-width: 150px; padding: 0 28px; border-radius: var(--r-btn); width: auto; }
.newsletter .brxe-nlnote { display: flex; align-items: flex-start; gap: 10px; max-width: 440px; margin-left: auto; margin-right: auto; text-align: center; }
.newsletter .brxe-nlnote .nl-note-l { flex: 1 1 auto; }
.newsletter .brxe-nlnote .nl-note-r { flex: 0 0 150px; }
@media (max-width: 520px) {
  .newsletter .nl-form { flex-wrap: wrap; }
  .newsletter .nl-form .form-group, .newsletter .nl-form .submit-button-wrapper { flex: 1 1 100%; }
  .newsletter .nl-form .bricks-button { width: 100%; }
  .newsletter .brxe-nlnote { flex-wrap: wrap; }
  .newsletter .brxe-nlnote .nl-note-l, .newsletter .brxe-nlnote .nl-note-r { flex: 1 1 100%; }
}
/* Research-use-only strip: lead column mirrors the 01/02/03 items */
/* Specificity raised above peplane.css (which loads after this file) so these win on every device */
.fda .fda-lbl { display: flex; flex-direction: column; gap: 0; }
.fda .fda-lbl .fda-k { display: block; letter-spacing: .14em; margin: 0 0 8px; line-height: inherit; }
.fda .fda-item .fda-n { margin: 0 0 8px; line-height: inherit; }
.fda .fda-t { display: block; font-weight: 600; margin: 0 0 4px; text-transform: uppercase; }
.fda .fda-lbl .fda-d { display: block; font-size: inherit; line-height: inherit; color: inherit; margin: 0; }
/* =========================================================
   NAV COLOUR ON SCROLL (2026-11-18)
   .nav-scrolled is added by assets/js/nav-scroll.js once the page scrolls.
   Light frosted nav at the top; dark charcoal nav while scrolled.
   To revert: remove this block and the nav-scroll.js enqueue in functions.php
   (backups: style.css.bak-20261118-navscroll, functions.php.bak-20261118-navscroll).
   ========================================================= */
.nav { transition: background .35s var(--ease), border-color .35s var(--ease), transform .7s var(--ease), opacity .7s var(--ease); }
.nav.nav-scrolled {
  /* brand navy, sampled from the site's dark sections: edges #1b1f2b, centre lift #2f3752 */
  background: radial-gradient(120% 180% at 50% 50%, #2f3752 0%, #232a3d 45%, #1b1f2b 100%);
  border-bottom-color: rgba(255,255,255,.10);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav.nav-scrolled.menu-open { background: #1b1f2b; }
/* brand: wordmark white, logo mark keeps its own colour so it stands out */
.nav.nav-scrolled .brand { color: #fff; }
/* menu links */
.nav.nav-scrolled .nav-links { color: #fff; }
.nav.nav-scrolled .nav-links a:hover,
.nav.nav-scrolled .nav-links a[aria-current="page"] { color: #fff; }
.nav.nav-scrolled .nav-links a::after { background: #fff; }
/* search, account, cart, burger */
.nav.nav-scrolled .icon-btn { color: #fff; }
.nav.nav-scrolled .icon-btn:hover { color: #fff; background: rgba(255,255,255,.10); }
.nav.nav-scrolled .cart-badge { background: #fff; color: #1b1f2b; }
.nav.nav-scrolled .nav-burger { color: #fff; }
.nav.nav-scrolled .nav-burger:hover { background: rgba(255,255,255,.10); }