/*
Theme Name: BlankSlate - Child
Theme URI: https://alplifesciences.com
Template: blankslate
Text Domain: blankslatechild
Description: Custom child theme for ALP Life Sciences — extends BlankSlate with brand typography, layout utilities, and component styles.
Version: 1.0.0
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  --font-display: "Inter", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --fg-primary: #00375A;
  --fg-secondary: #125E8F;
  --fg-muted: #7F8994;

  --alp-gold: #CD982C;
  --alp-navy: #1A365D;
  --alp-cream: #FFFAEB;
  --alp-mist: #E7ECF2;
  --alp-green: #3F9833;
  --alp-white: #fff;

  --container-max: 1360px;
  --r-pill: 40px;
  --r-card: 20px;
  --dur-base: 0.25s;
  --ease-brand: ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  font-family: var(--font-body);
  color: var(--fg-primary);
  line-height: 1.5;
  font-size: 15px;
  font-weight: 400;
}

body p {
  margin: 0 0 24px;
  letter-spacing: 0.5px;
}

main#content ul {
  list-style: disc;
  margin: 20px;
}

ol {
  list-style: revert;
  margin: 20px;
}

ol li {
  margin: 10px 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h1.fl-heading span {
  font-size: clamp(2.5rem, 6vw, 3.8rem) !important;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -1.8px;
}

h1 {
  line-height: 1 !important;
}

h2,
h2.fl-heading span {
  font-size: clamp(2rem, 6vw, 3.3rem);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -1.5px;
}

h2 {
  line-height: 1.1em !important;
}

h3,
h3.fl-heading span {
  font-size: clamp(1.3rem, 6vw, 1.6rem) !important;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.75px;
}

h3 {
  line-height: 1.1em !important;
}

h4,
h4.fl-heading span {
  font-size: clamp(1rem, 6vw, 1rem) !important;
  font-family: var(--font-body);
  font-weight: 800;
}

h4 {
  line-height: 1em !important;
}

blockquote {
  background: var(--alp-cream);
  border-radius: var(--r-card);
  padding: 40px 50px;
  margin: 50px -20px;
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.030em;
  color: var(--alp-navy);
}

blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  color: var(--fg-secondary);
  margin-top: 20px;
}

/* ==========================================================================
   Transitions
   ========================================================================== */

a,
button,
input[type="submit"],
ul,
li,
header,
a[role="button"] {
  transition: all var(--dur-base) var(--ease-brand) !important;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0);
}

header.this-is-stuck,
header.interior_header {
  background-color: rgba(255, 255, 255, 1);
}

.topnav .fl-row-content .fl-col-group {
  width: 100%;
  justify-content: center;
}

/* ─── Logo ──────────────────────────────────────────────── */

.website_logo > a {
  background-image: url(/wp-content/uploads/2026/05/alp-logo.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
  max-width: 470px;
  width: 100%;
  height: 45px;
  margin: 0 auto;
  position: relative;
  transition: all 0.5s ease;
}

@media (max-width: 576px) {
  .website_logo a {
    width: 181px;
    background-image: url(/wp-content/uploads/2026/05/alp-logo-mobile.svg);
  }
}

.site-logo a img.fl-photo-img {
  width: auto !important;
  transition: all 0.5s ease !important;
}

/* ─── Nav CTA ───────────────────────────────────────────── */

.menu_call a {
  background: var(--alp-white);
  color: var(--alp-navy) !important;
  border: 1px solid var(--alp-navy);
  margin-left: 15px;
  border-radius: 25px;
}

.menu_call a:hover {
  background: var(--alp-navy);
  color: var(--alp-white) !important;
}

#full-screen-box .menu_call a {
  margin-left: 0;
}

/* mobile menu cleanup */
#full-screen-box .fl-has-submenu-container a:after {
  content: revert;
}

#full-screen-box .fl-has-submenu-container span.fl-menu-toggle:before {
  content: revert;
}

/* ─── Header cart chip ──────────────────────────────────── */

.alp-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 6px 8px 14px !important;
  color: var(--fg-primary);
}

.alp-header-cart svg {
  display: block;
}

.alp-header-cart__count {
  position: absolute;
  top: 0;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--alp-gold);
  color: var(--alp-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.alp-header-cart__count.is-empty {
  display: none;
}

/* Mobile chip — rendered beside the hamburger (.nav-toggle floats right) */
.alp-header-cart-mobile {
  float: right;
}

.alp-header-cart-mobile .alp-header-cart {
  height: 64px;
  padding: 0 10px 0 0px !important;
}

/* WooCommerce injects a "View cart" text link after AJAX add-to-cart;
   the card button + header cart count already cover that feedback. */
.alp-product-card .added_to_cart {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

button.primary,
button.woocommerce-button {
  background: var(--alp-gold);
  color: var(--alp-white) !important;
  border-radius: var(--r-pill);
  border: 1px solid var(--alp-gold);
  padding: 10px 20px;
  margin: 20px 0 !important;
}

button.primary:hover,
button.woocommerce-button:hover {
  background: var(--alp-white);
  color: var(--alp-gold) !important;
}

/* ==========================================================================
   Eyebrows & Chips
   ========================================================================== */

.eyebrow-holder {
  display: flex;
  gap: 7px;
  align-content: center;
  flex-wrap: wrap;
}

.centered {
  margin: 0 auto !important;
  position: relative;
}

.eyebrow-holder-center {
  display: flex;
  gap: 7px;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--fg-secondary);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
}

.outlined {
  color: var(--fg-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  border-radius: var(--r-pill);
  border: 1px solid var(--fg-secondary);
  background-color: transparent;
  padding: 4px 10px;
  margin: 0;
  display: inline-block;
}

.green-eye {
  border-radius: var(--r-pill);
  background: rgba(101, 181, 90, 0.25);
  color: var(--alp-green);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  margin: 0;
  display: inline-block;
}

.brown-eye {
  border-radius: var(--r-pill);
  background: rgba(205, 152, 44, 0.15);
  color: #C18100;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  margin: 0;
  display: inline-block;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

@media (min-width: 1360px) {
  .padding_leftside  { padding-left:  calc((100% - var(--container-max)) / 2); }
  .padding_rightside { padding-right: calc((100% - var(--container-max)) / 2); }
}

.nomar p {
  margin: 0 !important;
}

.grey-bg img {
  background-color: var(--alp-mist);
}

.desktop-only {
  display: none;
}

@media (min-width: 992px) {
  .desktop-only { display: inline; }
}

/* ─── Z-index helpers ───────────────────────────────────── */

.z-high {
  z-index: 20 !important;
  position: relative;
}

.z-low {
  z-index: 0 !important;
  position: relative;
}

.z-low .fl-row-content-wrap {
  overflow: hidden;
}

.z100 {
  position: relative;
  z-index: 100;
}

.z50 {
  position: relative;
  z-index: 50;
}

.absolute {
  position: absolute !important;
}

.relative {
  position: relative !important;
}

/* ==========================================================================
   Beaver Builder Helpers
   ========================================================================== */

.centerme .fl-html {
  display: flex;
}

/* ==========================================================================
   Forms (Formidable)
   ========================================================================== */

/*
form div .frm_submit {
  display: flex;
  justify-content: center;
}

form div .frm_submit button {
  text-transform: uppercase;
}
*/

/* ==========================================================================
   Regimen Grid
   ========================================================================== */

.regimen-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px !important;
}

.rg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin: 5px 0 !important;
}

.rg-name {
  font-weight: 600 !important;
  font-size: 15px !important;
  text-align: left;
}

.rg-details {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: right;
}

.rg-level {
  font-size: 14px !important;
  opacity: 0.8;
  font-weight: 400 !important;
}

.rg-capsules {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rg-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.rg-dot--alp {
  background-color: #F2C643;
}

.rg-dot--krill {
  background-color: #9F0117;
}

.rg-total {
  font-weight: 700;
  font-size: 15px;
  min-width: 24px;
  text-align: right;
}

@media (max-width: 767px) {
  .rg-row {
    flex-wrap: wrap;
  }

  .rg-name {
    width: 100%;
    margin-bottom: 8px;
  }

  .rg-details {
    width: 100%;
    justify-content: space-between;
    margin: 10px 0 0 0 !important;
  }
}

/* ==========================================================================
   Product Carousel Shortcode [alp_products]
   ========================================================================== */

.alp-products-carousel {
  max-width: var(--container-max, 1360px);
  margin: 0 auto;
}

.alp-products-swiper {
  overflow: hidden;
  position: relative;
  padding: 0 44px;
}

.alp-products-swiper .alp-product-card {
  height: 100%;
}

.alp-products-prev,
.alp-products-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alp-products-prev::after,
.alp-products-next::after {
  font-size: 20px;
  line-height: 1;
  color: var(--fg-primary, #00375A);
}

.alp-products-prev::after { content: '\2039'; }
.alp-products-next::after { content: '\203A'; }
.alp-products-prev { left: 0; }
.alp-products-next { right: 0; }

@media (max-width: 767px) {
  .alp-products-swiper { padding: 0 30px; }
}

/* ==========================================================================
   Blog — Single Post
   ========================================================================== */

.alp-single-post {
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.alp-post-header {
  margin-bottom: 40px;
  position: sticky;
  top: 92px;
  background: #fff;
  z-index: 50;
  padding: 24px 0 20px;
  margin-top: -24px;
}

.alp-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.alp-post-meta a {
  color: var(--fg-secondary);
  text-decoration: none;
}

.alp-post-meta a:hover {
  text-decoration: underline;
}

.alp-post-title {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -1.5px;
  color: var(--fg-primary);
}

.alp-post-hero {
  margin-bottom: 40px;
  border-radius: var(--r-card);
  overflow: hidden;
}

.alp-post-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.alp-post-content {
  font-size: 17px;
  line-height: 1.75;
}

.alp-post-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 48px 0 16px;
  letter-spacing: -1px;
}

.alp-post-content h3 {
  font-size: clamp(1.1rem, 3vw, 1.35rem) !important;
  margin: 32px 0 12px;
  letter-spacing: -0.5px;
}

.alp-post-content p {
  margin: 0 0 20px;
}

.alp-post-content a {
  color: var(--fg-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alp-post-content a:hover {
  color: var(--alp-gold);
}

.alp-post-content ul,
.alp-post-content ol {
  margin: 0 0 24px 24px;
}

.alp-post-content li {
  margin-bottom: 8px;
}

.alp-post-content strong {
  font-weight: 600;
}

.alp-post-content em {
  font-style: italic;
}

.alp-post-content blockquote {
  margin: 32px 0;
}

@media (max-width: 767px) {
  .alp-single-post {
    padding: 32px 20px 60px;
  }

  .alp-post-header {
    position: static;
    padding: 0;
    margin-top: 0;
  }
}

/* ==========================================================================
   Blog — Post-End Product CTA
   ========================================================================== */

.alp-post-products {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--alp-mist);
}

.alp-post-products > h2 {
  text-align: center;
  margin-bottom: 24px;
}

/* ==========================================================================
   Blog — Archive / Category Listing
   ========================================================================== */

.alp-archive {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.alp-archive-header {
  margin-bottom: 48px;
}

.alp-archive-title {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -1.5px;
  color: var(--fg-primary);
}

.alp-archive-desc {
  color: var(--fg-muted);
  font-size: 17px;
  margin-top: 8px;
}

.alp-post-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.alp-post-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.alp-post-card__image {
  flex-shrink: 0;
  width: 240px;
  border-radius: var(--r-card);
  overflow: hidden;
}

.alp-post-card__image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.alp-post-card__body {
  flex: 1;
  min-width: 0;
}

.alp-post-card__title {
  font-size: clamp(1.3rem, 3vw, 1.6rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.75px;
  margin: 4px 0 12px;
}

.alp-post-card__title a {
  color: var(--fg-primary);
  text-decoration: none;
}

.alp-post-card__title a:hover {
  color: var(--fg-secondary);
}

.alp-post-card__excerpt {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.alp-post-card__link {
  color: var(--fg-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.alp-post-card__link:hover {
  color: var(--alp-gold);
}

@media (max-width: 767px) {
  .alp-archive {
    padding: 32px 20px 60px;
  }

  .alp-post-card {
    flex-direction: column;
    gap: 16px;
  }

  .alp-post-card__image {
    width: 100%;
  }

  .alp-post-card__image img {
    height: 200px;
  }
}


/* Hide .dt_only between 768px and 992px */
@media (min-width: 768px) and (max-width: 991px) {
    .dt_only {
        display: none;
    }
}
