/*
Theme Name: Blue Door Longevity
Theme URI: https://bluedoorlongevity.com/
Author: Blue Door Longevity
Description: A custom WooCommerce storefront for Blue Door Longevity.
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: blue-door-longevity
*/

:root {
  --bdl-blue: #0b52a1;
  --bdl-blue-dark: #07386f;
  --bdl-blue-soft: #dfeef9;
  --bdl-ink: #102033;
  --bdl-muted: #5f6d7b;
  --bdl-line: rgba(16, 32, 51, 0.14);
  --bdl-cloud: #f3f7fa;
  --bdl-white: #ffffff;
  --bdl-radius: 30px;
  --bdl-shadow: 0 24px 70px rgba(14, 55, 94, 0.12);
  --bdl-wrap: min(1440px, calc(100vw - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bdl-cloud);
  color: var(--bdl-ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.site-shell { min-height: 100vh; }
.site-main { display: block; }
.section-wrap { width: var(--bdl-wrap); margin-inline: auto; }

.site-header {
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.header-inner {
  align-items: center;
  background: rgba(246, 250, 252, 0.88);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(14,55,94,0.08);
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto;
  margin: 18px auto 0;
  max-width: 1380px;
  padding: 11px 16px 11px 18px;
  transition: background .25s ease, box-shadow .25s ease;
  width: calc(100% - 40px);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled .header-inner {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 44px rgba(14,55,94,0.14);
}

.brand { align-items: center; display: inline-flex; gap: 11px; }
.brand-mark {
  align-items: center;
  border: 2px solid var(--bdl-blue);
  color: var(--bdl-blue);
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  height: 34px;
  justify-content: center;
  letter-spacing: -0.03em;
  width: 34px;
}
.brand-copy { display: grid; line-height: 1; }
.brand-name { color: var(--bdl-blue); font-size: 14px; font-weight: 760; letter-spacing: .06em; }
.brand-sub { color: var(--bdl-blue-dark); font-size: 8px; letter-spacing: .3em; margin-top: 5px; }

.main-navigation ul { align-items: center; display: flex; gap: 28px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.main-navigation a { color: #263a4c; font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.main-navigation a:hover { color: var(--bdl-blue); }

.header-actions { align-items: center; display: flex; gap: 8px; }
.icon-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}
.icon-link:hover { background: var(--bdl-blue-soft); }
.cart-count {
  align-items: center;
  background: var(--bdl-blue);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 17px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 17px;
}
.menu-toggle { background: transparent; border: 0; cursor: pointer; display: none; padding: 8px; }

.hero { min-height: 860px; padding: 18px; }
.hero-panel {
  align-items: flex-end;
  background-color: #8db7d1;
  background-image: linear-gradient(90deg, rgba(5,45,86,.76) 0%, rgba(5,45,86,.55) 38%, rgba(5,45,86,.08) 74%), url('assets/images/hero-molecular.png');
  background-position: center;
  background-size: cover;
  border-radius: 38px;
  display: flex;
  min-height: 824px;
  overflow: hidden;
  padding: clamp(40px, 7vw, 108px);
  position: relative;
}
.hero-panel::after {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
  content: "";
  inset: 18px;
  pointer-events: none;
  position: absolute;
}
.hero-content { color: white; max-width: 730px; position: relative; z-index: 2; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .19em; margin: 0 0 20px; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 520;
  letter-spacing: -.055em;
  line-height: .96;
  margin: 0;
  text-wrap: balance;
}
.hero-deck { font-size: clamp(17px, 1.6vw, 22px); margin: 28px 0 34px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  align-items: center;
  background: var(--bdl-blue);
  border: 1px solid var(--bdl-blue);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  justify-content: center;
  letter-spacing: .02em;
  min-height: 50px;
  padding: 0 25px;
  transition: transform .2s ease, background .2s ease;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--bdl-blue-dark); color: white; transform: translateY(-1px); }
.button-light { background: white; border-color: white; color: var(--bdl-ink); }
.button-light:hover { background: var(--bdl-blue-soft); border-color: var(--bdl-blue-soft); color: var(--bdl-ink); }
.button-ghost { background: transparent; border-color: rgba(255,255,255,.68); color: white; }

.trust-strip { padding: 18px 0 0; }
.trust-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 24px;
}
.trust-item { background: white; min-height: 128px; padding: 30px; }
.trust-item strong { display: block; font-size: 16px; margin-bottom: 7px; }
.trust-item span { color: var(--bdl-muted); font-size: 14px; }

.editorial-section { padding: 120px 0; }
.section-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(38px, 5vw, 70px); font-weight: 520; letter-spacing: -.055em; line-height: 1; margin: 0; max-width: 760px; }
.section-heading p { color: var(--bdl-muted); margin: 0; max-width: 470px; }

.goal-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.goal-card {
  background: white;
  border: 1px solid var(--bdl-line);
  border-radius: var(--bdl-radius);
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 28px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.goal-card:hover { box-shadow: var(--bdl-shadow); transform: translateY(-4px); }
.goal-index { color: var(--bdl-blue); font-size: 12px; font-weight: 780; letter-spacing: .12em; }
.goal-card h3 { font-size: 28px; font-weight: 540; letter-spacing: -.035em; line-height: 1.08; margin: auto 0 14px; }
.goal-card p { color: var(--bdl-muted); font-size: 14px; margin: 0 0 22px; }
.goal-link { color: var(--bdl-blue); font-size: 13px; font-weight: 750; }

.catalog-section { background: var(--bdl-ink); color: white; padding: 120px 0; }
.catalog-section .section-heading p { color: #b8c5d0; }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.product-card { background: white; border-radius: 26px; color: var(--bdl-ink); overflow: hidden; }
.product-card-media { aspect-ratio: 1 / .82; background: linear-gradient(145deg, #e7f4fb, #cfe4f2); overflow: hidden; }
.product-card-media img { height: 100%; object-fit: cover; width: 100%; }
.product-card-body { padding: 22px; }
.product-card-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.product-card-body p { color: var(--bdl-muted); font-size: 13px; margin: 0 0 18px; }
.product-meta { align-items: center; display: flex; justify-content: space-between; }
.price { color: var(--bdl-blue); font-weight: 760; }
.catalog-empty { border: 1px solid rgba(255,255,255,.18); border-radius: 24px; color: #c5d0d9; grid-column: 1 / -1; padding: 40px; text-align: center; }

.science-panel { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; overflow: hidden; border-radius: 36px; }
.science-copy { background: var(--bdl-blue); color: white; padding: clamp(48px, 7vw, 100px); }
.science-copy h2 { font-size: clamp(42px, 5vw, 72px); font-weight: 520; letter-spacing: -.055em; line-height: .98; margin: 0 0 28px; }
.science-copy p { font-size: 18px; max-width: 560px; }
.science-visual { background: linear-gradient(145deg, #e6f4fb, #91bed9); padding: 30px; position: relative; }
.molecule-orbit { border: 1px solid rgba(11,82,161,.27); border-radius: 50%; inset: 12%; position: absolute; }
.molecule-orbit::before, .molecule-orbit::after { background: var(--bdl-blue); border: 8px solid white; border-radius: 50%; content: ""; height: 70px; position: absolute; width: 70px; box-shadow: 0 10px 40px rgba(11,82,161,.25); }
.molecule-orbit::before { left: 8%; top: 26%; }
.molecule-orbit::after { bottom: 12%; right: 4%; }

.disclaimer { background: #e7edf1; border-radius: 24px; color: #425261; font-size: 12px; margin-bottom: 80px; padding: 22px 26px; }

.site-footer { background: #081725; color: white; padding: 80px 0 30px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr; }
.footer-brand p { color: #9fb0bd; max-width: 430px; }
.footer-heading { color: #8ea4b5; font-size: 11px; font-weight: 750; letter-spacing: .18em; margin: 0 0 18px; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #dbe4ea; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: #8395a3; display: flex; font-size: 12px; justify-content: space-between; margin-top: 64px; padding-top: 24px; }

.content-shell { padding: 150px 0 100px; }
.content-card { background: white; border-radius: 30px; margin: auto; max-width: 1100px; padding: clamp(30px, 6vw, 80px); }
.content-card h1 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.05em; line-height: 1; }

.rpo-landing { background: #f7fbfe; overflow: hidden; }
.rpo-hero { padding: 148px 0 72px; position: relative; }
.rpo-hero::before {
  background: radial-gradient(circle, rgba(38,126,204,.18) 0, rgba(38,126,204,0) 68%);
  content: "";
  height: 720px;
  position: absolute;
  right: -240px;
  top: -170px;
  width: 720px;
}
.rpo-hero-grid { align-items: center; display: grid; gap: clamp(38px, 7vw, 96px); grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); position: relative; }
.rpo-kicker { color: var(--bdl-blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; margin: 0 0 18px; text-transform: uppercase; }
.rpo-hero h1 { font-size: clamp(54px, 7vw, 102px); font-weight: 620; letter-spacing: -.065em; line-height: .88; margin: 0; max-width: 820px; text-transform: uppercase; }
.rpo-hero h1 span { color: var(--bdl-blue); display: block; }
.rpo-intro { color: #3f5365; font-size: clamp(17px, 1.7vw, 22px); margin: 28px 0 32px; max-width: 660px; }
.rpo-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.rpo-proof span { align-items: center; color: #33495b; display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; }
.rpo-proof span::before { background: var(--bdl-blue); border-radius: 50%; content: ""; height: 7px; width: 7px; }
.rpo-visual { background: #dceef9; border: 1px solid rgba(11,82,161,.12); border-radius: 36px; box-shadow: var(--bdl-shadow); overflow: hidden; padding: 12px; transform: rotate(1.5deg); }
.rpo-visual img { border-radius: 27px; width: 100%; }
.rpo-badge { align-items: center; background: var(--bdl-ink); border-radius: 999px; color: white; display: inline-flex; font-size: 11px; font-weight: 800; gap: 9px; letter-spacing: .08em; margin-top: 14px; padding: 10px 14px; text-transform: uppercase; }

.rpo-trust { padding-bottom: 72px; }
.rpo-trust-grid { background: white; border: 1px solid var(--bdl-line); border-radius: 26px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.rpo-trust-item { min-height: 142px; padding: 30px; }
.rpo-trust-item + .rpo-trust-item { border-left: 1px solid var(--bdl-line); }
.rpo-trust-item strong { display: block; font-size: 18px; margin-bottom: 7px; }
.rpo-trust-item p { color: var(--bdl-muted); font-size: 14px; margin: 0; }

.rpo-lead-section { background: #071a2c; color: white; padding: 92px 0; }
.rpo-lead-grid { align-items: start; display: grid; gap: clamp(42px, 8vw, 110px); grid-template-columns: .82fr 1.18fr; }
.rpo-lead-copy h2 { font-size: clamp(44px, 5vw, 72px); font-weight: 560; letter-spacing: -.055em; line-height: .96; margin: 0 0 24px; }
.rpo-lead-copy > p { color: #b9c8d5; font-size: 18px; max-width: 520px; }
.rpo-steps { display: grid; gap: 18px; margin-top: 38px; }
.rpo-step { align-items: start; display: grid; gap: 14px; grid-template-columns: 34px 1fr; }
.rpo-step b { align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; display: flex; font-size: 12px; height: 34px; justify-content: center; width: 34px; }
.rpo-step strong { display: block; margin-bottom: 3px; }
.rpo-step span { color: #9eb0bf; font-size: 13px; }
.rpo-form-card { background: white; border-radius: 30px; color: var(--bdl-ink); padding: clamp(26px, 4vw, 46px); }
.rpo-form-card h3 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 8px; }
.rpo-form-card > p { color: var(--bdl-muted); margin: 0 0 26px; }
.rpo-form { display: grid; gap: 17px; }
.rpo-field { display: grid; gap: 7px; }
.rpo-field label { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rpo-field input { background: #f4f8fb; border: 1px solid rgba(16,32,51,.16); border-radius: 13px; min-height: 54px; padding: 0 15px; width: 100%; }
.rpo-field input:focus { border-color: var(--bdl-blue); box-shadow: 0 0 0 3px rgba(11,82,161,.12); outline: none; }
.rpo-field-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.rpo-consent { align-items: start; color: #4f6170; display: grid; font-size: 12px; gap: 10px; grid-template-columns: 19px 1fr; line-height: 1.45; }
.rpo-consent input { height: 18px; margin: 2px 0 0; width: 18px; }
.rpo-consent a { color: var(--bdl-blue); text-decoration: underline; }
.rpo-submit { border: 0; cursor: pointer; margin-top: 4px; width: 100%; }
.rpo-form-note { color: #788894; font-size: 11px; margin: 0; text-align: center; }
.rpo-form-alert { border-radius: 13px; font-size: 13px; font-weight: 700; margin-bottom: 18px; padding: 13px 15px; }
.rpo-form-alert.success { background: #e6f6ed; color: #18623a; }
.rpo-form-alert.error { background: #fff1ef; color: #8a2f25; }
.rpo-honeypot { height: 0; left: -9999px; overflow: hidden; position: absolute; width: 0; }

.rpo-faq { padding: 92px 0; }
.rpo-faq h2 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -.055em; margin: 0 0 38px; }
.rpo-faq-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.rpo-faq article { background: white; border: 1px solid var(--bdl-line); border-radius: 24px; padding: 28px; }
.rpo-faq h3 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px; }
.rpo-faq p { color: var(--bdl-muted); font-size: 14px; margin: 0; }

.woocommerce .woocommerce-breadcrumb { color: var(--bdl-muted); font-size: 12px; margin-bottom: 30px; }
.woocommerce ul.products { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { background: white; border-radius: 24px; margin: 0; overflow: hidden; padding: 0 0 22px; width: auto; }
.woocommerce ul.products li.product a img { margin: 0 0 20px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-left: 20px; margin-right: 20px; }
.woocommerce div.product { background: white; border-radius: 30px; padding: clamp(24px, 4vw, 60px); }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .main-navigation { background: white; border-radius: 22px; box-shadow: var(--bdl-shadow); display: none; left: 20px; padding: 22px; position: absolute; right: 20px; top: 78px; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: stretch; flex-direction: column; gap: 15px; }
  .header-actions .account-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .goal-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .science-panel { grid-template-columns: 1fr; }
  .science-visual { min-height: 430px; }
  .rpo-hero-grid, .rpo-lead-grid { grid-template-columns: 1fr; }
  .rpo-visual { margin: 0 auto; max-width: 540px; transform: none; }
  .rpo-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --bdl-wrap: calc(100vw - 28px); --bdl-radius: 24px; }
  .header-inner { margin-top: 10px; width: calc(100% - 20px); }
  .brand-name { font-size: 12px; }
  .brand-sub { font-size: 7px; }
  .hero { min-height: 720px; padding: 8px; }
  .hero-panel { border-radius: 28px; min-height: 704px; padding: 44px 26px; }
  .hero-panel::after { inset: 10px; }
  .hero h1 { font-size: 49px; }
  .hero-actions .button { width: 100%; }
  .trust-grid, .goal-grid, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .editorial-section, .catalog-section { padding: 80px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .goal-card { min-height: 270px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .rpo-hero { padding: 116px 0 54px; }
  .rpo-hero h1 { font-size: clamp(48px, 15vw, 67px); }
  .rpo-intro { font-size: 17px; margin: 22px 0 26px; }
  .rpo-proof { display: grid; gap: 10px; }
  .rpo-trust-grid { grid-template-columns: 1fr; }
  .rpo-trust-item { min-height: auto; padding: 24px; }
  .rpo-trust-item + .rpo-trust-item { border-left: 0; border-top: 1px solid var(--bdl-line); }
  .rpo-lead-section, .rpo-faq { padding: 68px 0; }
  .rpo-form-card { border-radius: 24px; margin-inline: -2px; padding: 25px 19px; }
  .rpo-field-row { grid-template-columns: 1fr; }
  .rpo-submit { min-height: 58px; }
}
